/*
Theme Name: Disk PS Store
Theme URI: https://diskps.ru/
Author: Disk PS
Description: Тёмная WooCommerce-тема для магазина игровых дисков PS5 и PS4: каталог с фильтрами, быстрая корзина, адаптивная вёрстка.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: diskps
*/

/* ==========================================================================
   Токены
   ========================================================================== */
:root{
  color-scheme:dark;
  --bg:#0b0c10;
  --bg-elev:#101218;
  --surface:#151821;
  --surface-2:#1c202b;
  --surface-3:#252a37;
  --line:#272c3a;
  --line-strong:#363c4f;
  --text:#f3f4f8;
  --text-2:#c9cddb;
  --muted:#9aa1b4;
  --accent:#7c3aed;
  --accent-hover:#6d28d9;
  --accent-soft:rgba(124,58,237,.18);
  --accent-text:#b69cff;
  --cyan:#22d3ee;
  --sale:#ff4d6d;
  --sale-text:#ff8fa3;
  --success:#34d399;
  --warning:#fbbf24;
  --radius-sm:12px;
  --radius:18px;
  --radius-lg:28px;
  --shadow:0 24px 60px rgba(0,0,0,.45);
  --font:'Manrope',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-display:'Unbounded','Manrope',ui-sans-serif,system-ui,sans-serif;
  --header-h:72px;
}

/* ==========================================================================
   База
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:radial-gradient(1100px 620px at 85% -8%,rgba(124,58,237,.16),transparent 60%),radial-gradient(900px 520px at -10% 0%,rgba(34,211,238,.07),transparent 60%),var(--bg);background-color:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
body.has-panel{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{color:var(--text);line-height:1.2}
p{margin:0 0 1em}
:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;border-radius:6px}
::selection{background:rgba(124,58,237,.55);color:#fff}
.icon{width:20px;height:20px;flex:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:12px;top:-100px;z-index:100;padding:12px 16px;border-radius:12px;background:var(--accent);color:#fff;font-weight:800}
.skip-link:focus{top:12px}
.container{width:min(1240px,calc(100% - 40px));margin-inline:auto}
.container-narrow{width:min(820px,calc(100% - 40px))}

/* ==========================================================================
   Кнопки, метки, поля
   ========================================================================== */
.btn,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:var(--radius-sm);border:1px solid var(--line-strong);background:rgba(255,255,255,.04);color:var(--text);font:800 .95rem/1.1 var(--font);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s,color .2s}
.btn:hover,
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce #respond input#submit:hover{background:var(--accent-soft);border-color:var(--accent-text);color:var(--text)}
.btn .icon{width:18px;height:18px}
.btn-primary,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce #respond input#submit.alt,.woocommerce #respond input#submit,
.wp-block-button__link{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 10px 30px rgba(124,58,237,.32)}
.btn-primary:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover,.woocommerce #respond input#submit:hover,
.wp-block-button__link:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff;transform:translateY(-1px)}
.woocommerce button.button.alt.disabled,.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{background:var(--surface-3);border-color:var(--line-strong);color:var(--muted);box-shadow:none;opacity:1}
.btn-ghost{background:rgba(255,255,255,.04)}
.btn-lg{min-height:54px;padding:0 24px;border-radius:14px;font-size:1rem}
.btn-sm{min-height:40px;padding:0 12px}

.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line-strong);background:rgba(255,255,255,.03);color:var(--text-2);font-weight:700;font-size:.92rem;white-space:nowrap;transition:border-color .2s,color .2s,background .2s}
.chip small{color:var(--muted);font-weight:700;font-size:.8rem}
.chip:hover{border-color:var(--accent-text);color:var(--text);background:var(--accent-soft)}
.chip-remove{background:var(--accent-soft);border-color:rgba(182,156,255,.45);color:var(--text);min-height:36px;padding:0 10px 0 14px}
.chip-remove .icon{width:15px;height:15px}

