/* =====================================================================
   BROTHERS TECH — storefront design system
   Navy from the logo, a cool white page, and one bright signal blue.
   Headings are set in Montserrat to echo the wordmark; everything a
   shopper reads at length stays in Inter.
   ===================================================================== */

:root{
  /* Brand */
  --navy:#02437C;            /* the logo blue */
  --blue:#0B5CAD;            /* actions: buttons, links, focus */
  --blue-dark:#02437C;
  --blue-darker:#01325E;
  --blue-soft:#EAF2FB;
  --blue-ring:rgba(11,92,173,.18);
  --signal:#4CC2FF;          /* highlights on dark surfaces only */

  /* Neutrals (all leaning blue, none of them pure grey) */
  --ink:#071A2F;
  --ink-2:#12283F;
  --slate:#41546B;
  --muted:#62748A;
  --line:#DCE4EE;
  --line-soft:#EBF0F6;
  --bg:#F3F6FA;
  --card:#FFFFFF;
  --dark:#061424;

  /* Status */
  --ok:#16A34A;
  --warn:#C76A06;
  --bad:#D92D20;
  --star:#F59E0B;
  --wa:#1FAF57;

  --gutter:24px;
  --header-h:72px;
  --radius:12px;
  --radius-sm:8px;
  --t:.16s ease;
  --shadow:0 1px 2px rgba(7,26,47,.05);
  --shadow-md:0 6px 18px rgba(7,26,47,.09);
  --shadow-lift:0 14px 38px rgba(7,26,47,.16);
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --display:'Montserrat','Inter',-apple-system,'Segoe UI',Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);
  font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
h1,h2,h3,h4{margin:0;line-height:1.2;font-weight:700;letter-spacing:-.02em;font-family:var(--display)}
p{margin:0 0 12px}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}

