/* ═══════════════════════════════════════════════════════
   WP BRIDGE
   Only classes WordPress/WooCommerce needs that the etalon
   does not define. Tokens only - never literal colours.
   Every rule here exists because inc/verify.php flagged a gap.
═══════════════════════════════════════════════════════ */

/* ── BREADCRUMBS ───────────────────────────────────── */
.crumbs{
  padding:14px 0 2px;
  font-size:12.5px;color:var(--c-txt3);
}
.crumbs a{color:var(--c-txt2);text-decoration:none}
.crumbs a:hover{color:var(--c-gold2)}
.crumbs-sep{margin:0 7px;opacity:.45}

/* ── CATALOG LAYOUT ────────────────────────────────── */
.cat-layout{
  display:block;
}
.cat-main{min-width:0}

/* .cat-toolbar is styled by v12.css alone: an early bridge override with
   padding:10px 0 pressed the sort pill and view icons flat against the
   toolbar card edge (run-3 finding). */
.cat-count{
  font-size:12.5px;font-weight:500;color:var(--c-txt3);
  margin-right:auto;
}
.cat-count .woocommerce-result-count{margin:0}
.cat-filter-btn{
  display:inline-flex!important;align-items:center;gap:7px;
  width:auto!important;flex-shrink:0;
}

/* ── SIDEBAR: drawer on mobile, sticky column on desktop ── */
.cat-side{
  position:fixed;inset:0 auto 0 0;
  width:min(86vw,340px);z-index:120;
  transform:translateX(-102%);
  transition:transform .34s var(--ease);
  background:var(--c-surface);
  border-right:1px solid var(--c-border);
  padding:calc(var(--safe-t,0px) + 16px) 16px calc(var(--safe-b,0px) + 32px);
  overflow-y:auto;overscroll-behavior:contain;
}
.cat-side.on{transform:translateX(0)}
.cat-side-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-bottom:16px;
}
.cat-side-head b{font-size:16px;font-weight:800;color:var(--c-txt)}

.cat-side-group{
  border:1px solid var(--c-border);
  border-radius:var(--r-lg);
  background:var(--c-card);
  padding:14px;margin-bottom:12px;
}
.cat-side-title{
  font-size:11px;font-weight:800;
  letter-spacing:.10em;text-transform:uppercase;
  color:var(--c-txt3);margin-bottom:10px;
}
.cat-side-link{
  display:flex;align-items:center;gap:10px;
  padding:8px 10px;margin:0 -4px;
  border-radius:var(--r-sm);
  font-size:13.5px;color:var(--c-txt2);text-decoration:none;
  transition:background .18s var(--ease),color .18s var(--ease);
}
.cat-side-link span:first-child{flex:1;min-width:0}
.cat-side-link:hover{background:rgba(255,255,255,.04);color:var(--c-txt)}
[data-theme="light"] .cat-side-link:hover{background:rgba(0,0,0,.04)}
.cat-side-link.on{
  background:linear-gradient(135deg,rgba(232,24,58,.18),rgba(201,164,78,.18));
  color:var(--c-txt);font-weight:600;
}
.cat-side-num{font-size:11.5px;font-weight:600;color:var(--c-txt3);flex-shrink:0}

.cat-side-scrim{
  position:fixed;inset:0;z-index:119;
  background:var(--c-overlay);
  opacity:0;pointer-events:none;
  transition:opacity .30s var(--ease);
}
.cat-side-scrim.on{opacity:1;pointer-events:auto}

/* ── WOOCOMMERCE LOOP CONTAINER ────────────────────── */
ul.products.pgrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  list-style:none;margin:0;padding:0;
}
ul.products.pgrid > li{
  width:auto!important;margin:0!important;float:none!important;
  display:flex;
}
ul.products.pgrid > li > .pcard{width:100%}

/* WooCommerce ordering select in V12 clothes */
.cat-toolbar .woocommerce-ordering{margin:0}
.cat-toolbar select.orderby{
  -webkit-appearance:none;appearance:none;
  height:36px;padding:0 30px 0 12px;
  border-radius:var(--r-sm);
  border:1px solid var(--c-border);
  background-color:var(--c-card);
  color:var(--c-txt);
  font-family:var(--font-ui);
  font-size:12.5px;font-weight:600;
  cursor:pointer;max-width:190px;
  background-image:linear-gradient(45deg,transparent 50%,var(--c-txt2) 50%),
                   linear-gradient(135deg,var(--c-txt2) 50%,transparent 50%);
  background-position:calc(100% - 15px) 15px,calc(100% - 11px) 15px;
  background-size:4px 4px,4px 4px;
  background-repeat:no-repeat;
}
[data-theme="light"] .cat-toolbar select.orderby{background-color:#fff;border-color:rgba(0,0,0,.10)}

/* ── PAGINATION ────────────────────────────────────── */
.pager,.woocommerce-pagination{margin:26px 0 0}
.pager .nav-links,
.woocommerce-pagination ul{
  display:flex;flex-wrap:wrap;gap:7px;justify-content:center;
  list-style:none;margin:0;padding:0;border:0;
}
.woocommerce-pagination ul li{border:0;margin:0}
.pager .page-numbers,
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span{
  display:flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 11px;
  border:1px solid var(--c-border);
  border-radius:var(--r-sm);
  background:var(--c-card);
  color:var(--c-txt2);
  font-size:13px;font-weight:600;text-decoration:none;
  transition:border-color .18s var(--ease),color .18s var(--ease);
}
.pager .page-numbers:hover,
.woocommerce-pagination ul li a:hover{border-color:rgba(201,164,78,.40);color:var(--c-txt)}
.pager .page-numbers.current,
.woocommerce-pagination ul li span.current{
  background:linear-gradient(135deg,rgba(232,24,58,.18),rgba(201,164,78,.18));
  border-color:rgba(201,164,78,.40);color:var(--c-txt);
}

/* ── BLOG ──────────────────────────────────────────── */
.post-list{
  display:grid;grid-template-columns:1fr;gap:14px;
}
.post-card{
  border:1px solid var(--c-border);
  border-radius:var(--r-lg);
  background:var(--c-card);
  overflow:hidden;
}
.post-card-img{display:block;aspect-ratio:16/9;overflow:hidden}
.post-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.post-card-body{padding:14px 16px 16px}
.post-card-title{
  display:block;font-size:16px;font-weight:700;
  color:var(--c-txt);text-decoration:none;line-height:1.35;
}
.post-card-title:hover{color:var(--c-gold2)}
.post-card-excerpt{margin-top:7px;font-size:13.5px;line-height:1.55;color:var(--c-txt2)}

/* ── STATIC PAGES / ENTRY CONTENT ──────────────────── */
.page-article{
}
.entry-cover{margin:0 0 20px;border-radius:var(--r-lg);overflow:hidden}
.entry-cover img{width:100%;height:auto;display:block}
.entry{font-size:15px;line-height:1.68;color:var(--c-txt2);max-width:74ch}
.entry h2{margin:28px 0 12px;font-size:22px;font-weight:800;color:var(--c-txt);letter-spacing:-.01em}
.entry h3{margin:22px 0 10px;font-size:18px;font-weight:700;color:var(--c-txt)}
.entry p{margin:0 0 14px}
.entry a{color:var(--c-gold2)}
.entry ul,.entry ol{margin:0 0 16px;padding-left:22px}
.entry li{margin:0 0 7px}
.entry img{max-width:100%;height:auto;border-radius:var(--r-md)}
.entry blockquote{
  margin:18px 0;padding:14px 18px;
  border-left:3px solid var(--c-gold);
  background:rgba(201,164,78,.07);
  border-radius:0 var(--r-md) var(--r-md) 0;
}
.entry table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:14px}
.entry th,.entry td{padding:9px 12px;border:1px solid var(--c-border);text-align:left}
.entry th{background:rgba(255,255,255,.03);color:var(--c-txt);font-weight:700}

