/* Storefront restyle — CRM look (light theme, dark header/footer, roomy cards) */
:root{
  --ink:#111113; --ink-soft:#54575d; --muted:#7a7d83;
  --paper:#f5f4f1; --surface:#ffffff; --surface-2:#eeece7; --border:#e2dfd8;
  --accent-soft:#fbe6bd; --steel-1:#eef0f2; --steel-3:#8b8f97;
  --status-new:#2f5fc4; --status-new-soft:#e3ecfc; --status-quoted:#a86c07; --status-quoted-soft:#fae9c8; --status-closed:#1f7a50; --status-closed-soft:#dff2e9;
  --danger:#c0392b; --danger-soft:#fbe3e0;
  --shadow-s:0 1px 2px rgba(17,17,19,.05), 0 3px 10px -4px rgba(17,17,19,.15);
  --shadow-l:0 2px 4px rgba(17,17,19,.06), 0 20px 44px -18px rgba(17,17,19,.32);
}
html{color-scheme:light;}
body{background:var(--paper); color:var(--ink); font-size:16px;}
.wrap{max-width:1320px; padding-inline:clamp(16px,3vw,40px);}

/* Header */
.site-header{background:linear-gradient(135deg,#111113,#26282d); border-bottom:3px solid var(--accent); color:#fff;}
.header-inner{padding-block:12px; gap:18px;}
.brand-logo-wrap{background:#fff; border-radius:10px; padding:5px 9px; box-shadow:none;}
.brand-logo{height:44px;}
.brand-name{color:#fff; font-size:19px;}
.brand-tag{color:rgba(255,255,255,.6);}
.main-nav{background:transparent; padding:0; gap:2px; margin-left:auto;}
.nav-tab{color:rgba(255,255,255,.78); font-size:15px; padding:10px 16px; border-radius:10px;}
.nav-tab:hover{background:rgba(255,255,255,.1); color:#fff;}
.nav-tab[aria-current="page"]{background:var(--accent); color:var(--accent-ink);}
.head-actions{display:flex; gap:8px; flex:none;}
.btn-outline-light{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.28); color:#fff;}
.btn-outline-light:hover{background:rgba(255,255,255,.18);}
.btn{font-size:15px; padding:12px 24px; border-radius:12px;}
.btn-sm{font-size:14px; padding:9px 16px;}
@media(max-width:900px){
  .header-inner{flex-wrap:wrap;}
  .main-nav{order:3; width:100%; margin-left:0; overflow-x:auto; padding-bottom:2px;}
  .head-actions .btn span{display:none;} .head-actions .btn{padding:10px 12px;}
  .brand{flex:1 1 0;}
}
@media(max-width:560px){ .brand-tag{display:none;} .brand-name{font-size:16px;} .brand-logo{height:36px;} }

/* Hero */
.hero{padding-block:clamp(36px,5vw,72px); background:var(--surface); border-bottom:1px solid var(--border);}
.hero-copy h1{font-size:clamp(32px,4.6vw,56px);}
.lede{font-size:17.5px; max-width:52ch;}
.eyebrow{border-radius:99px; padding:6px 14px; font-size:12px;}
.hero-plate{border-radius:20px; border:0; box-shadow:var(--shadow-l);}

/* Catalog */
.catalog{padding-block:clamp(36px,5vw,64px);}
.catalog-head h2{font-size:30px;}
.chip{padding:10px 18px; font-size:14px;}
.chip:hover{background:var(--surface-2);}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px;}
.product-card{border-radius:16px; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;}
.product-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-l); border-color:var(--accent);}
.product-body{padding:20px 22px 22px; gap:12px;}
.product-name{font-size:19px;}
.product-short{font-size:15px;}
.cat-badge{background:var(--accent-soft); color:var(--accent-ink); padding:4px 10px; border-radius:99px;}
.price-tag{font-size:12.5px;}

/* Product detail + forms */
.product-detail-grid{gap:clamp(24px,4vw,56px);}
.quote-form{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:clamp(18px,3vw,28px); box-shadow:var(--shadow-s);}
.field input,.field textarea,.field select{font-size:16px; padding:13px 14px; min-height:48px; border-radius:12px; background:var(--paper);}
.field label{font-size:13.5px;}
.spec-list{font-size:15px;}

/* Info pages */
.page-head{background:var(--surface); border-bottom:1px solid var(--border); padding-block:clamp(28px,4vw,52px);}
.page-head h1{font-size:clamp(30px,4vw,46px); margin:10px 0 8px;}
.page-head .lede{margin:0;}
.prose-wrap{display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:clamp(24px,4vw,56px); padding-block:clamp(28px,4vw,56px); align-items:start;}
.prose{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:clamp(20px,4vw,40px); box-shadow:var(--shadow-s); font-size:16px; line-height:1.7;}
.prose h2{font-size:21px; margin:30px 0 10px; text-transform:none; letter-spacing:0;}
.prose h2:first-child,.prose>p:first-child+h2{margin-top:22px;}
.prose p{margin:0 0 14px; color:var(--ink-soft);}
.prose ul{margin:0 0 14px; padding-left:22px; color:var(--ink-soft); display:flex; flex-direction:column; gap:8px;}
.prose a{color:var(--accent-hover); text-decoration:underline;}
.prose strong{color:var(--ink);}
.prose-side{position:sticky; top:96px; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:16px; display:flex; flex-direction:column; gap:4px; box-shadow:var(--shadow-s);}
.prose-side h4{font-size:12px; letter-spacing:.1em; color:var(--muted); margin:2px 8px 8px;}
.prose-side a{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; text-decoration:none; font-size:15px; font-weight:500;}
.prose-side a i{width:18px; text-align:center; color:var(--accent-hover);}
.prose-side a:hover{background:var(--surface-2);}
.prose-side a.on{background:var(--ink); color:#fff;} .prose-side a.on i{color:var(--accent);}
.info-cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-bottom:18px;}
.info-card{background:var(--paper); border:1px solid var(--border); border-radius:14px; padding:18px; display:flex; flex-direction:column; gap:6px;}
.info-card i{color:var(--accent-hover); font-size:20px;} .info-card span{color:var(--ink-soft); overflow-wrap:anywhere;}
.faq details{border:1px solid var(--border); border-radius:12px; padding:0 18px; margin-bottom:10px; background:var(--paper);}
.faq summary{cursor:pointer; padding:16px 0; font-weight:600; color:var(--ink); list-style:none; display:flex; justify-content:space-between; gap:12px;}
.faq summary::after{content:"+"; font-size:22px; color:var(--accent-hover); line-height:1;}
.faq details[open] summary::after{content:"\2013";}
.faq summary::-webkit-details-marker{display:none;}
.faq details p{padding-bottom:16px; margin:0;}
@media(max-width:900px){.prose-wrap{grid-template-columns:1fr;} .prose-side{position:static; order:-1; flex-direction:row; flex-wrap:wrap;} .prose-side h4{width:100%;}}

.site-foot{margin-top:0;}

/* Catalog search */
.store-search{display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:6px 6px 6px 16px; box-shadow:var(--shadow-s); flex:1 1 380px; max-width:560px;}
.store-search:focus-within{border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft);}
.store-search>i{color:var(--muted);}
.store-search input[type=search]{flex:1; min-width:0; border:0; background:transparent; font:inherit; font-size:16px; padding:10px 4px; outline:none; color:var(--ink);}
.store-search .btn{padding:10px 20px; border-radius:10px;}
.ss-clear{color:var(--muted); padding:6px 8px; text-decoration:none;} .ss-clear:hover{color:var(--ink);}
.search-note{color:var(--ink-soft); margin:-6px 0 16px; font-size:14.5px;}
.catalog-head{flex-wrap:wrap;}
.filter-row{width:100%;}
@media(max-width:560px){.store-search .btn span{display:none;} .store-search{max-width:none; flex-basis:100%;}}

/* ---------- Motion ---------- */
@keyframes st-up{from{opacity:0; transform:translateY(22px)}to{opacity:1; transform:none}}
@keyframes st-fade{from{opacity:0}to{opacity:1}}
@keyframes st-zoom{from{opacity:0; transform:scale(.96)}to{opacity:1; transform:none}}
@keyframes st-pop{0%{transform:scale(.9); opacity:0}60%{transform:scale(1.04); opacity:1}100%{transform:none}}
@keyframes st-shine{from{background-position:-200% 0}to{background-position:200% 0}}
@keyframes st-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes st-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 55%,transparent)}100%{box-shadow:0 0 0 14px transparent}}