.tag{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:6px;background:var(--surface-3);color:var(--text-2);font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.tag-ps5{background:#f3f4f8;color:#0b0c10}
.tag-ps4{background:#0e3a47;color:#a5f3fc}

:where(input:not([type=checkbox],[type=radio],[type=submit],[type=button],[type=hidden],[type=range],[type=file],.wc-block-components-quantity-selector__input),select,textarea){width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background-color:var(--surface-2);color:var(--text);font:inherit;font-size:1rem;transition:border-color .2s,box-shadow .2s}
:where(input,textarea)::placeholder{color:#8a91a5;opacity:1}
:where(input,select,textarea):focus{outline:none;border-color:var(--accent-text);box-shadow:0 0 0 3px rgba(124,58,237,.35)}
:where(select){appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9cddb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:18px;cursor:pointer}
input[type=search]::-webkit-search-cancel-button{filter:invert(1) opacity(.6)}

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar{background:#07080b;border-bottom:1px solid var(--line);color:var(--text-2);font-size:.82rem;font-weight:600}
.topbar-inner{display:flex;justify-content:center;align-items:center;gap:28px;min-height:36px}
.topbar-item{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.topbar .icon{width:16px;height:16px;color:var(--cyan)}

.site-header{position:sticky;top:0;z-index:60;background:rgba(11,12,16,.85);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:20px;min-height:var(--header-h)}
.brand{display:inline-flex;align-items:center;gap:10px;flex:none;color:var(--text)}
.brand-mark{width:40px;height:40px}
.brand-name{font-family:var(--font-display);font-weight:700;font-size:1.1rem;letter-spacing:-.01em}
.brand-name b{color:var(--accent-text);font-weight:700;margin-left:3px}

.nav-list{display:flex;align-items:center;gap:4px;margin:0;padding:0;list-style:none}
.nav-list a{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border-radius:10px;color:var(--text-2);font-weight:700;transition:background .2s,color .2s}
.nav-list a:hover,.nav-list .current-menu-item>a,.nav-list .current-menu-parent>a{color:var(--text);background:rgba(255,255,255,.06)}
.nav .panel-head,.nav .panel-foot{display:none}

.header-search{position:relative;flex:1;max-width:380px;margin-left:auto}
.header-search .icon,.shop-search .icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none}
.header-search input,.shop-search input{padding-left:42px}
.header-actions{display:flex;align-items:center;gap:8px}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border-radius:var(--radius-sm);border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer;transition:background .2s,border-color .2s}
.icon-btn:hover{background:rgba(255,255,255,.06);border-color:var(--line-strong)}
.menu-toggle,.search-link{display:none}
.cart-btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:var(--radius-sm);background:var(--accent);color:#fff;font-weight:800;transition:background .2s}
.cart-btn:hover{background:var(--accent-hover)}
.cart-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fff;color:#0b0c10;font-size:.75rem;font-weight:800}

/* Подложка ниже шапки: шапка — отдельный слой, и панель меню внутри неё должна оставаться поверх затемнения */
.page-overlay{position:fixed;inset:0;z-index:55;background:rgba(3,4,8,.62);opacity:0;transition:opacity .2s}
.page-overlay.is-visible{opacity:1}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.panel-head h2{margin:0;font-size:1.1rem;font-family:var(--font-display)}
.panel-foot{display:flex;gap:10px;padding:14px 16px;border-top:1px solid var(--line)}
.panel-foot .btn{flex:1}

/* ==========================================================================
   Главная
   ========================================================================== */
.hero{position:relative;padding:56px 0 32px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:48px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:10px;margin:0;padding:7px 14px;border:1px solid var(--line-strong);border-radius:999px;background:rgba(255,255,255,.03);color:var(--text-2);font-size:.82rem;font-weight:700}
.pulse{width:8px;height:8px;border-radius:50%;background:var(--success);animation:pulse 2.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)}70%{box-shadow:0 0 0 10px rgba(52,211,153,0)}100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}}
.hero-title{margin:20px 0 16px;font-family:var(--font-display);font-size:clamp(2.1rem,4.6vw,3.9rem);font-weight:700;line-height:1.06;letter-spacing:-.025em}
.grad{background:linear-gradient(90deg,#22d3ee,#8b5cf6 55%,#c084fc);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-lead{max-width:560px;margin:0 0 28px;color:var(--text-2);font-size:1.12rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-stats{display:flex;flex-wrap:wrap;gap:12px 32px;margin:36px 0 0;padding-top:22px;border-top:1px solid var(--line)}
.hero-stats dt{color:var(--muted);font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hero-stats dd{margin:4px 0 0;font-family:var(--font-display);font-size:1.2rem;font-weight:700}

.hero-stack{position:relative;height:520px}
.hero-stack::before{content:"";position:absolute;inset:8% 6%;border-radius:50%;background:radial-gradient(circle,rgba(124,58,237,.45),rgba(34,211,238,.12) 45%,transparent 70%);filter:blur(30px)}
.stack-card{position:absolute;width:54%;border-radius:20px;overflow:hidden;background:var(--surface);border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 60px rgba(0,0,0,.55);transition:transform .3s ease}
.stack-card img{width:100%;aspect-ratio:4/5;object-fit:cover}
.stack-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px}
.stack-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.88rem;font-weight:700;color:var(--text-2)}
.stack-price{flex:none;font-weight:800}
.stack-price del{display:none}
.stack-price ins{text-decoration:none}
.stack-card-1{left:23%;top:0;z-index:3}
.stack-card-2{left:0;top:56px;z-index:2;transform:rotate(-7deg) scale(.84)}
.stack-card-3{right:0;top:56px;z-index:1;transform:rotate(7deg) scale(.84)}
.stack-card-1:hover{transform:translateY(-6px)}
.stack-card-2:hover{transform:rotate(-7deg) scale(.86) translateY(-6px)}
.stack-card-3:hover{transform:rotate(7deg) scale(.86) translateY(-6px)}

.section{padding:36px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:20px}
.section-head h2{margin:0;font-family:var(--font-display);font-size:clamp(1.4rem,2.4vw,1.9rem);font-weight:700;letter-spacing:-.02em}
.link-arrow{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--accent-text);font-weight:800}
.link-arrow .icon{width:18px;height:18px;transition:transform .2s}
.link-arrow:hover .icon{transform:translateX(3px)}

.platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.platform-tile{position:relative;display:grid;align-content:end;min-height:190px;padding:26px;border-radius:var(--radius-lg);border:1px solid var(--line);background-color:var(--surface);overflow:hidden;transition:border-color .2s,transform .2s}
.platform-ps5{background-image:radial-gradient(120% 140% at 100% 0%,rgba(124,58,237,.45),transparent 58%)}
.platform-ps4{background-image:radial-gradient(120% 140% at 100% 0%,rgba(34,211,238,.28),transparent 58%)}
.platform-tile:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.platform-name{font-family:var(--font-display);font-size:clamp(2.4rem,5vw,3.6rem);font-weight:700;line-height:1;letter-spacing:-.03em}
.platform-info{margin-top:10px;color:var(--text-2);font-weight:600}
.platform-go{position:absolute;top:20px;right:20px;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.08);transition:transform .2s,background .2s}
.platform-tile:hover .platform-go{transform:translateX(3px);background:var(--accent)}
.genre-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.section-sale{background:linear-gradient(180deg,transparent,rgba(255,77,109,.05) 30%,transparent)}