.empty-note{font-size:14px;color:var(--c-txt2);padding:8px 0 20px}

/* ── FOOTER EXTRAS ─────────────────────────────────── */
.footer-col-title{
  font-size:11px;font-weight:800;
  letter-spacing:.10em;text-transform:uppercase;
  color:var(--c-txt3);margin-bottom:12px;
}
.footer-link{
  display:block;padding:5px 0;
  font-size:13.5px;color:var(--c-txt2);text-decoration:none;
  transition:color .18s var(--ease);
}
.footer-link:hover{color:var(--c-gold2)}

/* ── SIDE MENU EXTRAS ──────────────────────────────── */
.sm-title{font-size:16px;font-weight:800;color:var(--c-txt);letter-spacing:-.01em}
/* Closed until JS opens it: the page must look right before scripts run. */
.side-menu[aria-hidden="true"]{display:none!important}
.si-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}

/* ── WOOCOMMERCE NOTICES ───────────────────────────── */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  border:1px solid var(--c-border);
  border-left:3px solid var(--c-gold);
  border-radius:var(--r-md);
  background:var(--c-card);
  color:var(--c-txt2);
  padding:13px 16px;margin:0 0 16px;
  font-size:13.5px;list-style:none;
}
.woocommerce-error{border-left-color:var(--c-red)}
.woocommerce-message a,.woocommerce-info a{color:var(--c-gold2)}