.site-header{animation:st-fade .5s ease both;}
.hero-copy>*{animation:st-up .7s cubic-bezier(.2,.7,.2,1) both;}
.hero-copy>*:nth-child(1){animation-delay:.05s}.hero-copy>*:nth-child(2){animation-delay:.15s}.hero-copy>*:nth-child(3){animation-delay:.25s}.hero-copy>*:nth-child(4){animation-delay:.35s}
.hero-plate{animation:st-zoom .9s cubic-bezier(.2,.7,.2,1) .15s both;}
.hero-plate img{transition:transform 1.2s ease;} .hero-plate:hover img{transform:scale(1.05);}
.page-head>.wrap>*{animation:st-up .6s ease both;} .page-head>.wrap>*:nth-child(2){animation-delay:.08s}.page-head>.wrap>*:nth-child(3){animation-delay:.16s}

/* scroll reveal (only when JS is on) */
.js .reveal{opacity:0; transform:translateY(26px); transition:opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay:var(--d,0s);}
.js .reveal.in{opacity:1; transform:none;}

/* catalog cards */
.product-thumb img{transition:transform .6s cubic-bezier(.2,.7,.2,1);}
.product-card:hover .product-thumb img,.product-card:hover .product-thumb svg{transform:scale(1.08);}
.product-thumb svg{transition:transform .6s cubic-bezier(.2,.7,.2,1);}
.product-card .product-name{transition:color .2s;} .product-card:hover .product-name{color:var(--accent-hover);}
.product-card::after{content:"Request a quote \2192"; display:block; padding:0 22px; max-height:0; opacity:0; overflow:hidden; font-weight:600; font-size:14px; color:var(--accent-hover); transition:max-height .3s ease, opacity .3s ease, padding .3s ease;}
.product-card:hover::after{max-height:44px; opacity:1; padding-bottom:16px;}
.chip{transition:transform .15s ease, background .2s, color .2s, border-color .2s;} .chip:hover{transform:translateY(-2px);}
.chip[aria-pressed="true"]{animation:st-pop .35s ease backwards;}
.product-grid .product-card{animation:st-up .55s cubic-bezier(.2,.7,.2,1) backwards; animation-delay:calc(var(--i,0) * 45ms);}