/* ==========================================================================
   Сетка и карточки товаров
   ========================================================================== */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{position:relative;display:flex;flex-direction:column;width:auto!important;margin:0!important;float:none!important;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);transition:transform .2s,border-color .2s,box-shadow .2s}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);border-color:rgba(182,156,255,.45);box-shadow:0 18px 40px rgba(0,0,0,.45)}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{display:flex;flex:1;flex-direction:column;color:inherit}
.card-media{position:relative;margin-bottom:12px;border-radius:12px;overflow:hidden;aspect-ratio:4/5;background:var(--surface-2)}
.woocommerce ul.products li.product a img{width:100%;height:100%;margin:0;object-fit:cover;border-radius:0;box-shadow:none;transition:transform .35s ease}
.woocommerce ul.products li.product:hover a img{transform:scale(1.035)}
.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{top:10px;left:10px;right:auto;min-width:0;min-height:0;margin:0;padding:6px 10px;border-radius:999px;background:var(--sale);color:#16070b;font-size:.8rem;font-weight:800;line-height:1;z-index:3}
.card-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.7em;margin:0 0 10px;padding:0;color:var(--text);font-size:.98rem;font-weight:700;line-height:1.35}
.woocommerce ul.products li.product .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:auto 0 0;color:var(--text);font-size:1.12rem;font-weight:800}
.woocommerce ul.products li.product .price del{order:2;color:var(--muted);font-size:.85rem;font-weight:600;opacity:1}
.woocommerce ul.products li.product .price ins{order:1;text-decoration:none;font-weight:800}
.woocommerce ul.products li.product .button{width:100%;margin-top:12px;background:var(--surface-3);border-color:var(--line-strong);box-shadow:none}
.woocommerce ul.products li.product .button:hover{background:var(--accent);border-color:var(--accent);color:#fff;transform:none}
.woocommerce ul.products li.product .button.added{background:transparent;border-color:rgba(52,211,153,.5);color:var(--success)}
.woocommerce ul.products li.product .added_to_cart{display:block;margin-top:8px;text-align:center;color:var(--accent-text);font-weight:800}
.woocommerce a.button.loading::after,.woocommerce a.button.added::after{top:auto}

/* ==========================================================================
   Каталог
   ========================================================================== */
.site-main{padding:24px 0 72px}
.woocommerce .woocommerce-breadcrumb{margin:0 0 14px;color:var(--muted);font-size:.86rem}
.woocommerce .woocommerce-breadcrumb a{display:inline-flex;align-items:center;min-height:36px;color:var(--text-2)}
.woocommerce .woocommerce-breadcrumb a:hover{color:var(--text)}
.woocommerce-breadcrumb .sep{margin:0 8px;opacity:.6}
.archive-head{margin:4px 0 24px}
.archive-title{margin:0;font-family:var(--font-display);font-size:clamp(1.7rem,3.4vw,2.6rem);font-weight:700;letter-spacing:-.025em}
.archive-desc{max-width:720px;margin:10px 0 0;color:var(--text-2)}

.shop-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}
.shop-filters{position:sticky;top:calc(var(--header-h) + 20px);max-height:calc(100vh - var(--header-h) - 40px);overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.shop-filters .panel-head,.shop-filters .panel-foot{display:none}
.filters-body{padding:4px 18px}
.filter-group{padding:16px 0;border-bottom:1px solid var(--line)}
.filter-group:last-child{border-bottom:0}
.filter-group h3{margin:0 0 10px;color:var(--muted);font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.filter-list{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.filter-option{display:flex;align-items:center;gap:10px;min-height:40px;margin:0 -8px;padding:0 8px;border-radius:10px;color:var(--text-2);font-weight:600;transition:background .15s,color .15s}
.filter-option:hover{background:rgba(255,255,255,.05);color:var(--text)}
.filter-option.is-on{color:var(--text)}
.filter-option .count{margin-left:auto;color:var(--muted);font-size:.82rem;font-variant-numeric:tabular-nums}
.filter-option .mark{position:relative;display:grid;place-items:center;flex:none;width:18px;height:18px;border:1.5px solid var(--line-strong);transition:background .15s,border-color .15s}
.filter-option.radio .mark{border-radius:50%}
.filter-option.radio.is-on .mark{border-color:var(--accent-text);background:radial-gradient(circle,var(--accent-text) 0 4px,transparent 4.5px)}
.filter-option.check .mark{border-radius:5px}
.filter-option.check .mark .icon{width:13px;height:13px;stroke-width:3;opacity:0;color:#fff}
.filter-option.check.is-on .mark{background:var(--accent);border-color:var(--accent)}
.filter-option.check.is-on .mark .icon{opacity:1}
.filter-option.switch .mark{width:36px;height:22px;border-radius:999px;background:var(--surface-3)}
.filter-option.switch .mark::after{content:"";position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:var(--text-2);transition:transform .2s,background .2s}
.filter-option.switch.is-on .mark{background:var(--accent);border-color:var(--accent)}
.filter-option.switch.is-on .mark::after{transform:translateX(14px);background:#fff}
.price-form{display:flex;align-items:center;gap:6px}
.price-form label{flex:1;min-width:0}
.price-form input{min-height:40px;padding:8px 10px;font-size:.95rem}
.price-form .dash{color:var(--muted)}

.shop-bar{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.shop-search{position:relative;flex:1;min-width:0}
.shop-search input,.shop-sort select{min-height:46px}
.shop-sort select{min-width:220px}
.filters-toggle{display:none}
.filters-toggle .badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:.72rem}
.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:0;list-style:none}
.reset-all{display:inline-flex;align-items:center;min-height:36px;padding:0 6px;color:var(--accent-text);font-weight:800}
.results-count{margin:0 0 16px;color:var(--muted);font-size:.92rem}
.results-count strong{color:var(--text)}
.shop-results ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}

.woocommerce nav.woocommerce-pagination{margin-top:32px;text-align:center}
.woocommerce nav.woocommerce-pagination ul{display:inline-flex;gap:6px;margin:0;border:0}
.woocommerce nav.woocommerce-pagination ul li{float:none;border:0;overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text-2);font-weight:800;line-height:1}
.woocommerce nav.woocommerce-pagination ul li a:hover,.woocommerce nav.woocommerce-pagination ul li a:focus{background:var(--surface-2);color:var(--text)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--accent);border-color:var(--accent);color:#fff}

.empty-state{display:grid;justify-items:center;gap:10px;padding:56px 20px;border:1px dashed var(--line-strong);border-radius:var(--radius-lg);background:rgba(255,255,255,.02);text-align:center}
.empty-state>.icon{width:48px;height:48px;color:var(--accent-text)}
.empty-state h1,.empty-state h2{margin:4px 0 0;font-family:var(--font-display);font-size:1.4rem}
.empty-state p{max-width:440px;margin:0 0 8px;color:var(--text-2)}
.not-found .code{margin:0;font-family:var(--font-display);font-size:clamp(4.5rem,14vw,8rem);font-weight:700;line-height:1;background:linear-gradient(90deg,#22d3ee,#8b5cf6 55%,#c084fc);-webkit-background-clip:text;background-clip:text;color:transparent}
.not-found .shop-search{width:min(100%,440px);margin:8px 0}

/* ==========================================================================
   Страница товара
   ========================================================================== */
.woocommerce div.product{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0}
.woocommerce div.product div.images{position:sticky;top:calc(var(--header-h) + 20px)}
.woocommerce div.product div.images img{border-radius:var(--radius-lg)}
/* Кнопка увеличения — эмодзи «лупа», поэтому задаём ей тёмный цвет на светлом круге */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger{top:auto;bottom:16px;right:16px;display:grid;place-items:center;width:44px;height:44px;padding:0;background:#f3f4f8;color:#0b0c10;font-size:20px;line-height:1;text-indent:0;box-shadow:0 8px 20px rgba(0,0,0,.45)}
.woocommerce div.product>span.onsale{top:16px;left:16px;padding:8px 12px;font-size:.9rem}
.product-tags{margin-bottom:14px}
.product-tags a.tag:hover{filter:brightness(1.1)}
.woocommerce div.product .product_title{margin:0 0 18px;font-family:var(--font-display);font-size:clamp(1.8rem,3.2vw,2.8rem);font-weight:700;line-height:1.08;letter-spacing:-.025em}
.woocommerce div.product p.price,.woocommerce div.product span.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin:0 0 8px;color:var(--text);font-family:var(--font-display);font-size:2rem;font-weight:700}
.woocommerce div.product p.price del{order:2;color:var(--muted);font-family:var(--font);font-size:1.1rem;font-weight:600;opacity:1}
.woocommerce div.product p.price ins{order:1;text-decoration:none;font-weight:700}
.price-save{display:inline-flex;margin:0 0 18px;padding:6px 12px;border-radius:999px;background:rgba(255,77,109,.14);color:var(--sale-text);font-size:.88rem;font-weight:800}
.woocommerce div.product .woocommerce-product-details__short-description{margin:10px 0 18px;color:var(--text-2);font-size:1.06rem}
.stock-line{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;color:var(--success);font-weight:700}
.stock-line .dot{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(52,211,153,.16)}
.stock-line.is-low{color:var(--warning)}
.stock-line.is-low .dot{box-shadow:0 0 0 4px rgba(251,191,36,.16)}
.stock-line.out-of-stock{color:var(--sale-text)}
.woocommerce div.product form.cart{display:flex;align-items:stretch;gap:12px;margin:0 0 20px}
.woocommerce div.product form.cart::before,.woocommerce div.product form.cart::after{display:none}
.woocommerce div.product form.cart div.quantity{float:none;margin:0}
.woocommerce .quantity .qty{width:84px;min-height:56px;border-radius:14px;text-align:center;font-weight:800;font-size:1.05rem}
.woocommerce div.product form.cart .button{flex:1;float:none;min-height:56px;border-radius:14px;font-size:1.05rem}
.trust-list{display:grid;gap:10px;margin:0 0 20px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.02);list-style:none}
.trust-list li{display:flex;align-items:center;gap:10px;color:var(--text-2);font-weight:600}
.trust-list .icon{color:var(--cyan)}
.spec-list{margin:0;border-top:1px solid var(--line)}
.spec-list div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.spec-list dt{color:var(--muted)}
.spec-list dd{margin:0;font-weight:700;text-align:right}
.spec-list a{display:inline-flex;align-items:center;min-height:32px;color:var(--accent-text)}

.woocommerce div.product .woocommerce-tabs{grid-column:1/-1;margin-top:16px}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;gap:4px;margin:0 0 22px;padding:0;border-bottom:1px solid var(--line);overflow:visible}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0;padding:0;border:0;border-radius:0;background:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;margin-bottom:-1px;padding:12px 16px;border-bottom:2px solid transparent;color:var(--muted);font-weight:800}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{color:var(--text)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--text);border-bottom-color:var(--accent-text)}
.woocommerce div.product .woocommerce-tabs .panel{max-width:780px;margin:0;color:var(--text-2);font-size:1.03rem}
.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1;margin-top:24px}
.woocommerce div.product .related>h2,.woocommerce div.product .upsells>h2{margin:0 0 20px;font-family:var(--font-display);font-size:1.5rem;font-weight:700}
.woocommerce #reviews #comments h2,.woocommerce-Reviews-title{font-size:1.1rem}
.woocommerce #reviews #comments ol.commentlist li .comment-text{border-color:var(--line);border-radius:var(--radius-sm)}
.woocommerce-noreviews,.woocommerce #review_form #respond p{color:var(--text-2)}
.woocommerce #review_form #respond .comment-reply-title{font-weight:800}
.woocommerce p.stars a{color:var(--warning)}
.woocommerce .star-rating span::before,.woocommerce .star-rating::before{color:var(--warning)}