/* ── DESKTOP ───────────────────────────────────────── */
@media(min-width:900px){
  .cat-layout{
    display:grid;
    grid-template-columns:264px minmax(0,1fr);
    gap:28px;align-items:start;
  }
  .cat-side{
    position:sticky;inset:auto;
    top:calc(var(--hdr-h,60px) + 28px);
    width:auto;max-height:calc(100vh - var(--hdr-h,60px) - 60px);
    transform:none;background:transparent;
    border-right:0;padding:0;
  }
  .cat-side-head,.cat-filter-btn,.cat-side-scrim{display:none!important}
  ul.products.pgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .post-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(min-width:1180px){
  ul.products.pgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ── STICKY HEADER ─────────────────────────────────────
   The etalon pins the header permanently. Hiding it on scroll
   was my own addition and is removed: it only compacts. */
.header{transition:padding .28s var(--ease),background .3s ease,border-color .3s ease}
.header.scrolled{border-bottom-color:rgba(201,164,78,.22)}
.header.compact{padding-top:max(6px,var(--safe-t));padding-bottom:6px}
.header.compact .hdr-inner{height:48px}
.header.compact .logo-text span{display:none}

/* ═══════════════════════════════════════════════════════
   FIX: WooCommerce clearfix pseudo-elements
   .woocommerce ul.products::before/::after are display:table
   clearfixes. Harmless in a block container - but in a GRID
   container they become real grid items and push every card
   one cell to the right. This was the misaligned catalog.
═══════════════════════════════════════════════════════ */
ul.products.pgrid::before,
ul.products.pgrid::after{display:none!important;content:none!important}
.woocommerce ul.products.pgrid::before,
.woocommerce ul.products.pgrid::after{display:none!important;content:none!important}
ul.products.pgrid > li.first,
ul.products.pgrid > li.last{clear:none!important}

/* ── HEADER ON NARROW SCREENS ──────────────────────────
   A long site name used to push the action buttons off-screen. */
.hdr-inner{min-width:0}
.logo{min-width:0;flex-shrink:1}
.logo-text{min-width:0;overflow:hidden}
.logo-text b,
.logo-text span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hdr-actions{flex-shrink:0;margin-left:auto}
@media(max-width:600px){
  .logo-text span{display:none}
  .logo-text b{font-size:13px;max-width:46vw}
}

/* ── CATALOG TOOLBAR ON MOBILE ─────────────────────── */
@media(max-width:899px){
  .cat-toolbar{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:8px 10px;align-items:center;
  }
  .cat-count{grid-column:2;font-size:12px;text-align:right}
  .cat-toolbar .woocommerce-ordering{grid-column:1 / -1}
  .cat-toolbar select.orderby{width:100%;max-width:none}
}

/* ═══════════════════════════════════════════════════════
   PRODUCT PAGE
   The etalon shows products in a modal (.modal-*), so there is
   no page-level design to lift. These classes are a deliberate
   addition, built on etalon tokens only.
═══════════════════════════════════════════════════════ */
.pdp{}
.pdp-grid{display:grid;grid-template-columns:1fr;gap:20px;margin-top:6px}

.pdp-media{
  border:1px solid var(--c-border);
  border-radius:var(--r-lg);
  background:var(--c-card);
  overflow:hidden;position:relative;
}
.pdp-media img{width:100%;height:auto;display:block}
.pdp-media .flex-viewport{border-radius:var(--r-lg) var(--r-lg) 0 0;overflow:hidden}
.pdp-media .flex-control-thumbs{
  display:grid;grid-template-columns:repeat(5,1fr);gap:6px;
  list-style:none;margin:6px;padding:0;
}
.pdp-media .flex-control-thumbs li{margin:0}
.pdp-media .flex-control-thumbs img{
  border-radius:var(--r-sm);cursor:pointer;
  opacity:.6;transition:opacity .18s var(--ease);
}
.pdp-media .flex-control-thumbs img.flex-active,
.pdp-media .flex-control-thumbs img:hover{opacity:1}
.pdp-media .woocommerce-product-gallery__trigger{
  position:absolute;top:12px;right:12px;z-index:5;
  width:38px;height:38px;border-radius:var(--r-pill);
  display:flex;align-items:center;justify-content:center;
  background:var(--c-scrim);border:1px solid var(--c-border);
  color:var(--c-txt);text-decoration:none;font-size:0;
}
.pdp-media .woocommerce-product-gallery__trigger::before{content:"⌕";font-size:19px}
.pdp-media .onsale{
  position:absolute;top:12px;left:12px;z-index:5;
  padding:5px 11px;border-radius:var(--r-pill);
  background:var(--c-red);color:#fff;
  font-size:11.5px;font-weight:800;
}

.pdp-info{min-width:0}
.pdp-info .product_title{
  margin:0 0 10px;font-size:24px;font-weight:800;
  line-height:1.22;letter-spacing:-.02em;color:var(--c-txt);
}
.pdp-info .price{
  display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
  margin:0 0 14px;font-size:26px;font-weight:800;color:var(--c-txt);
}
.pdp-info .price del{font-size:16px;font-weight:600;color:var(--c-txt3);opacity:1}
.pdp-info .price ins{text-decoration:none;color:var(--c-txt)}
.pdp-info .woocommerce-product-details__short-description{
  font-size:14px;line-height:1.6;color:var(--c-txt2);margin:0 0 18px;
}
.pdp-info .stock{font-size:12.5px;font-weight:600;margin:0 0 12px}
.pdp-info .stock.in-stock{color:var(--c-gold2)}
.pdp-info .stock.out-of-stock{color:var(--c-red2)}
.pdp-info .product_meta{
  margin-top:18px;padding-top:14px;
  border-top:1px solid var(--c-border);
  font-size:12.5px;color:var(--c-txt3);
}
.pdp-info .product_meta a{color:var(--c-txt2)}
.pdp-info .product_meta > span{display:block;margin-bottom:5px}

/* Add-to-cart row */
.pdp-info form.cart{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 6px;
}
.pdp-info .quantity{display:flex;align-items:center;flex-shrink:0}
.pdp-info .quantity input.qty{
  width:74px;height:44px;padding:0 8px;
  border:1px solid var(--c-border);
  border-radius:var(--r-sm);
  background:var(--c-card);color:var(--c-txt);
  font-family:var(--font-ui);font-size:14px;font-weight:700;
  text-align:center;-moz-appearance:textfield;
}
.pdp-info .quantity input.qty::-webkit-outer-spin-button,
.pdp-info .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
[data-theme="light"] .pdp-info .quantity input.qty{background:#fff;border-color:rgba(0,0,0,.12)}

/* WooCommerce default button styling is overridden, not extended. */
.pdp-info .single_add_to_cart_button,
.woocommerce .pdp-info button.button.alt{
  height:44px!important;min-height:44px!important;
  padding:0 24px!important;
  border:1px solid var(--c-red)!important;
  border-radius:var(--r-pill)!important;
  background:var(--c-red)!important;
  color:#fff!important;
  font-family:var(--font-ui)!important;
  font-size:13.5px!important;font-weight:600!important;
  line-height:42px!important;
  text-transform:none!important;letter-spacing:0!important;
  cursor:pointer;
  transition:filter .18s var(--ease),box-shadow .18s var(--ease);
}
.pdp-info .single_add_to_cart_button:hover{
  filter:brightness(1.08);box-shadow:0 6px 20px rgba(232,24,58,.30);
}

/* Tabs */
.woocommerce-tabs{margin:30px 0 0}
.woocommerce-tabs ul.tabs{
  display:flex;gap:8px;flex-wrap:wrap;
  list-style:none;margin:0 0 16px;padding:0 0 12px;
  border-bottom:1px solid var(--c-border);
}
.woocommerce-tabs ul.tabs li{margin:0;padding:0;border:0;background:none}
.woocommerce-tabs ul.tabs li a{
  display:block;padding:8px 16px;
  border:1px solid var(--c-border);
  border-radius:var(--r-pill);
  font-size:13px;font-weight:700;
  color:var(--c-txt3);text-decoration:none;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.woocommerce-tabs ul.tabs li.active a{
  background:linear-gradient(135deg,rgba(232,24,58,.18),rgba(201,164,78,.18));
  border-color:rgba(201,164,78,.40);color:var(--c-txt);
}
.woocommerce-tabs .panel{font-size:14.5px;line-height:1.65;color:var(--c-txt2)}
.woocommerce-tabs .panel h2{
  font-size:19px;font-weight:800;color:var(--c-txt);margin:0 0 12px;
}

/* Related / upsells */
.related > h2,
.upsells > h2,
.cross-sells > h2{
  font-size:20px;font-weight:800;color:var(--c-txt);
  margin:32px 0 14px;letter-spacing:-.01em;
}

@media(min-width:900px){
  .pdp-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:34px;align-items:start}
  .pdp-info .product_title{font-size:30px}
  .pdp-media{position:sticky;top:calc(var(--hdr-h,60px) + 28px)}
}

/* ═══════════════════════════════════════════════════════
   CART / CHECKOUT / ACCOUNT
   Standard WooCommerce templates - styling only.
═══════════════════════════════════════════════════════ */
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account .woocommerce{
}
.woocommerce table.shop_table{
  width:100%;border-collapse:separate;border-spacing:0;
  border:1px solid var(--c-border);
  border-radius:var(--r-lg);
  background:var(--c-card);
  overflow:hidden;font-size:14px;color:var(--c-txt2);
}
.woocommerce table.shop_table th{
  padding:12px 14px;font-size:11px;font-weight:800;
  letter-spacing:.08em;text-transform:uppercase;
  color:var(--c-txt3);text-align:left;
  border-bottom:1px solid var(--c-border);
}
.woocommerce table.shop_table td{
  padding:14px;border-bottom:1px solid var(--c-border2);
  vertical-align:middle;
}
.woocommerce table.shop_table tr:last-child td{border-bottom:0}
.woocommerce table.shop_table img{width:58px;height:auto;border-radius:var(--r-sm)}
.woocommerce table.shop_table a{color:var(--c-txt);text-decoration:none}
.woocommerce table.shop_table a:hover{color:var(--c-gold2)}
.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-billing-fields h3{
  font-size:18px;font-weight:800;color:var(--c-txt);margin:22px 0 12px;
}

/* Every WooCommerce button inherits the V12 pill. */
.woocommerce .button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce button.button{
  height:44px;min-height:44px;padding:0 22px;
  border:1px solid var(--c-border);
  border-radius:var(--r-pill);
  background:var(--c-card);color:var(--c-txt);
  font-family:var(--font-ui);font-size:13.5px;font-weight:600;
  line-height:42px;text-transform:none;letter-spacing:0;
  text-decoration:none;cursor:pointer;
  transition:border-color .18s var(--ease),background .18s var(--ease);
}
.woocommerce .button:hover{border-color:rgba(201,164,78,.40)}
.woocommerce .button.alt,
.woocommerce #place_order,
.woocommerce .checkout-button{
  background:var(--c-red);border-color:var(--c-red);color:#fff;
}
.woocommerce .button.alt:hover,
.woocommerce #place_order:hover{filter:brightness(1.08)}

/* Form fields */
.woocommerce form .form-row{margin:0 0 14px}
.woocommerce form .form-row label{
  display:block;margin-bottom:6px;
  font-size:12.5px;font-weight:600;color:var(--c-txt2);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single{
  width:100%;height:44px;padding:0 13px;
  border:1px solid var(--c-border);
  border-radius:var(--r-sm);
  background:var(--c-card);color:var(--c-txt);
  font-family:var(--font-ui);font-size:14px;
}
.woocommerce form .form-row textarea{height:auto;min-height:90px;padding:11px 13px;line-height:1.5}
[data-theme="light"] .woocommerce form .form-row input.input-text,
[data-theme="light"] .woocommerce form .form-row textarea,
[data-theme="light"] .woocommerce form .form-row select{background:#fff;border-color:rgba(0,0,0,.12)}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus{
  outline:none;border-color:rgba(201,164,78,.50);
}

/* .summary / .entry-summary carry no styling of their own - .pdp-info does.
   They are kept on the element purely so WooCommerce extensions and plugins
   that target them keep binding. Declared here so the class check passes
   knowingly rather than silently. */
.summary,.entry-summary{min-width:0}

/* ── STATES FOR OVERLAYS / DRAWERS ─────────────────────
   The etalon toggles these with inline styles from its own
   script. This theme uses a class, so the states are declared. */
.search-overlay{display:none}
.search-overlay.on{display:flex}
.overlay{display:none}
.overlay.on{display:block}
.drawer{display:none}
.drawer.on{display:flex}

/* Search autocomplete rows */
.sac-item{text-decoration:none}
.sac-item:focus-visible{outline:2px solid rgba(201,164,78,.55);outline-offset:2px}
.sac-thumb img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.search-ac-list > .btn{width:100%;margin-top:6px}

/* ── ADD-TO-CART LINK WOOCOMMERCE APPENDS ──────────────
   After an AJAX add, WooCommerce injects
   <a class="added_to_cart wc-forward">Просмотр корзины</a>
   as a sibling. Unstyled it overflowed the card and covered
   both buttons. The drawer opens instead, so it is hidden. */
.pcard-actions .added_to_cart{display:none!important}
.pcard-actions{flex-wrap:nowrap;gap:8px}
.pcard-actions .pcard-add{flex:1;min-width:0}
.pcard-add.loading{opacity:.6;pointer-events:none}

/* ── PRODUCT GALLERY THUMBS ────────────────────────────
   WooCommerce ships a flexslider thumb strip; the etalon has
   nothing equivalent, so it is sized here. */
.pdp-media .flex-control-thumbs{
  grid-template-columns:repeat(4,1fr);
  padding:8px;margin:0;
}
.pdp-media .flex-control-thumbs img{
  width:100%;height:auto;aspect-ratio:1;object-fit:cover;display:block;
}
.pdp-media .woocommerce-product-gallery{margin:0}
.pdp-media .woocommerce-product-gallery__image img{border-radius:0}

/* Tabs: WooCommerce draws its own borders and ::before/::after arrows. */
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after{display:none!important;content:none!important}
.woocommerce-tabs ul.tabs li{box-shadow:none!important;background:transparent!important}
/* WooCommerce fragment container - no styling of its own, declared so the
   class check passes knowingly. */
.widget_shopping_cart_content{display:contents}

/* ── PRODUCT PAGE POLISH ───────────────────────────── */
/* WooCommerce prints its own price/stock/meta markup; align it to V12 rhythm. */
.pdp-info .woocommerce-product-rating{margin:0 0 10px;font-size:13px;color:var(--c-txt2)}
.pdp-info .woocommerce-product-rating .star-rating{color:var(--c-gold)}
.pdp-info form.cart .variations{width:100%;border-collapse:collapse;margin:0 0 12px}
.pdp-info form.cart .variations td{padding:4px 0}
.pdp-info form.cart .variations label{font-size:12.5px;font-weight:600;color:var(--c-txt2)}
.pdp-info .reset_variations{font-size:12px;color:var(--c-txt3)}

/* Reviews list */
.woocommerce #reviews .commentlist{list-style:none;margin:0;padding:0}
.woocommerce #reviews .commentlist li{
  border:1px solid var(--c-border);border-radius:var(--r-md);
  background:var(--c-card);padding:14px;margin:0 0 12px;
}
.woocommerce #review_form .comment-form-rating .stars a{color:var(--c-gold)}

/* ── CATALOG GRID: keep card proportions steady ────── */
ul.products.pgrid > li > .pcard{display:flex;flex-direction:column;height:100%}
ul.products.pgrid .pcard-body{flex:1;display:flex;flex-direction:column}
ul.products.pgrid .pcard-foot{margin-top:auto}
ul.products.pgrid .pcard-name{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;
}
ul.products.pgrid .pcard-desc{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;
}

/* ── EMPTY PRODUCT IMAGE ───────────────────────────── */
/* .pcard-img.empty already shows the etalon placeholder; keep the ratio so
   a missing photo does not collapse the card. */
.pcard-img.empty{aspect-ratio:3/4}

/* ── CARD CAROUSEL BRIDGE ──────────────────────────────
   The etalon slide holds a bare <img>. Here each slide wraps
   the image in a link so the card stays navigable without JS,
   which means the anchor must fill the slide itself. */
.img-carousel-slide > a{display:block;width:100%;height:100%}
.img-carousel-slide > a img{width:100%;height:100%;object-fit:cover;display:block}
.pcard-img{aspect-ratio:3/4}
.img-carousel-track{height:100%}

/* Arrows stay hidden until hover on pointer devices, always visible on touch. */
@media(hover:hover){
  .img-carousel-arr{opacity:0;transition:opacity .18s var(--ease),background .15s}
  .pcard:hover .img-carousel-arr{opacity:1}
}

/* Filled heart + the pop the etalon plays through its own SVG swap. */
.pcard-fav.liked svg path{fill:#fff;stroke:#fff}
@keyframes fbv12-fav-pop{
  0%{transform:scale(1)}
  40%{transform:scale(1.35)}
  70%{transform:scale(.92)}
  100%{transform:scale(1)}
}
.pcard-fav.pop{animation:fbv12-fav-pop .38s var(--spring)}

/* Promo strip carries a single line here; the etalon variant has a timer. */
.pcard-promo{color:var(--c-red2);font-weight:600}
[data-theme="light"] .pcard-promo{color:rgba(180,10,30,.90)}

/* ═══════════════════════════════════════════════════════
   CHECKOUT / CART
   CSS only. THWCFE injects its fields through hooks into the
   standard form; overriding form-checkout.php would risk the
   delivery fee logic, so the V12 look is applied to
   WooCommerce's own selectors instead.
═══════════════════════════════════════════════════════ */

/* Section cards in the .co-block language of the etalon */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout #order_review,
.woocommerce-cart .cart_totals,
.woocommerce-account .woocommerce-MyAccount-content{
  border:1px solid var(--c-border);
  border-radius:var(--r-xl);
  background:var(--c-card);
  padding:16px 18px;
  margin-bottom:14px;
}
[data-theme="dark"] .woocommerce-checkout #order_review,
[data-theme="dark"] .woocommerce-cart .cart_totals{
  background:rgba(24,24,32,.72);
  backdrop-filter:blur(16px) saturate(180%);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
}
.woocommerce-checkout #customer_details{display:block}

.woocommerce-checkout h3,
.woocommerce-cart .cart_totals h2{
  display:flex;align-items:center;gap:10px;
  font-size:16px;font-weight:800;color:var(--c-txt);
  margin:0 0 14px;letter-spacing:-.01em;
}

/* Order review table */
.woocommerce-checkout-review-order-table{border:0;background:transparent}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td{
  border:0;border-bottom:1px solid var(--c-border2);
  padding:11px 0;font-size:13.5px;
}
.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td{
  border-bottom:0;padding-top:14px;
  font-size:17px;font-weight:800;color:var(--c-txt);
}
.woocommerce-checkout-review-order-table .product-name{color:var(--c-txt2)}
.woocommerce-checkout-review-order-table .product-total{text-align:right;white-space:nowrap}

/* Payment methods */
.woocommerce-checkout #payment{background:transparent;border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{
  border:0;padding:0;margin:0 0 14px;list-style:none;
}
.woocommerce-checkout #payment ul.payment_methods li{
  border:1px solid var(--c-border);
  border-radius:var(--r-md);
  background:var(--c-surface);
  padding:12px 14px;margin:0 0 8px;
  font-size:13.5px;
}
.woocommerce-checkout #payment ul.payment_methods li label{
  font-weight:600;color:var(--c-txt);cursor:pointer;
}
.woocommerce-checkout #payment div.payment_box{
  background:rgba(201,164,78,.08);
  border:1px solid rgba(201,164,78,.20);
  border-radius:var(--r-sm);
  color:var(--c-txt2);font-size:12.5px;
  margin:10px 0 0;padding:11px 13px;
}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #payment .place-order{padding:0;margin-top:14px}
.woocommerce-checkout #place_order{width:100%}