/* product detail */
.product-detail-grid>.product-thumb{animation:st-zoom .8s cubic-bezier(.2,.7,.2,1) both; box-shadow:var(--shadow-l); position:sticky; top:104px;}
.product-detail-grid>div:last-child>*{animation:st-up .6s cubic-bezier(.2,.7,.2,1) both;}
.product-detail-grid>div:last-child>*:nth-child(1){animation-delay:.1s}.product-detail-grid>div:last-child>*:nth-child(2){animation-delay:.18s}.product-detail-grid>div:last-child>*:nth-child(3){animation-delay:.26s}.product-detail-grid>div:last-child>*:nth-child(4){animation-delay:.34s}.product-detail-grid>div:last-child>*:nth-child(n+5){animation-delay:.42s}
.product-detail-grid .product-thumb img{transition:transform .8s ease;} .product-detail-grid .product-thumb:hover img{transform:scale(1.07);}
.spec-list li{animation:st-up .5s ease both; animation-delay:calc(.45s + var(--i,0) * 60ms);}
.spec-list li::marker{color:var(--accent);}
.quote-form{transition:box-shadow .3s, transform .3s;} .quote-form:focus-within{box-shadow:var(--shadow-l); transform:translateY(-2px);}
.field input,.field textarea,.field select{transition:border-color .2s, box-shadow .25s, background .2s, transform .2s;}
.field input:focus,.field textarea:focus{box-shadow:0 0 0 4px var(--accent-soft); transform:translateY(-1px);}
.quote-form .btn-primary{position:relative; overflow:hidden; animation:st-pulse 2.4s ease-out 1.2s 3;}
.quote-form .btn-primary::before{content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%); background-size:200% 100%; background-position:-200% 0;}
.quote-form .btn-primary:hover::before{animation:st-shine .9s ease;}
.btn{transition:transform .15s ease, background .2s, box-shadow .2s, opacity .2s;} .btn-primary:hover{transform:translateY(-2px); box-shadow:0 10px 22px -10px var(--accent);}
.btn:active{transform:scale(.97);}
.notice-success{animation:st-pop .5s ease both;}
.sf-col a{transition:color .2s, transform .2s;} .sf-col a:hover{transform:translateX(4px);}
.eyebrow{animation:st-fade .8s ease both;}

