/*
Theme Name: Tiul
Theme URI: https://tiul.net
Author: תותח בשיווק בע"מ
Description: תבנית קלה לחנות הולי בסגנון קטלוג (KSP), פלטת פטרול. כל התוכן נבנה בשרת בשביל מהירות, גוגל ו-AI.
Version: 0.7.8
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: tiul
WC requires at least: 9.0
*/

/* Palette "petrol" (color study 26.10.2026): petrol and yellow are free among Israeli mass retailers;
   white on petrol 7.7:1, price red on white 5.9:1, ink on yellow 11.4:1. */
:root{
  --brand:#0A5C63; --brand-2:#E2F0F0; --accent:#FFD400; --on-accent:#14212B; --price:#C8102E;
  --bg:#F4F6F5; --surface:#FFFFFF; --ink:#14212B; --muted:#56606A; --line:#E0E4E3; --line-strong:#C3CBCA; --soft:#EEF2F1;
  --good:#15803D; --font:"Heebo",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; --r:10px; --hdr-h:68px; --hdr-m:112px; --tab-h:60px;
  --ease-out:cubic-bezier(.23,1,.32,1); --ease-drawer:cubic-bezier(.32,.72,0,1);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.55;overflow-x:clip}
img{max-width:100%;height:auto}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.sr,.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
.skip{position:absolute;top:-60px;right:16px;background:var(--ink);color:#fff;padding:8px 14px;border-radius:8px;z-index:100;text-decoration:none}
.skip:focus{top:8px}
.i{width:20px;height:20px;flex:none;vertical-align:middle}
.wrap,div.page{max-width:1280px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
div.page{padding-top:16px;padding-bottom:48px} /* div.: WordPress also puts "page" on <body> */
.page.narrow{max-width:820px}
.ptitle{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;margin:0 0 12px;line-height:1.2;text-wrap:balance}
.btn,.button,button.button,a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:8px;border:0;font-weight:800;text-decoration:none;background:var(--brand);color:#fff;transition:transform 140ms var(--ease-out),background-color 160ms ease}
.btn:active,.button:active{transform:scale(.97)}
.btn.primary{background:var(--brand);color:#fff}
.btn.ghost{background:var(--surface);color:var(--ink);border:1.5px solid var(--line-strong)}
.btn.block{width:100%}
.crumbs,.woocommerce-breadcrumb{display:flex;gap:6px;flex-wrap:wrap;font-size:.85rem;color:var(--muted);margin-bottom:12px}
.crumbs a{text-decoration:none}

/* utility bar + header */
.util{background:var(--brand);color:#fff;font-size:.82rem}
.util .wrap{display:flex;gap:16px;align-items:center;justify-content:space-between;min-height:32px;padding-block:4px}
.util .ship{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.util .ship .i{width:17px;height:17px;color:var(--accent)}
.ulinks{display:flex;gap:16px;white-space:nowrap}
.util a{text-decoration:none;color:rgba(255,255,255,.88)}
.util a b{color:var(--accent)}
@media (hover:hover){.util a:hover{color:#fff;text-decoration:underline}}
@media (max-width:860px){.util .wrap{justify-content:center}.ulinks{display:none}.util .ship{min-width:0;font-size:.78rem}.util .ship>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
header.top{position:sticky;top:0;z-index:30;background:var(--surface);box-shadow:0 1px 0 var(--line)}
.admin-bar header.top{top:32px}
@media (max-width:782px){.admin-bar header.top{top:0}}
header.top .wrap{display:flex;align-items:center;gap:14px;padding-block:10px}
.logo{order:-1;display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:800;font-size:1.9rem;letter-spacing:-.02em;color:var(--brand);line-height:1}
.logo svg{width:34px;height:34px}
.depts{display:inline-flex;align-items:center;gap:6px;background:var(--brand);color:#fff;border:0;border-radius:8px;height:44px;padding:0 14px;font-weight:700;transition:transform 140ms var(--ease-out)}
.depts:active{transform:scale(.97)}
.hsearch{flex:1;display:flex;align-items:center;background:var(--soft);border:1.5px solid var(--line);border-radius:99px;height:46px;padding:0 6px 0 14px;transition:border-color 160ms ease,background-color 160ms ease}
.hsearch:focus-within{border-color:var(--brand);background:var(--surface)}
.hsearch>.i{color:var(--muted)}
.hsearch input[type=search]{flex:1;min-width:0;border:0;background:none;outline:none;padding:0 10px;height:100%;-webkit-appearance:none;font-size:16px}
.hsearch input::placeholder{color:#7a838c}
.hsearch .go{border:0;background:var(--accent);color:var(--on-accent);border-radius:99px;width:36px;height:36px;display:grid;place-items:center;flex:none}
.hacts{display:flex;gap:4px}
.hacts a{position:relative;display:flex;align-items:center;gap:6px;padding:8px 10px;min-height:44px;border-radius:8px;text-decoration:none;font-weight:700;font-size:.92rem;transition:background-color 140ms ease}
@media (hover:hover){.hacts a:hover{background:var(--soft)}}
.hacts .cart{background:var(--soft)}
.count{position:absolute;top:2px;inset-inline-end:0;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--price);color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;font-variant-numeric:tabular-nums;line-height:1}
.count.bump{animation:bump 260ms var(--ease-out)}
@keyframes bump{45%{transform:scale(1.28)}}
@media (max-width:860px){
  header.top .wrap{flex-wrap:wrap;gap:8px 10px;padding-block:8px}
  .logo{order:0;font-size:1.6rem;margin-inline-end:auto}.logo svg{width:30px;height:30px}
  .depts{order:-1;width:44px;padding:0;justify-content:center}.depts span{display:none}
  .hsearch{order:5;flex-basis:100%;height:44px}
  .hacts .lbl,.hacts .hwish{display:none}
  .hacts a{padding:8px;width:44px;justify-content:center}
}

/* drawer */
.scrim{position:fixed;inset:0;background:rgba(10,16,18,.45);z-index:50}
.drawer{position:fixed;top:0;bottom:0;right:0;width:min(380px,92vw);background:var(--surface);z-index:51;transform:translateX(100%);transition:transform 260ms var(--ease-drawer);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);visibility:hidden}
body.dopen .drawer{transform:none;visibility:visible}
.drawer header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);font-weight:800;font-size:1.1rem}
.drawer header button{background:none;border:0;width:40px;height:40px;border-radius:99px;display:grid;place-items:center}
.drawer nav{overflow:auto;padding:8px}
.drawer a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:10px;text-decoration:none;font-weight:600}
.drawer a img{width:40px;height:40px;object-fit:contain;background:var(--soft);border-radius:99px;padding:4px}
.drawer a.hot{color:var(--price)}
.drawer a.hot .i{width:40px}
.drawer .dfoot{margin-top:auto;border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))}
.drawer .dfoot a{font-weight:500;color:var(--muted);padding:9px 10px}
.drawer .dfoot .i{color:var(--brand);width:22px}
@media (hover:hover){.drawer a:hover{background:var(--soft)}}

/* home: category circles (one swipeable row on phones) */
.circles{display:grid;grid-auto-flow:column;grid-template-rows:auto auto;grid-auto-columns:minmax(112px,1fr);gap:14px 10px;padding-block:20px 6px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.circles::-webkit-scrollbar{display:none}
.circles a{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;font-size:.85rem;font-weight:600;text-align:center;line-height:1.25;min-width:0}
.circles .nm{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.circles .c{width:min(88px,100%);aspect-ratio:1;border-radius:99px;background:var(--surface);display:grid;place-items:center;border:1px solid var(--line);overflow:hidden;transition:transform 160ms var(--ease-out),border-color 160ms ease}
.circles .c img{width:72%;height:72%;object-fit:contain}
.circles a:active .c{transform:scale(.95)}
@media (hover:hover){.circles a:hover .c{border-color:var(--brand)}}
.circles .c.clear{background:var(--accent);border:0;font-weight:800;color:var(--on-accent);font-size:.92rem;line-height:1.05;padding:8px}
@media (max-width:640px){
  .circles{grid-auto-columns:76px;gap:12px 10px;scroll-snap-type:x proximity;margin-inline:-16px;padding:14px 16px 4px}
  .circles a{scroll-snap-align:start;font-size:.78rem}
  .circles .c{width:68px}
}
.ptitle,.slide h2,.sechd h2,.logo{letter-spacing:-.01em}

/* home: main banner carousel. Each slide is either a designed image ("full") or text + a product picture.
   Swipe is native scroll-snap; JS only adds arrows, dots and auto-advance. */
.hero{position:relative;margin-top:14px;border-radius:16px;overflow:hidden;background:var(--surface)}
.slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.slides::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:340px;text-decoration:none;color:#fff;background:var(--sbg);--sbg:linear-gradient(120deg,#0A5C63,#0F7F88)}
.slide.bg-ink{--sbg:linear-gradient(120deg,#14212B,#2B3E52)}
.slide.bg-green{--sbg:linear-gradient(120deg,#1E4D3A,#2F6B4A)}
.slide.bg-yellow{--sbg:#FFD400;color:var(--on-accent)}
.slide.bg-sand{--sbg:#EEF2F1;color:var(--ink)}
.slide .txt{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;padding:32px 64px 44px 28px;min-width:0}
.slide small{font-weight:700;font-size:.92rem;opacity:.85}
.slide h2{font-size:clamp(1.35rem,2.8vw,2.3rem);line-height:1.12;margin:0;font-weight:800;text-wrap:balance;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.slide .p{font-size:1.05rem;font-variant-numeric:tabular-nums}
.slide .p b{font-size:2.1rem;font-weight:800;line-height:1}
.slide .p s{opacity:.75}
.slide .cta{display:inline-flex;align-items:center;gap:4px;margin-top:8px;background:var(--accent);color:var(--on-accent);font-weight:800;border-radius:99px;padding:10px 20px;min-height:44px}
.slide.bg-yellow .cta{background:var(--ink);color:#fff}
.slide .cta .i{width:18px;height:18px}
.slide .pic{position:relative;background:#fff;display:grid;place-items:center;padding:20px 20px 20px 48px;clip-path:polygon(0 0,100% 0,90% 100%,0 100%)}
.slide .pic img{max-height:290px;width:auto;object-fit:contain;mix-blend-mode:multiply}
.burst{position:absolute;top:18px;left:18px;width:74px;height:74px;border-radius:99px;background:var(--price);color:#fff;font-weight:800;font-size:1.25rem;display:grid;place-items:center;transform:rotate(-12deg);font-variant-numeric:tabular-nums}
.slide.full{display:block;background:none}
.slide.full img{display:block;width:100%;height:auto;aspect-ratio:1600/560;object-fit:cover}
.dots{position:absolute;bottom:12px;inset-inline-start:28px;display:flex;gap:6px}
.dots button{width:24px;height:24px;border:0;background:none;padding:0;display:grid;place-items:center}
.dots button::before{content:"";width:8px;height:8px;border-radius:99px;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.12);transition:width 200ms ease,background-color 200ms ease}
.dots button[aria-current="true"]::before{width:22px;background:#fff}
.arr{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:99px;border:0;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(0,0,0,.15);display:grid;place-items:center;transition:transform 140ms var(--ease-out)}
.arr:active{transform:translateY(-50%) scale(.94)}
.arr.prev{right:12px}.arr.prev .i{transform:scaleX(-1)}.arr.next{left:12px}
@media (max-width:640px){
  .hero{margin-inline:-16px;border-radius:0;margin-top:10px}
  .slide{grid-template-columns:1fr;min-height:0}
  .slide .pic{order:-1;height:210px;padding:14px;clip-path:polygon(0 0,100% 0,100% 100%,0 92%)}
  .slide .pic img{max-height:180px}
  .slide .txt{padding:10px 20px 18px;gap:4px}
  .slide h2{font-size:1.3rem;-webkit-line-clamp:2}
  .slide .p b{font-size:1.7rem}
  .slide .cta{margin-top:6px;padding:8px 18px;min-height:42px}
  .burst{width:58px;height:58px;font-size:1rem;top:12px;left:12px}
  .dots{inset-inline-start:auto;inset-inline-end:12px;bottom:14px}
  .arr{display:none}
  .slide.full img{aspect-ratio:16/8}
}

/* home: row of 4 promo banners under the carousel */
.promos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.promo{--pbg:var(--brand-2);--pink:var(--brand);background:var(--pbg);border-radius:14px;padding:16px;min-height:150px;display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:10px;align-items:center;text-decoration:none;color:var(--ink);transition:transform 160ms var(--ease-out),box-shadow 160ms ease;overflow:hidden}
.promo.bg-ink{--pbg:#E7EBF0;--pink:#14212B}
.promo.bg-green{--pbg:#E3F1E8;--pink:#1E4D3A}
.promo.bg-yellow{--pbg:#FFF4B8;--pink:#14212B}
.promo.bg-sand{--pbg:#F3EFE7;--pink:#56606A}
@media (hover:hover){.promo:hover{box-shadow:0 6px 18px rgba(16,24,40,.1)}}
.promo:active{transform:scale(.98)}
.promo .txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.promo small{font-size:.78rem;font-weight:700;color:var(--pink)}
.promo b{font-size:.98rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.promo em{font-style:normal;align-self:flex-start;background:var(--price);color:#fff;font-weight:800;border-radius:6px;padding:2px 8px;font-variant-numeric:tabular-nums}
.promo img{width:104px;height:104px;object-fit:contain;mix-blend-mode:multiply}
.promo.full{padding:0;display:block;min-height:0}
.promo.full img{width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;mix-blend-mode:normal}
@media (max-width:900px){.promos{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media (max-width:640px){
  .promo{grid-template-columns:1fr;grid-template-rows:96px auto;padding:12px;min-height:0;align-items:start}
  .promo img{order:-1;justify-self:center;width:96px;height:96px}
  .promo b{font-size:.88rem}
}
.sechd{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:40px 0 14px;padding:0 2px}
.sechd a{font-weight:700;color:var(--brand);text-decoration:none;font-size:.95rem;white-space:nowrap}
.sechd h2{margin:0;font-size:1.35rem;font-weight:800}
.camps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:900px){.camps{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.sechd{margin:24px 0 10px;padding:8px}.sechd h2{font-size:1.1rem}.camp{padding:10px}}
.camp{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}
.camp h3{margin:0;font-size:1rem}
.camp .cg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.camp .all{align-self:center;color:var(--brand);font-weight:700;text-decoration:none;font-size:.92rem}
.mc{min-width:0;border:1px solid var(--line);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:4px;text-decoration:none}
.mc img{aspect-ratio:1;object-fit:contain;width:100%}
.mc span{font-size:.82rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mc .pp{display:flex;gap:6px;align-items:baseline;font-variant-numeric:tabular-nums}
.mc .pp b{color:var(--price);font-weight:800}
.mc .pp s{color:var(--muted);font-size:.78rem}
.brands{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
@media (max-width:760px){.brands{grid-template-columns:repeat(3,minmax(0,1fr))}}
.brands a{background:var(--surface);border:1px solid var(--line);border-radius:10px;height:58px;display:grid;place-items:center;font-weight:800;letter-spacing:.04em;text-decoration:none;color:#3b4148}
.usps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:30px}
@media (max-width:760px){.usps{grid-template-columns:repeat(2,minmax(0,1fr))}.usps div{padding:12px 10px}.usps .i{width:26px;height:26px}}
.usps div{background:var(--surface);border-radius:12px;padding:14px;display:flex;gap:10px;align-items:center;border:1px solid var(--line)}
.usps .i{width:30px;height:30px;color:var(--brand)}
.usps small{display:block;color:var(--muted)}

/* product grid + card */
ul.products.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:1150px){ul.products.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){ul.products.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:6px;position:relative;min-width:0;transition:box-shadow 160ms ease}
@media (hover:hover){.card:hover{box-shadow:0 6px 20px rgba(16,24,40,.08)}}
.card .pimg{aspect-ratio:1;display:block;position:relative;overflow:hidden;background:#fff;border-radius:6px}
.card .pimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain} /* every card the same square, whatever the photo's shape */
.card .pimg .stk{z-index:1}
.stk{position:absolute;top:0;inset-inline-start:0;display:flex;flex-direction:column;gap:4px}
.stk span{background:var(--price);color:#fff;font-weight:800;font-size:.75rem;border-radius:6px;padding:2px 6px;text-align:center}
.stk span.top{background:var(--ink,#14212B)}
.stk span.y{background:var(--accent);color:var(--on-accent)}
.card .br{font-size:.78rem;font-weight:800;letter-spacing:.05em;color:#3b4148}
.card .sku{font-size:.75rem;color:var(--muted)}
.card h3{margin:0;font-size:.9rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.card h3 a{text-decoration:none}
.card .pr{display:flex;flex-direction:column;font-variant-numeric:tabular-nums;margin-top:auto}
.card .pr s{color:var(--muted);font-size:.82rem}
.card .pr b{color:var(--price);font-size:1.35rem;font-weight:800;line-height:1.1}
.card .pr small{color:var(--muted);font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* one line, so cards in a row end at the same height */
.card .btns{display:grid;grid-template-columns:1fr;gap:6px}
.card .btns a{height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:800;font-size:.88rem;text-decoration:none;transition:transform 120ms ease-out}
.card .btns a .i{width:18px;height:18px}
.card .btns a:active{transform:scale(.95)}
.card .st{background:var(--brand-2);color:var(--brand)}
.card .ad{background:var(--accent);color:var(--on-accent)}
.card .ad.loading{opacity:.6}
/* heart + compare on the card */
.ctools{position:absolute;top:10px;inset-inline-end:10px;display:flex;flex-direction:column;gap:6px;z-index:1}
.wish,.cmp{border:0;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:.78rem;font-weight:600;transition:color 140ms ease,transform 140ms var(--ease-out),background-color 140ms ease}
.ctools .wish,.ctools .cmp{width:36px;height:36px;border-radius:99px;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(16,24,40,.12)}
.ctools .cmp span{display:none}
.ctools .cmp[aria-pressed="true"]{background:var(--brand);color:#fff}
.wish:active,.cmp:active{transform:scale(.9)}
.wish[aria-pressed="true"]{color:var(--price)}
.wish[aria-pressed="true"] .i path{fill:currentColor}
.cmp .i{width:17px;height:17px}
.cmp[aria-pressed="true"]{color:var(--brand)}
@media (hover:hover){.wish:hover,.cmp:hover{color:var(--ink)}}
@media (max-width:640px){
  .card{padding:8px;gap:4px}
  .card .br,.card .sku{font-size:.7rem}
  .card h3{font-size:.84rem}
  .card .pr b{font-size:1.2rem}
  .card .pr small{font-size:.7rem;line-height:1.3}
  .card .btns{grid-template-columns:minmax(0,1fr)}
  .card .btns a{height:42px;font-size:.78rem}
  .ctools{top:8px;inset-inline-end:8px}
}
.card .added_to_cart{display:none}

/* archive */
.subcats{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 14px;scrollbar-width:thin}
.subcats a{flex:0 0 96px;display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;font-size:.82rem;font-weight:600;text-align:center;line-height:1.2}
.subcats .c{width:80px;height:80px;border-radius:99px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;transition:border-color 160ms ease,transform 160ms var(--ease-out)}
.subcats .c img{width:72%;height:72%;object-fit:contain}
.subcats a:active .c{transform:scale(.95)}
@media (hover:hover){.subcats a:hover .c{border-color:var(--brand)}}
.lay{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:900px){.lay{grid-template-columns:1fr}}
.facets{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:12px;position:sticky;top:calc(var(--hdr-h) + 12px)}
.fhead{display:none}
@media (max-width:900px){
  .facets{position:fixed;z-index:52;inset:auto 0 0 0;top:auto;max-height:86dvh;overflow:auto;border-radius:18px 18px 0 0;border:0;padding:0 16px calc(16px + env(safe-area-inset-bottom,0px));transform:translateY(105%);visibility:hidden;transition:transform 280ms var(--ease-drawer),visibility 0s 280ms}
  .facets.fopen{transform:none;visibility:visible;transition:transform 280ms var(--ease-drawer)}
  .fhead{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--surface);padding:14px 0 10px;font-weight:800;font-size:1.1rem;border-bottom:1px solid var(--line);z-index:1}
  .fhead button{border:0;background:var(--soft);width:40px;height:40px;border-radius:99px;display:grid;place-items:center}
  .fopt{min-height:40px}
}
.facets h3{margin:0;font-size:.95rem}
.pricef{display:flex;flex-direction:column;gap:8px}
.hist{display:flex;align-items:flex-end;gap:2px;height:36px}
.hist i{flex:1;background:var(--brand);opacity:.35;border-radius:2px 2px 0 0}
.range{display:flex;gap:8px;align-items:center}
.range input{width:100%;height:38px;border:1px solid var(--line-strong);border-radius:8px;padding:0 8px;font-variant-numeric:tabular-nums}
.togs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.togs a{border-radius:8px;height:36px;font-weight:700;background:var(--soft);display:grid;place-items:center;text-decoration:none}
.togs a[aria-current="true"]{background:var(--price);color:#fff}
.togs a.cl{background:var(--accent);color:var(--on-accent)}
.fopt{display:flex;gap:8px;align-items:center;font-size:.92rem;text-decoration:none;padding:3px 0}
.fopt .box{width:18px;height:18px;border:1.5px solid var(--line-strong);border-radius:4px;display:grid;place-items:center}
.fopt[aria-current="true"] .box{background:var(--brand);border-color:var(--brand)}
.fopt[aria-current="true"] .box::after{content:"✓";color:#fff;font-size:12px}
.fopt .n{margin-inline-start:auto;color:var(--muted);font-variant-numeric:tabular-nums}
.clear-all{color:var(--brand);font-weight:700;font-size:.9rem}
.results{min-width:0}
.seo{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;font-size:.93rem}
.seo p{margin:0}
.quick{scrollbar-width:none;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;gap:8px;overflow-x:auto;margin-bottom:10px;scrollbar-width:thin}
.quick a{flex:none;border:1px solid var(--line);border-radius:10px;padding:6px 12px;font-weight:800;letter-spacing:.03em;color:#3b4148;text-decoration:none}
.quick a[aria-current="true"]{border-color:var(--brand);color:var(--brand);background:var(--brand-2)}
.lbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-size:.92rem}
.lbar .tot{margin-inline-start:auto;color:var(--muted)}
.lbar .tot b{color:var(--ink)}
.ftog{display:none;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 14px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-weight:700}
.ftog .nf{background:var(--brand);color:#fff;border-radius:99px;min-width:20px;height:20px;font-size:.75rem;display:grid;place-items:center}
@media (max-width:900px){.ftog{display:inline-flex}.lbar{position:sticky;top:var(--hdr-m);z-index:20;background:var(--bg);padding-block:6px;margin-inline:-16px;padding-inline:16px}.lbar form{flex:1}.lbar select{width:100%}.lbar .tot{display:none}}
.lbar form{margin:0}
.lbar select{height:42px;border:1px solid var(--line-strong);border-radius:8px;padding:0 8px;background:var(--surface)}
.empty{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.woocommerce-pagination ul{list-style:none;display:flex;gap:6px;justify-content:center;padding:0;margin:20px 0 0}
.woocommerce-pagination a,.woocommerce-pagination span{display:grid;place-items:center;min-width:38px;height:38px;border-radius:8px;background:var(--surface);border:1px solid var(--line);text-decoration:none}
.woocommerce-pagination .current{background:var(--brand);color:#fff;border-color:var(--brand)}

/* single product */
.ptop h1{margin:0;font-size:clamp(1.3rem,2.6vw,1.8rem);line-height:1.25}
.ptop .meta{display:flex;gap:14px;flex-wrap:wrap;font-size:.88rem;color:var(--muted);margin:6px 0 14px}
.ptop .meta a{color:var(--brand);font-weight:700;text-decoration:none}
.pg{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
@media (max-width:900px){.pg{grid-template-columns:1fr}}
.gal{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px;position:relative}
.gal .woocommerce-product-gallery{position:relative;margin:0}
.gal .woocommerce-product-gallery__image img{width:100%;aspect-ratio:1;object-fit:contain}
.gal .flex-control-thumbs{list-style:none;padding:0;margin:10px 0 0;display:flex;gap:8px;overflow-x:auto}
.gal .flex-control-thumbs li{flex:0 0 64px}
.gal .flex-control-thumbs img{width:64px;height:64px;object-fit:contain;border:1.5px solid var(--line);border-radius:8px;cursor:pointer;background:#fff}
.gal .flex-control-thumbs img.flex-active{border-color:var(--brand)}
.gal .woocommerce-product-gallery__trigger{position:absolute;top:8px;left:8px;z-index:2;width:36px;height:36px;border-radius:99px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;text-decoration:none}
.buybox{display:flex;flex-direction:column;gap:12px;min-width:0}
.pricecard{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;grid-template-columns:auto auto 1fr;gap:6px 16px;align-items:center}
.pricecard .now{display:flex;flex-direction:column;font-variant-numeric:tabular-nums}
.pricecard .now s{color:var(--muted)}
.pricecard .now b{color:var(--price);font-size:2.2rem;font-weight:800;line-height:1}
.pricecard .or{color:var(--muted);font-weight:600}
.pricecard .inst{font-size:.9rem}
.pricecard .tag{grid-column:1/-1;background:var(--price);color:#fff;font-weight:700;font-size:.85rem;border-radius:6px;padding:4px 10px;justify-self:start}
.short{font-size:.95rem}
.short p{margin:0}
.cartform form.cart{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;margin:0}
.cartform .quantity{display:flex}
.cartform .quantity input{width:76px;height:52px;border:1px solid var(--line-strong);border-radius:8px;text-align:center;font-size:1.05rem}
.cartform .single_add_to_cart_button{flex:1;height:52px;background:var(--accent);color:var(--on-accent);font-size:1.1rem;font-weight:800;border-radius:8px;border:0}
.cartform .stock{width:100%;margin:0;color:var(--good);font-weight:700}
.cartform .stock.out-of-stock{color:var(--price)}
.cartform table.variations{width:100%;margin-bottom:8px}
.avail,.compl{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px}
.avail h2,.compl h2{margin:0 0 8px;font-size:.98rem}
.avail table{width:100%;border-collapse:collapse;font-size:.9rem}
.avail td,.avail th{padding:8px 4px;border-top:1px solid var(--line)}
.avail th{text-align:right;font-weight:400}
.avail td:last-child{text-align:left;font-weight:700;font-variant-numeric:tabular-nums}
.avail .i{color:var(--brand);margin-inline-end:6px}
.compl .row{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (max-width:480px){.compl .row{grid-template-columns:1fr}}
.cmini{display:grid;grid-template-columns:56px 1fr 40px;gap:8px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:6px;font-size:.82rem}
.cmini img{width:56px;height:56px;object-fit:contain}
.cmini a{text-decoration:none}
.cmini b{color:var(--price)}
.cmini .plus{width:36px;height:36px;border-radius:8px;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-weight:800;font-size:1.2rem}
.cmini .added_to_cart{display:none}
.trustline{display:flex;align-items:center;gap:8px;font-size:.88rem;color:var(--muted)}
.trustline .i{color:var(--good)}
.trustline a{color:var(--brand);font-weight:700}
.pinfo{margin-top:22px;--nav-top:var(--hdr-h)}
.pnav{position:sticky;top:var(--nav-top);z-index:20;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;background:var(--surface);border-bottom:1px solid var(--line);border-radius:12px 12px 0 0;padding:0 10px}
.pnav a{flex:none;padding:13px 14px;font-weight:700;color:var(--ink);text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent}
.pnav a[aria-current="true"]{color:var(--brand);border-color:var(--brand)}
/* one continuous text, like KSP: no cards, just a small heading per part */
.pinfo{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.psec{padding:18px 18px 0;scroll-margin-top:calc(var(--nav-top) + 52px)}
.psec:last-child{padding-bottom:18px}
.psec-h{font-size:1.15rem;font-weight:800;color:var(--brand);margin:0 0 8px}
.psec h3{font-size:1rem;font-weight:700;margin:16px 0 6px}
.psec video,.psec img{max-width:100%;height:auto;border-radius:12px}
.psec video{display:block;width:100%;margin:12px 0}
.psec table.shop_attributes{width:100%;border-collapse:collapse}
.psec table.shop_attributes th,.psec table.shop_attributes td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:right}
.psec table.shop_attributes th{width:35%;color:var(--muted);font-weight:500}
.psec table.shop_attributes p{margin:0}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media (max-width:860px){.pinfo{--nav-top:var(--hdr-m);margin-inline:-16px;border-radius:0;border-inline:0}.pnav{border-radius:0}.psec{padding:14px 16px 0}.psec:last-child{padding-bottom:16px}}
.related.products{margin-top:28px}
.related.products>h2{font-size:1.2rem;font-weight:800;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px;margin:0 0 14px}
.related.products ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:900px){.related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
.minibar{position:fixed;top:0;left:0;right:0;z-index:40;background:var(--surface);box-shadow:0 2px 12px rgba(0,0,0,.08);padding:8px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));display:flex;align-items:center;gap:12px;transform:translateY(-110%);transition:transform 240ms var(--ease-drawer)}
.minibar.on{transform:none}
.minibar img{width:40px;height:40px;object-fit:contain}
.minibar span{flex:1;font-weight:600;font-size:.9rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.minibar b{color:var(--price);font-variant-numeric:tabular-nums}
.minibar button{height:42px;border:0;border-radius:8px;background:var(--accent);color:var(--on-accent);font-weight:800;padding:0 18px;flex:none}
.minibar span small{display:block;font-weight:400;color:var(--muted);font-size:.75rem}
@media (max-width:860px){
  /* phones: the buy bar sits at the bottom, in place of the tab bar */
  .minibar{top:auto;bottom:0;transform:translateY(110%);box-shadow:0 -2px 14px rgba(0,0,0,.1);padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  .minibar img{display:none}
  .minibar span{font-size:.82rem;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .minibar span small{display:none}
  .minibar b{font-size:1.2rem}
  .minibar button{height:48px}
  body.has-buybar .tabbar{display:none}
}
.savebar{display:flex;gap:8px}
.savebar .wish,.savebar .cmp{width:auto;height:44px;padding:0 14px;border-radius:8px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-size:.9rem;gap:6px}
.savebar .cmp span,.savebar .wish span{display:inline}
.savebar .wish[aria-pressed="true"]{border-color:var(--price);color:var(--price)}
.savebar .cmp[aria-pressed="true"]{border-color:var(--brand);color:var(--brand);background:var(--brand-2)}
.alertf{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:.9rem}
.alertf.stock{border-color:var(--price);display:flex;flex-direction:column;gap:8px}
.alertf summary{cursor:pointer;font-weight:700;color:var(--brand);display:flex;align-items:center;gap:6px;list-style:none;min-height:28px}
.alertf summary::-webkit-details-marker{display:none}
.alertf details[open] summary{margin-bottom:8px}
.alertf .row{display:flex;gap:8px}
.alertf input[type=email]{flex:1;min-width:0;height:44px;border:1px solid var(--line-strong);border-radius:8px;padding:0 10px;font-size:16px}
.alertf .btn{min-height:44px}
.alertf small{display:block;color:var(--muted);margin-top:6px;font-size:.78rem}
.alertf small a{color:inherit}
.alertf .msg{margin:6px 0 0;font-weight:700;color:var(--good)}
.alertf .msg:empty{display:none}
.alertf.done .row{display:none}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
@media (max-width:640px){
  .ptop h1{font-size:1.25rem}
  .pricecard{grid-template-columns:auto auto;padding:12px}
  .pricecard .inst{grid-column:1/-1}
  .pricecard .or{display:none}
  .pricecard .now b{font-size:2rem}
  .gal{padding:8px}
  .gal .flex-control-thumbs li{flex-basis:56px}
  .gal .flex-control-thumbs img{width:56px;height:56px}
  .avail td{padding:8px 2px;font-size:.84rem}
  .avail td:nth-child(2){color:var(--muted)}
  .related.products ul.products{gap:8px}
}

/* product video (click to play) + SKU chip */
.galcol{display:flex;flex-direction:column;gap:12px;min-width:0}
.pvideo{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px}
.pvideo h2{margin:0 0 8px;font-size:.98rem}
.pvideo .yt{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;border-radius:10px;overflow:hidden;background:#000}
.pvideo .yt img{width:100%;height:100%;object-fit:cover;opacity:.9;transition:opacity 160ms ease}
@media (hover:hover){.pvideo .yt:hover img{opacity:1}}
.pvideo .play{position:absolute;top:50%;left:50%;width:68px;height:48px;transform:translate(-50%,-50%);background:var(--price);border-radius:12px}
.pvideo .play::after{content:"";position:absolute;top:50%;left:54%;transform:translate(-50%,-50%);border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff}
.pvideo iframe,.pvideo video{width:100%;aspect-ratio:16/9;border:0;border-radius:10px;display:block}
.skuchip{display:inline-flex;align-items:center;gap:6px;background:var(--soft);border-radius:8px;padding:2px 4px 2px 10px;color:var(--ink)}
.skuchip b{font-variant-numeric:tabular-nums;letter-spacing:.04em}
.skuchip button{border:0;background:var(--surface);border-radius:6px;font-size:.78rem;padding:3px 8px;color:var(--brand);font-weight:700}

/* notices + WooCommerce blocks (cart, checkout) pick up the palette */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner{border-radius:10px}
.woocommerce-message{background:var(--brand-2);border:1px solid var(--brand);padding:12px 14px;list-style:none;display:flex;gap:10px;justify-content:space-between;align-items:center}
.wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{background:var(--accent)!important;color:var(--on-accent)!important;border-radius:8px!important;font-weight:800!important}
.wc-block-components-product-price__value.is-discounted,.wc-block-formatted-money-amount{font-variant-numeric:tabular-nums}
.page.wide .entry{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px}
@media (max-width:640px){.page.wide{padding-inline:0}.page.wide .entry{border-radius:0;border-inline:0;padding:16px}}
/* cart block on phones: WooCommerce's table spills past the screen, so lay each line out as a small grid (the line price already shows under the name) */
@media (max-width:640px){
  .wc-block-cart .wc-block-cart-items,.wc-block-cart .wc-block-cart-items tbody{display:block;width:100%}
  .wc-block-cart .wc-block-cart-items thead,.wc-block-cart .wc-block-cart-item__total{display:none}
  .wc-block-cart .wc-block-cart-items__row{display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid var(--line)}
  .wc-block-cart .wc-block-cart-item__image{padding:0!important;width:auto!important}
  .wc-block-cart .wc-block-cart-item__image img{width:72px}
  .wc-block-cart .wc-block-cart-item__product{padding:0!important;min-width:0}
}
/* checkout: nothing that pulls the buyer away from paying */
body.woocommerce-checkout .tabbar,body.woocommerce-checkout .cmptray,body.woocommerce-cart .cmptray{display:none!important}
@media (max-width:860px){body.woocommerce-checkout{padding-bottom:0}}
.woocommerce-message .button,.woocommerce-info .button{order:2;flex:none;min-height:40px;padding:0 14px;background:var(--surface);color:var(--brand);border:1px solid var(--brand);font-size:.88rem}
.woocommerce-message,.woocommerce-info,.woocommerce-error{font-size:.92rem;margin:0 0 12px}
.woocommerce-info{background:var(--soft);border:1px solid var(--line);padding:12px 14px;list-style:none;display:flex;gap:10px;justify-content:space-between;align-items:center}
.woocommerce-error{background:#FDECEE;border:1px solid var(--price);padding:12px 14px;list-style:none}

/* footer, floating buttons, phone tab bar, compare tray, toast */
footer.ft{margin-top:40px;background:var(--surface);border-top:1px solid var(--line)}
footer.ft .wrap{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;padding-block:30px;font-size:.9rem}
@media (max-width:760px){footer.ft .wrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}}
footer.ft h3{margin:0 0 8px;font-size:.95rem}
footer.ft a{display:block;text-decoration:none;padding:5px 0;color:var(--muted)}
@media (hover:hover){footer.ft a:hover{color:var(--brand)}}
footer.ft p{margin:0;color:var(--muted)}
footer.ft .legal{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;font-size:.8rem}
.tabbar{display:none}
@media (max-width:860px){
  body{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom,0px))}
  .tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:35;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -2px 12px rgba(16,24,40,.06);padding-bottom:env(safe-area-inset-bottom,0px)}
  .tabbar a,.tabbar button{position:relative;height:var(--tab-h);border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.72rem;font-weight:600;color:var(--muted);text-decoration:none;padding:0}
  .tabbar .i{width:24px;height:24px}
  .tabbar [aria-current="page"]{color:var(--brand)}
  .tabbar .count{top:6px;inset-inline-end:calc(50% - 22px)}
  .tabbar :active{background:var(--soft)}
}
.cmptray{position:fixed;z-index:36;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:var(--ink);color:#fff;border-radius:12px;padding:8px 8px 8px 14px;box-shadow:0 8px 28px rgba(0,0,0,.25);font-size:.9rem;width:max-content;max-width:calc(100% - 24px)}
.cmptray span{display:inline-flex;align-items:center;gap:6px;padding-inline-start:6px}
.cmptray .btn{min-height:40px;background:var(--accent);color:var(--on-accent)}
.cmptray button{border:0;background:rgba(255,255,255,.12);color:#fff;width:36px;height:36px;border-radius:99px;display:grid;place-items:center}
@media (max-width:860px){.cmptray{bottom:calc(var(--tab-h) + 8px + env(safe-area-inset-bottom,0px))}body.has-buybar .cmptray{display:none}}
.toast{position:fixed;z-index:60;left:50%;top:calc(14px + env(safe-area-inset-top,0px));transform:translate(-50%,-150%);background:var(--ink);color:#fff;border-radius:99px;padding:10px 18px;font-weight:700;font-size:.9rem;box-shadow:0 8px 24px rgba(0,0,0,.2);transition:transform 260ms var(--ease-drawer);pointer-events:none}
.toast.on{transform:translate(-50%,0)}
body.fsheet,body.dopen{overflow:hidden}

/* compare table (scrolls sideways on phones, first column stays) */
.cmpwrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.cmptable{border-collapse:collapse;width:100%;min-width:560px;font-size:.9rem}
.cmptable th,.cmptable td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
.cmptable tbody th{position:sticky;right:0;background:var(--soft);color:var(--muted);font-weight:600;width:130px;min-width:110px}
.cmptable thead th{position:relative;font-weight:600;min-width:150px}
.cmptable thead th:first-child{background:var(--soft);position:sticky;right:0}
.cmptable thead a{display:flex;flex-direction:column;gap:6px;text-decoration:none;font-size:.85rem;line-height:1.3}
.cmptable thead img{width:110px;height:110px;object-fit:contain;align-self:center}
.cmptable .rm{position:absolute;top:6px;left:6px;border:0;background:var(--soft);width:32px;height:32px;border-radius:99px;display:grid;place-items:center}
.cmptable .price b{color:var(--price);font-size:1.2rem}
.cmptable .price s{color:var(--muted)}
.cmptable .price small{display:block;color:var(--muted);font-size:.78rem}
.cmptable .btn{width:100%;min-height:42px}
.cmptable .btn.buy{background:var(--accent);color:var(--on-accent)}
.cmptable .added_to_cart{display:none}
@media (max-width:640px){.cmptable{min-width:0;font-size:.84rem}.cmptable th,.cmptable td{padding:8px}.cmptable tbody th{width:84px;min-width:84px}.cmptable thead th{min-width:128px}.cmptable thead img{width:84px;height:84px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms!important;transition-duration:1ms!important}}

.avail td small{display:block;color:var(--muted);font-size:.8rem}

/* 404 */
.nf404{text-align:center;padding-block:32px 8px}
.nf404 h1{font-size:1.6rem;font-weight:800;margin:0 0 6px}
.nf404 p{color:var(--muted);margin:0 0 18px}
.nf404 form{display:flex;gap:8px;max-width:520px;margin:0 auto 14px}
.nf404 input{flex:1;min-width:0;height:48px;border:1px solid var(--line-strong);border-radius:10px;padding:0 14px;font:inherit}
.nf404 .acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* phones: price and buy button right under the product name (before the photos) */
.mprice{display:none}
@media (max-width:860px){
  .mprice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
  .mprice b{font-size:1.6rem;font-weight:800;color:var(--price);font-variant-numeric:tabular-nums;line-height:1}
  .mprice s{color:var(--muted);font-size:.9rem}
  .mprice small{color:var(--muted);font-size:.85rem}
  .mprice .btn{margin-inline-start:auto;background:var(--accent);color:var(--on-accent);min-height:44px;padding:0 18px}
}

.avail .free{color:var(--good);font-weight:800}
.woocommerce-product-gallery{opacity:1!important} /* WooCommerce hides the gallery until its slider script runs; show the main photo at once */
.lay.empty{grid-template-columns:minmax(0,1fr)}.lay.empty .facets{display:none} /* no results: no empty filters */

/* Numbers never break in the middle (phone, hours) */
.nw,a[href^="tel:"]{white-space:nowrap}
footer.ft p a.nw{padding:2px 0}
/* Phones: the product page title follows the crumbs, so the crumbs drop the long product name */
@media (max-width:640px){.pp .crumbs>span:last-child,.pp .crumbs>span[aria-hidden]:nth-last-child(2){display:none}}
/* No search results: a way into every department */
.nodepts{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.nodepts a{border:1px solid var(--line);border-radius:99px;padding:6px 14px;text-decoration:none;font-weight:700;font-size:.9rem;background:var(--soft)}
@media (hover:hover){.nodepts a:hover{border-color:var(--brand);color:var(--brand)}}
/* The zoom lightbox's own CSS loads late (after a tap is enough): keep its hidden dialog out of the layout until then */
.pswp{display:none}.pswp.pswp--open{display:block}
footer.ft{content-visibility:auto;contain-intrinsic-size:auto 640px} /* laid out only when it scrolls near */
/* Product gallery without a jump while WooCommerce's slider starts: until it sizes the slides only the first photo shows,
   no wider than the gallery, and the thumbnail row's space is kept from the start */
.gal{container-type:inline-size}
.gal .woocommerce-product-gallery__image img{max-width:100cqi;max-height:100cqi}
.gal .woocommerce-product-gallery__image:not(:first-child):not([style*="width"]){display:none}
.gal .woocommerce-product-gallery:has(.woocommerce-product-gallery__image~.woocommerce-product-gallery__image):not(:has(.flex-control-nav)){padding-bottom:82px}
@media (max-width:640px){.gal .woocommerce-product-gallery:has(.woocommerce-product-gallery__image~.woocommerce-product-gallery__image):not(:has(.flex-control-nav)){padding-bottom:74px}}

/* The empty results layout also carries .empty: keep it a plain grid, or its flex sizing makes the message 16000px wide on phones (01.11) */
.lay.empty{display:grid;background:none;border:0;padding:0;gap:16px}
.lay.empty .results{width:100%}
/* Ollie logo image in the header (02.11) */
.logo img{display:block;height:44px;width:auto}
@media (max-width:782px){.logo img{height:36px}}

/* Brand strip (02.11): logo tiles, featured brands first, scrolls sideways on a phone */
.bstrip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding:2px}
.bstrip::-webkit-scrollbar{display:none}
.bstrip a{flex:none;display:grid;place-items:center;height:52px;min-width:88px;padding:0 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px;font-weight:800;font-size:.86rem;letter-spacing:.02em;color:#3b4148;text-decoration:none;transition:border-color 150ms,box-shadow 150ms}
.bstrip a.lg{padding:6px 12px}
.bstrip a img{display:block;height:36px;width:auto;max-width:100px;object-fit:contain}
.bstrip a.ft{border-color:#cfd8d8;box-shadow:0 1px 0 rgba(11,46,51,.06)}
.bstrip a:hover{border-color:var(--brand)}
.bstrip a[aria-current="true"]{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-2)}
@media (max-width:640px){.bstrip a{height:46px;min-width:76px}.bstrip a img{height:32px}}