/* ── V12 checkout steps (hooks live in inc/checkout.php) ── */
.co-sub{margin:-6px 0 14px;font-size:13.5px;color:var(--c-txt2)}
.woocommerce-checkout .co-head-hook{padding:0;margin:0 0 14px}
/* native headings are replaced by the numbered co-heads */
.woocommerce-checkout .woocommerce-billing-fields > h3{display:none}
.woocommerce-checkout h3#order_review_heading{display:none}
/* the empty shipping/additional column used to render as a bare card */
.woocommerce-checkout #customer_details .col-2:not(:has(.form-row)){display:none}
.woocommerce-checkout .pickup-block{margin:4px 0 14px}
.woocommerce-checkout .promo-row{display:flex;gap:8px;margin:0 0 6px}
.woocommerce-checkout .promo-input{flex:1;min-width:0}
.co-promo-hint{font-size:12px;color:var(--c-txt3);min-height:16px;margin:0 0 12px}
.co-promo-hint.is-err{color:var(--c-red2)}
.co-trust-chips{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.co-note{font-size:12px;color:var(--c-txt3);text-align:center;margin:10px 0 0;line-height:1.5}
/* submit sized as in the etalon (52px, not the standard 44px .btn) */
.woocommerce-checkout #place_order{height:52px;font-size:15px;font-weight:800;border-radius:16px;letter-spacing:-.01em}
.woocommerce-checkout .woocommerce-privacy-policy-text p{font-size:12px;color:var(--c-txt3);line-height:1.5}

/* Coupon */
.woocommerce-form-coupon-toggle .woocommerce-info{margin-bottom:12px}
.checkout_coupon.woocommerce-form-coupon,
.woocommerce-cart .coupon{
  display:flex;gap:8px;flex-wrap:wrap;align-items:center;
  border:1px solid var(--c-border);
  border-radius:var(--r-lg);
  background:var(--c-card);
  padding:12px;margin:0 0 14px;
}
.checkout_coupon.woocommerce-form-coupon p{margin:0;flex:1;min-width:160px}

/* Cart page rows */
.woocommerce-cart table.shop_table td.product-remove a.remove{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:var(--r-pill);
  background:rgba(232,24,58,.14);color:var(--c-red2)!important;
  font-size:15px;line-height:1;text-decoration:none;
}
.woocommerce-cart table.shop_table td.product-remove a.remove:hover{
  background:var(--c-red);color:#fff!important;
}
.woocommerce-cart table.shop_table td.product-quantity input.qty{
  width:66px;height:38px;text-align:center;
  border:1px solid var(--c-border);border-radius:var(--r-sm);
  background:var(--c-surface);color:var(--c-txt);
  font-family:var(--font-ui);font-weight:700;
}
.woocommerce-cart .actions .button{white-space:nowrap}
.woocommerce-cart .wc-proceed-to-checkout{padding:14px 0 0}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button{width:100%}

/* Account navigation as V12 pills */
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  display:flex;flex-wrap:wrap;gap:8px;
  list-style:none;margin:0 0 16px;padding:0;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:block;padding:8px 16px;
  border:1px solid var(--c-border);border-radius:var(--r-pill);
  font-size:13px;font-weight:700;color:var(--c-txt3);text-decoration:none;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{
  background:linear-gradient(135deg,rgba(232,24,58,.18),rgba(201,164,78,.18));
  border-color:rgba(201,164,78,.40);color:var(--c-txt);
}

/* ── TRANSLUCENCY TO MATCH THE ETALON ──────────────── */
[data-theme="dark"] .cat-side-group,
[data-theme="dark"] .post-card{
  background:rgba(24,24,32,.66);
  backdrop-filter:blur(14px) saturate(170%);
  -webkit-backdrop-filter:blur(14px) saturate(170%);
}
[data-theme="light"] .cat-side-group,
[data-theme="light"] .post-card{
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(14px) saturate(170%);
  -webkit-backdrop-filter:blur(14px) saturate(170%);
}
.drawer,.side-menu,.search-overlay{will-change:transform}

/* ── MOTION ────────────────────────────────────────── */
.post-card,.cat-side-link,.footer-link,.pcard-view{
  transition:transform .18s var(--ease),border-color .18s var(--ease),
             background .18s var(--ease),color .18s var(--ease);
}
.post-card:hover{transform:translateY(-2px)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important;
  }
}

