/* ═══════════════════════════════════════════════
   FONTS — Onest, self-hosted (152-ФЗ §A5/§A10)
═══════════════════════════════════════════════ */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════
   RESET + TOKENS
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E63329;
  --red-dark: #c42920;
  --black: #111;
  --gray: #888;
  --border: #E5E5E5;
  --bg: #F7F7F7;
  --header-top: 78px;
  --header-nav: 44px;
  --header-h: 122px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Onest', sans-serif; background: var(--bg); color: var(--black); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
body > .site-header { flex-shrink: 0; }
body > .page-body { flex: 1 0 auto; }
body > .footer { flex-shrink: 0; }
.page-body { padding-top: var(--header-h); }

/* Accessibility — visible focus ring for keyboard nav (a11y baseline). Mouse clicks don't trigger :focus-visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible,
.product-card a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */

/* SITE HEADER */
.site-header { position:fixed; top:0; left:0; right:0; z-index:1000; background:#fff; box-shadow:0 2px 16px rgba(0,0,0,.08); }
.admin-bar .site-header { top:32px; }
@media (max-width:782px) { .admin-bar .site-header { top:46px; } }
.header-top { display:flex; align-items:center; gap:20px; padding:0 48px; height:var(--header-top); border-bottom:1px solid var(--border); }
.site-logo { font-size:28px; font-weight:900; letter-spacing:3px; text-transform:uppercase; text-decoration:none; color:var(--black); white-space:nowrap; flex-shrink:0; line-height:1; }
.site-logo span { color:var(--red); }
.header-search { flex:0 0 auto; width:min(600px,calc((100vw - 96px - 640px) * 0.75)); margin-left:auto; margin-right:auto; display:flex; align-items:center; background:var(--bg); border:1px solid var(--border); border-radius:2px; position:relative; transition:border-color .15s,box-shadow .15s; }
.header-search form { display:flex; width:100%; }
.header-search:focus-within { border-color:var(--red); box-shadow:0 0 0 3px rgba(230,51,41,.08); }
.header-search input { flex:1; padding:10px 16px; border:none; background:transparent; outline:none; font-family:'Onest',sans-serif; font-size:14px; color:var(--black); }
.header-search input::placeholder { color:#aaa; }
.search-btn { padding:10px 18px; background:var(--red); border:none; cursor:pointer; color:#fff; display:flex; align-items:center; transition:background .15s; }
.search-btn:hover { background:var(--red-dark); }
.search-btn svg { width:18px; height:18px; }
.search-mobile-btn { display:none; }
.search-dropdown { position:absolute; top:100%; left:0; right:0; background:#fff; border:1px solid var(--border); border-top:none; border-radius:0 0 2px 2px; box-shadow:0 8px 24px rgba(0,0,0,.1); z-index:500; }
.search-dropdown[hidden] { display:none; }
.search-item { display:flex; align-items:center; gap:12px; padding:10px 14px; text-decoration:none; color:var(--black); border-bottom:1px solid var(--border); transition:background .1s; }
.search-item:last-child { border-bottom:none; }
.search-item:hover { background:var(--bg); }
.search-item-img { width:44px; height:44px; object-fit:cover; border-radius:2px; flex-shrink:0; }
.search-item-info { display:flex; flex-direction:column; gap:2px; min-width:0; }
.search-item-name { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-item-price { font-size:12px; color:var(--red); font-weight:700; }
.header-phone { flex-shrink:0; text-align:center; }
.phone-label { font-size:10px; color:var(--gray); letter-spacing:.5px; display:block; margin-bottom:2px; }
.phone-link { font-size:17px; font-weight:800; color:var(--black); text-decoration:none; white-space:nowrap; letter-spacing:-.3px; transition:color .15s; }
.phone-link:hover { color:var(--red); }
.header-actions-group { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.header-actions { display:flex; gap:4px; flex-shrink:0; }
.action-btn { display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 14px; text-decoration:none; color:var(--black); border-radius:3px; position:relative; transition:color .15s,background .15s; cursor:pointer; }
.action-btn:hover { color:var(--red); background:var(--bg); }
.action-btn svg { width:22px; height:22px; }
.action-label { font-size:10px; font-weight:600; letter-spacing:.2px; white-space:nowrap; }
.cart-badge { position:absolute; top:6px; right:8px; background:var(--red); color:#fff; font-size:9px; font-weight:700; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.header-nav { height:var(--header-nav); background:var(--black); display:flex; align-items:stretch; padding:0 48px; position:relative; }
.nav-menu { display:flex; align-items:stretch; list-style:none; gap:0; }
.nav-menu > li { display:flex; align-items:stretch; }
.nav-menu > li > a { display:flex; align-items:center; gap:5px; padding:0 16px; font-size:13px; font-weight:600; color:rgba(255,255,255,.78); text-decoration:none; white-space:nowrap; border-bottom:2px solid transparent; transition:color .15s,border-color .15s; }
.nav-menu > li > a:hover, .nav-menu > li.active > a { color:#fff; border-color:var(--red); }
.nav-menu > li.active > a { color:var(--red); }
.nav-menu > li > a .chev { opacity:.5; transition:transform .2s; }
.nav-menu > li:hover > a .chev { transform:rotate(180deg); opacity:1; }
.mega-menu { position:absolute; top:100%; left:0; right:0; background:#fff; border-top:3px solid var(--red); box-shadow:0 12px 48px rgba(0,0,0,.15); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-6px); transition:opacity .2s,visibility .2s,transform .2s; z-index:200; }
.has-dropdown:hover .mega-menu { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0); }
.mega-inner { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); padding:32px 48px 36px; column-gap:0; row-gap:28px; max-width:1400px; }
.mega-col { padding:0 20px; }
.mega-col:not(:last-child) { border-right:1px solid var(--border); }
.mega-col-head { font-size:11px; font-weight:800; letter-spacing:2.5px; text-transform:uppercase; color:var(--black); margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid var(--black); display:flex; align-items:center; justify-content:space-between; text-decoration:none; }
.mega-col-head:hover { color:var(--red); }
.mega-col-head .cat-count { letter-spacing:0; font-weight:400; }
.mega-col ul { list-style:none; }
.mega-col ul li { margin-bottom:1px; }
.mega-col ul li a { font-size:13px; color:var(--gray); text-decoration:none; padding:5px 0; display:flex; align-items:center; justify-content:space-between; transition:color .15s,padding-left .15s; }
.mega-col ul li a:hover { color:var(--red); padding-left:6px; }
.cat-count { font-size:11px; color:#bbb; font-weight:400; flex-shrink:0; margin-left:8px; }
.mega-col ul li a:hover .cat-count { color:rgba(230,51,41,.5); }
.mega-view-all { display:inline-block; margin-top:14px; font-size:11px; font-weight:700; color:var(--red); text-decoration:none; letter-spacing:.5px; border-bottom:1px solid rgba(230,51,41,.3); transition:border-color .15s; }
.mega-view-all:hover { border-color:var(--red); }


/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer { background:#080808; padding:32px 60px 22px; display:grid; grid-template-columns:1fr auto 1fr; grid-template-rows: auto auto; column-gap:24px; row-gap:14px; align-items:center; border-top:1px solid #1e1e1e; }
.footer-logo { font-size:18px; font-weight:900; letter-spacing:3px; text-transform:uppercase; color:#888; grid-row:1; }
.footer-logo span { color:var(--red); }
.footer-center { text-align:center; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; grid-row:1; }
.footer-link { font-size:12px; color:#888; text-decoration:none; transition:color .15s; }
.footer-link:hover { color:#ccc; }
.footer-copy { font-size:13px; color:#555; text-align:right; grid-row:1; }
.footer-legal { font-size:11px; color:#555; text-align:center; grid-column:1 / -1; grid-row:2; line-height:1.6; }


/* ═══════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════ */
.breadcrumb-bar { background:#fff; border-bottom:1px solid var(--border); padding:0 60px; }
.breadcrumb { display:flex; align-items:center; gap:8px; list-style:none; height:44px; }
.breadcrumb li { font-size:12px; color:var(--gray); display:flex; align-items:center; gap:8px; }
.breadcrumb li:not(:last-child)::after { content:'/'; color:var(--border); }
.breadcrumb li a { color:var(--gray); text-decoration:none; transition:color .15s; }
.breadcrumb li a:hover { color:var(--red); }
.breadcrumb li:last-child { color:var(--black); font-weight:600; }


/* ═══════════════════════════════════════════════
   PRODUCT CARD
═══════════════════════════════════════════════ */

/* Product card (shared with catalog) */
.product-card { background:#fff; position:relative; display:flex; flex-direction:column; transition:box-shadow .2s; border:1px solid var(--border); min-width:0; overflow-wrap:anywhere; word-break:break-word; }
.product-card:hover { box-shadow:0 8px 32px rgba(0,0,0,.1); z-index:2; }
.product-img-wrap { position:relative; overflow:hidden; background:var(--bg); aspect-ratio:1/1; }
.product-img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.product-card:hover .product-img { transform:scale(1.04); }
.product-badges { position:absolute; top:12px; left:12px; display:flex; flex-direction:column; gap:5px; }
.badge { font-size:10px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; padding:3px 8px; border-radius:1px; }
.badge-new { background:var(--black); color:#fff; }
.badge-sale { background:var(--red); color:#fff; }
.badge-hit { background:#f5a623; color:#fff; }
.product-wishlist { position:absolute; top:10px; right:10px; width:32px; height:32px; background:#fff; border:1px solid var(--border); border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; transition:opacity .2s,border-color .15s; }
.product-card:hover .product-wishlist { opacity:1; }
.product-wishlist:hover { border-color:var(--red); color:var(--red); }
.product-wishlist svg { width:15px; height:15px; }
.product-body { padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.product-brand { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--gray); margin-bottom:6px; }
.product-name { font-size:14px; font-weight:700; color:var(--black); line-height:1.35; margin-bottom:10px; text-decoration:none; transition:color .15s; flex:1; }
.product-name:hover { color:var(--red); }
.product-rating { display:none; }
.stars { color:var(--red); font-size:12px; letter-spacing:1px; }
.rating-count { font-size:11px; color:var(--gray); }
.product-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
.price-block { display:flex; flex-direction:column; gap:1px; }
.price-old { font-size:11px; color:#bbb; text-decoration:line-through; }
.price-new { font-size:18px; font-weight:900; color:var(--black); letter-spacing:-.5px; }
.price-new.sale { color:var(--red); }
.price-currency { font-size:13px; font-weight:700; }
.add-to-cart { flex-shrink:0; background:var(--black); color:#fff; font-family:'Onest',sans-serif; font-size:12px; font-weight:700; padding:10px 16px; border:none; border-radius:2px; cursor:pointer; white-space:nowrap; transition:background .15s; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.add-to-cart-icon { display:none; width:18px; height:18px; }
.add-to-cart:hover { background:var(--red); }

/* Related grid */
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--bg); }
.product-card.related-hidden { display:none; }
.related-more-wrap { text-align:center; margin-top:28px; }


/* ═══════════════════════════════════════════════
   CATALOG PAGE
═══════════════════════════════════════════════ */

/* CATALOG LAYOUT */
.catalog-wrap { display:grid; grid-template-columns:280px minmax(0, 1fr); gap:0; padding:0 60px 80px; margin-top:0; }

/* SIDEBAR */
.sidebar { padding:32px 32px 32px 0; border-right:1px solid var(--border); }
.filter-block { margin-bottom:28px; border-bottom:1px solid var(--border); padding-bottom:28px; }
.filter-block:last-child { border-bottom:none; margin-bottom:0; }
.filter-title { font-size:11px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:var(--black); margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none; }
.filter-title .toggle-icon { font-size:18px; font-weight:300; color:var(--gray); transition:transform .2s; }
.filter-block.collapsed .toggle-icon { transform:rotate(45deg); }
.filter-block.collapsed .woocommerce-widget-layered-nav-list,
.filter-block.collapsed .bb-show-more-btn,
.filter-block.collapsed .bb-collapse-btn,
.filter-block.collapsed .bb-filter-search-input,
.filter-block.collapsed .price_slider_wrapper { display:none; }

/* Category list */
.cat-tree { list-style:none; }
.cat-tree li { margin-bottom:2px; }
.cat-head { display:flex; align-items:center; justify-content:space-between; padding:7px 10px; border-radius:2px; cursor:pointer; transition:background .15s; }
.cat-head:hover { background:rgba(230,51,41,.06); }
.cat-tree > li.open > .cat-head, .cat-tree > li > .cat-head.active { background:rgba(230,51,41,.06); }
.cat-head-name { font-size:13px; font-weight:700; color:var(--black); text-decoration:none; flex:1; transition:color .15s; }
.cat-head:hover .cat-head-name, .cat-tree > li.open > .cat-head .cat-head-name, .cat-tree > li > .cat-head.active .cat-head-name { color:var(--red); }
.cat-tree > li.open > .cat-head .cat-head-name { font-weight:800; }
.cat-head-right { display:flex; align-items:center; gap:6px; }
.cat-chev { font-size:11px; color:var(--gray); transition:transform .2s; display:inline-block; }
.cat-tree > li.open > .cat-head .cat-chev { transform:rotate(90deg); color:var(--red); }
.cat-tree .sub { list-style:none; padding-left:12px; margin-top:2px; display:none; }
.cat-tree > li.open > .sub { display:block; }
.cat-tree .sub li a { font-size:12px; color:var(--gray); text-decoration:none; display:flex; align-items:center; justify-content:space-between; padding:5px 10px; border-radius:2px; transition:background .15s,color .15s; }
.cat-tree .sub li a:hover, .cat-tree .sub li a.active { background:rgba(230,51,41,.06); color:var(--red); }
.cat-tree .cnt { font-size:11px; color:#bbb; }

/* Price range */
.price-inputs { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.price-input { flex:1; display:flex; flex-direction:column; gap:4px; }
.price-input label { font-size:10px; color:var(--gray); letter-spacing:.5px; }
.price-input input { width:100%; padding:8px 10px; font-family:'Onest',sans-serif; font-size:13px; border:1px solid var(--border); border-radius:2px; outline:none; background:#fff; transition:border-color .15s; }
.price-input input:focus { border-color:var(--red); }
.price-sep { color:var(--border); font-size:16px; padding-top:16px; }
.range-track { position:relative; height:3px; background:var(--border); border-radius:2px; margin:6px 0 4px; }
.range-fill { position:absolute; left:0; width:65%; height:100%; background:var(--red); border-radius:2px; }
.range-thumb { position:absolute; top:50%; width:14px; height:14px; border-radius:50%; background:#fff; border:2px solid var(--red); transform:translate(-50%,-50%); cursor:pointer; }
.range-thumb.right { left:65%; }

/* Checkboxes */
.check-list { list-style:none; display:flex; flex-direction:column; gap:6px; }
.check-item { display:flex; align-items:center; gap:10px; cursor:pointer; }
.check-item input[type=checkbox] { appearance:none; -webkit-appearance:none; width:16px; height:16px; min-width:16px; border:1px solid #ccc; border-radius:2px; background:#fff; cursor:pointer; position:relative; transition:border-color .15s,background .15s; }
.check-item input[type=checkbox]:checked { background:var(--red); border-color:var(--red); }
.check-item input[type=checkbox]:checked::after { content:''; position:absolute; left:4px; top:1px; width:5px; height:9px; border:2px solid #fff; border-top:none; border-left:none; transform:rotate(45deg); }
.check-item label { font-size:13px; color:var(--black); cursor:pointer; display:flex; align-items:center; justify-content:space-between; width:100%; }
.check-item label .cnt { font-size:11px; color:#bbb; }

/* Reset button */
.filter-reset { display:block; width:100%; margin-top:24px; padding:11px; font-family:'Onest',sans-serif; font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--gray); background:transparent; border:1px solid var(--border); border-radius:2px; cursor:pointer; transition:border-color .15s,color .15s; }
.filter-reset:hover { border-color:var(--black); color:var(--black); }

/* MAIN CONTENT */
.catalog-main { padding:32px 0 0 32px; }

/* Active-filter chips above the product grid */
.bb-active-chips { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 20px; }
.bb-active-chip { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border:1px solid var(--border); border-radius:999px; background:#fff; color:var(--black); text-decoration:none; font-size:13px; font-weight:600; line-height:1; transition:background .15s, border-color .15s, color .15s; }
.bb-active-chip-x { font-size:16px; line-height:1; color:var(--gray); transition:color .15s; }
.bb-active-chip:hover { background:rgba(230,51,41,.08); border-color:var(--red); color:var(--red); }
.bb-active-chip:hover .bb-active-chip-x { color:var(--red); }
.bb-active-chips-clear { margin-left:4px; font-size:12px; font-weight:700; color:var(--gray); text-decoration:underline; text-underline-offset:3px; transition:color .15s; }
.bb-active-chips-clear:hover { color:var(--red); }

/* Toolbar */
.toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.toolbar-left { display:flex; align-items:center; gap:20px; }
.results-count { font-size:13px; color:var(--gray); }
.results-count strong { color:var(--black); font-weight:700; }
.active-filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.filter-chip { display:flex; align-items:center; gap:6px; padding:5px 10px 5px 12px; background:#fff; border:1px solid var(--border); border-radius:2px; font-size:12px; color:var(--black); }
.filter-chip button { background:none; border:none; cursor:pointer; color:var(--gray); font-size:14px; line-height:1; padding:0; transition:color .15s; }
.filter-chip button:hover { color:var(--red); }
.toolbar-right { display:flex; align-items:center; gap:12px; }
.sort-label { font-size:12px; color:var(--gray); white-space:nowrap; }
.sort-select { font-family:'Onest',sans-serif; font-size:13px; font-weight:600; color:var(--black); background:#fff; border:1px solid var(--border); border-radius:2px; padding:8px 32px 8px 12px; cursor:pointer; outline:none; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; transition:border-color .15s; }
.sort-select:focus { border-color:var(--red); }
.view-toggle { display:flex; border:1px solid var(--border); border-radius:2px; overflow:hidden; }
.view-btn { width:36px; height:36px; background:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--gray); transition:background .15s,color .15s; }
.view-btn.active, .view-btn:hover { background:var(--black); color:#fff; }

/* Product grid */
.product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--bg); }
.products-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--bg); }

/* PAGINATION */
.pagination { display:flex; align-items:center; justify-content:center; gap:4px; margin-top:48px; }
.page-btn { width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; border:1px solid var(--border); border-radius:2px; background:#fff; cursor:pointer; color:var(--black); text-decoration:none; transition:background .15s,border-color .15s,color .15s; }
.page-btn:hover { border-color:var(--black); }
.page-btn.active { background:var(--black); border-color:var(--black); color:#fff; }
.page-btn.arrow { color:var(--gray); font-size:16px; }
.page-btn.arrow:hover { color:#fff; }
.page-dots { color:var(--gray); font-size:14px; padding:0 4px; }


/* ═══════════════════════════════════════════════
   PRODUCT PAGE
═══════════════════════════════════════════════ */

/* GALLERY */
.gallery { display:flex; flex-direction:column; gap:12px; }
.gallery-main-wrap { position:relative; background:var(--bg); border:1px solid var(--border); overflow:hidden; aspect-ratio:1/1; }
.gallery-main-img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.gallery-badge { position:absolute; top:14px; left:14px; }
.gallery-thumbs { display:flex; gap:8px; }
.gallery-thumb { width:72px; height:72px; object-fit:cover; border-radius:2px; cursor:pointer; border:2px solid transparent; opacity:.7; transition:opacity .15s, border-color .15s; }
.gallery-thumb:hover { opacity:1; }
.gallery-thumb.active { border-color:var(--red); opacity:1; }

/* STICKY PANEL */
.panel { position:sticky; top:calc(var(--header-h) + 24px); display:flex; flex-direction:column; gap:16px; }
.panel-brand { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--gray); }
.panel-name { font-size:22px; font-weight:800; line-height:1.25; color:var(--black); }
.panel-rating { display:flex; align-items:center; gap:8px; }
.panel-stars { color:var(--red); font-size:14px; letter-spacing:2px; }
.panel-review-count { font-size:12px; color:var(--gray); text-decoration:none; border-bottom:1px solid transparent; transition:color .15s, border-color .15s; }
.panel-review-count:hover { color:var(--red); border-bottom-color:rgba(230,51,41,.4); }
.panel-divider { height:1px; background:var(--border); }
.panel-attr-group { display:flex; flex-direction:column; gap:8px; }
.panel-attr-label { font-size:11px; font-weight:700; letter-spacing:.5px; color:var(--gray); text-transform:uppercase; }
.panel-attr-pills { display:flex; gap:6px; flex-wrap:wrap; }
.attr-pill { padding:6px 14px; font-family:'Onest',sans-serif; font-size:13px; font-weight:600; color:var(--black); background:#fff; border:1px solid var(--border); border-radius:2px; cursor:pointer; transition:background .15s, border-color .15s, color .15s; }
.attr-pill:hover { border-color:var(--black); }
.attr-pill.active { background:var(--red); border-color:var(--red); color:#fff; }
.panel-price { display:flex; align-items:baseline; gap:10px; }
.panel-price-new { font-size:28px; font-weight:900; color:var(--red); letter-spacing:-.5px; }
.panel-price-currency { font-size:18px; font-weight:700; }
.panel-price-old { font-size:14px; color:#bbb; text-decoration:line-through; }
.panel-cart-row { display:flex; align-items:stretch; gap:10px; }
.qty-stepper { display:flex; align-items:stretch; border:1px solid var(--border); border-radius:2px; overflow:hidden; min-height:48px; }
.qty-btn { width:38px; background:var(--bg); border:none; font-family:'Onest',sans-serif; font-size:18px; font-weight:300; color:var(--black); cursor:pointer; transition:background .15s; display:flex; align-items:center; justify-content:center; }
.qty-btn:hover { background:var(--border); }
.qty-val { width:68px; border:none; border-left:1px solid var(--border); border-right:1px solid var(--border); text-align:center; font-family:'Onest',sans-serif; font-size:15px; font-weight:700; color:var(--black); background:#fff; outline:none; -moz-appearance:textfield; }
.qty-val::-webkit-inner-spin-button, .qty-val::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.panel-btn-primary { flex:1; background:var(--red); color:#fff; font-family:'Onest',sans-serif; font-size:14px; font-weight:800; letter-spacing:.5px; border:none; border-radius:2px; cursor:pointer; padding:14px 24px; transition:background .15s; }
.panel-btn-primary:hover { background:var(--red-dark); }
.panel-actions-row { display:flex; gap:8px; }
.panel-btn-secondary { flex:1; background:#fff; color:var(--black); font-family:'Onest',sans-serif; font-size:13px; font-weight:600; border:1px solid var(--border); border-radius:2px; cursor:pointer; padding:0 16px; height:48px; display:flex; align-items:center; justify-content:center; gap:7px; transition:border-color .15s, color .15s; }
.panel-btn-secondary:hover { border-color:var(--black); }
.panel-btn-secondary svg { width:16px; height:16px; flex-shrink:0; }
.panel-info-blocks { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:2px; overflow:hidden; }
.panel-info-item { display:flex; align-items:flex-start; gap:14px; padding:14px 16px; border-bottom:1px solid var(--border); }
.panel-info-item:last-child { border-bottom:none; }
.panel-info-icon { width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:var(--bg); border-radius:2px; flex-shrink:0; }
.panel-info-icon svg { width:16px; height:16px; color:var(--black); }
.panel-info-text { display:flex; flex-direction:column; gap:3px; }
.panel-info-title { font-size:13px; font-weight:700; color:var(--black); }
.panel-info-desc { font-size:11px; color:var(--gray); line-height:1.55; }

/* WooCommerce cart form on product page */
form.cart { display:flex; align-items:stretch; gap:10px; }
.quantity { display:flex; align-items:stretch; border:1px solid var(--border); border-radius:2px; overflow:hidden; min-height:48px; }
input.qty { width:68px; border:none; text-align:center; font-family:'Onest',sans-serif; font-size:15px; font-weight:700; color:var(--black); background:#fff; outline:none; -moz-appearance:textfield; padding:0 8px; }
input.qty::-webkit-inner-spin-button, input.qty::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.single_add_to_cart_button { flex:1; background:var(--red); color:#fff; font-family:'Onest',sans-serif; font-size:14px; font-weight:800; letter-spacing:.5px; border:none; border-radius:2px; cursor:pointer; padding:14px 24px; transition:background .15s; }
.single_add_to_cart_button:hover { background:var(--red-dark); }

/* ANCHOR NAV (non-sticky tabs) */
.anchor-nav { background:#fff; border-bottom:2px solid var(--border); display:flex; padding:0 60px; gap:0; }
.anchor-link { padding:14px 20px; font-size:13px; font-weight:700; color:var(--gray); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; transition:color .15s, border-color .15s; white-space:nowrap; cursor:pointer; }
.anchor-link:hover { color:var(--black); }
.anchor-link.active { color:var(--red); border-bottom-color:var(--red); }
.anchor-link:focus-visible { outline:2px solid var(--red); outline-offset:-2px; }
.product-tabs .content-section { display:none; }
.product-tabs .content-section.tab-active { display:block; }

/* CONTENT SECTIONS */
.content-section { padding:60px; background:#fff; border-bottom:1px solid var(--border); }
.section-heading { font-size:11px; font-weight:800; letter-spacing:3px; text-transform:uppercase; color:var(--black); margin-bottom:28px; padding-bottom:14px; border-bottom:2px solid var(--black); display:inline-block; }
.desc-text p { font-size:15px; line-height:1.75; color:#333; margin-bottom:18px; }
.desc-text p:last-child { margin-bottom:0; }

/* Specs table */
.specs-table { width:100%; border-collapse:collapse; }
.specs-table tr:nth-child(even) td { background:var(--bg); }
.specs-table td { padding:11px 16px; font-size:14px; border-bottom:1px solid var(--border); vertical-align:top; }
.specs-table td:first-child { font-weight:600; color:var(--black); width:40%; }
.specs-table td:last-child  { color:#444; }

/* Reviews */
.reviews-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:36px; }
.reviews-layout { display:grid; grid-template-columns:220px 1fr; gap:48px; }
.rating-breakdown { display:flex; flex-direction:column; gap:0; }
.rating-score { font-size:56px; font-weight:900; color:var(--black); line-height:1; margin-bottom:6px; }
.rating-stars { color:var(--red); font-size:16px; letter-spacing:3px; margin-bottom:4px; }
.rating-total { font-size:12px; color:var(--gray); margin-bottom:20px; }
.rating-bars { display:flex; flex-direction:column; gap:5px; margin-bottom:24px; }
.rating-bar-row { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--gray); }
.rating-bar-label { width:22px; text-align:right; flex-shrink:0; }
.rating-bar-track { flex:1; height:5px; background:var(--border); border-radius:3px; overflow:hidden; }
.rating-bar-fill  { height:100%; background:#f4b400; border-radius:3px; }
.write-review-btn { width:100%; padding:11px; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; letter-spacing:.5px; background:var(--red); color:#fff; border:none; border-radius:2px; cursor:pointer; transition:background .15s; }
.write-review-btn:hover { background:var(--red-dark); }
.review-list { display:flex; flex-direction:column; gap:20px; }
.review-card { background:var(--bg); border-radius:2px; padding:20px 24px; }
.review-card.hidden { display:none; }
.review-top { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.review-avatar { width:40px; height:40px; border-radius:50%; background:#ddd; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:800; color:var(--gray); flex-shrink:0; }
.review-meta { display:flex; flex-direction:column; gap:2px; }
.review-author { font-size:14px; font-weight:700; color:var(--black); }
.review-date { font-size:11px; color:var(--gray); }
.review-stars { color:var(--red); font-size:12px; letter-spacing:1px; margin-bottom:8px; }
.review-text { font-size:14px; line-height:1.65; color:#333; }
.show-more-btn { margin-top:8px; padding:11px 24px; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; color:var(--black); background:#fff; border:1px solid var(--border); border-radius:2px; cursor:pointer; transition:border-color .15s; }
.show-more-btn:hover { border-color:var(--black); }
.reviews-empty { padding:8px 0 24px; }
.reviews-empty-title { font-size:20px; font-weight:900; letter-spacing:-.3px; margin:0 0 8px; }
.reviews-empty-sub { font-size:14px; color:var(--gray); line-height:1.65; margin:0; }
#review_form_wrapper { display:none; }
#review_form_wrapper.visible { display:block; }

/* PRODUCT ZONE — width matches catalog 3-col grid area (≈1040px on desktop) */
body.single-product { background:#fff; }
/* Inner zones mirror the catalog 3-col grid math: viewport - 60×2 wrap padding
   - 280 sidebar - 32 main padding = viewport - 432. Implemented as (100% - 312)
   inside the wrap (which already contributes 120 of padding). */
.single-product-wrap { padding:0 60px 0; }
.single-product-wrap > .product-zone,
.single-product-wrap > .product-tabs,
.single-product-wrap > .related-section { max-width:calc(100% - 312px); margin-inline:auto; }
/* Gallery locked at 624 max so the panel absorbs the extra width as the
   inner zone scales with the viewport. */
.product-zone { display:grid; grid-template-columns:minmax(0, 624px) 1fr; background:#fff; border-bottom:1px solid var(--border); }
.pz-gallery { padding:40px 40px 40px 60px; border-right:1px solid var(--border); }
.pz-panel   { padding:40px 60px 40px 40px; }
.related-section { padding:48px 0 80px; background:#fff; }


/* ═══════════════════════════════════════════════
   HOMEPAGE
═══════════════════════════════════════════════ */

/* HERO */
.hero-video {
  position:relative; min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.hero-poster-fallback {
  position:absolute; inset:0;
  background-image:url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?w=1920&h=1080&fit=crop&auto=format&q=88');
  background-size:cover; background-position:center;
}
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(160deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.48) 50%,rgba(0,0,0,.58) 100%);
}
.hero-glow {
  position:absolute; bottom:0; left:0; right:0; height:220px;
  background:linear-gradient(to top, rgba(230,51,41,.14), transparent);
  pointer-events:none;
}
.hero-content {
  position:relative; z-index:2; text-align:center;
  max-width:900px; padding:0 40px;
}
.hero-eyebrow {
  font-size:11px; font-weight:700; letter-spacing:4px; text-transform:uppercase;
  color:rgba(255,255,255,.6); margin-bottom:28px;
  opacity:0; animation:fadeUp .8s .2s ease forwards;
}
.hero-title {
  font-size:clamp(60px,9.5vw,120px); font-weight:900;
  line-height:.9; letter-spacing:-4px; color:#fff; margin-bottom:32px;
  opacity:0; animation:fadeUp .8s .35s ease forwards;
}
.hero-title .accent { color:var(--red); }
.hero-sub {
  font-size:18px; color:rgba(255,255,255,.72); line-height:1.65;
  max-width:520px; margin:0 auto 48px;
  opacity:0; animation:fadeUp .8s .5s ease forwards;
}
.hero-actions {
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  opacity:0; animation:fadeUp .8s .65s ease forwards;
}
.btn-primary {
  background:var(--red); color:#fff;
  font-family:'Onest',sans-serif; font-size:14px; font-weight:700;
  padding:16px 36px; border-radius:2px; border:none; cursor:pointer;
  text-decoration:none; letter-spacing:.3px;
  text-align:center; min-width:260px; box-sizing:border-box;
  transition:background .15s,transform .15s;
  animation:pulse 2.5s 2s ease-in-out infinite;
}
.btn-primary:hover { background:var(--red-dark); transform:translateY(-2px); }
.btn-ghost {
  background:transparent; color:#fff;
  font-family:'Onest',sans-serif; font-size:14px; font-weight:700;
  padding:16px 36px; border-radius:2px;
  border:1.5px solid rgba(255,255,255,.45);
  text-decoration:none; transition:border-color .2s,background .2s;
  text-align:center; min-width:260px; box-sizing:border-box;
}
.btn-ghost:hover { border-color:#fff; background:rgba(255,255,255,.08); }
.btn-outline {
  background:transparent; color:var(--black);
  font-family:'Onest',sans-serif; font-size:14px; font-weight:700;
  padding:15px 36px; border-radius:2px;
  border:1.5px solid var(--black);
  text-decoration:none; display:inline-block;
  transition:background .15s, color .15s;
}
.btn-outline:hover { background:var(--black); color:#fff; }
.scroll-hint {
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:rgba(255,255,255,.4); font-size:10px; letter-spacing:2px; text-transform:uppercase;
  opacity:0; animation:fadeIn 1s 1.4s ease forwards; z-index:2;
}
.scroll-arrow {
  width:20px; height:20px;
  border-right:1.5px solid rgba(255,255,255,.4);
  border-bottom:1.5px solid rgba(255,255,255,.4);
  transform:rotate(45deg);
  animation:bounce 1.6s ease-in-out infinite;
}

/* CATEGORIES */
.categories { padding:100px 60px; background:#fff; }
.section-eyebrow { font-size:11px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--red); margin-bottom:12px; }
.section-title { font-size:clamp(30px,4vw,52px); font-weight:900; letter-spacing:-1.5px; line-height:1.05; margin-bottom:48px; }
.cat-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
.cat-card { position:relative; overflow:hidden; cursor:pointer; border-radius:3px; background:#111; transition:transform .3s ease; aspect-ratio:1 / 1; }
.cat-card:hover { transform:scale(1.015); z-index:2; }
.cat-card:hover .cat-img { opacity:.55; transform:scale(1.04); }
.cat-card:hover .cat-ov { opacity:1; }
.cat-img { width:100%; height:100%; object-fit:cover; display:block; opacity:.72; transition:opacity .3s,transform .4s; }
.cat-ov { position:absolute; inset:0; background:rgba(230,51,41,.16); opacity:0; transition:opacity .3s; }
.cat-foot { position:absolute; bottom:0; left:0; right:0; padding:20px 24px; background:linear-gradient(to top,rgba(0,0,0,.9),transparent); }
.cat-name { font-size:16px; font-weight:800; color:#fff; letter-spacing:-.3px; }
.cat-cnt { font-size:12px; color:rgba(255,255,255,.5); margin-top:3px; }
.cat-more-wrap { display:flex; justify-content:center; margin-top:24px; }

/* HOW WE WORK */
.how-section { padding:100px 60px; background:var(--black); }
.how-section .section-title { color:#fff; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin-top:64px; position:relative; }
.steps::before {
  content:''; position:absolute;
  top:27px;
  left:84px;
  right:calc(25% - 28px);
  height:2px;
  background:repeating-linear-gradient(90deg,
    rgba(230,51,41,.55) 0px, rgba(230,51,41,.55) 10px,
    transparent 10px, transparent 20px);
  z-index:1;
}
.step { padding:0 28px; }
.step-num { width:56px; height:56px; border-radius:50%; border:2px solid var(--red); display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:900; color:var(--red); background:var(--black); position:relative; z-index:2; margin-bottom:24px; transition:background .25s,color .25s; }
.step:hover .step-num { background:var(--red); color:#fff; }
.step-icon { width:48px; height:48px; display:block; margin-bottom:20px; color:var(--red); }
.step-icon svg { width:48px; height:48px; display:block; }
.step-icon svg path[style*="stroke:#000000"],
.step-icon svg polyline[style*="stroke:#000000"],
.step-icon svg ellipse[style*="stroke:#000000"] { stroke:var(--red) !important; fill:none !important; }
.step-title { font-size:16px; font-weight:800; color:#fff; margin-bottom:10px; line-height:1.2; }
.step-desc { font-size:13px; color:rgba(255,255,255,.58); line-height:1.65; }

/* WHY CHOOSE US */
.why-section { padding:100px 60px; background:#fff; }
.why-grid { display:grid; grid-template-columns:1fr 1fr; margin-top:64px; }
.why-block { padding:44px 40px; border-top:2px solid var(--black); position:relative; overflow:hidden; opacity:0; transform:translateY(20px); transition:opacity .5s ease, transform .5s ease, background .25s ease; cursor:default; }
.why-block:nth-child(even) { border-left:1px solid var(--border); }
.why-block.visible { opacity:1; transform:translateY(0); }
.why-block::after { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--red); transform:scaleY(0); transform-origin:bottom center; transition:transform .35s ease; }
.why-block:hover::after { transform:scaleY(1); }
.why-block:hover { background:var(--bg); }
.why-ghost { position:absolute; top:12px; right:24px; font-size:100px; font-weight:900; color:var(--border); line-height:1; letter-spacing:-4px; pointer-events:none; z-index:0; transition:color .35s ease; }
.why-block:hover .why-ghost { color:rgba(230,51,41,.07); }
.why-content { position:relative; z-index:1; }
.why-num { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--red); margin-bottom:16px; }
.why-title { font-size:22px; font-weight:900; letter-spacing:-.5px; margin-bottom:12px; line-height:1.2; transition:color .25s ease; }
.why-block:hover .why-title { color:var(--red); }
.why-desc { font-size:14px; color:var(--gray); line-height:1.65; }

/* REVIEWS CAROUSEL (homepage) */
.reviews-section { padding:100px 60px; background:var(--bg); }
.reviews-carousel-wrap { position:relative; margin-top:56px; }
.reviews-carousel { overflow:hidden; }
.reviews-track { display:flex; gap:20px; transition:transform 0.4s cubic-bezier(.4,0,.2,1); }
.reviews-carousel .review-card { background:#fff; border:1px solid var(--border); border-radius:4px; padding:28px 28px 24px; position:relative; flex:0 0 calc((100% - 40px) / 3); min-width:0; }
@media (max-width:959px) { .reviews-carousel .review-card { flex:0 0 calc((100% - 20px) / 2); } }
@media (max-width:599px) { .reviews-carousel .review-card { flex:0 0 100%; } }
.review-card::before { content:'"'; position:absolute; top:14px; right:22px; font-size:80px; font-weight:900; color:var(--border); line-height:1; font-family:Georgia,serif; }
.review-stars { color:var(--red); font-size:14px; margin-bottom:14px; letter-spacing:2px; }
.review-text { font-size:14px; color:var(--black); line-height:1.7; margin-bottom:20px; }
.review-author { display:flex; align-items:center; gap:0; }
.review-name { font-size:13px; font-weight:700; }
.review-city { font-size:11px; color:var(--gray); margin-top:2px; }
.reviews-nav { display:flex; align-items:center; justify-content:center; margin-top:32px; }
.reviews-arrows { display:flex; gap:10px; }
.reviews-arrow { width:44px; height:44px; border:1px solid var(--border); border-radius:50%; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:18px; transition:background 0.2s, border-color 0.2s; }
.reviews-arrow:hover { background:var(--black); border-color:var(--black); color:#fff; }
.reviews-arrow:disabled { opacity:0.3; cursor:default; }
.reviews-arrow:disabled:hover { background:#fff; border-color:var(--border); color:inherit; }
.reviews-cta { margin-top:40px; text-align:center; }

/* FAQ */
.faq-section { padding:100px 60px; background:#fff; }
.faq-section .section-title,.faq-section .section-eyebrow { text-align:center; }
.faq-list { max-width:760px; margin:56px auto 0; }
.faq-item { background:var(--bg); border-top:1px solid var(--border); margin-bottom:2px; }
.faq-item:last-child { border-bottom:1px solid var(--border); }
.faq-item.open .faq-question { color:var(--red); }
.faq-question { font-size:15px; font-weight:700; padding:20px 24px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; transition:color .15s; user-select:none; }
.faq-question::after { content:'+'; font-size:22px; font-weight:300; color:var(--red); flex-shrink:0; margin-left:16px; transition:transform .2s; }
.faq-item.open .faq-question::after { transform:rotate(45deg); }
.faq-body { display:none; }
.faq-item.open .faq-body { display:block; }
.faq-answer { padding:0 24px 20px; font-size:14px; color:var(--gray); line-height:1.75; }

/* CONTACT */
.contact-section { padding:100px 60px; background:var(--black); position:relative; overflow:hidden; }
.contact-section::before { content:''; position:absolute; top:-80px; right:-80px; width:360px; height:360px; background:radial-gradient(circle,rgba(230,51,41,.18),transparent 65%); pointer-events:none; }
.contact-section::after  { content:''; position:absolute; bottom:-60px; left:8%; width:240px; height:240px; background:radial-gradient(circle,rgba(230,51,41,.08),transparent 65%); pointer-events:none; }
.contact-inner { max-width:640px; margin:0 auto; text-align:center; position:relative; z-index:2; }
.contact-eyebrow { font-size:11px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--red); margin-bottom:16px; }
.contact-title { font-size:clamp(30px,5vw,56px); font-weight:900; letter-spacing:-2px; color:#fff; line-height:1; margin-bottom:16px; }
.contact-sub { font-size:15px; color:#666; line-height:1.65; margin-bottom:48px; }
.contact-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-field { display:flex; flex-direction:column; gap:6px; }
.form-field.full { grid-column:span 2; }
.form-label { font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#555; text-align:left; }
.form-input,.form-textarea { font-family:'Onest',sans-serif; font-size:14px; color:#fff; background:rgba(255,255,255,.06); border:1px solid #2a2a2a; border-radius:2px; padding:13px 16px; transition:border-color .15s; outline:none; }
.form-input::placeholder,.form-textarea::placeholder { color:#444; }
.form-input:focus,.form-textarea:focus { border-color:var(--red); }
.form-textarea { min-height:100px; resize:vertical; }
.form-submit { grid-column:span 2; background:var(--red); color:#fff; font-family:'Onest',sans-serif; font-size:14px; font-weight:700; padding:16px; border:none; border-radius:2px; cursor:pointer; letter-spacing:.5px; transition:background .15s,transform .15s; }
.form-submit:hover { background:var(--red-dark); transform:translateY(-1px); }
.form-privacy { grid-column:span 2; display:flex; align-items:flex-start; gap:10px; margin-top:4px; }
.form-privacy input[type=checkbox] { appearance:none; -webkit-appearance:none; width:16px; height:16px; min-width:16px; border:1px solid #444; border-radius:2px; background:transparent; cursor:pointer; position:relative; top:1px; transition:border-color .15s, background .15s; }
.form-privacy input[type=checkbox]:checked { background:var(--red); border-color:var(--red); }
.form-privacy input[type=checkbox]:checked::after { content:''; position:absolute; left:4px; top:1px; width:5px; height:9px; border:2px solid #fff; border-top:none; border-left:none; transform:rotate(45deg); }
.form-privacy label { font-size:12px; color:#888; line-height:1.6; cursor:pointer; text-align:left; }
.form-privacy label a { color:#aaa; text-decoration:underline; }
.form-privacy label a:hover { color:#fff; }

/* Keyframe animations */
@keyframes fadeUp  { from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0}to{opacity:.8} }
@keyframes bounce  { 0%,100%{transform:rotate(45deg) translateY(0)}50%{transform:rotate(45deg) translateY(6px)} }
@keyframes pulse   { 0%,100%{box-shadow:0 0 0 0 rgba(230,51,41,0)}50%{box-shadow:0 0 0 10px rgba(230,51,41,.18)} }


/* ═══════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════ */
.cart-page { padding: 48px 60px 80px; }
.cart-page-title { font-size: 48px; font-weight: 900; letter-spacing: -1px; margin-bottom: 32px; position: relative; color: var(--black); }
.cart-page-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin-top: 18px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); padding: 0 12px 14px; text-align: left; border-bottom: 2px solid var(--border); }
.cart-table th.col-total { text-align: right; }
.cart-table td { padding: 20px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; color: var(--black); }
.cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; display: block; }
.cart-item-name { font-weight: 700; color: var(--black); text-decoration: none; display: block; margin-bottom: 4px; transition: color .15s; }
.cart-item-name:hover { color: var(--red); }
.cart-item-meta { font-size: 11px; color: var(--gray); }
.cart-item-price { font-weight: 700; white-space: nowrap; color: var(--black); }
.cart-item-price .woocommerce-Price-amount { color: var(--black); }
.cart-item-total { font-weight: 900; text-align: right; white-space: nowrap; color: var(--red); }
.cart-item-total .woocommerce-Price-amount { color: var(--red); }
.cart-item-remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #fff; border: 1px solid var(--border); border-radius: 50%; color: var(--gray); text-decoration: none; font-size: 0; line-height: 0; transition: color .15s, background .15s, border-color .15s; }
.cart-item-remove::before { content: ""; display: block; width: 16px; height: 16px; background-color: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat; }
.cart-item-remove:hover { color: #fff; background: var(--red); border-color: var(--red); }
.cart-qty-input { width: 60px; text-align: center; border: 1px solid var(--border); border-radius: 2px; padding: 6px; font-family: 'Onest', sans-serif; font-size: 14px; font-weight: 700; outline: none; }
.cart-qty-input:focus { border-color: var(--black); }

/* Plus/minus stepper widget used on /cart/ rows */
.cart-qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; min-height: 40px; }
.cart-qty-btn { width: 36px; background: var(--bg); border: none; font-family: 'Onest', sans-serif; font-size: 20px; font-weight: 300; line-height: 1; color: var(--black); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s; }
.cart-qty-btn:hover { background: var(--border); }
.cart-qty-stepper .cart-qty-input { width: 44px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0; padding: 0; text-align: center; font-family: 'Onest', sans-serif; font-size: 14px; font-weight: 700; background: #fff; outline: none; -moz-appearance: textfield; }
.cart-qty-stepper .cart-qty-input::-webkit-outer-spin-button,
.cart-qty-stepper .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-totals { background: #fff; border: 1px solid var(--border); border-radius: 2px; padding: 28px 28px 24px; position: sticky; top: 24px; }
.cart-totals-title { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--black); }
.cart-totals-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cart-totals-row:last-of-type { border-bottom: none; }
.cart-totals-label { color: var(--gray); }
.cart-totals-value { font-weight: 700; color: var(--black); }
.cart-totals-total .cart-totals-label { font-weight: 800; color: var(--black); font-size: 15px; }
.cart-totals-total .cart-totals-value { font-size: 20px; font-weight: 900; color: var(--red); }
.cart-shipping-note { font-size: 12px; color: var(--gray); line-height: 1.45; padding: 10px 12px; background: #f7f5f0; border-left: 2px solid var(--red); margin: 14px 0 0; }
.cart-checkout-btn { display: block; width: 100%; margin-top: 20px; padding: 16px; background: var(--red); color: #fff; text-align: center; text-decoration: none; font-family: 'Onest', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .5px; border-radius: 2px; transition: background .15s; }
.cart-checkout-btn:hover { background: var(--red-dark); }
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty p { font-size: 16px; color: var(--gray); margin-bottom: 24px; }
.cart-empty a { display: inline-block; padding: 14px 28px; background: var(--black); color: #fff; text-decoration: none; font-weight: 700; border-radius: 2px; transition: background .15s; }
.cart-empty a:hover { background: var(--red); }


/* ═══════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════ */
.checkout-page { padding: 48px 60px 80px; }
.checkout-page-title { font-size: 48px; font-weight: 900; letter-spacing: -1px; margin-bottom: 32px; position: relative; color: var(--black); }
.checkout-page-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin-top: 18px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }

.checkout-section-title { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--black); margin-bottom: 20px; }
.checkout-fields { display: flex; flex-direction: column; gap: 16px; }
.checkout-field { display: flex; flex-direction: column; gap: 6px; }
.checkout-field label, .woocommerce-checkout label { font-size: 12px; font-weight: 700; color: var(--black); }
.woocommerce-checkout .form-row { margin-bottom: 0; }
.woocommerce-checkout input[type=text],
.woocommerce-checkout input[type=email],
.woocommerce-checkout input[type=tel],
.woocommerce-checkout input[type=password],
.woocommerce-checkout select,
.woocommerce-checkout textarea { width: 100%; height: 44px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 2px; font-family: 'Onest', sans-serif; font-size: 14px; line-height: 1.4; color: var(--black); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.woocommerce-checkout textarea { height: auto; min-height: 88px; resize: vertical; }
.woocommerce-checkout select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,51,41,.08); }
.woocommerce-checkout .woocommerce-invalid input,
.woocommerce-checkout .woocommerce-invalid select { border-color: var(--red); }

/* WooCommerce enhances .state_select with Select2 — the native <select> is 1×1
   and the visible widget is .select2-selection. Style it to match our inputs. */
.woocommerce-checkout .select2-container--default .select2-selection--single { height: 44px; border: 1px solid var(--border); border-radius: 2px; background: #fff; box-sizing: border-box; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { height: 42px; line-height: 42px; padding: 0 36px 0 14px; color: var(--black); font-family: 'Onest', sans-serif; font-size: 14px; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--gray); }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; top: 0; }
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,51,41,.08); }
.select2-dropdown { border: 1px solid var(--border); border-radius: 2px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--red); }

.checkout-summary { background: #fff; border: 1px solid var(--border); border-radius: 2px; padding: 24px; }
.checkout-summary-items { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.checkout-summary-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-img { width: 56px; height: 42px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.checkout-summary-name { font-size: 13px; font-weight: 700; flex: 1; color: var(--black); line-height: 1.35; }
.checkout-summary-name span { display: block; font-size: 11px; font-weight: 400; color: var(--gray); }
.checkout-summary-price { font-size: 14px; font-weight: 900; color: var(--black); white-space: nowrap; }
.checkout-totals-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.checkout-totals-row span:first-child { color: var(--gray); }
.checkout-totals-row span:last-child { font-weight: 700; color: var(--black); }
.checkout-totals-row--final { border-bottom: none; padding-top: 14px; padding-bottom: 14px; font-size: 18px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.checkout-totals-row--final span:first-child { color: var(--black); }
.checkout-totals-row--final span:last-child { color: var(--red); font-size: 22px; font-weight: 900; }

/* WC payment block */
#payment { margin-top: 24px; }
#payment .payment_methods { list-style: none; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
#payment .payment_methods li { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
#payment .payment_methods li:last-child { border-bottom: none; }
#payment .payment_methods label { font-size: 14px; font-weight: 600; cursor: pointer; }
#payment .place-order { margin-top: 20px; }
#payment #place_order { width: 100%; padding: 16px; background: var(--red); color: #fff; font-family: 'Onest', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .5px; border: none; border-radius: 2px; cursor: pointer; transition: background .15s; }
#payment #place_order:hover { background: var(--red-dark); }

/* Checkout numbered section cards */
.checkout-section-card { background: #fff; border: 1px solid var(--border); border-radius: 2px; padding: 24px; margin-bottom: 12px; }
.checkout-section-card:last-child { margin-bottom: 0; }
.checkout-section-num { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }

/* Two-column field rows inside cards */
.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.checkout-field-row:last-child { margin-bottom: 0; }
.checkout-field-row .form-row { margin-bottom: 0; }
/* WooCommerce JS sets grid-column:span 2 on .form-row-wide — override inside our grid rows */
.checkout-field-row .form-row-wide { grid-column: span 1 !important; }

/* Spacing between standalone form-rows inside a card */
.checkout-section-card > .form-row { margin-bottom: 12px; }
.checkout-section-card > .form-row:last-child { margin-bottom: 0; }

/* Narrow postcode field */
.postcode-wrap { max-width: 200px; margin-bottom: 12px; }
.postcode-wrap .form-row { margin-bottom: 0; }

/* Payment section title in summary sidebar */
.checkout-payment-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--black); margin-top: 20px; margin-bottom: 8px; }
.checkout-summary #payment { margin-top: 0; }

/* Card 03 — order items table */
.checkout-order-table { width: 100%; border-collapse: collapse; }
.checkout-order-table thead th { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); text-align: left; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.checkout-order-table thead th.col-qty { text-align: center; }
.checkout-order-table thead th.col-unit-price,
.checkout-order-table thead th.col-price { text-align: right; }
.checkout-order-table tbody tr.checkout-order-row td { padding: 14px 0; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.checkout-order-table tbody tr.checkout-order-row:last-child td { border-bottom: none; }
.checkout-order-table .col-img { width: 80px; padding-right: 14px; }
.checkout-order-table .col-img img { display: block; width: 80px; height: 60px; object-fit: cover; border-radius: 2px; transition: opacity .15s; }
.checkout-order-table .col-img a:hover img { opacity: .85; }
.checkout-order-table .col-name a { color: var(--black); font-weight: 700; text-decoration: none; line-height: 1.35; transition: color .15s; }
.checkout-order-table .col-name a:hover { color: var(--red); }
.checkout-order-table .col-qty { width: 70px; text-align: center; font-weight: 700; color: var(--gray); white-space: nowrap; }
.checkout-order-table .col-unit-price { width: 110px; text-align: right; font-weight: 500; white-space: nowrap; padding-right: 14px; }
.checkout-order-table .col-price { width: 130px; text-align: right; font-weight: 900; white-space: nowrap; }

/* Place-order section: extra breathing room above the confirm button */
.woocommerce-checkout #payment .form-row.place-order { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 0; }
.woocommerce-checkout #payment .wc-terms-and-conditions { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--black); }
.woocommerce-checkout #payment .wc-terms-and-conditions input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 0; flex-shrink: 0; accent-color: var(--red); cursor: pointer; }
.woocommerce-checkout #payment .wc-terms-and-conditions a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.woocommerce-checkout #payment .wc-terms-and-conditions a:hover { color: var(--black); }

/* Shipping carrier selector */
.checkout-shipping-section { margin-top: 8px; }
#checkout_shipping_methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.checkout-shipping-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 2px; font-size: 13px; cursor: pointer; transition: border-color 0.15s ease; }
.checkout-shipping-option:hover { border-color: var(--black); }
.checkout-shipping-option input[type="radio"] { margin: 0; }
.checkout-shipping-option input[type="radio"]:checked + span { font-weight: 700; }
.checkout-shipping-empty { font-size: 12px; color: var(--gray); padding: 8px 0; margin: 0; }
.checkout-shipping-note { font-size: 11px; color: var(--gray); line-height: 1.45; padding: 10px 12px; background: #f7f5f0; border-left: 2px solid var(--red); margin: 0 0 12px; }


/* ═══════════════════════════════════════════════
   WC RESETS
═══════════════════════════════════════════════ */
.woocommerce-notices-wrapper { padding: 0 60px; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { border-top: 3px solid var(--red); background: #fff; padding: 14px 20px; font-size: 14px; margin-bottom: 0; list-style: none; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--red); }
.woocommerce-error::before { color: var(--red); }
/* Hide WC's auto-injected "View Cart" link after AJAX add — theme uses its own toast */
a.added_to_cart.wc-forward { display: none !important; }

/* Catalog — result count (WC outputs <p class="woocommerce-result-count">) */
p.woocommerce-result-count { margin: 0; font-size: 13px; color: var(--gray); }

/* Catalog — ordering select (WC outputs <form class="woocommerce-ordering"><select class="orderby">) */
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select.orderby { font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 600; color: var(--black); background: #fff; border: 1px solid var(--border); border-radius: 2px; padding: 8px 32px 8px 12px; cursor: pointer; outline: none; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; transition: border-color .15s; }
.woocommerce-ordering select.orderby:focus { border-color: var(--red); }

/* Catalog — sidebar filter widget wrapper (same as .filter-block) */
.filter-widget { margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 28px; }
.filter-widget:last-child { border-bottom: none; margin-bottom: 0; }

/* Catalog — WC product categories widget */
/* count is a sibling of <a>, not inside it — make <li> the flex row */
.filter-widget ul.product-categories { list-style: none; max-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.filter-widget ul.product-categories li.cat-item { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 2px; }
.filter-widget ul.product-categories li.cat-item > a { flex: 1; padding: 7px 10px; border-radius: 2px; font-size: 13px; font-weight: 700; color: var(--black); text-decoration: none; transition: background .15s, color .15s; }
.filter-widget ul.product-categories li.cat-item > a:hover,
.filter-widget ul.product-categories li.current-cat > a { background: rgba(230,51,41,.06); color: var(--red); }
.filter-widget ul.product-categories li.cat-item > .count { font-size: 11px; color: #bbb; font-weight: 400; padding-right: 10px; white-space: nowrap; }
.filter-widget ul.product-categories ul.children { width: 100%; list-style: none; padding-left: 12px; margin-top: 2px; }
.filter-widget ul.product-categories ul.children li { display: flex; align-items: center; }
.filter-widget ul.product-categories ul.children li a { flex: 1; font-size: 12px; color: var(--gray); text-decoration: none; padding: 5px 10px; border-radius: 2px; transition: background .15s, color .15s; }
.filter-widget ul.product-categories ul.children li .count { font-size: 11px; color: #bbb; padding-right: 8px; white-space: nowrap; }
.filter-widget ul.product-categories ul.children li a:hover { background: rgba(230,51,41,.06); color: var(--red); }
.filter-widget .product-categories > li.cat-item > .children { display:none; }
.filter-widget .product-categories > li.cat-item.cat-open > .children { display:block; }
.cat-toggle {
    width:24px; height:24px; min-width:24px; padding:0; margin-left:4px;
    background:#fff; border:1px solid var(--border); border-radius:50%;
    font-size:16px; font-weight:700; line-height:1; color:var(--black);
    cursor:pointer; flex-shrink:0;
    display:inline-flex; align-items:center; justify-content:center;
    transition:background .15s, color .15s, border-color .15s, transform .15s;
}
.cat-toggle:hover { background:var(--red); color:#fff; border-color:var(--red); }
.cat-toggle:focus-visible { outline:2px solid var(--red); outline-offset:2px; }
.cat-item.cat-open > .cat-toggle { background:var(--black); color:#fff; border-color:var(--black); }
.cat-item.cat-open > .cat-toggle:hover { background:var(--red); border-color:var(--red); }
.filter-widget .product-categories li.cat-item { display:flex; flex-wrap:wrap; align-items:center; }
.filter-widget .product-categories li.cat-item > a { flex:1; }
.filter-widget .product-categories li.cat-item > .children { width:100%; }

/* Catalog — WC layered nav (attribute filters) */
/* count is a sibling of <a> — make <li> the flex row */
.filter-widget ul.woocommerce-widget-layered-nav-list { list-style:none; display:flex; flex-direction:column; gap:2px; max-height:220px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
/* D3: per-widget search + show-more (.bb-attr-widget overrides the scroll) */
.bb-attr-widget ul.woocommerce-widget-layered-nav-list { max-height:none; overflow:visible; }
.bb-term-hidden { display:none !important; }
.bb-show-more-btn,
.bb-collapse-btn { background:none; border:none; padding:8px 10px 0; margin:4px 0 0; font-family:'Onest',sans-serif; font-size:12px; font-weight:700; color:var(--red); cursor:pointer; letter-spacing:.3px; text-decoration:underline; text-underline-offset:2px; text-align:left; }
.bb-show-more-btn:hover,
.bb-collapse-btn:hover { color:var(--black); }
.bb-filter-search-input { width:100%; padding:7px 10px; margin-bottom:8px; box-sizing:border-box; font-family:'Onest',sans-serif; font-size:13px; border:1px solid var(--border); border-radius:2px; background:#fff; outline:none; transition:border-color .15s; }
.bb-filter-search-input:focus { border-color:var(--red); }
/* E2: mini-cart hover dropdown (desktop only) */
.mini-cart-wrap { position:relative; }
.mini-cart-dropdown { position:absolute; top:100%; right:0; min-width:340px; max-width:400px; background:#fff; border:1px solid var(--border); border-radius:2px; box-shadow:0 12px 40px rgba(0,0,0,.12); padding:18px 20px 16px; margin-top:4px; opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .15s, visibility .15s, transform .15s; z-index:100; }
.mini-cart-wrap:hover .mini-cart-dropdown,
.mini-cart-wrap:focus-within .mini-cart-dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.mini-cart-dropdown::before { content:""; position:absolute; top:-10px; left:0; right:0; height:10px; } /* hover bridge */
.mini-cart-dropdown .woocommerce-mini-cart { list-style:none; margin:0 0 12px; padding:0; max-height:340px; overflow-y:auto; }
.mini-cart-dropdown .woocommerce-mini-cart__empty-message { font-size:14px; color:var(--gray); text-align:center; padding:16px 0; margin:0; }
.mini-cart-dropdown .mini_cart_item { display:flex; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); position:relative; }
.mini-cart-dropdown .mini_cart_item:last-child { border-bottom:none; }
.mini-cart-dropdown .mini_cart_item a:not(.remove) { display:flex; gap:12px; flex:1; text-decoration:none; color:var(--black); font-size:13px; line-height:1.4; }
.mini-cart-dropdown .mini_cart_item img { width:54px; height:54px; object-fit:cover; border-radius:2px; flex-shrink:0; }
.mini-cart-dropdown .mini_cart_item .quantity { display:block; margin-top:4px; font-size:12px; color:var(--gray); font-weight:700; }
.mini-cart-dropdown .mini_cart_item .quantity .amount { color:var(--red); font-weight:800; }
.mini-cart-dropdown .mini_cart_item a.remove {
    position:absolute; right:0; bottom:8px; width:22px; height:22px;
    display:inline-flex; align-items:center; justify-content:center;
    color:var(--gray); background:#fff; border:1px solid var(--border); border-radius:50%; text-decoration:none;
    font-size:0; line-height:0;
    transition:color .15s, background .15s, border-color .15s;
}
.mini-cart-dropdown .mini_cart_item a.remove::before {
    content:""; display:block; width:13px; height:13px; background-color:currentColor;
    -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
            mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") center/contain no-repeat;
}
.mini-cart-dropdown .mini_cart_item a.remove:hover { color:#fff; background:var(--red); border-color:var(--red); }
.mini-cart-dropdown .woocommerce-mini-cart__total { display:flex; justify-content:space-between; align-items:center; padding:10px 0; margin-bottom:10px; font-size:13px; font-weight:800; }
.mini-cart-dropdown .woocommerce-mini-cart__total .amount { color:var(--red); font-size:16px; font-weight:900; }
.mini-cart-dropdown .quantity,
.mini-cart-dropdown .quantity .amount,
.mini-cart-dropdown .woocommerce-mini-cart__total .amount { border:0; background:none; box-shadow:none; }
.mini-cart-dropdown .woocommerce-mini-cart__buttons { display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none; }
.mini-cart-dropdown .woocommerce-mini-cart__buttons li { margin:0; }
.mini-cart-dropdown .woocommerce-mini-cart__buttons .button { display:block; padding:12px; text-align:center; text-decoration:none; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; border-radius:2px; transition:background .15s; }
.mini-cart-dropdown .woocommerce-mini-cart__buttons .wc-forward:not(.checkout) { background:var(--black); color:#fff; }
.mini-cart-dropdown .woocommerce-mini-cart__buttons .checkout { background:var(--red); color:#fff; }
.mini-cart-dropdown .woocommerce-mini-cart__buttons .wc-forward:hover { background:var(--red); }
.mini-cart-dropdown .woocommerce-mini-cart__buttons .checkout:hover { background:var(--red-dark); }
@media (max-width:768px) { .mini-cart-dropdown { display:none !important; } }

/* D4: live filter-count preview (above Apply button) */
.bb-filter-count { padding:12px 14px; margin:16px 0 8px; background:rgba(230,51,41,.06); border:1px solid rgba(230,51,41,.2); border-radius:2px; font-size:13px; line-height:1.5; color:var(--black); }
.bb-filter-count[hidden] { display:none; }
.bb-filter-count strong { font-weight:800; }
.bb-filter-count a { color:var(--red); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.bb-filter-count a:hover { color:var(--black); }
.bb-filter-count-loading { color:var(--gray); font-style:italic; }
.bb-filter-count-empty { color:var(--gray); }
.filter-widget .wc-layered-nav-term { display:flex; align-items:center; }
.filter-widget .wc-layered-nav-term a { flex:1; display:flex; align-items:center; gap:8px; font-size:13px; color:var(--black); text-decoration:none; padding:5px 10px; border-radius:2px; transition:background .15s,color .15s; }
.filter-widget .wc-layered-nav-term a::before { content:''; display:inline-block; width:16px; height:16px; min-width:16px; border:1px solid #ccc; border-radius:2px; background:#fff; flex-shrink:0; transition:background .15s,border-color .15s; }
.filter-widget .wc-layered-nav-term a:hover { background:rgba(230,51,41,.06); color:var(--red); }
.filter-widget .wc-layered-nav-term a:hover::before { border-color:var(--red); }
.filter-widget .wc-layered-nav-term.chosen a { background:rgba(230,51,41,.06); color:var(--red); font-weight:700; }
.filter-widget .wc-layered-nav-term.chosen a::before { background:var(--red); border-color:var(--red); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l4 4 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size:cover; }
.filter-widget .wc-layered-nav-term .count { font-size:11px; color:#bbb; padding-right:10px; white-space:nowrap; }

/* Catalog — WC price filter (slider hidden; min/max inputs only) */
.filter-widget .price_slider_wrapper { margin-top: 4px; }
.filter-widget .price_slider,
.filter-widget .ui-slider,
.filter-widget .price_slider_amount .button,
.filter-widget .price_slider_amount > .price_label { display: none !important; }
.filter-widget .price_slider_amount { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.filter-widget .price_slider_amount input[type="text"] { width: 100%; padding: 8px 10px; font-family: 'Onest', sans-serif; font-size: 13px; border: 1px solid var(--border); border-radius: 2px; outline: none; background: #fff; transition: border-color .15s; -moz-appearance: textfield; box-sizing: border-box; text-align: right; }
.filter-widget .price_slider_amount input[type="text"]:focus { border-color: var(--red); }
.filter-widget .price_slider_amount input[type="text"]::-webkit-outer-spin-button,
.filter-widget .price_slider_amount input[type="text"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sidebar-apply { padding:16px 0 0; }
.sidebar-apply-btn { display:block; width:100%; padding:10px 16px; font-family:'Onest',sans-serif; font-size:12px; font-weight:700; letter-spacing:.5px; text-align:center; border:none; border-radius:2px; cursor:pointer; background:var(--black); color:#fff; transition:background .15s; }
.sidebar-apply-btn:hover { background:var(--red); }
.sidebar-reset { padding:8px 0 8px; }
.sidebar-reset-btn { display:block; width:100%; padding:10px 16px; font-family:'Onest',sans-serif; font-size:12px; font-weight:700; letter-spacing:.5px; text-align:center; text-decoration:none; color:var(--gray); border:1px solid var(--border); border-radius:2px; transition:color .15s,border-color .15s; }
.sidebar-reset-btn:hover { color:var(--red); border-color:var(--red); }
.filter-widget .wc-layered-nav-term.pending a { background:rgba(230,51,41,.08); color:var(--red); }
.filter-widget .wc-layered-nav-term.pending a::before { background:var(--red); border-color:var(--red); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l4 4 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size:cover; }
.filter-widget .wc-layered-nav-term.bb-term-disabled { opacity:.35; pointer-events:none; }
.filter-widget .wc-layered-nav-term.bb-term-disabled .count { color:var(--gray); }

/* Catalog — WC pagination */
.pagination-wrap { margin-top: 48px; }
.woocommerce-pagination ul.page-numbers { display: flex; align-items: center; justify-content: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.woocommerce-pagination ul.page-numbers li { display: flex; }
.woocommerce-pagination ul.page-numbers a.page-numbers,
.woocommerce-pagination ul.page-numbers span.page-numbers:not(.dots) { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 700; border: 1px solid var(--border); border-radius: 2px; background: #fff; cursor: pointer; color: var(--black); text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.woocommerce-pagination ul.page-numbers a.page-numbers:hover { border-color: var(--black); }
.woocommerce-pagination ul.page-numbers span.current { background: var(--black); border-color: var(--black); color: #fff; }
.woocommerce-pagination ul.page-numbers span.dots { color: var(--gray); font-size: 14px; padding: 0 4px; width: auto; border: none; background: none; }
.woocommerce-pagination ul.page-numbers .next, .woocommerce-pagination ul.page-numbers .prev { color: var(--gray); font-size: 16px; }
.woocommerce-pagination ul.page-numbers .next:hover, .woocommerce-pagination ul.page-numbers .prev:hover { color: #fff; }
.woocommerce-pagination ul.page-numbers a.page-numbers.next,
.woocommerce-pagination ul.page-numbers a.page-numbers.prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--black);
    transition: background .2s, border-color .2s, color .2s;
}
.woocommerce-pagination ul.page-numbers a.page-numbers.next:hover,
.woocommerce-pagination ul.page-numbers a.page-numbers.prev:hover {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}

/* ── Static page template ───────────────────────────────── */
.page-wrap { max-width:900px; margin:0 auto; padding:40px 24px 80px; }
.page-title { font-size:32px; font-weight:900; margin-bottom:32px; letter-spacing:-.5px; }
.page-wrap p { font-size:15px; line-height:1.8; margin-bottom:16px; }
.page-wrap h2 { font-size:22px; font-weight:800; margin:40px 0 16px; }
.page-wrap ul, .page-wrap ol { padding-left:20px; margin-bottom:16px; }

/* ── Content pages (.content-page--<slug>) ──────────────── */
/* Applied to about, contacts, delivery, payment, faq, privacy, terms */
.content-page { max-width:980px; padding:56px 32px 96px; }
.content-page .page-title { font-size:48px; font-weight:900; letter-spacing:-1px; margin-bottom:8px; position:relative; }
.content-page .page-title::after { content:""; display:block; width:64px; height:4px; background:var(--red); margin-top:18px; }
.content-page > p:first-of-type { font-size:18px; line-height:1.7; color:var(--gray); margin-bottom:32px; }
.content-page h2 { font-size:24px; font-weight:800; margin:56px 0 18px; padding-left:18px; border-left:4px solid var(--red); line-height:1.3; }
.content-page h3 { font-size:18px; font-weight:700; margin:32px 0 12px; }
.content-page p { font-size:16px; line-height:1.75; margin-bottom:18px; color:#222; }
.content-page strong { color:var(--black); font-weight:700; }
.content-page ul, .content-page ol { padding-left:24px; margin:0 0 24px; }
.content-page ul li, .content-page ol li { font-size:16px; line-height:1.75; margin-bottom:10px; }
.content-page ul li::marker { color:var(--red); }
.content-page a:not(.button):not(.action-btn) { color:var(--red); text-decoration:underline; text-underline-offset:2px; }
.content-page a:not(.button):not(.action-btn):hover { color:var(--black); }

/* About: tighter rhythm, lead paragraph emphasised */
.content-page--about > p:first-of-type { font-size:20px; color:var(--black); font-weight:500; }

/* About: feature tiles (replaces 4 bold-paragraphs in "Почему профессионалы выбирают нас") */
.content-page--about .about-features { margin: 24px 0 8px; }
.content-page--about .about-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.content-page--about .about-feature { padding: 32px 28px; background: #fff; border: 1px solid var(--border); border-radius: 4px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.content-page--about .about-feature:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.content-page--about .about-feature-icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; background: rgba(230,51,41,.08); color: var(--red); border-radius: 50%; margin-bottom: 20px; }
.content-page--about .about-feature-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.content-page--about .about-feature-title { font-size: 22px; font-weight: 900; letter-spacing: -.3px; margin: 0 0 10px; line-height: 1.25; color: var(--black); }
.content-page--about .about-feature-desc { font-size: 14px; line-height: 1.6; color: var(--gray); margin: 0; }
@media (max-width: 760px) {
    .content-page--about .about-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .content-page--about .about-feature { padding: 24px 22px; }
}

/* Contacts: form gets card treatment, contact-info paragraphs grouped via h2 + immediate siblings */
.content-page--contacts h2 + p { font-size:16px; }
.content-page--contacts .fluentform {
    background:#fff;
    border:1px solid var(--border);
    border-radius:4px;
    padding:32px 32px 24px;
    box-shadow:0 4px 24px rgba(0,0,0,.04);
    margin-top:8px;
}
.content-page--contacts .fluentform .ff-el-input--label label,
.content-page--contacts .fluentform label { font-size:13px !important; font-weight:600; color:var(--gray); }
/* 2-col layout: ФИО | Компания, Email | Телефон. Other rows span full width. */
.content-page--contacts .fluentform fieldset { display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; }
.content-page--contacts .fluentform fieldset > * { grid-column:1 / -1; }
.content-page--contacts .fluentform fieldset > .ff-el-group.bb-half { grid-column:span 1; }
.content-page--contacts .fluentform fieldset > legend.ff_screen_reader_title { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; display:block !important; }
@media (max-width:600px) { .content-page--contacts .fluentform fieldset { grid-template-columns:1fr; } }
/* GDPR consent checkbox styling — make the row read like a single inline element */
.content-page--contacts .fluentform .ff-el-group.bb-consent { margin-top:4px; }
.content-page--contacts .fluentform .bb-consent .ff-el-form-check label,
.content-page--contacts .fluentform .bb-consent .ff_tc_label { font-size:13px; line-height:1.5; color:var(--black); }
.content-page--contacts .fluentform .bb-consent input[type="checkbox"] { accent-color:var(--red); margin-right:8px; }

/* Delivery + Payment: visual lists with red accents */
.content-page--delivery ul, .content-page--payment ul { list-style:none; padding-left:0; }
.content-page--delivery ul li, .content-page--payment ul li {
    position:relative; padding-left:28px; margin-bottom:14px;
}
.content-page--delivery ul li::before, .content-page--payment ul li::before {
    content:""; position:absolute; left:0; top:11px; width:10px; height:10px;
    background:var(--red); border-radius:1px;
}
.content-page--delivery ol, .content-page--payment ol { counter-reset:bb-step; list-style:none; padding-left:0; }
.content-page--delivery ol li, .content-page--payment ol li {
    counter-increment:bb-step; position:relative; padding-left:48px; margin-bottom:18px; min-height:36px;
}
.content-page--delivery ol li::before, .content-page--payment ol li::before {
    content:counter(bb-step); position:absolute; left:0; top:-2px;
    width:32px; height:32px; line-height:32px; text-align:center;
    background:var(--black); color:#fff; font-weight:800; font-size:14px;
    border-radius:50%;
}

/* FAQ: keep accordion style from iter-2; add subtle space between question groups */
.content-page--faq h2 { margin-top:64px; }

/* Privacy + Terms: legal-document tight layout */
.content-page--privacy h2, .content-page--terms h2 {
    font-size:20px; margin:40px 0 14px; border-left-width:3px;
}
.content-page--privacy p, .content-page--terms p { font-size:15px; line-height:1.7; }
.content-page--privacy h3, .content-page--terms h3 { font-size:16px; margin:24px 0 10px; }

@media (max-width:760px) {
    .content-page { padding:32px 20px 64px; }
    .content-page .page-title { font-size:34px; }
    .content-page > p:first-of-type { font-size:16px; }
    .content-page h2 { font-size:20px; margin:40px 0 14px; }
    .content-page--contacts .fluentform { padding:20px; }
}

/* ── My Account ───────────────────────────────────────────── */
.myaccount-page { max-width:1200px; margin:0 auto; padding:40px 24px 80px; }
.myaccount-layout { display:grid; grid-template-columns:220px 1fr; gap:48px; }
.myaccount-nav { display:flex; flex-direction:column; gap:4px; }
.myaccount-nav-item { padding:10px 16px; font-size:14px; font-weight:600; color:var(--black); text-decoration:none; border-radius:2px; transition:background .15s,color .15s; }
.myaccount-nav-item:hover, .myaccount-nav-item.active { background:rgba(230,51,41,.06); color:var(--red); }
.myaccount-content .woocommerce { width:100%; }
.login-register-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; max-width:900px; margin:0 auto; }
.login-box .login-title, .register-box .login-title { font-size:22px; font-weight:800; margin-bottom:24px; }
.login-register-layout .form-row { margin-bottom:16px; }
.login-register-layout .form-row label { display:block; font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--gray); margin-bottom:6px; }
.login-register-layout .form-row input { width:100%; padding:10px 14px; font-family:'Onest',sans-serif; font-size:14px; border:1px solid var(--border); border-radius:2px; outline:none; background:#fff; transition:border-color .15s; box-sizing:border-box; }
.login-register-layout .form-row input:focus { border-color:var(--red); }
.login-register-layout .button { width:100%; padding:12px; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; letter-spacing:.5px; background:var(--black); color:#fff; border:none; border-radius:2px; cursor:pointer; transition:background .15s; margin-top:8px; }
.login-register-layout .button:hover { background:var(--red); }
.login-register-layout .form-row label.woocommerce-form-login__rememberme { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:13px; font-weight:500; letter-spacing:0; text-transform:none; color:var(--black); cursor:pointer; }
.login-register-layout .form-row label.woocommerce-form-login__rememberme input[type="checkbox"] { width:16px; height:16px; min-width:16px; margin:0; padding:0; flex:0 0 auto; accent-color:var(--red); cursor:pointer; }
.login-register-layout .form-row label.woocommerce-form-login__rememberme span { font-size:13px; font-weight:500; letter-spacing:0; text-transform:none; color:var(--black); margin:0; }
.login-register-layout .register-password-note { font-size:12px; color:var(--gray); line-height:1.5; margin:0 0 16px; }
@media (max-width:700px) { .login-register-layout { grid-template-columns:1fr; gap:40px; } .myaccount-layout { grid-template-columns:1fr; gap:24px; } }

/* ── My Account: endpoint styling ─────────────────────────── */
/* Sidebar polish: active state gets a red left rule + remove rounded pill. */
.myaccount-nav-item { position:relative; padding:12px 16px 12px 18px; font-size:14px; font-weight:600; color:var(--black); border-radius:0; border-left:2px solid transparent; }
.myaccount-nav-item:hover { background:rgba(230,51,41,.04); color:var(--red); }
.myaccount-nav-item.active { background:rgba(230,51,41,.06); color:var(--red); border-left-color:var(--red); }

/* Content shell — strip WooCommerce padding, give it brand rhythm. */
.myaccount-content { color:var(--black); }
.myaccount-content > h1, .myaccount-content > h2, .myaccount-content h2.woocommerce-column__title, .myaccount-content .woocommerce-MyAccount-content h2 { font-size:24px; font-weight:800; letter-spacing:-.01em; margin:0 0 20px; }
.myaccount-content h3 { font-size:16px; font-weight:700; margin:24px 0 12px; }
.myaccount-content p { font-size:14px; line-height:1.6; color:var(--black); }
.myaccount-content a:not(.btn):not(.account-tile):not(.address-card-header a):not(.woocommerce-orders-table a):not(.shop_table a):not(.woocommerce-MyAccount-orders a):not(.button):not(.woocommerce-button) { color:var(--red); text-decoration:underline; text-underline-offset:2px; }
.myaccount-content a:not(.btn):not(.account-tile):not(.address-card-header a):not(.woocommerce-orders-table a):not(.shop_table a):not(.woocommerce-MyAccount-orders a):not(.button):not(.woocommerce-button):hover { color:var(--black); }
.account-section-intro { font-size:14px; color:var(--gray); margin:0 0 24px; max-width:60ch; }

/* Dashboard ─ greeting + quick-action tile grid. */
.account-dashboard .account-greeting { font-size:28px; font-weight:800; letter-spacing:-.01em; margin:0 0 6px; }
.account-greeting-sub { font-size:14px; color:var(--gray); margin:0 0 28px; }
.account-tiles { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.account-tile { display:flex; flex-direction:column; gap:8px; padding:24px; background:#fff; border:1px solid var(--border); border-radius:2px; color:var(--black); text-decoration:none; transition:border-color .15s,box-shadow .15s,transform .15s; }
.account-tile:hover { border-color:var(--black); box-shadow:0 6px 16px rgba(0,0,0,.06); transform:translateY(-1px); }
.account-tile-icon { display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; background:var(--bg-soft); border-radius:2px; color:var(--black); margin-bottom:6px; }
.account-tile:hover .account-tile-icon { background:var(--red); color:#fff; }
.account-tile-title { font-size:16px; font-weight:700; }
.account-tile-desc { font-size:13px; color:var(--gray); }

/* Orders table — borderless thead, brand cells, status pills. */
.myaccount-content .woocommerce-orders-table { width:100%; border-collapse:collapse; margin:0 0 24px; font-size:14px; }
.myaccount-content .woocommerce-orders-table thead th { padding:0 12px 12px; font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--gray); text-align:left; border-bottom:1px solid var(--border); }
.myaccount-content .woocommerce-orders-table tbody td { padding:18px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
.myaccount-content .woocommerce-orders-table tbody tr:hover { background:var(--bg-soft); }
.myaccount-content .woocommerce-orders-table__cell-order-number a { color:var(--black); text-decoration:none; font-weight:700; }
.myaccount-content .woocommerce-orders-table__cell-order-number a:hover { color:var(--red); }
.myaccount-content .woocommerce-orders-table__cell-order-status { font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; }
.myaccount-content .woocommerce-orders-table__cell-order-status::first-line { line-height:1; }
.myaccount-content .woocommerce-orders-table__cell-order-status mark,
.myaccount-content mark.order-status { display:inline-block; padding:4px 10px; background:#F1F1F1; color:var(--black); border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; }
.myaccount-content mark.status-processing { background:#FFE5E3; color:#A6201A; }
.myaccount-content mark.status-completed { background:#E6F4EA; color:#1F6B33; }
.myaccount-content mark.status-on-hold,
.myaccount-content mark.status-pending { background:#FFF4D6; color:#7A5A0E; }
.myaccount-content mark.status-cancelled,
.myaccount-content mark.status-failed,
.myaccount-content mark.status-refunded { background:#EFEFEF; color:var(--gray); }
.myaccount-content .woocommerce-orders-table__cell-order-actions { text-align:right; }
.myaccount-content .woocommerce-orders-table__cell-order-actions .button,
.myaccount-content .woocommerce-orders-table__cell-order-actions .woocommerce-button { display:inline-block; padding:8px 14px; margin-left:6px; font-family:'Onest',sans-serif; font-size:12px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; background:transparent; color:var(--black); border:1.5px solid var(--black); border-radius:2px; text-decoration:none; cursor:pointer; transition:background .15s,color .15s; }
.myaccount-content .woocommerce-orders-table__cell-order-actions .button:hover,
.myaccount-content .woocommerce-orders-table__cell-order-actions .woocommerce-button:hover { background:var(--black); color:#fff; }

.myaccount-content .woocommerce-Message,
.myaccount-content .woocommerce-info,
.myaccount-content .woocommerce-notice { padding:20px 24px; background:#fff; border:1px solid var(--border); border-left:3px solid var(--red); border-radius:2px; margin:0 0 20px; font-size:14px; color:var(--black); display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.myaccount-content .woocommerce-Message .button,
.myaccount-content .woocommerce-info .button { display:inline-block; padding:10px 18px; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; background:var(--red); color:#fff; border:none; border-radius:2px; text-decoration:none; cursor:pointer; transition:background .15s; margin-left:auto; }
.myaccount-content .woocommerce-Message .button:hover,
.myaccount-content .woocommerce-info .button:hover { background:var(--black); }

.myaccount-content .woocommerce-pagination { display:flex; gap:6px; margin-top:24px; }
.myaccount-content .woocommerce-pagination ul.page-numbers { display:flex; gap:6px; list-style:none; padding:0; margin:0; }
.myaccount-content .woocommerce-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 10px; font-size:13px; font-weight:700; color:var(--black); background:#fff; border:1px solid var(--border); border-radius:2px; text-decoration:none; }
.myaccount-content .woocommerce-pagination .page-numbers.current,
.myaccount-content .woocommerce-pagination .page-numbers:hover { background:var(--black); color:#fff; border-color:var(--black); }

/* View order — section spacing, second pass on the items table. */
.myaccount-content .woocommerce-order-details,
.myaccount-content .woocommerce-customer-details { margin:0 0 32px; }
.myaccount-content .woocommerce-order-details__title,
.myaccount-content .woocommerce-column__title { font-size:18px; font-weight:800; margin:0 0 16px; }
.myaccount-content .woocommerce-table--order-details { width:100%; border-collapse:collapse; font-size:14px; margin:0 0 24px; }
.myaccount-content .woocommerce-table--order-details thead th { padding:0 12px 12px; font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--gray); text-align:left; border-bottom:1px solid var(--border); }
.myaccount-content .woocommerce-table--order-details tbody td,
.myaccount-content .woocommerce-table--order-details tfoot td,
.myaccount-content .woocommerce-table--order-details tfoot th { padding:14px 12px; border-bottom:1px solid var(--border); }
.myaccount-content .woocommerce-table--order-details tfoot th { text-align:right; font-weight:700; }
.myaccount-content .woocommerce-table--order-details a { color:var(--black); text-decoration:none; }
.myaccount-content .woocommerce-table--order-details a:hover { color:var(--red); }
.myaccount-content .woocommerce-customer-details address { font-style:normal; font-size:14px; line-height:1.6; padding:20px; background:var(--bg-soft); border-radius:2px; }
.myaccount-content .woocommerce-columns--addresses { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0; padding:0; list-style:none; }
.myaccount-content .woocommerce-columns--addresses .woocommerce-column { padding:0; }

/* Address cards (my-address.php override). */
.address-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; }
.address-card { padding:24px; background:#fff; border:1px solid var(--border); border-radius:2px; }
.address-card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.address-card-title { font-size:14px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--gray); margin:0; }
.address-card-body { font-style:normal; font-size:14px; line-height:1.7; color:var(--black); }
.address-card-empty { font-size:14px; color:var(--gray); margin:0; }
.btn.btn-sm { padding:8px 14px; font-size:11px; }

/* Edit address + Edit account forms. */
.myaccount-content form .form-row { display:flex; flex-direction:column; margin:0 0 16px; }
.myaccount-content form .form-row-first,
.myaccount-content form .form-row-last { display:inline-flex; flex-direction:column; vertical-align:top; }
.myaccount-content form .form-row label { font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--gray); margin-bottom:6px; }
.myaccount-content form .form-row .required { color:var(--red); text-decoration:none; }
.myaccount-content form .form-row input.input-text,
.myaccount-content form .form-row textarea,
.myaccount-content form .form-row select,
.myaccount-content form .woocommerce-Input { width:100%; min-height:44px; padding:11px 14px; font-family:'Onest',sans-serif; font-size:14px; color:var(--black); background:#fff; border:1px solid var(--border); border-radius:2px; outline:none; transition:border-color .15s; box-sizing:border-box; }
.myaccount-content form .form-row textarea { min-height:96px; resize:vertical; }
.myaccount-content form .form-row input.input-text:focus,
.myaccount-content form .form-row textarea:focus,
.myaccount-content form .form-row select:focus,
.myaccount-content form .woocommerce-Input:focus { border-color:var(--red); }
.myaccount-content form .select2-container .select2-selection--single { height:44px; border:1px solid var(--border); border-radius:2px; }
.myaccount-content form .select2-container .select2-selection--single .select2-selection__rendered { line-height:42px; padding-left:14px; color:var(--black); font-size:14px; }
.myaccount-content form .select2-container .select2-selection--single .select2-selection__arrow { height:42px; }
.myaccount-content form fieldset { border:1px solid var(--border); border-radius:2px; padding:20px; margin:24px 0; }
.myaccount-content form fieldset legend { padding:0 8px; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--gray); }
.myaccount-content form .woocommerce-form__label-for-checkbox { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--black); }
.myaccount-content .form-row-wide,
.myaccount-content p.form-row { width:100%; }
.myaccount-content .woocommerce-address-fields__field-wrapper,
.myaccount-content .woocommerce-EditAccountForm { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.myaccount-content .woocommerce-address-fields__field-wrapper .form-row-wide,
.myaccount-content .woocommerce-EditAccountForm .form-row-wide,
.myaccount-content .woocommerce-EditAccountForm fieldset { grid-column:1 / -1; }

.myaccount-content form .button,
.myaccount-content form button[type="submit"] { display:inline-block; padding:12px 24px; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; background:var(--red); color:#fff; border:none; border-radius:2px; cursor:pointer; transition:background .15s; }
.myaccount-content form .button:hover,
.myaccount-content form button[type="submit"]:hover { background:var(--black); }

/* Payment methods empty state + saved card tiles. */
.myaccount-content .woocommerce-account-payment-methods { width:100%; border-collapse:collapse; margin:0 0 24px; font-size:14px; }
.myaccount-content .woocommerce-account-payment-methods thead th { padding:0 12px 12px; font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--gray); text-align:left; border-bottom:1px solid var(--border); }
.myaccount-content .woocommerce-account-payment-methods tbody td { padding:18px 12px; border-bottom:1px solid var(--border); }
.myaccount-content .woocommerce-Button--add-payment-method,
.myaccount-content a.button[href*="add-payment-method"] { display:inline-block; padding:12px 24px; font-family:'Onest',sans-serif; font-size:13px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; background:var(--red); color:#fff; border:none; border-radius:2px; cursor:pointer; transition:background .15s; text-decoration:none; }
.myaccount-content .woocommerce-Button--add-payment-method:hover,
.myaccount-content a.button[href*="add-payment-method"]:hover { background:var(--black); }

/* Mobile: stack everything, convert orders table to cards. */
@media (max-width:700px) {
  .myaccount-page { padding:24px 16px 60px; }
  .myaccount-nav { flex-direction:row; gap:0; overflow-x:auto; margin:0 -16px 24px; padding:0 16px; border-bottom:1px solid var(--border); -webkit-overflow-scrolling:touch; }
  .myaccount-nav::-webkit-scrollbar { display:none; }
  .myaccount-nav-item { flex:0 0 auto; padding:14px 12px; border-left:none; border-bottom:2px solid transparent; border-radius:0; }
  .myaccount-nav-item.active { border-left:none; border-bottom-color:var(--red); background:transparent; }
  .myaccount-nav-item:hover { background:transparent; }

  .account-dashboard .account-greeting { font-size:22px; }
  .account-tiles { grid-template-columns:1fr; gap:12px; }
  .account-tile { padding:18px; }

  .address-grid { grid-template-columns:1fr; }
  .myaccount-content .woocommerce-columns--addresses { grid-template-columns:1fr; }
  .myaccount-content .woocommerce-address-fields__field-wrapper,
  .myaccount-content .woocommerce-EditAccountForm { grid-template-columns:1fr; }

  .myaccount-content .woocommerce-orders-table thead { position:absolute; left:-9999px; }
  .myaccount-content .woocommerce-orders-table,
  .myaccount-content .woocommerce-orders-table tbody,
  .myaccount-content .woocommerce-orders-table tr,
  .myaccount-content .woocommerce-orders-table td { display:block; width:100%; }
  .myaccount-content .woocommerce-orders-table tr { border:1px solid var(--border); border-radius:2px; padding:14px; margin-bottom:12px; }
  .myaccount-content .woocommerce-orders-table td { padding:6px 0; border:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .myaccount-content .woocommerce-orders-table td::before { content:attr(data-title); font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--gray); flex:0 0 auto; }
  .myaccount-content .woocommerce-orders-table__cell-order-actions { justify-content:flex-end !important; padding-top:10px !important; border-top:1px solid var(--border) !important; margin-top:6px; }
  .myaccount-content .woocommerce-orders-table__cell-order-actions::before { display:none; }

  .myaccount-content .woocommerce-table--order-details thead { display:none; }
  .myaccount-content .woocommerce-table--order-details,
  .myaccount-content .woocommerce-table--order-details tbody,
  .myaccount-content .woocommerce-table--order-details tfoot,
  .myaccount-content .woocommerce-table--order-details tr,
  .myaccount-content .woocommerce-table--order-details td,
  .myaccount-content .woocommerce-table--order-details th { display:block; width:100%; }
  .myaccount-content .woocommerce-table--order-details tr { padding:12px 0; border-bottom:1px solid var(--border); }
  .myaccount-content .woocommerce-table--order-details td,
  .myaccount-content .woocommerce-table--order-details th { padding:4px 0; border:none; text-align:left; }
}

/* ── News / Blog ──────────────────────────────────────────── */
.news-page { max-width:1200px; margin:0 auto; padding:40px 24px 80px; }
.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:32px; }
.news-card { border:1px solid var(--border); border-radius:2px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s; }
.news-card:hover { box-shadow:0 8px 32px rgba(0,0,0,.08); }
.news-card-img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.news-card-body { padding:20px; display:flex; flex-direction:column; flex:1; }
.news-card-date { font-size:11px; color:var(--gray); margin-bottom:8px; }
.news-card-title { font-size:16px; font-weight:800; color:var(--black); text-decoration:none; margin-bottom:10px; line-height:1.4; }
.news-card-title:hover { color:var(--red); }
.news-card-excerpt { font-size:13px; color:var(--gray); line-height:1.6; flex:1; margin-bottom:16px; }
.news-read-more { display:inline-block; margin-top:16px; font-size:12px; font-weight:700; color:#fff; background:var(--black); padding:8px 18px; border-radius:2px; text-decoration:none; transition:background .15s; }
.news-read-more:hover { background:var(--red); }
/* ── Single post content ──────────────────────────────────── */
.post-date { font-size:12px; color:var(--gray); margin-bottom:32px; }
.post-featured-img { width:100%; margin-bottom:32px; border-radius:2px; display:block; }
.page-content { font-size:15px; line-height:1.8; }
.page-content p { margin-bottom:16px; }
.page-content h2 { font-size:22px; font-weight:800; margin:40px 0 16px; }
.page-content ul, .page-content ol { padding-left:20px; margin-bottom:16px; }
@media (max-width:960px) { .news-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px) { .news-grid { grid-template-columns:1fr; } }

/* ── Wishlist ─────────────────────────────────────────────── */
.product-wishlist.active { opacity:1; }
.product-wishlist.active svg { fill:var(--red); stroke:var(--red); }

/* Wishlist page (inside My Account chrome). */
.myaccount-content .wishlist-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; margin-top:8px; }
.myaccount-content .wishlist-empty { padding:32px 24px; text-align:center; background:var(--bg-soft); border:1px solid var(--border); border-radius:2px; }
.myaccount-content .wishlist-empty p { margin:0 0 16px; color:var(--gray); font-size:14px; }

/* ── Search results: full-width 4-column ─────────────────── */
.search-wrap { grid-template-columns:1fr; }
.load-more-wrap { text-align:center; padding:48px 0 0; }
.load-more-btn { font-family:'Onest',sans-serif; font-size:13px; font-weight:700; letter-spacing:.5px; padding:12px 40px; border:2px solid var(--black); border-radius:2px; background:#fff; cursor:pointer; transition:background .15s,color .15s; }
.load-more-btn:hover { background:var(--black); color:#fff; }

/* ── Checkout: 2-column billing fields ───────────────────── */
#customer_details .woocommerce-billing-fields__field-wrapper,
#customer_details .woocommerce-shipping-fields__field-wrapper { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
#customer_details .form-row-wide,
#customer_details .notes { grid-column:span 2; }

/* ── Cart toast notification ─────────────────────────────── */
.cart-toast { position:fixed; bottom:32px; right:32px; z-index:9999; background:var(--black); color:#fff; padding:14px 22px; border-radius:2px; font-size:14px; font-weight:600; box-shadow:0 8px 32px rgba(0,0,0,.25); transform:translateY(16px); opacity:0; transition:opacity .25s,transform .25s; pointer-events:none; max-width:320px; font-family:'Onest',sans-serif; }
.cart-toast.visible { opacity:1; transform:translateY(0); }

/* ── Popular products carousel ───────────────────────────── */
.featured-section { padding:100px 60px; background:#fff; }
.popular-carousel-wrap { position:relative; margin-top:48px; }
.popular-carousel { overflow:hidden; }
.popular-track { display:flex; gap:1px; transition:transform .4s cubic-bezier(.4,0,.2,1); }
.popular-track .product-card { flex:0 0 calc((100% - 3px) / 4); min-width:0; }
.popular-nav { margin-top:28px; display:flex; justify-content:center; }

/* ═══════════════════════════════════════════════
   HAMBURGER + NAV DRAWER
═══════════════════════════════════════════════ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 9000;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-inner { display: flex; flex-direction: column; height: 100%; padding: 20px; }
.nav-drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    margin-bottom: 16px;
    padding: 4px 8px;
}
.drawer-menu { list-style: none; flex: 1; }
.drawer-menu li a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.drawer-menu li.drawer-subitem a {
    padding-left: 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
}
.drawer-menu li.active > a { color: var(--red); }
.drawer-menu li.drawer-has-sub.active > .drawer-row > .drawer-link { color: var(--red); }
.drawer-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.drawer-row .drawer-link { flex: 1; border-bottom: 0; }
.drawer-row .drawer-sub-toggle {
    width: auto;
    flex: 0 0 auto;
    padding: 13px 4px 13px 16px;
    background: none;
    border: 0;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
}
.drawer-sub-toggle-icon { font-size: 24px; line-height: 1; width: 20px; text-align: center; color: inherit; font-weight: 300; }
.drawer-sub { list-style: none; margin: 0; padding: 0; }
.drawer-sub .drawer-subitem a { padding-left: 16px; font-size: 13px; font-weight: 400; color: var(--gray); }
.drawer-footer { margin-top: 24px; padding-top: 20px; }
.drawer-phone { display: block; font-size: 17px; font-weight: 700; color: var(--black); text-decoration: none; margin-bottom: 4px; }
.drawer-phone-label { font-size: 12px; color: var(--gray); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 8999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════
   MOBILE FILTER TOGGLE BUTTON
═══════════════════════════════════════════════ */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--black);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
}
.filter-toggle-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   TABLET  ≤ 959px
═══════════════════════════════════════════════ */
@media (max-width: 959px) {

    /* Header */
    .header-top { padding: 0 24px; gap: 14px; }
    .header-nav { display: none; }
    .nav-hamburger { display: flex; }
    .header-search { flex: 1; min-width: 0; }
    .header-phone { display: none; }
    .header-actions-group { margin-left: auto; }

    /* Breadcrumbs + page sections */
    .breadcrumb-bar { padding: 0 24px; }
    .anchor-nav     { padding: 0 24px; overflow-x: auto; white-space: nowrap; }
    .content-section { padding: 40px 24px; }
    .woocommerce-notices-wrapper { padding: 0 24px; }

    /* Catalog / shop */
    .catalog-wrap { grid-template-columns: minmax(0, 1fr); padding: 0 24px 60px; }
    .catalog-main { padding: 24px 0 0 0; }
    .catalog-sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 85%;
        max-width: 340px;
        height: 100%;
        overflow-y: auto;
        background: #fff;
        z-index: 9001;
        padding: 24px;
        box-shadow: 4px 0 24px rgba(0,0,0,.18);
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
    }
    .catalog-sidebar.open { transform: translateX(0); }
    .filter-toggle-btn { display: flex; }

    /* Product grids */
    .products-grid,
    .product-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .related-grid  { grid-template-columns: repeat(3, 1fr); }

    /* Homepage */
    .categories   { padding: 60px 24px; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .cat-grid > .cat-card:nth-child(odd):last-child { grid-column: span 2; }

    .how-section,
    .why-section,
    .reviews-section,
    .faq-section,
    .contact-section { padding: 60px 24px; }
    .featured-section { padding: 60px 24px; }

    /* Popular carousel: 3 cards */
    .popular-track .product-card { flex: 0 0 calc((100% - 2px) / 3); }

    /* Single product */
    .product-zone { grid-template-columns: minmax(0, 1fr); }
    .pz-gallery { padding: 24px; border-right: none; border-bottom: 1px solid var(--border); }
    .pz-panel   { padding: 24px; }
    .panel { position: static; }

    /* Cart */
    .cart-page   { padding: 32px 24px 60px; }
    .cart-layout { grid-template-columns: 1fr; }

    /* Checkout */
    .checkout-page { padding: 32px 24px 60px; }
    .checkout-layout { grid-template-columns: 1fr; gap: 24px; }

    /* Footer */
    .footer { padding: 28px 24px; grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .footer-logo, .footer-center, .footer-copy, .footer-legal { grid-row: auto; grid-column: auto; text-align: center; }
}

/* ═══════════════════════════════════════════════
   NARROW TABLET / LARGE PHONE  600-768px
   Refinements between the 959px tablet block and the 599px phone block.
═══════════════════════════════════════════════ */
@media (max-width: 768px) and (min-width: 600px) {

    /* Product grids: 2 cols at narrow-tablet (cards ~370px wide read better than 3 cramped cols) */
    .products-grid,
    .product-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Popular carousel: 2 cards per row */
    .popular-track .product-card { flex: 0 0 calc((100% - 1px) / 2); }

    /* Single product trust badges: vertical stack instead of horizontal cramming */
    .panel-info-blocks { gap: 12px; }

    /* Tighter section padding */
    .how-section,
    .why-section,
    .reviews-section,
    .faq-section,
    .contact-section { padding: 48px 24px; }
}

/* ═══════════════════════════════════════════════
   MOBILE PHONE  ≤ 599px
═══════════════════════════════════════════════ */
@media (max-width: 599px) {

    /* Shrink the header height variable — actual mobile header is ~56px not 122px */
    :root { --header-h: 64px; }

    /* Header — keep only logo + search-icon + burger; cart/wishlist/account move to bottom nav */
    .header-top { flex-wrap: wrap; padding: 12px 16px; gap: 10px; height: auto; min-height: 56px; }
    .site-logo  { font-size: 20px; }
    .header-search { display: none; }
    .header-search.search-open { display: flex; order: 3; width: 100%; flex: none; max-width: 100%; padding: 0; box-sizing: border-box; }
    .header-search.search-open form { width: 100%; box-sizing: border-box; }
    .header-search.search-open input { width: 100%; box-sizing: border-box; }
    .header-search input::placeholder { color: transparent; }
    .search-dropdown { left: 0; right: 0; width: auto; }
    .search-mobile-btn { display: flex; align-items: center; justify-content: center; margin-left: auto; padding: 8px; background: transparent; border: none; cursor: pointer; color: var(--black); }
    .search-mobile-btn svg { width: 20px; height: 20px; }
    .header-actions { display: none; }
    .header-actions-group { gap: 8px; margin-left: 0; }
    .header-phone { display: none; }
    .mini-cart-wrap { display: none; }

    /* Bottom mobile nav — shown only here */
    .bb-bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
        background: #fff; border-top: 1px solid var(--border);
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 12px rgba(0,0,0,.04);
    }
    .bb-bottom-nav-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
        padding: 6px 0; text-decoration: none; color: var(--gray);
        font-size: 10px; font-weight: 700; letter-spacing: .3px;
        transition: color .15s; position: relative;
    }
    .bb-bottom-nav-item.is-active,
    .bb-bottom-nav-item:hover { color: var(--red); }
    .bb-bottom-nav-icon { position: relative; display: inline-flex; }
    .bb-bottom-nav-icon svg { width: 22px; height: 22px; stroke-width: 2; }
    .bb-bottom-nav-item .cart-badge {
        position: absolute; top: -4px; left: 100%; margin-left: -8px;
        background: var(--red); color: #fff; min-width: 16px; height: 16px;
        border-radius: 8px; padding: 0 4px;
        font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
    }
    /* Reserve space at the bottom of the FOOTER (not .page-body) so the fixed
       bottom-nav doesn't occlude the footer's last text line. The footer is a
       sibling of .page-body, so the legacy .page-body padding-bottom didn't
       protect it. 28px keeps a normal footer breathing line above the nav. */
    .footer { padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom)); }
    /* When the last .page-body section is the dark contact-section, paint the
       page-body bg dark so it merges visually with the section. */
    .page-body:has(> .contact-section:last-child) { background: var(--black); }

    /* Breadcrumbs + sections */
    .breadcrumb-bar  { padding: 0 16px; overflow: hidden; }
    .breadcrumb { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; height: auto; min-height: 44px; }
    .breadcrumb::-webkit-scrollbar { display: none; }
    .breadcrumb li { white-space: nowrap; flex-shrink: 0; }
    .anchor-nav      { padding: 0 16px; }
    .content-section { padding: 28px 16px; }
    .woocommerce-notices-wrapper { padding: 0 16px; }

    /* Catalog */
    .catalog-wrap { padding: 0 16px 48px; }

    /* Product grids: 2 columns */
    .products-grid,
    .product-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Related products: 4th card has .related-hidden + .bb-mobile-keep so it
       hides on desktop (3 cards visible) but stays visible on mobile (4 cards
       visible). The show-more click strips .related-hidden, revealing it on
       desktop too. */
    .product-card.related-hidden.bb-mobile-keep { display: block; }
    /* Hide the show-more button on mobile when the only hidden card is the
       desktop-only 4th (count==4) — clicking it would be a no-op on mobile. */
    .show-more-btn.desktop-only { display: none; }

    /* Product card: always show wishlist on touch */
    .product-wishlist { opacity: 1; }

    /* Hero CTAs: narrower than full width on mobile, centered, both buttons matched */
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        min-width: 0;
        width: 80%;
        max-width: 280px;
        margin-inline: auto;
    }

    /* Homepage categories: uniform 2-column grid; odd last tile spans both columns. */
    .categories { padding: 40px 16px; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .cat-grid > .cat-card:nth-child(odd):last-child { grid-column: span 2; }
    .cat-card .cat-foot { padding: 14px 16px; }
    .cat-card .cat-name {
        font-size: 13px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    /* Mobile: cart button becomes round icon-only; label hidden */
    .add-to-cart {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }
    .add-to-cart .add-to-cart-label { display: none; }
    .add-to-cart .add-to-cart-icon { display: block; }
    /* Reserve space for 6-digit prices like "100 000 ₽" alongside the round button */
    .product-footer { gap: 10px; }
    .price-new { font-size: 16px; letter-spacing: -.3px; }
    /* Cards on the popular grid get tighter horizontal padding so price + round
       cart button comfortably share the footer row even with 6-digit prices. */
    .product-body { padding: 16px 14px 16px; }

    /* Homepage sections */
    .how-section,
    .why-section,
    .reviews-section,
    .faq-section,
    .contact-section { padding: 40px 16px; }
    .featured-section { padding: 40px 16px; }

    /* "Как мы работаем" → horizontal scroll-snap slider on mobile */
    .steps {
        display: flex; grid-template-columns: none;
        gap: 12px; padding: 8px 16px 16px; margin: 32px -16px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .steps::-webkit-scrollbar { display: none; }
    .steps::before { display: none; }
    .step {
        flex: 0 0 calc(100% - 48px); scroll-snap-align: center;
        padding: 24px 20px; background: #fff;
        border: 1px solid var(--border); border-radius: 6px;
    }
    .step-num { margin-bottom: 14px; color: var(--red); }
    .step-icon { margin-bottom: 12px; color: var(--red); }
    .step-title { font-size: 18px; color: var(--black); }
    .step-desc { font-size: 13px; line-height: 1.55; color: var(--gray); }

    /* "Нас выбирают не случайно" — keep 2-col, tighten typography + ghost number */
    .why-grid { gap: 0; margin-top: 32px; }
    .why-block { padding: 24px 16px 22px; }
    .why-ghost { font-size: 56px; top: 4px; right: 8px; letter-spacing: -2px; }
    .why-num { font-size: 10px; margin-bottom: 8px; }
    .why-title { font-size: 16px; line-height: 1.2; margin-bottom: 8px; }
    .why-desc { font-size: 12.5px; line-height: 1.5; }

    /* Popular products: static 2-up grid (no JS slider on phones) */
    .popular-carousel { overflow: visible; }
    .popular-track {
        flex-wrap: wrap;
        transform: none !important;
        gap: 1px;
    }
    .popular-track .product-card { flex: 0 0 calc((100% - 1px) / 2); }
    .popular-nav { display: none; }

    /* Contact form: single column, full-width fields and submit */
    .contact-form { grid-template-columns: 1fr; gap: 10px; }
    .contact-form .form-field.full,
    .contact-form .form-submit,
    .contact-form .form-privacy { grid-column: span 1; }
    .contact-form .form-submit { width: 100%; }

    /* Gallery thumbs */
    .gallery-thumb { width: 56px; height: 56px; }

    /* Single product */
    .pz-gallery { padding: 16px; }
    .pz-panel   { padding: 16px; }
    .panel-actions-row { flex-direction: row; gap: 8px; }
    .panel-actions-row .panel-btn-secondary {
        flex: 1;
        height: 48px;
        padding: 0 12px;
        font-size: 14px;
    }
    .panel-info-blocks { gap: 12px; }

    /* Cart: card-style rows on small screens.
       Two-row grid with image spanning both rows. Per-cell borders/padding
       are reset so the only separator per item is the one on the <tr>. */
    .cart-page   { padding: 20px 16px 48px; }
    .cart-layout { grid-template-columns: 1fr; gap: 24px; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
    .cart-table tbody tr {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        grid-template-areas:
            "img  name   remove"
            "img  qty    total";
        column-gap: 12px;
        row-gap: 10px;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
    }
    .cart-table td { border: none; padding: 0; }
    .cart-table td.col-img    { grid-area: img;    align-self: start; }
    .cart-table td.col-name   { grid-area: name;   align-self: start; }
    .cart-table td.col-price  { display: none; }
    .cart-table td.col-qty    { grid-area: qty;    justify-self: start; }
    .cart-table td.col-total  { grid-area: total;  justify-self: end; text-align: right; font-weight: 800; font-size: 15px; }
    .cart-table td.col-remove { grid-area: remove; justify-self: end; }
    .cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 2px; }
    .cart-qty-stepper { min-height: 36px; }
    .cart-qty-btn { width: 32px; font-size: 18px; }
    .cart-qty-stepper .cart-qty-input { width: 40px; }
    .cart-totals { position: static; padding: 22px 20px; }

    /* Checkout */
    .checkout-page { padding: 20px 16px 48px; }
    .checkout-field-row { grid-template-columns: 1fr; }
    .postcode-wrap { max-width: 100%; }

    /* Search results */
    .search-wrap .catalog-main { padding-top: 8px; }

    /* Single-product page: shrink wrap padding, collapse to single column, kill desktop sticky panel */
    .single-product-wrap { padding: 0 16px; }
    .single-product-wrap > .product-zone,
    .single-product-wrap > .product-tabs,
    .single-product-wrap > .related-section { max-width: 100%; }
    .product-zone { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .product-zone .panel,
    .pz-panel { position: static; top: auto; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Tighten the gap between the related-grid and the footer on phones. */
    .related-section { padding: 32px 0 24px; }

    /* Shop toolbar + pagination: wrap onto multiple rows */
    .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .toolbar-left,
    .toolbar-right { width: 100%; }
    .toolbar-right { justify-content: space-between; gap: 8px; }
    .woocommerce-ordering,
    .woocommerce-ordering select.orderby { width: 100%; }
    .woocommerce-pagination ul.page-numbers { flex-wrap: wrap; row-gap: 4px; }

    /* Checkout: belt-and-suspenders box-sizing so cards never exceed parent width.
       minmax(0, 1fr) allows the grid column to shrink below its min-content
       (some payment-widget child sets a 358px min-content). */
    .checkout-page,
    .checkout-layout,
    .checkout-fields-col,
    .checkout-summary,
    .checkout-section-card { box-sizing: border-box; max-width: 100%; }
    .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .checkout-fields-col,
    .checkout-summary { min-width: 0; }

    /* Order table: 4 cols are tight on a phone — shrink the thumbnail and
       numeric cols, and let the product name take the slack. */
    .checkout-order-table .col-img        { width: 44px; padding-right: 8px; }
    .checkout-order-table .col-img img    { width: 44px; height: 33px; }
    .checkout-order-table .col-qty        { width: 50px; }
    .checkout-order-table .col-unit-price { width: 72px; padding-right: 8px; font-size: 13px; }
    .checkout-order-table .col-price      { width: 86px; font-size: 13px; }
    .checkout-order-table tbody td.col-name { font-size: 13px; padding-right: 6px; line-height: 1.3; }
}

/* ═══════════════════════════════════════════════
   TIGHT MOBILE  ≤ 480px (iPhone SE etc.)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Logo + header */
    .site-logo { font-size: 16px; letter-spacing: 1.5px; }
    .header-top { padding: 10px 12px; gap: 8px; }
    .header-actions-group { gap: 4px; }

    /* Section padding */
    .breadcrumb-bar  { padding: 0 12px; }
    .anchor-nav      { padding: 0 12px; }
    .content-section { padding: 24px 12px; }
    .catalog-wrap    { padding: 0 12px 36px; }
    .categories      { padding: 32px 12px; }

    /* Keep category/search/wishlist grids at 2-up even on the tightest screens
       — at 320–480px a 2-up grid still reads well, and 1 card per row felt empty. */
    .products-grid,
    .product-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Cookie banner: stack buttons full-width */
    .bb-consent-actions { flex-direction: column; width: 100%; }
    .bb-consent-btn     { flex: 1 1 100%; }
}

/* iPhone SE (320px) class: tighten product-card footer so 6-digit prices
   like "100 000 ₽" still fit alongside the round cart button without overlap. */
@media (max-width: 360px) {
    .add-to-cart      { width: 36px; height: 36px; }
    .add-to-cart-icon { width: 16px; height: 16px; }
    .product-footer   { gap: 6px; }
    .price-new        { font-size: 15px; }
    .product-body     { padding: 16px 12px 16px; }
}

/* Always show wishlist on touch devices */
@media (hover: none) {
    .product-wishlist { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   COOKIE CONSENT BANNER (152-ФЗ §A7)
═══════════════════════════════════════════════ */
/* Mobile bottom nav: shown via 599px block; hidden everywhere ≥600px */
@media (min-width: 600px) { .bb-bottom-nav { display: none; } }

.bb-consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0,0,0,.08);
  font-family: 'Onest', sans-serif; color: var(--black);
}
.bb-consent-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.bb-consent-text { flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.bb-consent-text a { color: var(--red); text-decoration: underline; }
.bb-consent-details:not([hidden]) {
  flex: 1 1 100%; padding: 12px 0; display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border); margin-top: 4px;
}
.bb-consent-details label {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer;
}
.bb-consent-details input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.bb-consent-details b { font-weight: 700; }
.bb-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.bb-consent-btn {
  font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--black);
  transition: background .15s, border-color .15s, color .15s;
}
.bb-consent-btn:hover { border-color: var(--black); }
.bb-consent-accept-all { background: var(--red); color: #fff; border-color: var(--red); }
.bb-consent-accept-all:hover { background: var(--red-dark); border-color: var(--red-dark); }
.bb-consent-save { background: var(--black); color: #fff; border-color: var(--black); }

@media (max-width: 720px) {
  .bb-consent-banner { padding: 0; }
  .bb-consent-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); box-sizing: border-box; }
  .bb-consent-text { flex: 0 1 auto; min-width: 0; font-size: 13px; line-height: 1.45; }
  .bb-consent-details:not([hidden]) { padding: 10px 0 0; margin-top: 0; border-top: none; gap: 8px; flex: 0 1 auto; }
  .bb-consent-details label { font-size: 13px; line-height: 1.4; }
  .bb-consent-actions { width: 100%; flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .bb-consent-actions button { width: 100%; flex: 0 0 auto; padding: 12px 10px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════
   ── Wiki nav ──
   Sidebar on /wiki/* pages. Auto-built from WP children of the
   `wiki` parent. Desktop: sticky left sidebar; mobile: native
   <details> disclosure above the content. No JS needed.
═══════════════════════════════════════════════ */
.wiki-layout { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; gap: 48px; align-items: flex-start; }
.wiki-layout .page-wrap { padding: 40px 0 80px; margin: 0; max-width: none; flex: 1 1 auto; min-width: 0; }
.wiki-layout .page-wrap.content-page { padding: 40px 0 80px; max-width: none; }

.wiki-nav { flex: 0 0 240px; padding: 40px 0 0; position: sticky; top: calc(var(--header-h) + 16px); }
.wiki-nav-details { border-top: 1px solid var(--border); padding-top: 20px; }
.wiki-nav-summary { list-style: none; cursor: default; display: flex; align-items: center; justify-content: space-between; }
.wiki-nav-summary::-webkit-details-marker { display: none; }
.wiki-nav-title { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--black); }
.wiki-nav-chevron { display: none; font-size: 18px; color: var(--gray); transition: transform .2s; }

.wiki-nav-list { list-style: none; padding: 16px 0 0; margin: 0; }
.wiki-nav-details[open] .wiki-nav-list { display: flex; flex-direction: column; gap: 2px; }
.wiki-nav-item--parent { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.wiki-nav-link { display: block; padding: 8px 12px; font-size: 14px; line-height: 1.4; color: var(--gray); text-decoration: none; border-left: 2px solid transparent; transition: color .15s, border-color .15s, background .15s; }
.wiki-nav-link:hover { color: var(--black); }
.wiki-nav-link.is-active { color: var(--black); font-weight: 700; border-left-color: var(--red); background: rgba(230,51,41,.04); }
.wiki-nav-item--parent .wiki-nav-link { font-weight: 700; color: var(--black); }
.wiki-nav-item--parent .wiki-nav-link.is-active { font-weight: 900; }

@media (max-width: 899px) {
  .wiki-layout { flex-direction: column; gap: 0; padding: 0 16px; }
  .wiki-nav { position: static; flex: none; width: 100%; padding: 24px 0 0; }
  .wiki-layout .page-wrap { padding: 24px 0 56px; }
  .wiki-nav-details { border-top: none; border: 1px solid var(--border); border-radius: 4px; padding: 14px 16px; background: #fff; }
  .wiki-nav-details[open] { padding-bottom: 8px; }
  .wiki-nav-summary { cursor: pointer; }
  .wiki-nav-chevron { display: inline-block; }
  .wiki-nav-details[open] .wiki-nav-chevron { transform: rotate(180deg); }
  .wiki-nav-list { padding-top: 12px; }
}