/* ===== Follow the system theme (Settings → Appearance) ===== */
/* Header: light bar with accent underline, like the CRM */
.site-header{background:#fff; color:var(--ink); border-bottom:3px solid var(--accent); box-shadow:0 1px 0 rgba(0,0,0,.04);}
.brand-logo-wrap{background:transparent; padding:0;}
.brand-name{color:var(--ink);}
.brand-tag{color:var(--accent-hover,var(--accent)); font-weight:600;}
.nav-tab{color:var(--ink-soft);}
.nav-tab:hover{background:rgba(127,127,127,.12); color:var(--ink);}
.btn-outline-light{background:transparent; border-color:var(--border); color:var(--ink);}
.btn-outline-light:hover{background:rgba(127,127,127,.12);}

/* Classic: bold dark banners */
.st-classic .hero,.st-classic .page-head{position:relative; overflow:hidden; background:linear-gradient(135deg,#111113 0%,#26282d 100%); border-bottom:0; color:#fff;}
.st-classic .hero::after,.st-classic .page-head::after{content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:linear-gradient(90deg,var(--accent) 0,var(--accent) 90px,transparent 90px);}
.st-classic .hero h1,.st-classic .page-head h1,.st-classic .hero h2{color:#fff;}
.st-classic .hero .lede,.st-classic .page-head .lede,.st-classic .hero p,.st-classic .page-head p{color:rgba(255,255,255,.76);}
.st-classic .hero .eyebrow,.st-classic .page-head .eyebrow{background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.18);}
.st-classic .hero .btn-outline,.st-classic .page-head .btn-outline{background:transparent; color:#fff; border-color:rgba(255,255,255,.35);}
.st-classic .page-head a:not(.btn){color:#fff; text-decoration:underline;}
.st-classic .hero .stat strong,.st-classic .hero strong{color:#fff;}
/* Modern: light, minimal banners */
.st-modern .hero,.st-modern .page-head{background:var(--surface); color:var(--ink);}

/* Sign-in card (storefront) */
.auth-wrap{max-width:440px;margin:44px auto 64px;padding:0 20px}
.auth-card{background:var(--surface);border:1px solid var(--border);border-top:4px solid var(--accent);border-radius:18px;box-shadow:var(--shadow-l);padding:32px 28px}
.auth-card .auth-icon{width:48px;height:48px;border-radius:14px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-size:22px;margin-bottom:14px}
.auth-card h2{font-size:26px;margin:0 0 6px}
.auth-card .login-sub{color:var(--ink-soft);font-size:14px;margin-bottom:20px}
.auth-alt{text-align:center;font-size:13.5px;margin-top:16px;color:var(--ink-soft)}
.auth-alt a{color:var(--ink);font-weight:600;text-decoration:underline}
.btn-block{width:100%;justify-content:center}

/* Sign-in: split layout */
.auth-split{width:min(960px,calc(100% - 40px));margin:44px auto 72px;padding:0;display:grid;grid-template-columns:5fr 6fr;border-radius:22px;overflow:hidden;box-shadow:var(--shadow-l);border:1px solid var(--border);background:var(--surface)}
.auth-split .auth-card{border:0;border-radius:0;box-shadow:none;padding:clamp(28px,4vw,48px);margin:0;border-top:0;display:flex;flex-direction:column;justify-content:center}
.auth-split .auth-card h2{font-size:30px}
.auth-side{position:relative;background:linear-gradient(145deg,#111113 0%,#26282d 100%);color:#fff;padding:clamp(28px,4vw,48px);display:flex;flex-direction:column;gap:14px;justify-content:center}
.auth-side::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,var(--accent) 0,var(--accent) 90px,transparent 90px)}
.auth-side-logo{display:inline-block;background:#fff;border-radius:12px;padding:6px 12px;align-self:flex-start}
.auth-side-logo img{height:40px;display:block}
.auth-side h2{color:#fff;font-size:30px;margin:6px 0 0}
.auth-side>p{color:rgba(255,255,255,.72);margin:0;font-size:15px}
.auth-side ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:16px}
.auth-side li{display:flex;gap:12px;align-items:flex-start}
.auth-side li i{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.1);display:grid;place-items:center;color:var(--accent);flex:none}
.auth-side li b{display:block;font-size:14.5px}.auth-side li small{display:block;color:rgba(255,255,255,.62);font-size:12.5px;margin-top:2px}
.auth-side .auth-side-note{margin-top:auto;padding-top:14px;border-top:1px solid rgba(255,255,255,.12);font-size:12.5px;color:rgba(255,255,255,.6)}
.auth-guest{text-align:center;font-size:12.5px;color:var(--ink-soft);margin:10px 0 0}.auth-guest a{text-decoration:underline;color:inherit}
.notice-info{display:flex;gap:10px;padding:13px 16px;border-radius:12px;background:var(--accent-soft);border:1px solid var(--accent);color:var(--ink);font-size:14px;margin-bottom:14px}
@media(max-width:880px){.auth-split{grid-template-columns:1fr;margin:20px auto 48px;width:calc(100% - 24px)}.auth-side{padding:26px 22px}.auth-side ul,.auth-side .auth-side-note{display:none}.auth-side h2{font-size:24px}}

/* Capability catalog landing: big category cards */
.cat-cards{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:8px;}
.cat-card{display:flex; flex-direction:column; gap:10px; padding:24px; border-radius:18px; background:var(--surface,#fff); border:1px solid var(--border,rgba(127,127,127,.25)); color:inherit; text-decoration:none; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;}
.cat-card:hover{transform:translateY(-3px); box-shadow:0 14px 34px rgba(0,0,0,.12); border-color:var(--accent);}
.cat-card h3{font-family:'Oswald',sans-serif; font-size:26px; line-height:1.15; margin:0;}
.cat-card p{margin:0; color:var(--ink-soft,#666); font-size:15px;}
.cat-card-img{display:block; border-radius:12px; overflow:hidden; aspect-ratio:3/2; background:#e9ecef; margin-top:6px;}
.cat-card-img img{display:block; width:100%; height:100%; object-fit:cover;}
.cat-card-go{margin-top:auto; font-weight:600; color:var(--accent);}
.cat-all{text-align:center; margin:22px 0 0;}
.cat-all a{display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:#000;}
.cat-all a:hover{color:#000;}
@media(max-width:760px){.cat-cards{grid-template-columns:1fr;}}

/* Real product photos: show the whole unit on a clean white tile (placeholders keep the cover fit) */
.product-thumb img.ph{object-fit:contain; background:#fff; padding:12px;}
.product-detail-grid .product-thumb img.ph{padding:22px;}

/* Category page: heading and a few pictures above the product list */
.cat-head{display:flex; align-items:baseline; gap:14px; margin:6px 0 14px;}
.cat-head h3{font-family:'Oswald',sans-serif; font-size:28px; margin:0;}
.cat-head span{color:var(--ink-soft,#666); font-size:14px;}
.cat-photos{display:grid; gap:16px; margin:0 0 26px; grid-template-columns:repeat(4,minmax(0,1fr));}
.cat-photos.n1{grid-template-columns:minmax(0,420px);} .cat-photos.n2{grid-template-columns:repeat(2,minmax(0,1fr)); max-width:760px;} .cat-photos.n3{grid-template-columns:repeat(3,minmax(0,1fr)); max-width:1020px;}
.cat-photos figure{margin:0; aspect-ratio:4/3; background:#fff; border:1px solid var(--border,rgba(127,127,127,.25)); border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:center;}
.cat-photos img{display:block; max-width:100%; max-height:100%; object-fit:contain; padding:10px;}
@media(max-width:760px){.cat-photos,.cat-photos.n3,.cat-photos.n4{grid-template-columns:repeat(2,minmax(0,1fr)); max-width:none;} .cat-photos.n1{grid-template-columns:minmax(0,1fr);}}

/* Product page without a photo: details and quote form use the page width, no empty picture box */
.product-detail-grid.no-pic{grid-template-columns:minmax(0,820px); justify-content:center; margin-inline:auto;}
#request:has(.product-detail-grid.no-pic) > .btn-ghost{display:flex; width:fit-content; margin-left:max(0px,calc((100% - 820px) / 2));}

/* Brand logo in the corner of each product card, and the brand filter row */
.product-card{position:relative;}
.brand-mark{position:absolute; top:12px; right:12px; z-index:2; display:flex; align-items:center; justify-content:center; height:34px; min-width:48px; max-width:96px; padding:4px 8px; background:#fff; border:1px solid var(--border); border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,.06);}
.brand-mark img{display:block; max-height:24px; max-width:80px; width:auto; height:auto; object-fit:contain;}
.brand-mark.txt{font-size:12px; font-weight:700; letter-spacing:.02em; color:var(--accent-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.product-card .product-sku{padding-right:104px; display:block;}
.brand-row{margin-top:10px; align-items:center;}
.filter-label{font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted,#667); margin-right:4px;}
.chip .chip-logo{height:16px; width:auto; max-width:40px; object-fit:contain; vertical-align:-3px; margin-right:6px;}
.chip small{opacity:.65; margin-left:2px;}

/* Availability tag, Filters button and mobile layout */
.stock-tag{font-size:12px; font-weight:600; padding:4px 10px; border-radius:99px; background:#eef0f3; color:#5b6470;}
.stock-tag.in{background:#e3f5e8; color:#17683a;}
.filters-toggle{display:none; margin-top:12px;}
.filters-count{display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; margin-left:6px; border-radius:99px; background:var(--accent); color:#fff; font-size:12px;}
@media (max-width:720px){
  .filters-toggle{display:inline-flex; align-items:center; gap:8px; min-height:44px;}
  .filters{display:none; margin-top:10px;}
  .filters.open{display:block;}
  .filters .filter-row{flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:6px; gap:8px; scrollbar-width:thin;}
  .filters .filter-row > *{flex:0 0 auto;}
  .filters .chip{min-height:40px; display:inline-flex; align-items:center; white-space:nowrap;}
  .catalog-head{gap:12px;}
  .store-search{width:100%;}
  .product-grid{grid-template-columns:1fr !important; gap:14px;}
  .brand-mark{top:10px; right:10px; height:30px; max-width:84px;}
  .brand-mark img{max-height:20px; max-width:68px;}
  .product-card .product-sku{padding-right:92px;}
  .product-foot{flex-wrap:wrap; gap:6px;}
  .cat-head{flex-wrap:wrap;}
}

/* One Filters control: bar with button + active pills, panel with Category / Brand / Availability */
.filterbar{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; width:100%;}
.filterbar .filters-toggle{display:inline-flex; align-items:center; gap:8px; margin:0; min-height:44px;}
.chip.is-static{cursor:default; background:var(--accent-soft); color:var(--accent-ink);}
.pill{display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:99px; background:var(--accent-soft); color:var(--accent-ink); font-size:13.5px; font-weight:600; text-decoration:none;}
.pill i{font-size:11px; opacity:.7;}
.filters{display:none; width:100%; margin-top:10px; padding:16px 18px; background:var(--surface,#fff); border:1px solid var(--border); border-radius:16px; box-shadow:0 6px 24px rgba(0,0,0,.05);}
.filters.open{display:block;}
.fgroup{display:flex; gap:12px; align-items:flex-start; padding:8px 0;}
.fgroup + .fgroup{border-top:1px solid var(--border);}
.fgroup .filter-label{flex:0 0 100px; padding-top:12px; margin:0;}
.fchips{display:flex; flex-wrap:wrap; gap:8px; flex:1;}
.filters-clear{display:inline-block; margin-top:8px; font-weight:600; font-size:14px;}
@media (max-width:720px){
  .filters{padding:12px 14px; max-height:70vh; overflow-y:auto;}
  .fgroup{flex-direction:column; gap:6px;}
  .fgroup .filter-label{flex:none; padding-top:4px;}
  .filters .filter-row, .filters .fchips{flex-wrap:wrap; overflow:visible;}
}

/* Plain dropdown filters */
.filterform{display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-top:12px; width:100%;}
.filterform .chip{align-self:flex-end; min-height:44px; display:inline-flex; align-items:center;}
.ff{display:flex; flex-direction:column; gap:4px; min-width:170px; flex:1 1 170px; max-width:260px;}
.ff span{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted,#667);}
.ff select{min-height:44px; padding:0 36px 0 14px; border:1px solid var(--border); border-radius:12px; background:#fff; font:inherit; color:inherit; cursor:pointer; appearance:auto;}
.ff select:focus{outline:2px solid var(--accent); outline-offset:1px;}
.filterform .filters-clear{align-self:flex-end; min-height:44px; display:inline-flex; align-items:center; gap:6px; margin:0; text-decoration:none;}
@media (max-width:720px){
  .filterform{gap:10px;}
  .ff{flex:1 1 100%; max-width:none;}
  .filterform .chip{width:100%; justify-content:center;}
}

/* Filters button opens the dropdown row */
.filterform .filters-toggle{display:inline-flex; align-items:center; gap:8px; margin:0; min-height:44px;}
.ffwrap{display:none; width:100%; flex-wrap:wrap; align-items:flex-end; gap:12px; padding:14px 16px; background:var(--surface,#fff); border:1px solid var(--border); border-radius:16px;}
.ffwrap.open{display:flex;}
@media (max-width:720px){ .filterform .filters-toggle{width:100%; justify-content:center;} .ffwrap{padding:12px;} }

/* Filters button on the right (desktop); the open panel drops to its own full-width row */
@media (min-width:721px){ .filterform .filters-toggle{margin-left:auto; order:2;} .filterform .ffwrap{order:3;} }

/* Mobile navigation: logo, Shop / Sign in, and a menu button that opens the page links */
.nav-burger{display:none; flex:none; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.28); border-radius:12px; background:rgba(255,255,255,.08); color:inherit; font-size:18px; cursor:pointer;}
.st-modern .nav-burger{border-color:var(--border); background:var(--surface-2,#f4f4f2); color:var(--ink);}
@media(max-width:900px){
  .header-inner{flex-wrap:wrap; gap:10px; align-items:center;}
  .brand{flex:1 1 0; min-width:0;}
  .nav-burger{display:inline-flex;}
  .main-nav{display:none; order:4; flex:0 0 100%; width:100%; margin:0; padding:6px 0 4px; flex-direction:column; gap:2px; overflow:visible; border-top:1px solid rgba(127,127,127,.25);}
  .main-nav.open{display:flex;}
  .main-nav .nav-tab{display:block; padding:14px 12px; font-size:16px; min-height:48px; border-radius:10px;}
  .head-actions .btn span{display:inline;}
  .head-actions .btn{padding:10px 14px; min-height:44px;}
}
@media(max-width:560px){
  .head-actions .btn span{display:none;}
  .head-actions .btn{padding:10px 12px; min-width:44px; justify-content:center;}
  .head-actions{gap:6px;}
}

/* Small-screen polish: bigger tap target for the "every product" link, no text under 12px */
@media(max-width:720px){
  .cat-all a{min-height:48px; width:100%; justify-content:center;}
  .product-sku,.cat-badge,.stock-tag{font-size:12px;}
}

/* Category pictures as a slider: swipe/scroll, arrows when there are more than fit */
.cat-slider{position:relative; margin:0 0 26px;}
.cs-track{display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding:2px;}
.cs-track::-webkit-scrollbar{display:none;}
.cs-track:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:14px;}
.cs-slide{flex:0 0 calc((100% - 48px) / 4); max-width:none; scroll-snap-align:start; margin:0; aspect-ratio:4/3; background:#fff; border:1px solid var(--border,rgba(127,127,127,.25)); border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:center;}
.cs-slide img{display:block; max-width:100%; max-height:100%; object-fit:contain; padding:10px;}
.cs-btn{position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:44px; height:44px; border-radius:50%; border:1px solid var(--border,rgba(127,127,127,.3)); background:#fff; color:#111; box-shadow:0 4px 14px rgba(0,0,0,.15); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:15px;}
.cs-btn[hidden]{display:none;}
.cs-btn:hover{background:var(--accent); border-color:var(--accent);}
.cs-prev{left:-10px;} .cs-next{right:-10px;}
@media(max-width:1000px){.cs-slide{flex-basis:calc((100% - 32px) / 3);}}
@media(max-width:720px){.cs-slide{flex-basis:78%;} .cs-prev{left:4px;} .cs-next{right:4px;}}

/* Product page Back button: black with white text */
.btn.btn-back{background:#000; border-color:#000; color:#fff;}
.btn.btn-back:hover,.btn.btn-back:focus-visible{background:#222; border-color:#222; color:#fff;}

/* Filters button: black with white text */
.filterform .filters-toggle,.filters-toggle{background:#000; border-color:#000; color:#fff;}
.filterform .filters-toggle:hover,.filters-toggle:hover,.filters-toggle:focus-visible{background:#222; border-color:#222; color:#fff;}
.filters-toggle .filters-count{background:#fff; color:#000;}

/* Mobile menu floats over the page instead of pushing the hero down */
@media(max-width:900px){
  .site-header{position:sticky; top:0; z-index:60;}
  .main-nav.open{position:absolute; left:0; right:0; top:100%; z-index:70; width:auto; margin:0; padding:8px 14px 14px;
    background:#fff; color:var(--ink); border-top:1px solid rgba(127,127,127,.25); border-bottom:3px solid var(--accent);
    box-shadow:0 18px 32px rgba(0,0,0,.22); max-height:calc(100vh - 80px); overflow-y:auto;}
  .main-nav.open .nav-tab{color:var(--ink);}
  .main-nav.open .nav-tab[aria-current="page"]{color:var(--accent-ink);}
}

/* Square corners for the mobile menu and its button */
@media(max-width:900px){
  .nav-burger{border-radius:12px;}
  .main-nav .nav-tab,.main-nav.open .nav-tab{border-radius:0;}
  .main-nav.open{border-radius:0;}
}

/* Product card footer: tags stay on one line each, wrapping neatly instead of squeezing */
.product-foot{flex-wrap:wrap; justify-content:flex-start; gap:8px 10px;}
.product-foot .cat-badge{flex:0 1 auto; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.3;}
.product-foot .stock-tag{flex:none; white-space:nowrap; line-height:1.3;}
.product-foot .price-tag{flex:none; white-space:nowrap; margin-left:auto;}