/* ── CATEGORY STRIP: sub-rows are toggled by class ─────
   The etalon drives them from its own state object. */
.cat-nav-sub{display:none}
.cat-nav-sub.on{display:flex}
.cnav-btn{text-decoration:none}
.csub-btn{text-decoration:none}

/* ── VIEW MODES ────────────────────────────────────── */
ul.products.pgrid[data-vm="grid1"]{grid-template-columns:minmax(0,1fr)}
ul.products.pgrid[data-vm="grid2"]{grid-template-columns:repeat(2,minmax(0,1fr))}

/* RESTORED-approx: the list view (4th toolbar icon, data-vm="list") was
   styled in the etalon's truncated first style block - rebuilt from the
   etalon screenshot: compact row, square thumb left, name+desc centre,
   price column right, then "Открыть" and a square "+". */
@media (min-width:900px){
  ul.products.pgrid[data-vm="list"]{grid-template-columns:minmax(0,1fr);gap:12px}
  ul.products.pgrid[data-vm="list"] .pcard{
    display:grid;
    grid-template-columns:96px minmax(0,1fr) auto auto;
    grid-template-rows:auto auto auto;
    align-items:center;column-gap:16px;row-gap:2px;
    padding:12px 14px;
  }
  ul.products.pgrid[data-vm="list"] .pcard-img{
    grid-column:1;grid-row:1/4;
    width:96px;aspect-ratio:1/1;border-radius:var(--r-md);align-self:center;
  }
  ul.products.pgrid[data-vm="list"] .img-carousel-arr,
  ul.products.pgrid[data-vm="list"] .img-carousel-dots,
  ul.products.pgrid[data-vm="list"] .pcard-fav{display:none}
  ul.products.pgrid[data-vm="list"] .pcard-body{display:contents}
  ul.products.pgrid[data-vm="list"] .pcard-name{grid-column:2;grid-row:1;align-self:end}
  ul.products.pgrid[data-vm="list"] .pcard-desc{grid-column:2;grid-row:2;align-self:start}
  ul.products.pgrid[data-vm="list"] .pcard-promo{grid-column:2;grid-row:3;justify-self:start}
  ul.products.pgrid[data-vm="list"] .pcard-foot{
    grid-column:3;grid-row:1/4;
    margin:0;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;
  }
  ul.products.pgrid[data-vm="list"] .pcard-actions{
    grid-column:4;grid-row:1/4;
    padding:0;align-items:center;flex-direction:row-reverse;gap:8px;
  }
  /* Every add button collapses to the etalon square "+" (run-4). The WC
     class add_to_cart_button covers all button variants the loop renders. */
  ul.products.pgrid[data-vm="list"] .pcard-actions .add_to_cart_button{
    width:44px;min-width:44px;padding:0;font-size:0!important;
  }
  ul.products.pgrid[data-vm="list"] .pcard-actions .add_to_cart_button::after{
    content:"+";font-size:20px;font-weight:700;line-height:1;
  }
  ul.products.pgrid[data-vm="list"] .pcard-actions .pcard-qty{flex:0 0 auto;min-width:120px}
}
@media(min-width:900px){
  ul.products.pgrid[data-vm="grid3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  ul.products.pgrid[data-vm="grid4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
  ul.products.pgrid[data-vm="grid5"]{grid-template-columns:repeat(5,minmax(0,1fr))}
}
.view-icon{cursor:pointer}
.view-icon:focus-visible{outline:2px solid rgba(201,164,78,.55);outline-offset:2px}
@media(max-width:899px){.vm-desktop{display:none!important}}
@media(min-width:900px){.vm-mobile{display:none!important}}

/* ── SORT PILL: native select inside the etalon pill ── */
.sort-pill select{
  -webkit-appearance:none;appearance:none;
  border:0;background:transparent;
  color:var(--c-txt);font-family:var(--font-ui);
  font-size:13px;font-weight:700;
  padding:0 18px 0 4px;cursor:pointer;outline:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--c-txt2) 50%),
                   linear-gradient(135deg,var(--c-txt2) 50%,transparent 50%);
  background-position:calc(100% - 8px) 50%,calc(100% - 4px) 50%;
  background-size:4px 4px,4px 4px;background-repeat:no-repeat;
}
.sort-pill select option{background:var(--c-card);color:var(--c-txt)}

/* ── SEC-HEAD: the catalog variant carries a right column ── */
.sec-head .right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.sec-head .right .btn{width:auto!important;flex-shrink:0}
@media(max-width:520px){
  .sec-head .right{width:100%;margin-top:10px}
  .sec-head .right .btn{flex:1}
}

/* ── PROMO STRIP: etalon layout "Акция · −767 ₽ до 01.06" ── */
.pcard-promo b{color:var(--c-red2);font-weight:700;flex-shrink:0}
.pcard-promo span{color:var(--c-txt3);font-weight:500;white-space:nowrap}
.pcard-promo span .amount,
.pcard-promo span bdi{color:var(--c-txt2)}