/* ==========================================================================
   Уведомления, формы WooCommerce, таблицы
   ========================================================================== */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px;padding:14px 18px 14px 50px;border:1px solid var(--line-strong);border-left:4px solid var(--accent-text);border-radius:14px;background:var(--surface-2);color:var(--text);list-style:none}
.woocommerce-noreviews{padding-left:18px}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{top:50%;left:18px;transform:translateY(-50%);color:var(--accent-text)}
.woocommerce-error{border-left-color:var(--sale)}
.woocommerce-error::before{color:var(--sale-text)}
.woocommerce-message .button,.woocommerce-info .button{order:2;float:none}
.woocommerce-message a:not(.button),.woocommerce-info a:not(.button){color:var(--accent-text);font-weight:700}
.woocommerce form.login,.woocommerce form.register,.woocommerce form.checkout_coupon,.woocommerce form.lost_reset_password{max-width:480px;margin:0 0 24px;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.woocommerce form .form-row label{color:var(--text-2);font-weight:700;font-size:.92rem}
.woocommerce form .form-row .required{color:var(--sale-text)}
.woocommerce form .form-row{margin-bottom:14px}
.woocommerce-account .woocommerce>h2,.woocommerce-account .u-columns h2{font-family:var(--font-display);font-size:1.3rem}
.woocommerce-LostPassword a,.woocommerce-privacy-policy-text a,.woocommerce form .woocommerce-form-login__rememberme{color:var(--text-2)}
.woocommerce-LostPassword a{color:var(--accent-text)}
.woocommerce-MyAccount-navigation ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.woocommerce-MyAccount-navigation a{display:block;padding:10px 12px;border-radius:10px;color:var(--text-2);font-weight:700}
.woocommerce-MyAccount-navigation .is-active a,.woocommerce-MyAccount-navigation a:hover{background:var(--surface-2);color:var(--text)}
.woocommerce table.shop_table{border-color:var(--line);border-radius:14px;background:var(--surface)}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:var(--line)}
.entry-content{color:var(--text-2)}
.entry-content a{color:var(--accent-text);text-decoration:underline;text-underline-offset:3px}
.page-article .archive-head{margin-bottom:28px}
.entry-title{font-family:var(--font-display);font-size:1.4rem}