.wrap{max-width:1440px;margin:0 auto;padding:0 var(--gutter)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Type ---------- */
.h-hero{font-size:clamp(30px,4vw,46px);line-height:1.12;letter-spacing:-.03em}
.h-sec{font-size:clamp(20px,2.4vw,26px);letter-spacing:-.025em}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.muted{color:var(--muted)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 20px;border-radius:var(--radius-sm);border:1px solid transparent;
  background:var(--blue);color:#fff;font-size:14px;font-weight:600;line-height:1.2;
  transition:background var(--t),border-color var(--t),color var(--t),box-shadow var(--t);
  white-space:nowrap
}
.btn:hover{background:var(--blue-dark)}
.btn:active{background:var(--blue-darker)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn svg{width:17px;height:17px;flex:none}
.btn-lg{padding:14px 26px;font-size:15px}
.btn-sm{padding:8px 14px;font-size:13px}
.btn-sm svg{width:15px;height:15px}
.btn-block{width:100%}
.btn-line{background:#fff;border-color:var(--line);color:var(--ink)}
.btn-line:hover{background:var(--blue-soft);border-color:var(--blue);color:var(--blue-dark)}
.btn-dark{background:var(--ink)}
.btn-dark:hover{background:var(--ink-2)}
.btn-ghost{background:transparent;color:var(--slate)}
.btn-ghost:hover{background:var(--line-soft);color:var(--ink)}
.btn-danger{background:var(--bad)}
.btn-danger:hover{background:#B91C1C}

.link-more{
  display:inline-flex;align-items:center;gap:4px;color:var(--blue);
  font-size:14px;font-weight:600;transition:gap var(--t)
}
.link-more:hover{gap:8px}
.link-more svg{width:16px;height:16px}

/* ---------- Announcement strip ---------- */
.announce{background:var(--navy);color:#DCE9F7;font-size:12.5px;font-weight:500}
.announce .wrap{height:36px;overflow:hidden;display:flex;align-items:center}
.announce-track{display:flex;align-items:center;justify-content:center;flex:1;min-width:0}
.announce-set{display:flex;align-items:center;justify-content:center;gap:28px;flex:1}
/* Desktop shows one static copy; the duplicate is only there for the phone loop. */
.announce-set:last-child{display:none}
.announce span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.announce svg{width:14px;height:14px;color:var(--signal)}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:18px;min-height:var(--header-h)}
.burger{display:none;align-items:center;justify-content:center;width:42px;height:42px;
  border-radius:var(--radius-sm);color:var(--ink);flex:none}
.burger:hover{background:var(--line-soft)}
.brand{display:flex;align-items:center;flex:none}
.brand img{height:42px;width:auto;max-width:100%;object-fit:contain}

/* Desktop search: field + category select + button, as one control */
.search-wrap{flex:1;max-width:720px;position:relative}
.search-form{display:flex;align-items:stretch;gap:0;border:1.5px solid var(--line);
  border-radius:var(--radius-sm);background:#fff;transition:border-color var(--t),box-shadow var(--t)}
.search-form:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-ring)}
.search-field{flex:1;position:relative;min-width:0;display:flex;align-items:center}
.search-field > input{
  flex:1;min-width:0;border:0;background:none;padding:11px 14px;font-size:14px;border-radius:var(--radius-sm)
}
.search-field > input:focus{outline:none}
.search-cat{
  border:0;border-left:1px solid var(--line);background:#fff;padding:0 30px 0 12px;font-size:13.5px;
  color:var(--slate);max-width:170px;cursor:pointer;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;background-size:15px
}
.search-cat:focus{outline:none}
.search-form .btn{border-radius:0 var(--radius-sm) var(--radius-sm) 0;margin:-1px -1px -1px 0}

.header-actions{display:flex;align-items:center;gap:4px;flex:none;margin-left:auto}
.icon-btn{
  display:inline-flex;align-items:center;justify-content:center;position:relative;
  width:42px;height:42px;border-radius:var(--radius-sm);color:var(--ink-2);transition:background var(--t),color var(--t)
}
.icon-btn:hover{background:var(--line-soft);color:var(--blue)}
.icon-btn svg{width:22px;height:22px}
.badge{
  position:absolute;top:3px;right:2px;min-width:18px;height:18px;padding:0 5px;
  background:var(--blue);color:#fff;border-radius:9px;font-size:10.5px;font-weight:700;
  display:flex;align-items:center;justify-content:center;line-height:1;border:2px solid #fff
}
.mobile-search{display:none;padding:0 0 12px}

/* Category nav strip (desktop): a dark rail under the white header */
.catbar{background:var(--ink)}
.catbar .wrap{display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.catbar .wrap::-webkit-scrollbar{display:none}
.catbar a{
  padding:12px 13px;font-size:13.5px;font-weight:500;color:#B9C8DA;white-space:nowrap;
  border-bottom:2px solid transparent;transition:color var(--t),border-color var(--t)
}
.catbar a:hover{color:#fff}
.catbar a.active{color:#fff;border-bottom-color:var(--signal);font-weight:600}
.catbar a.hot{color:#FFB44A;font-weight:600}
.catbar a.push{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
.catbar a.push svg{color:var(--signal)}

/* ---------- Search suggestions ---------- */
.search-suggest{
  position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:80;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-lift);max-height:min(70vh,440px);overflow-y:auto;overscroll-behavior:contain
}
.search-suggest[hidden]{display:none !important}
.ss-item{display:flex;align-items:center;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line-soft)}
.ss-item:last-child{border-bottom:0}
.ss-item:hover,.ss-item.active{background:var(--blue-soft)}
.ss-item img{width:44px;height:44px;object-fit:contain;background:#fff;border:1px solid var(--line-soft);
  border-radius:6px;flex:none;padding:3px}
.ss-text{flex:1;min-width:0}
.ss-name{font-size:13.5px;font-weight:600;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ss-meta{font-size:11.5px;color:var(--muted);margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ss-price{font-size:13.5px;font-weight:700;color:var(--blue-dark);flex:none;white-space:nowrap}
.ss-was{display:block;font-size:11px;color:var(--muted);text-decoration:line-through;font-weight:400}
.ss-empty{padding:18px;text-align:center;color:var(--muted);font-size:13.5px}
.ss-all{display:block;padding:11px;text-align:center;font-size:13px;font-weight:600;color:var(--blue);
  background:var(--blue-soft);position:sticky;bottom:0}

/* ---------- Mobile drawer nav ---------- */
.mobile-nav{
  position:fixed;inset:0 auto 0 0;width:min(86vw,330px);background:#fff;z-index:120;
  transform:translateX(-100%);transition:transform 240ms cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;overflow-y:auto
}
.mobile-nav.open{transform:none}
.mn-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;
  border-bottom:1px solid var(--line)}
.mn-head img{height:34px;width:auto}
.mn-sec{padding:12px 16px 5px;font-size:10.5px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted)}
.mn-link{display:flex;align-items:center;gap:11px;padding:11px 16px;font-size:14.5px;min-height:44px;
  border-bottom:1px solid var(--line-soft)}
.mn-link svg{width:18px;height:18px;color:var(--muted);flex:none}
.mn-link:hover{background:var(--blue-soft);color:var(--blue-dark)}
.mn-link .chev{margin-left:auto;width:15px;height:15px;opacity:.5}
.mn-foot{padding:16px;margin-top:auto;background:var(--bg);font-size:13px;color:var(--slate)}
.mn-foot a{display:flex;align-items:center;gap:8px;padding:5px 0}
.mn-foot svg{width:16px;height:16px;color:var(--blue)}

.overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:110;opacity:0;visibility:hidden;
  transition:opacity var(--t),visibility var(--t)}
.overlay.show{opacity:1;visibility:visible}

/* ---------- Hero: edge to edge ----------
   No gutters and no rounded corners: the slider is the full width of the
   window. Only the copy lines up with the page grid, via the inner .wrap.
   A slide without a photo falls back to the navy field with circuit traces
   lifted from the logo, so the hero never looks empty. */
.hero{padding:0}
.hero-slider{position:relative;overflow:hidden;background:var(--dark)}
.hero-track{display:flex;transition:transform 520ms cubic-bezier(.4,0,.2,1)}
.hero-slide{
  flex:0 0 100%;position:relative;display:flex;align-items:center;
  min-height:clamp(360px,60vh,620px);
  background:
    radial-gradient(120% 140% at 88% 10%,rgba(76,194,255,.20) 0%,rgba(76,194,255,0) 55%),
    linear-gradient(115deg,#031A33 0%,#02437C 62%,#0B5CAD 100%)
}
.hero-slide::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 420' fill='none' stroke='%234CC2FF' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M640 70H470l-56 56H300'/%3E%3Ccircle cx='282' cy='126' r='17'/%3E%3Cpath d='M640 150H520l-70 70H372'/%3E%3Ccircle cx='354' cy='220' r='17'/%3E%3Cpath d='M640 250H560l-64 64H250'/%3E%3Ccircle cx='232' cy='314' r='17'/%3E%3Cpath d='M640 350H590l-40 40H430'/%3E%3Ccircle cx='412' cy='390' r='17'/%3E%3Cpath d='M560 0v40l-50 50'/%3E%3Ccircle cx='498' cy='102' r='17' fill='%234CC2FF' stroke='none'/%3E%3C/svg%3E") right center/auto 100% no-repeat;
  opacity:.34
}
.hero-slide.has-img::before{display:none}
.hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-slide.has-img::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(3,20,40,.94) 0%,rgba(3,20,40,.74) 42%,rgba(3,20,40,.12) 80%)
}
.hero-slide > .wrap{position:relative;z-index:2;width:100%}
.hero-copy{padding:48px 0 62px;max-width:640px;color:#fff}
.hero-copy h2{
  font-size:clamp(30px,4.7vw,60px);font-weight:800;line-height:1.04;letter-spacing:-.035em;
  margin-bottom:16px;white-space:pre-line;text-wrap:balance
}
.hero-copy p{color:#C9DBEE;font-size:clamp(15px,1.3vw,18px);max-width:480px;margin-bottom:26px}
.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;
  border-radius:50%;background:rgba(255,255,255,.14);backdrop-filter:blur(6px);color:#fff;
  display:flex;align-items:center;justify-content:center;transition:background var(--t)
}
.hero-arrow:hover{background:rgba(255,255,255,.3)}
.hero-arrow.prev{left:14px}
.hero-arrow.next{right:14px}
.hero-arrow svg{width:20px;height:20px}
/* Wide screens: keep the arrows clear of the headline */
@media (min-width:861px) and (max-width:1560px){
  .hero-slide > .wrap{padding-left:74px;padding-right:74px}
}
.hero-dots{position:absolute;left:0;right:0;bottom:20px;z-index:3;display:flex;justify-content:center;gap:7px}
.hero-dots button{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.42);transition:all var(--t)}
.hero-dots button.active{background:var(--signal);width:26px;border-radius:4px}

/* The line under the hero: what the shop is, and where */
.intro{background:#fff;border-bottom:1px solid var(--line)}
.intro .wrap{
  display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);align-items:center;
  gap:10px 36px;padding-top:22px;padding-bottom:22px
}
.intro h1{font-size:clamp(20px,2.3vw,28px);font-weight:800;letter-spacing:-.03em;color:var(--navy)}
.intro p{margin:0;color:var(--slate);font-size:14.5px;max-width:78ch}
.intro p:empty{display:none}

/* ---------- Sections ---------- */
.section{padding:34px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.section-head h2{font-size:clamp(19px,2.2vw,24px);font-weight:800;display:flex;align-items:center;gap:10px}
/* A node and a trace, the same shape the logo is drawn from */
.section-head h2::before{
  content:"";flex:none;width:30px;height:12px;
  background:
    radial-gradient(circle at 6px 6px,transparent 2.6px,var(--blue) 3px,var(--blue) 5.4px,transparent 6px),
    linear-gradient(var(--blue),var(--blue)) 12px 4.5px/18px 3px no-repeat
}
.section-head h2 svg{display:none}

/* ---------- Category tiles ---------- */
.cat-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px}
.cat-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 8px 11px;
  text-align:center;transition:border-color var(--t),box-shadow var(--t),transform var(--t)
}
.cat-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.cat-card img{width:100%;aspect-ratio:1;object-fit:contain;margin-bottom:8px}
.cat-card span{font-size:12.5px;font-weight:600;color:var(--ink-2);display:block;line-height:1.3}
.cat-more{display:none}

/* ---------- Product grid ---------- */
.grid-products{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.grid-products.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{
  position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:12px;display:flex;flex-direction:column;transition:border-color var(--t),box-shadow var(--t)
}
.card:hover{border-color:#B7C8DC;box-shadow:var(--shadow-md)}
.card-media{position:relative;display:block;aspect-ratio:1;margin-bottom:11px;background:#fff;border-radius:6px;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:contain;transition:transform .3s ease}
.card:hover .card-media img{transform:scale(1.04)}
.card-flags{position:absolute;top:0;left:0;display:flex;flex-direction:column;gap:4px;z-index:2}
.flag{font-size:10.5px;font-weight:700;letter-spacing:.02em;
  padding:3px 8px;border-radius:5px;color:#fff;background:var(--navy)}
.flag.save{background:var(--bad)}
.flag.out{background:var(--muted)}
.flag.used{background:var(--warn)}
.wish{
  position:absolute;top:0;right:0;z-index:2;width:32px;height:32px;border-radius:50%;
  background:rgba(255,255,255,.92);color:var(--muted);display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);transition:color var(--t),border-color var(--t)
}
.wish svg{width:16px;height:16px}
.wish:hover,.wish.on{color:var(--bad);border-color:var(--bad)}
.wish.on svg{fill:currentColor}
.card-brand{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
.card-name{font-size:13.5px;font-weight:600;line-height:1.35;margin-bottom:4px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.card-specs{font-size:11.5px;color:var(--muted);line-height:1.4;margin-bottom:9px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-foot{margin-top:auto}
.card-price{display:flex;align-items:baseline;gap:7px;margin-bottom:9px}
.card-price b{font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--navy);font-family:var(--display)}
.card-price s{font-size:12.5px;color:var(--muted)}
.card .btn{width:100%}
.stock-hint{font-size:11.5px;color:var(--warn);font-weight:600;margin-bottom:7px}
.stock-hint.out{color:var(--muted)}

/* ---------- Trust badges ---------- */
.trust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.trust div{display:flex;align-items:center;gap:12px;justify-content:center;text-align:left}
.trust svg{width:26px;height:26px;color:var(--navy);flex:none}
.trust b{display:block;font-size:13.5px;font-weight:600}
.trust span{font-size:12px;color:var(--muted)}

/* ---------- Promo banners ---------- */
.grid-banners{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.promo{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--dark);min-height:180px;
  display:flex;align-items:center}
.promo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}
.promo-copy{position:relative;z-index:2;padding:26px;color:#fff;max-width:70%}
.promo-copy h3{font-size:20px;margin-bottom:6px}
.promo-copy p{color:#C9DBEE;font-size:13.5px;margin-bottom:14px}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink);color:#9FB2C8;margin-top:42px;border-top:3px solid var(--blue)}
.footer-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:36px;padding:44px 0 32px}
.site-footer h4{color:#fff;font-size:13px;letter-spacing:.09em;text-transform:uppercase;margin-bottom:14px}
.site-footer a{display:block;padding:4px 0;font-size:13.5px;transition:color var(--t)}
.site-footer a:hover{color:#fff}
.footer-brand img{height:38px;width:auto;margin-bottom:16px;filter:brightness(0) invert(1)}
.footer-brand p{font-size:13.5px;max-width:290px}
.f-contact a{display:flex;align-items:flex-start;gap:9px}
.f-contact svg{width:16px;height:16px;color:var(--signal);flex:none;margin-top:3px}
.f-contact b{display:block;color:#fff;font-weight:600}
.socials{display:flex;gap:8px;margin-top:14px}
.socials a{width:36px;height:36px;border-radius:8px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;padding:0}
.socials a:hover{background:var(--blue);color:#fff}
.socials svg{width:17px;height:17px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.09);padding:16px 0;font-size:12.5px;
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}

/* ---------- Cart drawer ---------- */
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(94vw,410px);background:#fff;z-index:130;
  transform:translateX(100%);transition:transform 260ms cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column
}
.drawer.open{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--line)}
.drawer-head h3{font-size:17px}
.drawer-body{flex:1;overflow-y:auto;padding:4px 18px;-webkit-overflow-scrolling:touch}
.drawer-foot{border-top:1px solid var(--line);padding:15px 18px calc(16px + env(safe-area-inset-bottom));background:#fff}
.drawer-foot .row{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;font-size:13.5px;color:var(--slate)}
.drawer-foot .row.total{font-size:17px;font-weight:700;color:var(--ink);margin:10px 0 14px}
.cart-line{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;padding:14px 0;border-bottom:1px solid var(--line-soft)}
.cart-line:last-child{border-bottom:0}
.cart-line .thumb{width:64px;height:64px;object-fit:contain;background:#fff;border:1px solid var(--line-soft);border-radius:6px;padding:3px}
.cart-line .nm{font-size:13px;font-weight:600;line-height:1.35;margin-bottom:2px}
.cart-line .meta{font-size:11.5px;color:var(--muted);margin-bottom:7px}
.cart-line .pr{font-size:13.5px;font-weight:700}
.cart-line .rm{color:var(--muted);padding:3px;align-self:flex-start}
.cart-line .rm:hover{color:var(--bad)}
.cart-line .rm svg{width:16px;height:16px}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.qty button{width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:var(--slate);font-size:16px}
.qty button:hover{background:var(--line-soft);color:var(--blue)}
.qty input{width:36px;height:28px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);
  text-align:center;font-size:13px;font-weight:600;-moz-appearance:textfield}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cart-empty{text-align:center;padding:50px 20px;color:var(--muted)}
.cart-empty svg{width:44px;height:44px;color:var(--line);margin:0 auto 12px}

/* ---------- Product page ---------- */
.pdp{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:34px;padding:24px 0}
.gallery{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px}
.gallery-thumbs{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow-y:auto}
.gallery-thumbs button{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;padding:4px;flex:0 0 74px}
.gallery-thumbs button.active{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-ring)}
.gallery-thumbs img{width:100%;aspect-ratio:1;object-fit:contain}
.gallery-main{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;
  display:flex;align-items:center;justify-content:center}
.gallery-main img{width:100%;aspect-ratio:1;object-fit:contain}
.crumbs{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);padding:14px 0 0;flex-wrap:wrap}
.crumbs a:hover{color:var(--blue)}
.crumbs svg{width:13px;height:13px;opacity:.6}
.pdp-brand{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);margin-bottom:6px}
.pdp h1{font-size:clamp(20px,2.5vw,27px);margin-bottom:10px}
.pdp-sub{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;background:var(--bg);
  border:1px solid var(--line);border-radius:20px;padding:4px 11px;color:var(--slate)}
.chip.ok{background:#F0FDF4;border-color:#BBF7D0;color:#15803D}
.chip.warn{background:#FFFBEB;border-color:#FDE68A;color:#B45309}
.chip.bad{background:#FEF2F2;border-color:#FECACA;color:#B91C1C}
.pdp-price{display:flex;align-items:baseline;gap:11px;padding:14px 0;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);margin-bottom:16px}
.pdp-price b{font-size:32px;font-weight:800;letter-spacing:-.03em;color:var(--navy);font-family:var(--display)}
.pdp-price s{font-size:16px;color:var(--muted)}
.pdp-price .save{font-size:12.5px;font-weight:700;color:#fff;background:var(--bad);padding:3px 9px;border-radius:5px}
.opt-group{margin-bottom:16px}
.opt-head{font-size:12.5px;font-weight:600;margin-bottom:8px;color:var(--slate)}
.opt-variants{display:flex;flex-wrap:wrap;gap:8px}
.opt-variants button{
  border:1px solid var(--line);border-radius:var(--radius-sm);padding:9px 14px;background:#fff;
  font-size:13.5px;font-weight:500;transition:all var(--t);text-align:left
}
.opt-variants button:hover{border-color:var(--blue)}
.opt-variants button.active{border-color:var(--blue);background:var(--blue-soft);color:var(--blue-dark);font-weight:600}
.opt-variants button:disabled{opacity:.45;cursor:not-allowed;text-decoration:line-through}
.opt-variants small{display:block;font-size:11px;color:var(--muted);font-weight:400}
.pdp-actions{display:flex;gap:10px;margin:18px 0}
.pdp-actions .btn{flex:1}
.wish-lg{width:48px;flex:none !important;border:1px solid var(--line);border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;color:var(--muted);background:#fff}
.wish-lg:hover,.wish-lg.on{color:var(--bad);border-color:var(--bad)}
.wish-lg.on svg{fill:currentColor}
.wish-lg svg{width:20px;height:20px}
.assurances{display:grid;gap:11px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.assurances > div,.assurances > a{display:flex;gap:11px;align-items:flex-start;font-size:13px}
.assurances > div > div,.assurances > a > div{min-width:0}
.assurances > a:hover b{color:var(--blue)}
.assurances svg{width:19px;height:19px;color:var(--blue);flex:none;margin-top:1px}
.assurances b{display:block;font-size:13px}
.assurances span{color:var(--muted);font-size:12.5px}

/* Spec table */
.specs-table{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.specs-table th,.specs-table td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line-soft);vertical-align:top}
.specs-table tr:last-child th,.specs-table tr:last-child td{border-bottom:0}
.specs-table th{width:38%;font-weight:600;color:var(--slate);background:#FBFCFD}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto}
.tabs button{padding:11px 16px;font-size:14px;font-weight:600;color:var(--muted);
  border-bottom:2px solid transparent;white-space:nowrap}
.tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}
.tab-panel[hidden]{display:none}
.prose{font-size:14.5px;color:var(--slate);max-width:760px}
.prose h2{font-size:17px;color:var(--ink);margin:20px 0 8px}
.prose ul{margin:0 0 12px;padding-left:20px}
.prose li{margin-bottom:5px}

/* ---------- Shop / filters ---------- */
.page-head{background:#fff;border-bottom:1px solid var(--line);padding:22px 0}
.page-head h1{font-size:clamp(21px,2.6vw,28px);margin-bottom:4px}
.page-head p{color:var(--muted);font-size:14px;margin:0}
.shop-layout{display:grid;grid-template-columns:238px minmax(0,1fr);gap:24px;padding:24px 0}
.filters-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;
  align-self:start;position:sticky;top:calc(var(--header-h) + 12px)}
.filter-block{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line-soft)}
.filter-block:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.filter-block h4{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.filter-block a{display:flex;justify-content:space-between;padding:5px 0;font-size:13.5px;color:var(--slate)}
.filter-block a:hover{color:var(--blue)}
.filter-block a.active{color:var(--blue);font-weight:600}
.filter-block a span{color:var(--muted);font-size:12px}
.price-row{display:flex;gap:8px;align-items:center}
.price-row input{width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;padding:8px 9px;font-size:13px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.toolbar select{border:1px solid var(--line);border-radius:var(--radius-sm);padding:9px 12px;font-size:13.5px;background:#fff}
.filter-toggle{display:none}
.pager{display:flex;justify-content:center;gap:6px;padding:26px 0 6px;flex-wrap:wrap}
.pager a,.pager span{min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:var(--radius-sm);font-size:13.5px;background:#fff;padding:0 10px}
.pager a:hover{border-color:var(--blue);color:var(--blue)}
.pager .on{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:600}
.empty-state{text-align:center;padding:56px 20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.empty-state svg{width:46px;height:46px;color:var(--line);margin:0 auto 14px}
.empty-state h3{font-size:17px;margin-bottom:6px}
.empty-state p{color:var(--muted);font-size:14px}

/* ---------- Forms ---------- */
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;
  font-size:14px;background:#fff;transition:border-color var(--t),box-shadow var(--t)
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-ring)
}
.field textarea{min-height:96px;resize:vertical}
.field .hint{font-size:12px;color:var(--muted);margin-top:5px;display:block}
.field .req{color:var(--bad)}
.form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px}
.alert{padding:12px 14px;border-radius:var(--radius-sm);font-size:13.5px;margin-bottom:16px;border:1px solid}
.alert-success{background:#F0FDF4;border-color:#BBF7D0;color:#15803D}
.alert-error{background:#FEF2F2;border-color:#FECACA;color:#B91C1C}
.alert-info{background:var(--blue-soft);border-color:#BFDBFE;color:var(--blue-darker)}

/* ---------- Checkout ---------- */
.checkout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:26px;padding:24px 0}
.co-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px}
.co-box h2{font-size:16px;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.co-num{width:24px;height:24px;border-radius:50%;background:var(--blue);color:#fff;font-size:12.5px;
  display:inline-flex;align-items:center;justify-content:center;flex:none}
.summary{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;
  position:sticky;top:calc(var(--header-h) + 12px)}
.sum-line{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:13px}
.sum-line img{width:48px;height:48px;object-fit:contain;border:1px solid var(--line-soft);border-radius:6px;padding:2px}
.tot{display:flex;justify-content:space-between;padding:5px 0;font-size:13.5px;color:var(--slate)}
.tot.grand{font-size:17px;font-weight:700;color:var(--ink);border-top:1px solid var(--line);margin-top:9px;padding-top:12px}
.captcha-row{display:flex;gap:11px;align-items:flex-end}
.captcha-row img{border:1px solid var(--line);border-radius:var(--radius-sm);height:46px}
.captcha-row .field{flex:1;margin-bottom:0}

/* ---------- Order success ---------- */
.success{max-width:620px;margin:0 auto;text-align:center;padding:46px 0}
.success-ico{width:64px;height:64px;border-radius:50%;background:#F0FDF4;color:var(--ok);
  display:flex;align-items:center;justify-content:center;margin:0 auto 18px}
.success-ico svg{width:32px;height:32px}
.order-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;
  text-align:left;margin:24px 0}
.order-box .row{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:13.5px}

/* ---------- Toast ---------- */
.toast{
  position:fixed;left:50%;bottom:26px;transform:translate(-50%,14px);z-index:200;
  background:var(--ink);color:#fff;padding:12px 20px;border-radius:var(--radius-sm);font-size:13.5px;
  box-shadow:var(--shadow-lift);opacity:0;visibility:hidden;
  transition:opacity var(--t),transform var(--t),visibility var(--t);max-width:calc(100vw - 32px);text-align:center
}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.toast.error{background:var(--bad)}

/* ---------- Mobile bottom nav ---------- */
.tabbar{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:95;background:#fff;
  border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)
}
.tabbar-inner{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.tabbar a{
  display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px 7px;
  font-size:10.5px;font-weight:500;color:var(--muted);position:relative
}
.tabbar a.active{color:var(--blue)}
.tabbar a.active svg{stroke-width:2.2}
.tabbar svg{width:22px;height:22px}
.tabbar .badge{top:2px;right:calc(50% - 20px)}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width:1280px){
  .cat-strip{grid-template-columns:repeat(5,minmax(0,1fr))}
  .grid-products{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (max-width:1024px){
  :root{--gutter:20px}
  .grid-products,.grid-products.cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pdp{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
  .checkout{grid-template-columns:minmax(0,1fr)}
  .summary{position:static}
  .footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}
  .shop-layout{grid-template-columns:minmax(0,1fr)}
  .filters-panel{position:static;display:none}
  .filters-panel.open{display:block}
  .filter-toggle{display:inline-flex}
}

@media (max-width:860px){
  :root{--header-h:60px}
  .burger{display:inline-flex}
  .catbar{display:none}
  .search-wrap{display:none}
  .mobile-search{display:block}
  .mobile-search .search-form{border-radius:var(--radius-sm)}
  .mobile-search .search-cat,.mobile-search .search-form .btn{display:none}
  .mobile-search .search-field > input{padding:10px 12px}
  .brand img{height:31px}
  .brand{min-width:0;flex:1 1 auto}
  .header-actions [data-toggle-search]{display:none}   /* the search field sits right below */
  .header-inner{gap:6px;min-height:var(--header-h)}
  .icon-btn{width:40px;height:40px}
  /* ---- Phone: run the strip as a news ticker ----
     Both copies are shown and the track slides left by exactly one copy,
     so the animation restarts on an identical frame and never jumps. */
  .announce{font-size:11.5px}
  .announce .wrap{
    height:32px;padding:0;
    /* soften both edges so text fades out instead of being sliced by the bezel */
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 18px),transparent);
            mask-image:linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 18px),transparent)
  }
  .announce-track{
    justify-content:flex-start;flex:none;width:max-content;
    animation:ticker var(--ticker-duration,24s) linear infinite
  }
  .announce-set{justify-content:flex-start;flex:none;gap:26px;padding-right:26px}
  .announce-set:last-child{display:flex}
  .announce:active .announce-track{animation-play-state:paused}

  .hero-slide{min-height:clamp(300px,52vh,420px)}
  .hero-slide::before{opacity:.2;background-size:auto 78%;background-position:right -90px bottom}
  .hero-copy{padding:34px 0 52px;max-width:none}
  .hero-copy h2{font-size:clamp(27px,8vw,38px)}
  .hero-copy p{font-size:14.5px;margin-bottom:20px}
  .hero-arrow{display:none}
  .intro .wrap{grid-template-columns:minmax(0,1fr);padding-top:16px;padding-bottom:16px}
  .grid-branches{grid-template-columns:minmax(0,1fr)}
  .contact-grid{grid-template-columns:minmax(0,1fr);gap:20px}

  .section{padding:22px 0}
  .trust{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}
  .trust div{flex-direction:column;text-align:center;gap:5px}
  .grid-banners{grid-template-columns:minmax(0,1fr)}
  .promo-copy{max-width:78%}
  .footer-grid{grid-template-columns:minmax(0,1fr);gap:26px;padding:32px 0 22px}

  /* Bottom tab bar takes over from the desktop footer nav */
  .tabbar{display:block}
  body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(74px + env(safe-area-inset-bottom))}

  /* Categories: horizontal rail by default, full grid once expanded */
  .cat-strip{
    display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px
  }
  .cat-strip::-webkit-scrollbar{display:none}
  .cat-strip .cat-card{flex:0 0 104px;scroll-snap-align:start}
  .cat-strip.expanded{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
  .cat-strip.expanded .cat-card{flex:auto}
  .cat-more{display:inline-flex}

  .pdp{grid-template-columns:minmax(0,1fr);gap:20px;padding:16px 0}
  .gallery{grid-template-columns:minmax(0,1fr);gap:9px}
  .gallery-thumbs{flex-direction:row;order:2;max-height:none;overflow-x:auto}
  .gallery-thumbs button{flex:0 0 62px}
  .gallery-main{padding:14px}
  .form-row{grid-template-columns:minmax(0,1fr);gap:0}
  .co-box{padding:16px}
}

@media (max-width:640px){
  .grid-products,.grid-products.cols-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .card{padding:10px}
  .card-name{font-size:13px}
  .card-price b{font-size:15px}
  .drawer{width:100vw}
  .section-head h2{font-size:18px}
  .pdp-price b{font-size:25px}
}

@media (max-width:400px){
  :root{--gutter:14px}
  .cat-strip.expanded{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cat-strip .cat-card{flex-basis:94px}
  .cat-card span{font-size:11.5px}
  .grid-products{gap:9px}
  .btn{padding:10px 15px;font-size:13.5px}
  .trust{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

@keyframes ticker{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important}
  .hero-track{transition:none}
  /* No motion: drop the duplicate and let the strip scroll by hand instead. */
  .announce-track{animation:none;width:100%}
  .announce-set:last-child{display:none !important}
  .announce .wrap{overflow-x:auto;scrollbar-width:none;padding:0 var(--gutter)}
  .announce .wrap::-webkit-scrollbar{display:none}
}

@media print{
  .site-header,.site-footer,.drawer,.overlay,.tabbar,.announce,.catbar,.wa-float{display:none !important}
  body{padding-bottom:0}
}

/* =====================================================================
   Mobile search suggestions span the full screen width.
   The dropdown is normally anchored to .search-field, which on a phone
   left it only as wide as the input — long product names were cut off
   after a couple of words. Anchoring to the form and pulling out to the
   gutters gives it the entire viewport.
   ===================================================================== */
@media (max-width:860px){
  .mobile-search .search-form{position:relative}
  .mobile-search .search-field{position:static}
  .mobile-search .search-suggest{
    left:calc(var(--gutter) * -1);
    right:calc(var(--gutter) * -1);
    top:calc(100% + 9px);
    border-left:0;border-right:0;border-radius:0;
    max-height:calc(100vh - var(--header-h) - 140px)
  }
  .mobile-search .ss-item{padding:11px 16px;gap:13px}
  .mobile-search .ss-item img{width:50px;height:50px}
  .mobile-search .ss-name{font-size:14px;-webkit-line-clamp:2}
  .mobile-search .ss-meta{font-size:12px;white-space:normal}
  .mobile-search .ss-price{font-size:14px}
}

/* =====================================================================
   Classes used by checkout, contact and order-success
   ===================================================================== */
.alert-warning{background:#FFFBEB;border-color:#FDE68A;color:#B45309}
.btn-outline{background:transparent;color:var(--blue);border-color:var(--blue)}
.btn-outline:hover{background:var(--blue-soft)}

/* checkout: inline field errors */
.field.err input,.field.err select,.field.err textarea{border-color:var(--bad)}
.err-msg{font-size:12px;color:var(--bad);margin-top:5px}

/* checkout: captcha */
.cap-img{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff}
.cap-refresh{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;color:var(--muted)}
.cap-refresh:hover{border-color:var(--blue);color:var(--blue)}

/* checkout: one summary row */
.line{display:flex;gap:11px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:13px}
.line:last-of-type{border-bottom:0}
.line img{width:48px;height:48px;object-fit:contain;border:1px solid var(--line-soft);border-radius:6px;padding:2px;flex:none}
.line .meta{font-size:11.5px;color:var(--muted)}

/* order success */
.tick{width:64px;height:64px;border-radius:50%;background:#F0FDF4;color:var(--ok);
  display:flex;align-items:center;justify-content:center;margin:0 auto 18px}

.pdp-info{min-width:0}

/* contact page two-column shell (its own media query lives on the page) */
.contact-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:26px;align-items:start;padding:26px 0 30px}
.contact-grid .co-box{margin-bottom:0}

/* Owner-authored page content (page.php, contact intro) */
.content{font-size:15px;color:var(--slate);max-width:820px;padding:26px 0 46px}
.content h2{font-size:19px;color:var(--ink);margin:26px 0 10px}
.content h3{font-size:16px;color:var(--ink);margin:20px 0 8px}
.content p{margin:0 0 14px;line-height:1.7}
.content ul,.content ol{margin:0 0 16px;padding-left:22px}
.content li{margin-bottom:6px}
.content a{color:var(--blue);text-decoration:underline}
.content table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:14px;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.content th,.content td{padding:10px 13px;text-align:left;border-bottom:1px solid var(--line-soft)}
.content th{background:#FBFCFD;font-weight:600;color:var(--ink)}
.content tr:last-child th,.content tr:last-child td{border-bottom:0}

/* =====================================================================
   Checkout — section headings and the block under the submit button
   ===================================================================== */
.co-box h2,.summary h2{
  font-size:16px;margin:0 0 6px;display:flex;align-items:center;gap:9px;letter-spacing:-.01em
}
.co-box h2.co-step{margin-top:30px;padding-top:24px;border-top:1px solid var(--line-soft)}
.co-lede{
  font-size:13px;color:var(--muted);margin:0 0 18px;
  padding-left:33px          /* line up with the heading text, past the step number */
}
.co-box h2 + .field,.summary h2 + .line{margin-top:16px}

.co-submit{margin-top:20px}

.co-notes{list-style:none;margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--line-soft)}
.co-notes li{display:flex;align-items:flex-start;gap:10px;font-size:12.5px;color:var(--slate);margin-bottom:9px}
.co-notes li:last-child{margin-bottom:0}
.co-notes svg{color:var(--blue);flex:none;margin-top:1px}
.co-notes span{min-width:0}

.co-back{
  display:inline-flex;align-items:center;gap:5px;margin-top:16px;
  font-size:13px;font-weight:500;color:var(--muted);transition:color var(--t)
}
.co-back:hover{color:var(--blue)}

@media (max-width:640px){
  .co-lede{padding-left:0}
  .co-box h2.co-step{margin-top:24px;padding-top:20px}
}

/* =====================================================================
   Horizontal overflow guards
   ---------------------------------------------------------------------
   Grid and flex items default to min-width:auto, which means they refuse
   to shrink below their own content. A single nowrap button inside a
   product card was enough to push both columns of the phone grid wider
   than the screen, which is what produced the sliver of white down the
   right edge and made the right gutter look like it had vanished.
   ===================================================================== */
.card,
.cat-card,
.trust > div,
.promo,
.sum-line,
.cart-line > div,
.tabbar a{min-width:0}

/* Long model numbers and spec strings must wrap rather than set a floor */
.card-brand,.card-name,.card-specs,
.cat-card span,
.trust b,.trust span,
.f-contact span{min-width:0;overflow-wrap:anywhere}

/* The card button may shrink; it should never define the column width */
.card .btn{max-width:100%;min-width:0}

/* Buttons keep nowrap everywhere else, but inside a card on a narrow
   phone the label is allowed to wrap instead of forcing an overflow. */
@media (max-width:400px){
  .card .btn{white-space:normal;padding-left:10px;padding-right:10px;line-height:1.25}
}

/* viewport-fit=cover lets the page run under the display cutout, so the
   gutters have to respect the safe area or content sits under the bezel
   in landscape and on notched devices. */
.wrap{
  padding-left:max(var(--gutter), env(safe-area-inset-left));
  padding-right:max(var(--gutter), env(safe-area-inset-right));
}
.announce .wrap{padding-left:0;padding-right:0}

/* Last line of defence: nothing should scroll the page sideways. Applied
   to the element that actually scrolls, and with clip rather than hidden
   so position:sticky keeps working. */
html{overflow-x:clip}
@supports not (overflow-x:clip){
  html{overflow-x:hidden}
}

/* =====================================================================
   Sub-categories
   ===================================================================== */
.cat-drop{position:relative}
.cat-drop > a{display:inline-flex;align-items:center;gap:3px}
.cat-drop > a svg{transition:transform var(--t)}
.cat-drop.open > a{color:#fff}
.cat-drop.open > a svg{transform:rotate(180deg)}

/*
   Fixed, not absolute. The category bar scrolls horizontally, and any
   overflow other than `visible` on one axis forces the other axis to clip
   too — which cut all but 3px off this menu. Taking it out of the flow and
   positioning it from JS means no ancestor can clip it.
*/
.cat-menu{
  position:fixed;top:0;left:0;z-index:90;min-width:214px;max-width:min(280px,92vw);
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-lift);padding:6px;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity var(--t),transform var(--t),visibility var(--t);
  max-height:min(70vh,420px);overflow-y:auto
}
.cat-drop.open .cat-menu{opacity:1;visibility:visible;transform:none}

/* No JS: fall back to plain absolute positioning under the trigger. The bar
   clips it, so the parent link still works and nothing looks broken. */
.no-js .cat-menu{position:absolute;top:100%;left:0}
.cat-menu a{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 11px;font-size:13.5px;color:var(--slate);
  border-radius:6px;border-bottom:0;white-space:nowrap
}
.cat-menu a .n{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.cat-menu .sep{height:1px;background:var(--line-soft);margin:5px 4px}
.cat-menu a:hover{background:var(--blue-soft);color:var(--blue-dark)}
.cat-menu a b{color:var(--ink);font-weight:600}

/* mobile drawer */
.mn-link.mn-sub{
  padding-left:46px;font-size:13.5px;color:var(--muted);
  background:#FBFCFD;min-height:40px
}
.mn-link.mn-sub:hover{color:var(--blue-dark)}

/* sub-category chips on a parent's shop page */
.subcats{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.subcats a{
  display:inline-flex;align-items:center;gap:6px;padding:7px 14px;
  background:#fff;border:1px solid var(--line);border-radius:20px;
  font-size:13.5px;color:var(--slate);transition:all var(--t)
}
.subcats a:hover{border-color:var(--blue);color:var(--blue-dark);background:var(--blue-soft)}
.subcats a.active{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:600}
.subcats a span{font-size:11.5px;opacity:.7}

/* nested category list in the shop sidebar */
.filter-block a.sub{padding-left:14px;font-size:13px;color:var(--muted)}
.filter-block a.sub:hover,.filter-block a.sub.active{color:var(--blue)}
@media (max-width:860px){
  .subcats{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;padding-bottom:3px}
  .subcats::-webkit-scrollbar{display:none}
  .subcats a{flex:none}
}

/* =====================================================================
   Call for price
   ===================================================================== */
.flag.ask{background:var(--warn)}

.card-price.ask b{font-size:14.5px;color:var(--warn);letter-spacing:-.01em}

.pdp-price.ask{display:block}
.pdp-price.ask b{font-size:24px;color:var(--warn);display:block;letter-spacing:-.02em}
.pdp-price.ask .ask-note{font-size:13px;color:var(--muted)}

.ask-box{
  background:#FFFBEB;border:1px solid #FDE68A;border-radius:var(--radius);
  padding:18px;margin:18px 0
}
.ask-box p{font-size:14px;color:#78350F;margin:0 0 14px}
.ask-actions{display:flex;gap:10px;flex-wrap:wrap}
.ask-actions .btn{flex:1;min-width:0}
.ask-hours{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#92400E;margin-top:12px}
@media (max-width:640px){
  .ask-actions{flex-direction:column}
  .ask-actions .btn,.ask-actions .wish-lg{width:100%}
  .ask-actions .wish-lg{height:44px}
}

/* =====================================================================
   Footer always at the bottom
   ---------------------------------------------------------------------
   On a short page (empty wishlist, a 404, the order confirmation) the
   footer used to finish halfway up the window with page background under
   it. The body is a column as tall as the viewport and <main> takes the
   slack, so the footer is pushed down without ever overlapping content.
   ===================================================================== */
html{height:100%}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body > main{flex:1 0 auto;width:100%;min-width:0}
body > .announce,body > .site-header,body > .catbar,body > .site-footer{flex:none;width:100%}

.skip-link{position:absolute;left:-9999px;top:8px;z-index:300;background:#fff;color:var(--navy);
  padding:10px 16px;border-radius:var(--radius-sm);font-weight:600;box-shadow:var(--shadow-lift)}
.skip-link:focus{left:8px}

/* Buttons on dark surfaces */
.btn-light{background:#fff;color:var(--navy)}
.btn-light:hover{background:var(--blue-soft);color:var(--blue-darker)}
.btn-light:active{background:#D7E6F6}
.btn-wa{background:var(--wa)}
.btn-wa:hover{background:#178A44}
.btn-wa:active{background:#12703A}

/* =====================================================================
   Branches + Google Maps
   ===================================================================== */
.grid-branches{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.branch{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;min-width:0}
.branch-map{position:relative;aspect-ratio:16/9;background:var(--line-soft)}
.branch-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.branch-body{padding:18px 18px 20px}
.branch-body h3{font-size:18px;font-weight:800;margin-bottom:9px;color:var(--navy)}
.branch-addr{display:flex;gap:9px;align-items:flex-start;font-size:14px;color:var(--slate);margin:0 0 6px}
.branch-addr svg{flex:none;color:var(--blue);margin-top:3px}
.branch-addr span{min-width:0;overflow-wrap:anywhere}
.branch-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
@media (max-width:640px){
  .branch-map{aspect-ratio:4/3}
  .branch-actions .btn{flex:1 1 auto}
}

/* =====================================================================
   Floating WhatsApp
   ===================================================================== */
.wa-float{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:90}
.wa-btn{
  width:56px;height:56px;border-radius:50%;background:var(--wa);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 22px rgba(18,112,58,.38);transition:transform var(--t),background var(--t)
}
.wa-btn:hover{background:#178A44;transform:translateY(-2px)}
.wa-btn svg{width:29px;height:29px;stroke-width:1.9}
.wa-menu{
  position:absolute;right:0;bottom:68px;width:min(270px,calc(100vw - 36px));
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lift);overflow:hidden
}
.wa-menu[hidden]{display:none}
.wa-menu-head{padding:11px 14px;font-size:13px;font-weight:600;color:#fff;background:var(--wa)}
.wa-menu a{display:flex;align-items:center;gap:11px;padding:12px 14px;border-top:1px solid var(--line-soft)}
.wa-menu a:hover{background:#F0FBF4}
.wa-menu svg{color:var(--wa);flex:none}
.wa-menu b{display:block;font-size:13.5px;font-weight:600}
.wa-menu span{font-size:12.5px;color:var(--muted);min-width:0}
@media (max-width:860px){
  /* sit above the bottom tab bar */
  .wa-float{bottom:calc(72px + env(safe-area-inset-bottom));right:14px}
  .wa-btn{width:52px;height:52px}
}
/* A drawer or the menu is open: get out of the way */
body.panel-open .wa-float{display:none}

/* An element marked hidden stays hidden, whatever display its class sets
   (the cart and wishlist badges used to show a stray "0"). */
[hidden]{display:none !important}

/* The header already has a search field at every width */
.header-actions [data-toggle-search]{display:none}

/* Promo banners without a photo get the same navy field as the hero */
.promo{background:linear-gradient(115deg,#031A33 0%,#02437C 70%,#0B5CAD 100%)}
.promo-copy h3{font-weight:800;font-size:22px}
@media (min-width:861px){ .brand img{height:46px} }

/* One photo: no thumbnail rail, so the picture takes the full column
   (it used to be squeezed into the 74px thumbnail track). */
.gallery.single{grid-template-columns:minmax(0,1fr)}
@media (max-width:400px){ .branch-actions .btn{flex:1 1 100%} }

/* Slider artwork sits on the right of each picture: on a phone, keep that
   part in frame and darken it enough for the headline on top. */
@media (max-width:860px){
  .hero-slide img{object-position:74% center}
  .hero-slide.has-img::after{background:linear-gradient(180deg,rgba(3,20,40,.82) 0%,rgba(3,20,40,.62) 55%,rgba(3,20,40,.78) 100%)}
}