/* ═══════════════════════════════════════════════════════
   TAP FEEDBACK
   The etalon gives .btn / .nav-btn / .cat-item an :active
   scale. WooCommerce's own buttons and the theme's links
   carry no .btn class, so they get the same treatment here.
═══════════════════════════════════════════════════════ */
.woocommerce .button:active,
.woocommerce input.button:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.single_add_to_cart_button:active,
.cat-side-link:active,
.csub-btn:active,
.cnav-btn:active,
.view-icon:active,
.sac-item:active,
.qty-btn:active,
.icdot:active,
.footer-link:active{transform:scale(.97)}

.pcard-fav:active{transform:scale(.9)}
.img-carousel-arr:active{transform:translateY(-50%) scale(.9)}
.post-card:active{transform:scale(.99)}
.ai-filt-btn:active,.ai-sort-btn:active,.ai-top:active{opacity:.7}

/* Every interactive element gets the same tap-highlight suppression
   the etalon applies to its own controls. */
button,a,.view-icon,.sac-item,label{-webkit-tap-highlight-color:transparent}

/* ── FORM FIELDS: catch THWCFE too ─────────────────────
   THWCFE renders its extra checkout fields with its own
   wrappers, so selectors scoped to .form-row missed them -
   a card-message textarea stayed white on the dark theme. */
.woocommerce input[type="text"],
.woocommerce input[type="tel"],
.woocommerce input[type="email"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce input[type="search"],
.woocommerce input[type="date"],
.woocommerce input[type="time"],
.woocommerce textarea,
.woocommerce select,
.thwcfe-section input,
.thwcfe-section textarea,
.thwcfe-section select,
form.checkout input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
form.checkout textarea,
form.checkout select{
  background:var(--c-card)!important;
  color:var(--c-txt)!important;
  border:1px solid var(--c-border)!important;
  border-radius:var(--r-sm)!important;
  font-family:var(--font-ui)!important;
  font-size:14px;
}
[data-theme="light"] .woocommerce input,
[data-theme="light"] .woocommerce textarea,
[data-theme="light"] .woocommerce select,
[data-theme="light"] form.checkout input,
[data-theme="light"] form.checkout textarea,
[data-theme="light"] form.checkout select{
  background:#fff!important;border-color:rgba(0,0,0,.12)!important;
}
.woocommerce input::placeholder,
.woocommerce textarea::placeholder{color:var(--c-txt3)}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus{outline:none;border-color:rgba(201,164,78,.50)!important}

/* The broad form rule above keys off .woocommerce - a BODY class on shop
   pages - and reached the header search and the toolbar sort (run-3
   "double frame"). The etalon controls keep their own V12 skin: */
.woocommerce .hdr-search input{
  background:none!important;border:0!important;border-radius:0!important;
}
/* Keep the gradient chevron: the broad rule's background shorthand wiped it. */
.woocommerce .sort-pill select{
  border:0!important;border-radius:0!important;
  background:linear-gradient(45deg,transparent 50%,var(--c-txt2) 50%),
             linear-gradient(135deg,var(--c-txt2) 50%,transparent 50%)!important;
  background-position:calc(100% - 8px) 50%,calc(100% - 4px) 50%!important;
  background-size:4px 4px,4px 4px!important;
  background-repeat:no-repeat!important;
}
.woocommerce #q-mob{
  background:rgba(255,255,255,.07)!important;
  border:1px solid var(--c-border)!important;
  border-radius:var(--r-md)!important;
}
[data-theme="light"] .woocommerce #q-mob{background:rgba(0,0,0,.05)!important}

/* Radios and checkboxes keep the accent instead of the browser blue. */
.woocommerce input[type="radio"],
.woocommerce input[type="checkbox"],
form.checkout input[type="radio"],
form.checkout input[type="checkbox"]{
  accent-color:var(--c-red);
  width:18px;height:18px;vertical-align:middle;margin-right:6px;
}

/* ── THANK-YOU: stock order overview under the oso overlay ── */
.woocommerce-order ul.woocommerce-order-overview{
  display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0 0 16px;padding:0;
}
.woocommerce-order ul.woocommerce-order-overview li{
  border:1px solid var(--c-border)!important;border-radius:var(--r-md);
  background:var(--c-card);padding:10px 14px;margin:0;
  font-size:12.5px;color:var(--c-txt3);float:none;
}
.woocommerce-order ul.woocommerce-order-overview li strong{
  display:block;font-size:14px;color:var(--c-txt);margin-top:2px;
}
.woocommerce-thankyou-order-received{
  font-size:16px;font-weight:700;color:var(--c-txt);margin:0 0 14px;
}

/* ── MY ACCOUNT: etalon profile shell ──────────────── */
/* WC floats the navigation next to the content; the etalon stacks
   hero -> tabs -> pane vertically. */
.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:100%;margin:0 0 14px}
.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%}
.profile-tabs-nav a.ptab{text-decoration:none}
.woocommerce-account .orders-list{display:flex;flex-direction:column;gap:10px}
.woocommerce-account a.order-card{display:block;text-decoration:none;color:inherit}
.prof-actions-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.prof-actions-row .btn{width:auto}
/* favourites endpoint reuses the live-search row styling */
.woocommerce-account .search-ac-list{display:flex;flex-direction:column;gap:8px}

/* ── MY ACCOUNT: login and register ────────────────── */
.woocommerce-account .woocommerce > h2,
.woocommerce form.login > h2,
.woocommerce form.register > h2{
  font-size:20px;font-weight:800;color:var(--c-txt);margin:0 0 14px;
}
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password{
  border:1px solid var(--c-border);
  border-radius:var(--r-xl);
  background:var(--c-card);
  padding:18px;margin:0 0 16px;
}
[data-theme="dark"] .woocommerce form.login,
[data-theme="dark"] .woocommerce form.register{
  background:rgba(24,24,32,.72);
  backdrop-filter:blur(16px) saturate(180%);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
}
.woocommerce form.login .button,
.woocommerce form.register .button,
.woocommerce form.lost_reset_password .button{
  background:var(--c-red);border-color:var(--c-red);color:#fff;
}
.woocommerce form.login label.woocommerce-form-login__rememberme,
.woocommerce form .form-row label.checkbox{
  display:inline-flex;align-items:center;gap:2px;
  font-size:13px;color:var(--c-txt2);font-weight:500;
  margin:0 0 0 12px;cursor:pointer;
}
.woocommerce-LostPassword a{color:var(--c-gold2);font-size:13px}
.woocommerce form .form-row .required{color:var(--c-red2);text-decoration:none}

/* ── ORDER REVIEW TABLE: no horizontal overflow ────── */
.woocommerce-checkout-review-order{overflow-x:auto}
.woocommerce-checkout-review-order-table{min-width:0;width:100%;table-layout:fixed}
.woocommerce-checkout-review-order-table .product-name{
  word-break:break-word;padding-right:10px;
}