/* ==========================================================================
   Корзина и оформление заказа (блоки WooCommerce)
   ========================================================================== */
.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{color:var(--text)}
.wc-block-components-form .wc-block-components-text-input input,.wc-block-components-text-input input[type=email],.wc-block-components-text-input input[type=text],.wc-block-components-text-input input[type=tel],.wc-block-components-text-input input[type=number],.wc-block-components-text-input input[type=password],.wc-block-components-text-input input[type=url],.wc-block-components-textarea,.wc-blocks-components-select .wc-blocks-components-select__select{background-color:var(--surface-2)!important;border-color:var(--line-strong)!important;border-radius:var(--radius-sm)!important;color:var(--text)!important}
.wc-block-components-text-input input:focus,.wc-blocks-components-select .wc-blocks-components-select__select:focus,.wc-block-components-textarea:focus{border-color:var(--accent-text)!important;box-shadow:0 0 0 1px var(--accent-text)!important}
.wc-block-components-text-input label,.wc-blocks-components-select .wc-blocks-components-select__label{color:var(--muted)!important}
.wc-blocks-components-select .wc-blocks-components-select__container{background:transparent!important}
.wc-blocks-components-select .wc-blocks-components-select__expand{fill:var(--text-2)!important}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{background:var(--surface-2)!important;border-color:var(--line-strong)!important;border-radius:6px}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{background:var(--accent)!important;border-color:var(--accent)!important}
.wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:#fff!important}
.wc-block-components-radio-control .wc-block-components-radio-control__input{background:var(--surface-2)!important;border-color:var(--line-strong)!important}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked{border-color:var(--accent-text)!important}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before{background:var(--accent-text)!important}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted{box-shadow:inset 0 0 0 1.5px var(--accent-text)!important}
.wc-block-components-radio-control--highlight-checked::after{border-color:var(--line-strong)!important}
.wc-block-components-button:not(.is-link),.wc-block-components-button.wp-element-button:not(.is-link),.wc-block-components-checkout-place-order-button,.wc-block-cart__submit-button{min-height:52px!important;padding:14px 20px!important;border:0!important;border-radius:14px!important;background:var(--accent)!important;color:#fff!important;font-weight:800!important;box-shadow:0 10px 30px rgba(124,58,237,.3);transition:background .2s}
.wc-block-components-button:not(.is-link):hover{background:var(--accent-hover)!important}
.wc-block-components-button.is-link,.wc-block-components-address-form__address_2-toggle,.wc-block-components-panel__button,.wc-block-components-checkout-return-to-cart-button{color:var(--accent-text)!important}
.wc-block-components-order-summary-item__quantity{background:var(--surface-3)!important;border-color:var(--line-strong)!important;color:var(--text)!important;box-shadow:none!important}
.wc-block-components-order-summary-item__image img,.wc-block-cart-item__image img,.wc-block-components-product-image img{border-radius:8px}
.wc-block-components-product-name{color:var(--text)!important;font-weight:800}
.wc-block-components-product-metadata,.wc-block-components-product-metadata__description{color:var(--muted)}
.wc-block-components-product-badge{border-color:var(--sale)!important;color:var(--sale-text)!important;border-radius:6px}
.wc-block-components-quantity-selector{border-radius:12px}
.wc-block-components-quantity-selector::after{border-color:var(--line-strong)!important;border-radius:12px!important;opacity:1!important}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input{color:var(--text)!important}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button{color:var(--text-2)!important;opacity:1}
.wc-block-components-product-remove{color:var(--muted)!important}
.wc-block-components-skeleton__element{background-color:var(--surface-2)!important}
.wc-block-components-notice-banner{background:var(--surface-2)!important;border-color:var(--line-strong)!important;color:var(--text)!important}
.wc-block-components-notice-banner>svg{background:var(--accent)!important;fill:#fff!important}
.wc-block-components-validation-error,.wc-block-components-validation-error p{color:var(--sale-text)!important}
.wc-block-components-text-input.has-error input,.wc-block-components-text-input.has-error input:focus{border-color:var(--sale-text)!important;box-shadow:0 0 0 1px var(--sale-text)!important}
.wc-block-components-text-input.has-error label{color:var(--sale-text)!important}
.wc-block-cart .wc-block-cart__totals-title,.wc-block-cart-items th,.wc-block-components-totals-item__description{color:var(--muted)!important}
.wc-block-cart-items,.wc-block-cart-items td,.wc-block-components-totals-wrapper,.wc-block-components-panel,.wc-block-components-totals-coupon,.wc-block-components-sidebar .wc-block-components-panel{border-color:var(--line)!important}
.wp-block-woocommerce-checkout-order-summary-block{border-color:var(--line)!important;border-radius:var(--radius)!important;background:var(--surface)}
.wp-block-woocommerce-cart-totals-block,.wc-block-cart__sidebar{border-radius:var(--radius)}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{font-family:var(--font-display);font-weight:700}
.wc-block-components-checkout-step__description,.wc-block-checkout__guest-checkout-notice,.wc-block-components-checkout-step__heading-content{color:var(--muted)}
.wc-block-components-title.wc-block-components-title{color:var(--text);font-weight:800}
.wc-block-checkout__terms,.wc-block-checkout__terms a{color:var(--text-2)}
.wc-block-checkout__terms a{color:var(--accent-text)}
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title{font-family:var(--font-display)}
.wp-block-woocommerce-empty-cart-block .wp-block-separator{border-color:var(--line)}
.wc-block-grid__product{padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.wc-block-grid__product-image img{border-radius:12px}
.wc-block-grid__product-title{color:var(--text);font-weight:700}
.wc-block-grid__product-onsale{background:var(--sale)!important;border:0!important;color:#16070b!important;border-radius:999px!important}

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer{margin-top:24px;border-top:1px solid var(--line);background:#08090c}
.footer-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:32px 0;border-bottom:1px solid var(--line);list-style:none}
.footer-facts li{display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.footer-facts .icon{width:28px;height:28px;color:var(--cyan)}
.footer-facts strong{display:block;margin-bottom:2px}
.footer-facts span{color:var(--text-2);font-size:.92rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px;padding:40px 0}
.footer-brand p{max-width:380px;margin:14px 0 0;color:var(--text-2)}
.footer-title{margin-bottom:12px;font-weight:800}
.site-footer nav ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.site-footer nav a{display:inline-flex;align-items:center;min-height:32px;color:var(--text-2)}
.site-footer nav a:hover{color:var(--text)}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding:20px 0 28px;border-top:1px solid var(--line);color:var(--muted);font-size:.86rem}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width:1180px){
  .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .header-search{max-width:280px}
}
@media (max-width:1023px){
  :root{--header-h:64px}
  /* Размытие фона у шапки делает её контейнером для вложенной панели меню, и та обрезается по высоте шапки */
  .site-header{background:#0b0c10;backdrop-filter:none;-webkit-backdrop-filter:none}
  /* Пальцем легче попасть: цели крупнее */
  .site-footer nav a{min-height:44px}
  .chip,.chip-remove,.reset-all{min-height:44px}
  .product-tags .tag{height:32px;padding:0 12px;font-size:.75rem}
  .wc-block-components-panel__button,.wc-block-components-address-form__address_2-toggle,.wc-block-components-button.is-link{min-height:44px;display:inline-flex;align-items:center}
  .menu-toggle{display:inline-grid}
  .header-inner{gap:12px}
  .nav,.shop-filters{position:fixed;top:0;bottom:0;z-index:80;display:flex;flex-direction:column;width:min(88vw,380px);max-height:none;background:var(--bg-elev);border:0;border-radius:0;box-shadow:var(--shadow);transition:transform .25s ease;visibility:hidden}
  .nav{left:0;transform:translateX(-100%);border-right:1px solid var(--line)}
  .shop-filters{right:0;transform:translateX(100%);border-left:1px solid var(--line)}
  .nav.is-open,.shop-filters.is-open{transform:none;visibility:visible}
  .nav .panel-head,.nav .panel-foot,.shop-filters .panel-head,.shop-filters .panel-foot{display:flex}
  .nav .panel-foot{margin-top:auto}
  .nav-list{flex-direction:column;align-items:stretch;padding:12px;gap:2px}
  .nav-list a{min-height:48px;font-size:1.05rem}
  .filters-body{flex:1;overflow:auto}
  .shop-layout{grid-template-columns:1fr}
  .filters-toggle{display:inline-flex}
  .woocommerce div.product{grid-template-columns:1fr;gap:28px}
  .woocommerce div.product div.images{position:relative;top:0;max-width:560px}
}
@media (max-width:900px){
  .hero{padding-top:36px}
  .hero-grid{grid-template-columns:1fr}
  .hero-stack{display:none}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
}
@media (max-width:720px){
  .container{width:min(100% - 32px,1240px)}
  .header-search{display:none}
  .search-link{display:inline-grid;margin-left:auto}
  .header-actions{margin-left:auto}
  .search-link{margin-left:0}
  .woocommerce ul.products,.shop-results ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .woocommerce ul.products li.product{padding:8px;border-radius:14px}
  .card-media{margin-bottom:10px;border-radius:10px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.9rem}
  .woocommerce ul.products li.product .price{font-size:1rem;gap:6px}
  .woocommerce ul.products li.product .button{padding:0 10px;font-size:.88rem}
  .footer-facts{grid-template-columns:1fr}
  .platform-tile{min-height:150px;padding:20px}
  .shop-bar{flex-wrap:wrap}
  .shop-search{flex-basis:100%}
  .filters-toggle,.shop-sort{flex:1}
  .shop-sort select{min-width:0}
  .section-head{align-items:center}
  .topbar-item:nth-child(n+2){display:none}
}
@media (max-width:480px){
  .account-link,.cart-label{display:none}
  .cart-btn{padding:0 12px}
  .brand-name{font-size:1rem}
  .hero-title{font-size:2rem}
  .hero-actions .btn{flex:1 1 100%}
  .platform-grid{grid-template-columns:1fr 1fr;gap:10px}
  .platform-tile{min-height:130px;padding:16px;border-radius:20px}
  .platform-name{font-size:2rem}
  .platform-go{top:12px;right:12px;width:36px;height:36px}
  .platform-go .icon{width:18px;height:18px}
  .woocommerce div.product form.cart .button{font-size:1rem}
  .footer-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
