/*
Theme Name: CyberX — закупки для клубов
Template: storefront
Description: Дочерняя тема Storefront для магазина партнёров CyberX в стиле cyberxcommunity.ru: тёмный фон, красно-фиолетовые градиенты, срезанные углы, заглавные широкие заголовки (Unbounded), Montserrat. Шрифты и логотип — на своём сервере.
Version: 0.3.0
Text Domain: cyberx-storefront
*/

:root {
	--cx-red: #dc0000;
	--cx-red-2: #a60101;
	--cx-violet: #7e01c6;
	--cx-grad: linear-gradient(90deg, #a60101 40%, #7e01c6 100%);
	--cx-bg: #121212;
	--cx-bg-2: #181818;
	--cx-card: #1c1c1c;
	--cx-card-2: #232323;
	--cx-line: rgba(255, 255, 255, .09);
	--cx-line-2: rgba(255, 255, 255, .18);
	--cx-text: #f2f2f2;
	--cx-muted: #9a9a9a;
	--cx-green: #3ddc84;
	--cx-cut: 12px;
	--cx-head: 'Unbounded', 'Montserrat', Arial, sans-serif;
	--cx-body: 'Montserrat', Arial, sans-serif;
}
/* срезанные углы (как кнопки и карточки на cyberxcommunity.ru) */
.cx-cut { clip-path: polygon(var(--cx-cut) 0, 100% 0, 100% calc(100% - var(--cx-cut)), calc(100% - var(--cx-cut)) 100%, 0 100%, 0 var(--cx-cut)); }

html { background: var(--cx-bg); }
body {
	background: var(--cx-bg);
	background-image:
		radial-gradient(900px 520px at 100% 0%, rgba(126, 1, 198, .22), transparent 60%),
		radial-gradient(700px 480px at 0% 30%, rgba(220, 0, 0, .14), transparent 60%),
		radial-gradient(800px 600px at 100% 85%, rgba(176, 30, 200, .16), transparent 60%);
	background-attachment: fixed;
	color: var(--cx-text);
	font-family: var(--cx-body);
	font-size: 16px;
}
h1, h2, h3, h4, .page-title, .entry-title, .woocommerce-products-header__title, .product_title {
	font-family: var(--cx-head); text-transform: uppercase; color: #fff; font-weight: 800; letter-spacing: .01em;
}
p, li, td, th, label, .woocommerce-breadcrumb { color: var(--cx-text); }
a { color: #fff; text-decoration: none; }
a:hover, a:focus { color: var(--cx-red); }
hr, table, table td, table th { border-color: var(--cx-line); }
table th, table tbody td, table tbody th { background: transparent !important; }
.site-content { padding-top: 10px; }
.col-full { max-width: 1280px; }

/* ---------- шапка ---------- */
.site-header {
	background: linear-gradient(105deg, rgba(13, 13, 13, .92) 50%, rgba(62, 62, 62, .85) 100%);
	border-bottom: 1px solid var(--cx-line);
	padding-top: 14px; color: #fff; margin-bottom: 0;
	position: relative; z-index: 50;
}
.site-header .site-branding { margin-bottom: 10px; width: auto !important; }
.cx-logo { display: inline-flex; align-items: center; gap: 16px; }
.cx-logo img { height: 52px; width: auto; display: block; }
.cx-logo span { font-family: var(--cx-head); font-size: 11px; color: var(--cx-muted); text-transform: uppercase; letter-spacing: .14em; border-left: 1px solid var(--cx-line-2); padding-left: 16px; line-height: 1.4; }
.site-header .site-search .widget_product_search input[type=search] {
	background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid var(--cx-line); border-radius: 0; font-family: var(--cx-body);
}
.site-header .site-search .widget_product_search input[type=search]:focus { border-color: var(--cx-red); }
.site-header .site-search .widget_product_search form::before { color: var(--cx-muted); }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a {
	color: #fff; font-family: var(--cx-head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
}
.main-navigation ul.menu > li > a:hover, .main-navigation ul.menu > li.current-menu-item > a, .main-navigation ul.menu > li.current-menu-parent > a { color: var(--cx-red); }
.main-navigation ul.menu ul, .main-navigation ul.nav-menu ul { background: #161616; border: 1px solid var(--cx-line); }
.main-navigation ul.menu ul a { color: #fff; font-family: var(--cx-body); font-weight: 500; text-transform: none; }
.main-navigation ul.menu ul a:hover { color: var(--cx-red); background: rgba(255, 255, 255, .04); }
.site-header-cart .cart-contents, .site-header-cart .cart-contents .amount { color: #fff; font-family: var(--cx-head); font-size: 13px; }
.site-header-cart .cart-contents .count { color: var(--cx-muted); opacity: 1; font-family: var(--cx-body); }
.site-header-cart .cart-contents::after { color: var(--cx-red); }
.site-header-cart .widget_shopping_cart { background: #161616; border: 1px solid var(--cx-line); color: #fff; }
.site-header-cart .widget_shopping_cart a { color: #fff; }
.storefront-handheld-footer-bar { background: #0d0d0d; border-top: 1px solid var(--cx-line); }
.storefront-handheld-footer-bar ul li > a { color: #fff; background-color: #0d0d0d; }   /* непрозрачно: за кнопками спрятано поле поиска */
.storefront-handheld-footer-bar ul li.cart .count { background: var(--cx-red); border-color: #0d0d0d; color: #fff; }
.storefront-handheld-footer-bar ul li.search .site-search { background: #161616; }
button.menu-toggle, button.menu-toggle:hover {
	background: transparent !important; color: #fff !important; border: 1px solid var(--cx-line-2) !important; border-radius: 0;
	font-family: var(--cx-head); font-weight: 600; font-size: 12px; text-transform: uppercase;
}
button.menu-toggle::before, button.menu-toggle::after, button.menu-toggle span::before { background-color: #fff !important; }
.handheld-navigation { background: #141414; }
.handheld-navigation ul.menu li a { color: #fff; font-family: var(--cx-head); font-size: 14px; text-transform: uppercase; }
.handheld-navigation ul.menu ul li a { font-family: var(--cx-body); text-transform: none; }
.handheld-navigation .dropdown-toggle { color: #fff; }

/* ---------- кнопки: градиент + срезанные углы ---------- */
button, input[type=button], input[type=reset], input[type=submit], .button, .added_to_cart, .widget a.button, .wc-forward {
	background: var(--cx-grad) !important; border: 0 !important; color: #fff !important; border-radius: 0 !important;
	font-family: var(--cx-body); font-weight: 600; letter-spacing: .01em; padding: .85em 1.6em;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	transition: filter .2s, transform .1s;
}
button:hover, input[type=submit]:hover, .button:hover, .added_to_cart:hover, .widget a.button:hover { filter: brightness(1.18); }
button:active, .button:active { transform: translateY(1px); }
.button.cx-ghost, .cx-ghost {
	background: rgba(255, 255, 255, .06) !important; box-shadow: inset 0 0 0 1px var(--cx-line-2);
}
.button.disabled, .button:disabled, button:disabled { background: #333 !important; color: #777 !important; filter: none; }
.button.loading::after { color: #fff; }

/* ---------- поля форм (корзина, оформление, вход) ---------- */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], textarea, select, .select2-container .select2-selection--single {
	background: rgba(255, 255, 255, .05) !important; color: #fff !important; border: 1px solid var(--cx-line-2) !important; border-radius: 0 !important;
	box-shadow: none !important; font-family: var(--cx-body);
}
input:focus, textarea:focus, select:focus { border-color: var(--cx-red) !important; outline: none; }
select option { background: #1c1c1c; color: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: #fff; }
.select2-dropdown { background: #1c1c1c; color: #fff; border-color: var(--cx-line-2); }
::placeholder { color: #777 !important; }
.form-row label, .woocommerce-form__label { color: #ddd; }
abbr.required, .required { color: var(--cx-red) !important; }

/* ---------- уведомления ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	background: var(--cx-card) !important; color: #fff !important; border-left: 3px solid var(--cx-red); border-radius: 0;
}
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: #fff !important; text-decoration: underline; }
.woocommerce-message .button { float: right; padding: .5em 1.2em; }
.woocommerce-error { border-left-color: #ff3b3b; }

/* ---------- хлебные крошки, заголовки страниц ---------- */
.storefront-breadcrumb { background: transparent; margin-bottom: 1.5em; padding: 1em 0 0; }
.woocommerce-breadcrumb, .woocommerce-breadcrumb a { color: var(--cx-muted); font-size: 13px; }
.woocommerce-breadcrumb a:hover { color: #fff; }
.page-title, .woocommerce-products-header__title { font-size: 38px; margin-bottom: .6em; }
.woocommerce-products-header { text-align: left; padding-bottom: 1em; border-bottom: 0; }
.term-description p { color: var(--cx-muted); }
.woocommerce-result-count { color: var(--cx-muted); font-size: 13px; }
.woocommerce-ordering select { font-size: 13px; padding: .6em 2em .6em .8em; }
.storefront-sorting { border-bottom: 1px solid var(--cx-line); }
.woocommerce-pagination .page-numbers li .page-numbers { background: var(--cx-card); color: #fff; border: 1px solid var(--cx-line); }
.woocommerce-pagination .page-numbers li .page-numbers.current, .woocommerce-pagination .page-numbers li .page-numbers:hover { background: var(--cx-red); color: #fff; }

/* ---------- главная ---------- */
.cx-hero { position: relative; padding: 70px 0 30px; margin-bottom: 30px; }
.cx-hero::before { /* бледные «X» справа, как на cyberxcommunity.ru */
	content: "✕\A✕\A✕"; white-space: pre; position: absolute; right: 2%; top: 30px; font-size: 64px; line-height: 1.25; color: rgba(255, 255, 255, .05); font-weight: 900; pointer-events: none;
}
.cx-frame {
	position: relative; display: inline-block; border: 1px solid var(--cx-red); padding: 18px 30px 16px; margin-bottom: 34px;
}
.cx-frame::after { content: ""; position: absolute; right: -4px; top: -4px; width: 7px; height: 7px; background: var(--cx-red); }
.cx-frame::before { content: "+"; position: absolute; left: -36px; bottom: -40px; color: var(--cx-red); font-size: 40px; font-weight: 200; line-height: 1; font-family: Arial, sans-serif; }
.cx-frame h1 { margin: 0; font-size: 52px; line-height: 1.05; }
.cx-hero .cx-slogan { font-family: var(--cx-head); text-transform: uppercase; font-weight: 800; font-size: 30px; color: #fff; margin: 0 0 18px; }
.cx-hero p { color: #d0d0d0; font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0 0 28px; }
.cx-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.cx-hero-btns .button { font-size: 17px; padding: 1em 2.2em; }
.cx-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.cx-stat {
	background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--cx-line-2); padding: 20px 30px; min-width: 180px; text-align: center;
	clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.cx-stat b { display: block; font-family: var(--cx-head); font-size: 40px; font-weight: 800; color: #fff; line-height: 1.1; }
.cx-stat span { font-family: var(--cx-head); font-size: 13px; color: #ddd; text-transform: lowercase; }
.cx-stat.cx-wide { display: flex; align-items: center; justify-content: center; min-width: 240px; }
.cx-stat.cx-wide span { font-size: 15px; font-weight: 800; text-transform: uppercase; color: #fff; }
.cx-h2 { font-family: var(--cx-head); text-transform: uppercase; font-weight: 800; font-size: 30px; margin: 50px 0 22px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.cx-h2 a { font-family: var(--cx-body); text-transform: none; font-size: 15px; font-weight: 600; color: var(--cx-red); }
.cx-h2 a:hover { color: #fff; }
.cx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0 0 20px; }
.cx-cat {
	display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cx-card);
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.cx-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; filter: brightness(.8); }
.cx-cat:hover img { transform: scale(1.05); filter: brightness(1); }
.cx-cat span {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff;
	font-family: var(--cx-head); font-weight: 600; font-size: 14px; text-transform: uppercase; line-height: 1.3;
	background: linear-gradient(transparent, rgba(0, 0, 0, .9));
}
.cx-cat span small { display: block; font-family: var(--cx-body); font-weight: 500; text-transform: none; color: #bbb; font-size: 12px; margin-top: 4px; }
.cx-cat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--cx-grad); transition: width .3s; }
.cx-cat:hover::after { width: 100%; }
.cx-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 20px; }
.cx-step { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--cx-line); padding: 22px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.cx-step b { font-family: var(--cx-head); font-size: 28px; color: var(--cx-red); display: block; margin-bottom: 8px; }
.cx-step h3 { font-size: 15px; margin: 0 0 8px; }
.cx-step p { color: var(--cx-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ---------- карточки товаров ---------- */
ul.products li.product {
	background: var(--cx-card); padding: 0 0 16px; display: flex; flex-direction: column; text-align: left;
	box-shadow: inset 0 0 0 1px var(--cx-line);
	clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
	transition: background .2s;
}
ul.products li.product:hover { background: var(--cx-card-2); }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
ul.products li.product img { aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 14px; transition: filter .3s; }
ul.products li.product:hover img { filter: brightness(1.08); }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--cx-body); font-size: 15px; font-weight: 600; color: #fff; padding: 0 16px; min-height: 2.7em; line-height: 1.35; text-transform: none; }
ul.products li.product .price { font-family: var(--cx-head); font-size: 20px; font-weight: 800; color: #fff; padding: 0 16px; margin: 6px 0 4px; }
ul.products li.product .price .woocommerce-Price-currencySymbol { font-family: var(--cx-body); font-weight: 600; }
ul.products li.product .cx-stock { font-size: 13px; margin: 0 16px 14px; display: flex; align-items: center; gap: 6px; }
ul.products li.product .cx-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
ul.products li.product.outofstock img { filter: grayscale(.8) brightness(.6); }
ul.products li.product .cx-buy { margin-top: auto; display: flex; gap: 8px; padding: 0 16px; align-items: stretch; }
ul.products li.product .cx-buy .quantity .qty { width: 58px; height: 100%; padding: 8px 4px; text-align: center; }
ul.products li.product .cx-buy .button { margin: 0; flex: 1; text-align: center; padding: .8em 1em; }
ul.products li.product .added_to_cart { display: block; margin: 8px 16px 0; text-align: center; background: rgba(255, 255, 255, .06) !important; font-size: 13px; padding: .5em 1em; }
ul.products li.product .onsale { background: var(--cx-red); color: #fff; border: 0; border-radius: 0; }
.cx-stock.in { color: var(--cx-green); }
.cx-stock.out { color: var(--cx-muted); }

/* ---------- карточка товара ---------- */
.single-product div.product .product_title { font-size: 34px; line-height: 1.15; }
.single-product div.product p.price { font-family: var(--cx-head); font-size: 34px; font-weight: 800; color: #fff; }
.single-product div.product .stock { font-weight: 600; }
.single-product div.product .stock.in-stock { color: var(--cx-green); }
.single-product div.product .stock.out-of-stock { color: var(--cx-muted); }
.single-product div.product .woocommerce-product-gallery { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger { background: rgba(0,0,0,.6); }
.single-product div.product form.cart { padding: 1.4em 0; border-top: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); display: flex; gap: 10px; }
.single-product div.product form.cart .quantity .qty { width: 80px; height: 100%; text-align: center; }
.single-product div.product form.cart .button { font-size: 17px; padding: 1em 2.4em; }
.product_meta { color: var(--cx-muted); font-size: 13px; border-top: 0 !important; }
.product_meta a { color: #ddd; }
.woocommerce-tabs ul.tabs li a { color: var(--cx-muted); font-family: var(--cx-head); text-transform: uppercase; font-size: 13px; }
.woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce-tabs ul.tabs li.active::after { color: var(--cx-red); }
.woocommerce-tabs, .woocommerce-tabs ul.tabs, .woocommerce-tabs ul.tabs li { border-color: var(--cx-line) !important; }
.related > h2, .upsells > h2 { font-size: 24px; }
.storefront-product-pagination a { background: var(--cx-card); color: #fff; }

/* ---------- корзина, оформление, кабинет ---------- */
table.shop_table, table.cart, .cart_totals table, .woocommerce-checkout-review-order-table { background: var(--cx-card); }
table.shop_table th { font-family: var(--cx-head); font-size: 12px; text-transform: uppercase; color: var(--cx-muted); }
table.cart td.actions .coupon, .woocommerce-form-coupon-toggle { display: none; }
.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { font-size: 20px; }
#payment, #payment .payment_methods, #payment .payment_box { background: var(--cx-card) !important; color: #ddd; border-radius: 0 !important; }
#payment .payment_box::before { border-bottom-color: var(--cx-card) !important; }
#payment .place-order .button { width: 100%; font-size: 18px; padding: 1.1em; }
.woocommerce-MyAccount-navigation ul li a { color: #ddd; font-family: var(--cx-head); font-size: 13px; text-transform: uppercase; padding: 1em 0; }
.woocommerce-MyAccount-navigation ul li.is-active a, .woocommerce-MyAccount-navigation ul li a:hover { color: var(--cx-red); }
.woocommerce-MyAccount-navigation ul, .woocommerce-MyAccount-navigation ul li { border-color: var(--cx-line) !important; }
.woocommerce-form-login, .woocommerce-ResetPassword {
	background: var(--cx-card); border: 0 !important; padding: 34px !important; max-width: 520px;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.woocommerce-account:not(.logged-in) .entry-title { text-align: left; }
.woocommerce-account:not(.logged-in) .u-column1 h2 { display: none; }
.cx-login-hint { color: var(--cx-muted); max-width: 520px; margin-bottom: 18px; }
.woocommerce-orders-table__cell, .woocommerce-table td { color: #ddd; }
mark, .woocommerce-order-overview strong { background: transparent; color: #fff; }
.woocommerce-order-overview { background: var(--cx-card) !important; }
.woocommerce-order-overview li { border-color: var(--cx-line) !important; }
.wc-block-components-notice-banner { background: var(--cx-card); color: #fff; }

/* ---------- подвал ---------- */
.site-footer { background: #0b0b0b; color: var(--cx-muted); border-top: 1px solid var(--cx-line); padding: 50px 0 20px; }
.site-footer a { color: #fff; }
.cx-footer { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.cx-footer img { height: 70px; width: auto; }
.cx-footer .cx-legal { font-size: 12px; color: #6a6a6a; margin-top: 18px; line-height: 1.6; }
.cx-footer .cx-contacts { text-align: right; font-size: 16px; line-height: 1.9; }
.cx-footer .cx-contacts small { display: block; color: var(--cx-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--cx-head); }
.cx-footer-nav { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin: 40px 0 26px; }
.cx-footer-nav a { font-family: var(--cx-head); font-weight: 600; text-transform: uppercase; font-size: 15px; }
.cxms-docs { background: #0b0b0b; color: #6a6a6a; border-top: 1px solid var(--cx-line); padding: 16px !important; }
.cxms-docs a { color: #777; }
.cxms-docs a:hover { color: #fff; }
#cxms-cookie { background: #1c1c1c !important; border: 1px solid var(--cx-line-2); border-radius: 0 !important; }
#cxms-cookie button { background: var(--cx-grad) !important; color: #fff !important; }

/* ---------- телефон ---------- */
@media (max-width: 767px) {
	body { font-size: 15px; }
	.cx-logo img { height: 40px; }
	.cx-logo span { display: none; }
	.cx-hero { padding: 36px 0 10px; }
	.cx-hero::before { display: none; }
	.cx-frame { padding: 12px 18px; margin-bottom: 24px; }
	.cx-frame::before { display: none; }
	.cx-frame h1 { font-size: 28px; }
	.cx-hero .cx-slogan { font-size: 19px; }
	.cx-hero p { font-size: 15px; }
	.cx-stat { min-width: 0; flex: 1 1 40%; padding: 14px 10px; }
	.cx-stat b { font-size: 28px; }
	.cx-stat.cx-wide { display: none; }
	.cx-h2 { font-size: 21px; margin-top: 34px; }
	.cx-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.cx-cat span { font-size: 11px; padding: 30px 10px 10px; }
	.page-title, .woocommerce-products-header__title { font-size: 26px; }
	.site-main ul.products li.product { width: 48.5% !important; float: left; margin-right: 3% !important; clear: none !important; }
	.site-main ul.products li.product:nth-child(2n) { margin-right: 0 !important; }
	.site-main ul.products li.product:nth-child(2n+1) { clear: both !important; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 13px; padding: 0 10px; }
	ul.products li.product .price { font-size: 16px; padding: 0 10px; }
	ul.products li.product .cx-stock { margin: 0 10px 10px; font-size: 11px; }
	ul.products li.product .cx-buy { padding: 0 10px; flex-wrap: wrap; }
	ul.products li.product .cx-buy .quantity, ul.products li.product .cx-buy .quantity .qty { width: 100%; }
	ul.products li.product .cx-buy .button { width: 100%; font-size: 13px; padding: .8em .4em; }
	.single-product div.product .product_title { font-size: 24px; }
	.single-product div.product p.price { font-size: 26px; }
	.cx-footer .cx-contacts { text-align: left; }
	.cx-footer-nav { gap: 18px; justify-content: flex-start; }
}

/* ---------- правки 0.2.1 ---------- */
/* блок оплаты на оформлении — тёмный (у Storefront он светлый) */
#payment .payment_methods > li, #payment .payment_methods > li .payment_box, #payment .place-order, #payment div.form-row,
#payment .payment_methods li:not(.woocommerce-notice) { background: var(--cx-card) !important; color: #ddd !important; }
#payment .payment_methods > li { border-bottom: 1px solid var(--cx-line); }
#payment .payment_methods li .payment_box { background: var(--cx-card-2) !important; }
#payment label, #payment .woocommerce-terms-and-conditions-wrapper, #payment .woocommerce-terms-and-conditions-wrapper label span { color: #ddd !important; }
#payment .woocommerce-terms-and-conditions-wrapper a { color: #fff; text-decoration: underline; }
.woocommerce-privacy-policy-text { display: none; }          /* своя галочка согласия (152-ФЗ) */
/* подвал и прочие ссылки — без подчёркивания Storefront */
.site-footer .cx-footer a, .site-footer .cx-footer-nav a { color: #fff !important; text-decoration: none !important; }
.site-footer .cx-footer a:hover, .site-footer .cx-footer-nav a:hover { color: var(--cx-red) !important; }
.woocommerce-breadcrumb a, .product_meta a, .cx-login-hint a { text-decoration: none; }
.cx-login-hint a { color: #fff; border-bottom: 1px solid var(--cx-red); }
/* ссылки «Изменить» (видит только администратор) */
.edit-link, .post-edit-link { display: none !important; }
#order_review, .woocommerce-checkout-review-order { background: var(--cx-card) !important; }

/* ---------- 0.2.3: выпадающее меню и карточка после «В корзину» ---------- */
.main-navigation ul.menu ul.sub-menu, .main-navigation ul.nav-menu ul.children, .main-navigation ul li:hover > ul, .main-navigation ul li.focus > ul {
	background-color: #161616 !important; border: 1px solid var(--cx-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.main-navigation ul.menu ul.sub-menu li, .main-navigation ul.menu ul.sub-menu li a { background: transparent !important; }
.main-navigation ul.menu ul.sub-menu li a { color: #e6e6e6 !important; padding: .75em 1.2em; width: 260px; }
.main-navigation ul.menu ul.sub-menu li a:hover, .main-navigation ul.menu ul.sub-menu li.current-menu-item a { color: #fff !important; background: rgba(220, 0, 0, .14) !important; }
.main-navigation ul.menu ul.sub-menu li + li { border-top: 1px solid var(--cx-line); }
ul.products li.product .cx-buy { flex-wrap: wrap; }
ul.products li.product .cx-buy .button { white-space: nowrap; min-width: 0; }
ul.products li.product .cx-buy .button.added::after { margin-left: .5em; }
ul.products li.product .cx-buy .added_to_cart {
	flex: 1 1 100%; order: 3; margin: 0 !important; text-align: center; font-size: 13px; padding: .55em .8em !important;
	background: rgba(255, 255, 255, .06) !important; box-shadow: inset 0 0 0 1px var(--cx-line-2); white-space: nowrap;
}

/* ===================== 0.3.0 — плотнее: меньше воздуха, больше товара на экране ===================== */
.col-full { max-width: 1440px; padding-left: 24px; padding-right: 24px; }
body { font-size: 15px; }
/* шапка: две низкие строки */
.site-header { padding-top: 8px; }
.site-header .site-branding { margin-bottom: 6px; }
.cx-logo img { height: 38px; }
.cx-logo span { font-size: 10px; padding-left: 12px; }
.site-header .site-search { margin-bottom: 6px; }
.site-header .site-search .widget_product_search input[type=search] { padding: .55em 1em .55em 2.6em; font-size: 14px; }
.storefront-primary-navigation { min-height: 0; }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { padding-top: .9em; padding-bottom: .9em; }
.site-header-cart .cart-contents { padding: .9em 0; }
/* страницы */
.site-content { padding-top: 0; }
.storefront-breadcrumb { margin-bottom: .6em; padding-top: .8em; }
.page-title, .woocommerce-products-header__title, .entry-title { font-size: 26px; margin-bottom: .35em; }
.woocommerce-products-header { padding-bottom: .4em; }
.term-description { margin-bottom: .6em; }
.storefront-sorting { margin-bottom: 1em; padding-bottom: .6em; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.storefront-sorting .woocommerce-ordering, .storefront-sorting .woocommerce-result-count { margin: 0; float: none; }
.storefront-sorting .woocommerce-pagination { margin: 0 0 0 auto; float: none; padding: 0; border: 0; }
.storefront-sorting + .storefront-sorting { display: none; }      /* вторая полоса сортировки внизу не нужна */
.site-main { margin-bottom: 1.5em; }
article.page .entry-header, .hentry .entry-header { padding-bottom: .4em; margin-bottom: .6em; border: 0; }
.hentry { margin-bottom: 1.5em; }
/* сетка товаров: 5 в ряд, карточки плотнее */
@media (min-width: 1100px) {
	.site-main ul.products.columns-4 li.product, .site-main ul.products.columns-5 li.product, .site-main ul.products li.product {
		width: calc((100% - 4 * 14px) / 5) !important; margin-right: 14px !important; clear: none !important; float: left;
	}
	.site-main ul.products li.product:nth-child(5n) { margin-right: 0 !important; }
	.site-main ul.products li.product:nth-child(5n+1) { clear: both !important; }
}
ul.products li.product { margin-bottom: 14px !important; padding-bottom: 12px; }
ul.products li.product img { margin-bottom: 10px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px; padding: 0 12px; min-height: 2.6em; margin-bottom: 0; }
ul.products li.product .price { font-size: 17px; padding: 0 12px; margin: 4px 0 2px; }
ul.products li.product .cx-stock { margin: 0 12px 10px; font-size: 12px; }
ul.products li.product .cx-buy { padding: 0 12px; gap: 6px; }
ul.products li.product .cx-buy .quantity .qty { width: 50px; padding: 6px 2px; }
ul.products li.product .cx-buy .button { padding: .65em .6em; font-size: 13.5px; }
/* главная: компактный первый экран */
.cx-hero { padding: 18px 0 6px; margin-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 30px; align-items: end; }
.cx-hero::before { display: none; }
.cx-hero > .cx-frame, .cx-hero > .cx-slogan, .cx-hero > p { grid-column: 1; }
.cx-frame { padding: 10px 20px 9px; margin-bottom: 10px; }
.cx-frame::before { left: -22px; bottom: -24px; font-size: 26px; }
.cx-frame h1 { font-size: 30px; }
.cx-hero .cx-slogan { font-size: 18px; margin: 0 0 6px; }
.cx-hero p { font-size: 14.5px; line-height: 1.5; margin: 0 0 4px; max-width: 760px; }
.cx-hero-btns { grid-column: 1; margin: 8px 0 0; gap: 10px; }
.cx-hero-btns .button { font-size: 14.5px; padding: .75em 1.6em; }
.cx-stats { grid-column: 2; grid-row: 1 / span 4; align-self: center; gap: 10px; }
.cx-stat { padding: 12px 18px; min-width: 120px; }
.cx-stat b { font-size: 28px; }
.cx-stat span { font-size: 11.5px; }
.cx-stat.cx-wide { display: none; }
.cx-h2 { font-size: 19px; margin: 22px 0 12px; }
.cx-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 4px; }
.cx-cat { aspect-ratio: 1 / 1; }
.cx-cat span { font-size: 11.5px; padding: 26px 10px 9px; }
.cx-cat span small { font-size: 11px; margin-top: 2px; }
.cx-how { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cx-step { padding: 14px 16px; }
.cx-step b { font-size: 20px; margin-bottom: 4px; }
.cx-step h3 { font-size: 13px; margin-bottom: 4px; }
.cx-step p { font-size: 13px; line-height: 1.45; }
/* карточка товара */
.single-product div.product { margin-bottom: 1.5em; }
.single-product div.product .woocommerce-product-gallery { width: 40%; margin-bottom: 1.2em; }
.single-product div.product .summary { width: 56%; }
.single-product div.product .product_title { font-size: 26px; margin-bottom: .3em; }
.single-product div.product p.price { font-size: 28px; margin-bottom: .3em; }
.single-product div.product form.cart { padding: 1em 0; margin-bottom: 1em; }
.single-product div.product .woocommerce-product-details__short-description, .single-product .woocommerce-tabs { margin-bottom: 1em; }
.woocommerce-tabs { padding-top: 1em; }
.related, .upsells { padding-top: 1em; }
.related > h2, .upsells > h2 { font-size: 19px; margin-bottom: .8em; }
/* корзина и оформление */
.woocommerce-cart .site-main, .woocommerce-checkout .site-main { margin-bottom: 1em; }
table.shop_table td, table.shop_table th { padding: .7em 1em; }
#customer_details .form-row { margin-bottom: .7em; }
.woocommerce-billing-fields h3, #order_review_heading { margin-bottom: .5em; }
/* подвал ниже */
.site-footer { padding: 26px 0 10px; }
.cx-footer img { height: 46px; }
.cx-footer .cx-legal { margin-top: 10px; }
.cx-footer .cx-contacts { font-size: 14.5px; line-height: 1.7; }
.cx-footer-nav { margin: 18px 0 12px; gap: 26px; }
.cx-footer-nav a { font-size: 13px; }
.cxms-docs { padding: 10px !important; font-size: 12px !important; }
@media (max-width: 1099px) {
	.cx-hero { grid-template-columns: 1fr; }
	.cx-stats { grid-column: 1; grid-row: auto; }
	.cx-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width: 100%; }
}
@media (max-width: 767px) {
	.col-full { padding-left: 14px; padding-right: 14px; }
	.cx-frame h1 { font-size: 22px; }
	.cx-stats { gap: 8px; }
	.cx-stat { flex: 1 1 28%; padding: 10px 8px; }
	.cx-stat b { font-size: 22px; }
	.cx-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.cx-how { grid-template-columns: 1fr 1fr; }
	.storefront-sorting .woocommerce-pagination { margin-left: 0; }
}
/* 0.3.0: отступы Storefront (его стиль WooCommerce грузится после темы — перебиваем сильнее) */
body .site-header { margin-bottom: 0 !important; }
body.home .site-content, body .site-content { padding-top: 6px; }
body .woocommerce-products-header { padding: 0 0 .3em !important; text-align: left !important; }
body .woocommerce-products-header .woocommerce-products-header__title { margin: 0 0 .2em !important; }
body.woocommerce-page .storefront-sorting { margin-bottom: 12px !important; }
body ul.products li.product img { aspect-ratio: 4 / 3 !important; }
body .single-product div.product .woocommerce-product-gallery img { aspect-ratio: auto; }
/* оформление заказа: реквизиты по ИНН и доставка */
.woocommerce-checkout #billing_inn_field { position: relative; }
.cx-inn-btn { margin-top: 6px !important; padding: .55em 1.1em !important; font-size: 13px !important; }
.cx-inn-msg { display: block; margin-top: 4px; color: var(--cx-muted); font-size: 12.5px; }
.cx-ship-hint { color: var(--cx-muted); font-size: 12.5px; line-height: 1.4; }
#shipping_method { list-style: none; margin: 0; padding: 0; }
#shipping_method li { margin: 0 0 .6em; padding: .6em .8em; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--cx-line); }
#shipping_method li input { margin-right: .5em; }
#shipping_method li label { display: inline; color: #fff; font-weight: 500; }
.woocommerce-shipping-totals th, tr.cx-point th { vertical-align: top; }
tr.cx-point input[type=text] { width: 100%; margin-top: 4px; }
.woocommerce-checkout h3#ship-to-different-address { font-size: 15px; font-family: var(--cx-body); text-transform: none; }
.woocommerce-checkout h3#ship-to-different-address label { display: flex; gap: 8px; align-items: center; color: #fff; }
.cx-delivery { margin-top: 1em; color: var(--cx-text); }
.cx-hidden { display: none !important; }
body.woocommerce-checkout .entry-header, body.woocommerce-cart .entry-header, body.woocommerce-account .entry-header { text-align: left; margin-bottom: .4em; padding-bottom: 0; }
body.woocommerce-checkout .entry-title, body.woocommerce-cart .entry-title, body.woocommerce-account .entry-title { font-size: 26px; margin: 0; }
body.woocommerce-checkout .hentry, body.woocommerce-cart .hentry, body.woocommerce-account .hentry { padding-top: 0; }
/* гость (без входа): каталог без цен */
.cx-login-price { font-family: var(--cx-body); font-size: 13px; font-weight: 600; color: var(--cx-muted); }
ul.products li.product .price .cx-login-price { font-size: 12.5px; }
.cx-login-cta { margin: 1em 0; }
.cx-login-cta small { display: block; margin-top: .8em; color: var(--cx-muted); }
.cx-login-cta small a { color: #fff; }
body.cx-guest .site-header-cart, body.cx-guest .main-navigation a[href*="/cart/"], body.cx-guest .handheld-navigation a[href*="/cart/"],
body.cx-guest .storefront-handheld-footer-bar li.cart, body.cx-guest .cx-footer-nav a[href*="/cart/"] { display: none !important; }
ul.products li.product .cx-buy .button.cx-ghost { flex: 1; text-align: center; font-size: 13px; }
/* регистрация партнёра */
.cx-reg-intro { color: var(--cx-muted); font-size: 13px; }
.cx-inn-msg { display: block; margin-top: 4px; color: var(--cx-muted); font-size: 12px; }
.cx-inn-msg b { color: #fff; }
.cx-other { border-left: 2px solid var(--cx-red, #c00); padding-left: 12px; margin: 0 0 1em; }
.woocommerce-form-register select { width: 100%; }
.woocommerce-form-register select { background: #1c1c1c; color: #fff; border: 1px solid #333; padding: 10px; min-height: 44px; }