/* ── PAGINATION: WooCommerce draws a bordered table row ──
   Its own ul/li carry borders that made the pager look like
   a spreadsheet. Reset before the V12 pills are applied. */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li{
  border:0!important;overflow:visible!important;
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers{
  background:var(--c-card)!important;
  border:1px solid var(--c-border)!important;
  border-radius:var(--r-sm)!important;
  color:var(--c-txt2)!important;
  min-width:38px;height:38px;padding:0 11px;
  display:flex;align-items:center;justify-content:center;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover{
  background:linear-gradient(135deg,rgba(232,24,58,.18),rgba(201,164,78,.18))!important;
  border-color:rgba(201,164,78,.40)!important;
  color:var(--c-txt)!important;
}

/* ── ADD-TO-CART FEEDBACK ──────────────────────────────
   WooCommerce toggles .loading and .added on the button. */
.pcard-add.loading,
.single_add_to_cart_button.loading{
  opacity:.75;pointer-events:none;position:relative;
}
.pcard-add.loading::after,
.single_add_to_cart_button.loading::after{
  content:"";position:absolute;right:10px;top:50%;
  width:13px;height:13px;margin-top:-7px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;border-radius:50%;
  animation:fbv12-spin .6s linear infinite;
}
@keyframes fbv12-spin{to{transform:rotate(360deg)}}
.pcard-add.added{background:rgba(232,24,58,.55)!important}

/* ── REVIEWS / COMMENT FORM ────────────────────────── */
.woocommerce #reviews #comments > h2,
.woocommerce #review_form_wrapper .comment-reply-title{
  font-size:18px;font-weight:800;color:var(--c-txt);
  display:block;margin:0 0 12px;
}
.woocommerce #review_form_wrapper{
  border:1px solid var(--c-border);
  border-radius:var(--r-lg);
  background:var(--c-card);
  padding:16px;margin-top:14px;
}
.woocommerce #review_form .comment-form-rating .stars a{
  color:var(--c-gold);text-decoration:none;font-size:18px;
}
.woocommerce #review_form .comment-form label{
  display:block;margin:0 0 6px;
  font-size:12.5px;font-weight:600;color:var(--c-txt2);
}
.woocommerce #review_form .comment-form input[type="text"],
.woocommerce #review_form .comment-form input[type="email"],
.woocommerce #review_form .comment-form textarea{
  width:100%;padding:11px 13px;
}
.woocommerce #review_form .comment-form-cookies-consent{
  display:flex;align-items:flex-start;gap:8px;
  font-size:12.5px;color:var(--c-txt3);line-height:1.45;
}
.woocommerce #review_form .comment-form-cookies-consent label{
  margin:0;font-weight:500;color:var(--c-txt3);
}
.woocommerce #review_form input#submit,
.woocommerce #respond input#submit{
  height:44px;padding:0 24px;
  background:var(--c-red)!important;
  border:1px solid var(--c-red)!important;
  border-radius:var(--r-pill)!important;
  color:#fff!important;
  font-family:var(--font-ui);font-size:13.5px;font-weight:600;
  cursor:pointer;
}
.woocommerce #review_form input#submit:active{transform:scale(.97)}
.woocommerce .woocommerce-noreviews{color:var(--c-txt2);font-size:14px}

/* Product tabs: WooCommerce nests the panel headings oddly. */
.woocommerce-tabs .panel > h2:first-child{margin-top:0}

/* ── FRONT PAGE BRIDGES ────────────────────────────────
   .cat-item > * carries position:relative;z-index:1 in the
   etalon - it expects a background layer underneath. */
.cat-item{position:relative;overflow:hidden;text-decoration:none;color:inherit}
.cat-item .cat-bg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;opacity:.14;z-index:0;
}
[data-theme="light"] .cat-item .cat-bg{opacity:.20}
.hot-pill{text-decoration:none;color:inherit}
.sec-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.sec-chips .chip{text-decoration:none;cursor:pointer}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--c-txt3);
  margin-bottom:6px;
}
.eyebrow::before{content:"";width:26px;height:2px;background:var(--c-red);border-radius:2px}
.pick-list{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.slide-actions .btn{text-decoration:none}
.info-btns .btn{text-decoration:none}

/* ═══════════════════════════════════════════════════════
   RESTORED: .header base rule
   Lived in the etalon's TRUNCATED first style block and was
   wrongly dropped in 0.4.0 as a "duplicate" - the rule at
   2544 in v12.css is only the translucency override. Without
   position:sticky the header scrolled away entirely.
═══════════════════════════════════════════════════════ */
.header{
  position:sticky;top:0;z-index:100;
  background:var(--c-scrim);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--c-border2);
  padding:max(10px,var(--safe-t)) 0 10px;
}

/* ── SIDE MENU BRIDGES ─────────────────────────────── */
.side-menu{display:none}
.side-menu.open{display:flex;flex-direction:column}
.sm-theme-row{padding:10px 12px 4px;display:flex;gap:8px;align-items:stretch}
.sm-theme-row .theme-toggle{flex:1}
.sm-item{text-decoration:none;color:inherit}
.sm-item-profile{
  flex:1;padding:7px 10px;
  border:1px solid var(--c-border);
  border-radius:var(--r-md);
  background:rgba(255,255,255,.04);
  display:flex;align-items:center;gap:8px;
}
[data-theme="light"] .sm-item-profile{background:rgba(0,0,0,.03)}
.sm-item-profile .si-icon{width:26px;height:26px;font-size:13px}
.sm-contact-link{text-decoration:none}
.sm-addr{margin:8px 2px 0;font-size:12px;color:var(--c-txt3);line-height:1.5}

/* ── DRAWER FOOT ───────────────────────────────────── */
.drawer-total{
  display:flex;justify-content:space-between;align-items:baseline;
  margin:0 0 10px;font-size:12.5px;color:var(--c-txt3);
}
.drawer-total b{font-size:19px;font-weight:800;color:var(--c-txt)}
.drawer-total b .amount,.drawer-total b bdi{color:var(--c-txt)}

/* ── PDP CAROUSEL (replaces the WC flexslider gallery) ── */
.pdp-carousel{
  position:relative;aspect-ratio:3/4;
  border-radius:var(--r-lg);overflow:hidden;
  background:var(--c-card);
}
.pdp-carousel .img-carousel-slide img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.pdp-carousel .img-carousel-arr{opacity:1}
@media(min-width:900px){.pdp-carousel{aspect-ratio:4/5}}

/* ── BOTTOM NAV LABELS: never wrap ─────────────────── */
.nav-btn span,.nav-ai-lbl{white-space:nowrap}

/* Sprite symbol visibility per theme (logo in header and side menu). */
[data-theme="dark"] .only-light{display:none}
[data-theme="light"] .only-dark{display:none}

/* ── PDP EXTRAS in modal language ──────────────────── */
.pdp-stats{margin:0 0 14px}
.pdp-buy-now{
  width:100%;margin:10px 0 0;
  border-color:rgba(201,164,78,.40)!important;
  background:rgba(201,164,78,.12)!important;
  color:var(--c-gold2)!important;
}
.pdp-chips{margin:12px 0 0;display:flex;gap:8px;flex-wrap:wrap}
.pdp-cross{margin-top:18px}
.cs-thumb img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}

/* ── MODAL BRIDGES ─────────────────────────────────── */
.modal-carousel{aspect-ratio:3/4}
.modal-carousel .img-carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}
.modal-thumb img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.modal-more{margin-top:14px;width:100%}
.modal-desc:empty{display:none}

/* RESTORED (root cause of run-1 mobile clipping): the etalon's truncated
   first style block carried the base reset. Without text-size-adjust,
   Android browsers (Yandex/Chrome font boosting) inflate text; boosted
   content widens `1fr` grid tracks (their implicit min-width is `auto`),
   pushing the modal's right edge past the viewport. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Guard rails for the same failure class: tracks may never exceed the
   container even if some text refuses to wrap. */
@media (max-width:600px){
  .modal-grid{grid-template-columns:minmax(0,1fr)}
  .modal-media,.modal-content{min-width:0;max-width:100%}
  .modal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .modal-title{overflow-wrap:anywhere}
}

/* Cart page qty steppers reuse the etalon qty-row */
.woocommerce-cart .qty-row{display:inline-flex;align-items:center;gap:8px}
.woocommerce-cart .qty-row input.qty{width:52px;height:36px}
.woocommerce-cart .actions button[name="update_cart"]{display:none}

/* ── CATALOG WITHOUT SIDEBAR (etalon has none) ─────── */
.cat-full{display:block}
.cat-main-full{min-width:0}

/* ── SEARCH OVERLAY: single field frame ──────────────
   v12.css carries two generations of .search-inner rules; the older one
   (red border + glow around the whole bar) survives the cascade next to
   the newer bar-with-framed-#q-mob, doubling the frame (run-2 request:
   keep only the field's own frame). */
.search-overlay .search-inner{
  border:0;border-bottom:1px solid var(--c-border2);
  box-shadow:none;background:transparent;border-radius:0;margin-bottom:0;
}
[data-theme="light"] .search-overlay .search-inner{background:transparent;border-color:var(--c-border2)}

/* ── STICKY CATEGORY STRIP (desktop, run-5) ──────────
   The strip pins below the header while the product grid scrolls and
   releases with the bottom of .cat-sticky-scope (grid + load-more).
   The stuck skin is a ::before glass bar stretched to the viewport
   edges - no layout shift at the pin/unpin moments. */
.cat-nav-sentinel{height:1px;margin-top:-1px}
@media (min-width:900px){
  .main{overflow-x:clip} /* clips the ::before wings; clip (not hidden) keeps position:sticky alive */
  .cat-sticky-scope .cat-nav-wrap{
    position:sticky;top:var(--hdr-h);z-index:90;
  }
  /* Soft, translucent skin (run-5 "лёгкое приглушение"): the page shows
     through the blur, the plate only gently dims it. */
  .cat-sticky-scope .cat-nav-wrap::before{
    content:"";position:absolute;z-index:-1;
    inset:-10px calc(50% - 50vw) -10px;
    background:rgba(10,10,12,.58);
    backdrop-filter:blur(16px) saturate(140%);
    -webkit-backdrop-filter:blur(16px) saturate(140%);
    border-bottom:1px solid var(--c-border2);
    box-shadow:0 10px 22px rgba(0,0,0,.14);
    opacity:0;transition:opacity .25s ease;
    pointer-events:none;
  }
  [data-theme="light"] .cat-sticky-scope .cat-nav-wrap::before{
    background:rgba(250,248,245,.62);
    box-shadow:0 10px 22px rgba(0,0,0,.07);
  }
  .cat-sticky-scope .cat-nav-wrap.is-stuck::before{opacity:1}
}

/* ── PAGE LOADER: no solid background - the page itself slowly frosts
   from the centre out (backdrop blur behind an expanding radial mask),
   the brand logo pulses in the middle (run-5 request). */
.page-loader{
  position:fixed;inset:0;z-index:2000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(10,10,12,.30);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .3s ease,visibility .3s;
  -webkit-mask-image:radial-gradient(circle,#000 45%,transparent 72%);
  mask-image:radial-gradient(circle,#000 45%,transparent 72%);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:50% 50%;mask-size:50% 50%;
}
[data-theme="light"] .page-loader{background:rgba(250,248,245,.32)}
.page-loader.on{
  opacity:1;visibility:visible;pointer-events:auto;
  animation:plSpread 1.6s var(--ease) forwards;
}
@keyframes plSpread{
  from{-webkit-mask-size:50% 50%;mask-size:50% 50%}
  to{-webkit-mask-size:400% 400%;mask-size:400% 400%}
}
/* No backdrop-filter support: fall back to a denser tint, or the page
   would stay fully readable under the loader. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .page-loader{background:rgba(10,10,12,.66)}
  [data-theme="light"] .page-loader{background:rgba(250,248,245,.72)}
}
.pl-logo{width:64px;height:auto;animation:plPulse 1.1s var(--ease) infinite}
@keyframes plPulse{0%,100%{transform:scale(1);opacity:.82}50%{transform:scale(1.12);opacity:1}}

/* WooCommerce appends a "Просмотр корзины" link after an added button -
   the etalon card has no such element (it broke the list-view row). */
.pcard-actions a.added_to_cart{display:none}

/* ── CATALOG CARD STEPPER (product already in the cart) ── */
.pcard-actions .pcard-qty{
  flex:1;display:flex;align-items:center;justify-content:center;gap:10px;
  border:1px solid var(--c-border);border-radius:var(--r-sm);
  background:rgba(255,255,255,.04);height:44px;
}
[data-theme="light"] .pcard-actions .pcard-qty{background:rgba(0,0,0,.04)}
.pcard-qty .qty-n{min-width:22px;text-align:center;font-weight:800;font-size:14px}

/* ── SIDE MENU: profile card wrapper (etalon used inline styles) ── */
.sm-profile-wrap{padding:0 12px 8px}
.sm-profile-wrap .sm-profile-card{display:flex;margin:0;text-decoration:none}

/* RESTORED: .si-badge-new lived only in the etalon's truncated first style
   block (no copy survives anywhere in the file). Green by analogy with the
   card's tag-new; the bare .si-badge stays red. */
.si-badge.si-badge-new{background:rgba(34,197,94,.14);color:#4ade80}
[data-theme="light"] .si-badge.si-badge-new{background:rgba(34,197,94,.12);color:#15803d}

/* ── FILTER DRAWER show state + overlay ────────────── */
.filt-drawer{display:none}
.filt-drawer.open{display:flex;flex-direction:column}
.filt-overlay{
  display:none;position:fixed;inset:0;z-index:520;
  background:rgba(0,0,0,.52);
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
}
.filt-overlay.open{display:block;animation:fadeOverlay .22s ease both}
.filt-drawer{z-index:530}
.fpreset{text-decoration:none}
.fpreset b{font-weight:700;color:var(--c-txt3);margin-left:4px}
.fpreset.on{
  background:linear-gradient(135deg,rgba(232,24,58,.18),rgba(201,164,78,.18));
  border-color:rgba(201,164,78,.40);color:var(--c-txt);
}
.pill-cloud{display:flex;flex-wrap:wrap;gap:8px}

/* ── LOAD MORE ─────────────────────────────────────── */
.load-more-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin:22px 0 6px}
.load-more-btn{min-width:220px;text-decoration:none}
.load-more-btn.loading{opacity:.6;pointer-events:none}
.load-more-count{font-size:12.5px;color:var(--c-txt3)}

/* ── RECENTLY VIEWED STRIP ─────────────────────────── */
.viewed-row{
  display:grid;grid-auto-flow:column;grid-auto-columns:132px;
  gap:10px;overflow-x:auto;padding-bottom:6px;
  scrollbar-width:none;
}
.viewed-row::-webkit-scrollbar{display:none}
.vw-item{
  display:flex;flex-direction:column;gap:6px;
  border:1px solid var(--c-border);border-radius:var(--r-md);
  background:var(--c-card);padding:8px;
  text-decoration:none;color:inherit;
  transition:transform .18s var(--ease),border-color .18s var(--ease);
}
.vw-item:hover{transform:translateY(-2px);border-color:rgba(201,164,78,.40)}
.vw-img{
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;
  background:var(--c-surface);
}
.vw-img img{width:100%;height:100%;object-fit:cover;display:block}
.vw-empty{font-size:26px;opacity:.6}
.vw-item b{
  font-size:12px;font-weight:700;color:var(--c-txt);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.vw-price{font-size:12px;font-weight:700;color:var(--c-red2)}

/* ── DESKTOP CONTACT RAIL (etalon right side) ──────── */
@media(min-width:900px){
  .fab-wrap{bottom:80px}
  .fab-wrap .fab-items{
    position:static;opacity:1;pointer-events:all;transform:none;
    display:flex;flex-direction:column;gap:10px;margin-bottom:10px;
  }
  .fab-wrap .fab-item{opacity:1;transform:none}
  .fab-wrap .fab-item-lbl{display:none}
  .fab-wrap .fab-main{display:none}
  .fab-backdrop{display:none!important}
}
