/* Cast & Catch storefront */
header.top{position:sticky;top:12px;z-index:40;margin:12px auto 0}
header.top .card{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:12px 18px}
.brand{display:flex;align-items:center;gap:12px;color:var(--text)}
.brand:hover{color:var(--text)}
.brand img{width:58px;height:48px;object-fit:cover;border-radius:14px;box-shadow:var(--out-sm)}
.brand b{font-family:var(--head);font-weight:800;font-size:20px;letter-spacing:.5px;display:block}
.brand small{font-size:10px;letter-spacing:3px;font-weight:600;color:var(--muted)}
.search{display:flex;align-items:center;gap:8px;padding:0 14px;min-height:46px;border-radius:14px;box-shadow:var(--in-sm);flex:1 1 220px;max-width:420px;margin:0}
.search input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:14px}
.topnav{display:flex;gap:6px;margin-left:auto}
.topnav a{padding:10px 14px;border-radius:12px;color:var(--text);font-weight:600}
.topnav a:hover{box-shadow:var(--in-sm)}
.cartbtn{position:relative}
.cartbtn .count{position:absolute;top:-6px;right:-6px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
@media(max-width:700px){header.top .card{gap:10px}.brand img{width:48px;height:40px}.brand b{font-size:16px}.brand small{font-size:9px;letter-spacing:1.5px}.topnav{margin-left:auto}.topnav a{padding:8px}header.top .search{order:3;flex-basis:100%;max-width:none}}
section{margin-top:56px}
.slider{position:relative;overflow:hidden;padding:20px}
.slide{display:none;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center}
.slide.on{display:grid}
.slide h1,.slide .h1{font-size:clamp(30px,5vw,56px);font-weight:800;letter-spacing:-1px}
.slide p{font-size:18px;color:var(--muted);margin:18px 0 26px;max-width:520px}
.slide .pic{border-radius:24px;overflow:hidden;box-shadow:var(--in);padding:10px}
.slide .pic img{width:100%;aspect-ratio:5/4;object-fit:cover;border-radius:18px}
.slide .txt{padding:20px}
@media(max-width:820px){.slide{grid-template-columns:1fr}.slide .pic{order:-1}.slider{padding:10px}.slide .txt{padding:10px}}
.dots{display:flex;gap:10px;justify-content:center;margin-top:14px}
.dots button{width:14px;height:14px;border-radius:50%;border:0;background:var(--bg);box-shadow:var(--out-sm);cursor:pointer;padding:0}
.dots button[aria-current="true"]{background:var(--accent)}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.features .card{padding:22px}
.features h3{font-size:17px;margin-bottom:6px}
.eyebrow{font-size:12px;letter-spacing:3px;font-weight:700;color:var(--accent)}
a.chip{display:inline-flex;align-items:center;color:var(--text);text-decoration:none}
a.chip[aria-current="page"]{box-shadow:var(--in-sm);color:var(--accent)}
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:26px;margin-top:22px}
.pcard{padding:16px;display:flex;flex-direction:column;gap:10px}
.pcard[hidden]{display:none}
.pcard h3{font-size:16px;font-weight:700}
.pcard h3 a{color:var(--text)}
.pcard .cat{position:absolute;top:10px;left:10px;padding:4px 10px;border-radius:999px;background:var(--bg);box-shadow:var(--out-sm);font-size:11px;font-weight:700;color:var(--accent)}
.pcard .soldout{position:absolute;right:10px;bottom:10px;padding:4px 10px;border-radius:999px;background:#22313F;color:#fff;font-size:11px;font-weight:700}
.pcard .foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;flex-wrap:wrap}
.swatches{display:flex;gap:6px}
.swatches span{width:16px;height:16px;border-radius:50%;box-shadow:var(--out-sm);border:2px solid #fff}
.empty{padding:40px;text-align:center}
.line{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:10px;border-radius:16px;box-shadow:var(--in-sm)}
.line .thumb{border-radius:12px;box-shadow:none}
.qty{display:flex;align-items:center;gap:8px}
.qty button{width:36px;height:36px;border:0;border-radius:10px;background:var(--bg);box-shadow:var(--out-sm);cursor:pointer;font-weight:700}
.crumbs{font-size:14px;color:var(--muted)}
.pdp{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:28px}
@media(max-width:760px){.pdp{grid-template-columns:1fr;padding:18px}}
.pdp .info{display:flex;flex-direction:column;gap:14px}
.gallery{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.gallery button{width:64px;height:64px;border:0;padding:0;border-radius:12px;overflow:hidden;box-shadow:var(--out-sm);cursor:pointer}
.gallery img{width:100%;height:100%;object-fit:cover}
.opt{display:flex;flex-direction:column;gap:8px}
.optlabel{font-size:14px;color:var(--muted)}
.swatch{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:0;border-radius:14px;background:var(--bg);box-shadow:var(--out-sm);font-weight:600;cursor:pointer}
.swatch span{width:20px;height:20px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #C5CDD8}
.swatch[aria-pressed="true"],.chip[aria-pressed="true"]{box-shadow:var(--in-sm);color:var(--accent);outline:2px solid var(--accent)}
.swatch[disabled],.chip[disabled]{opacity:.4;cursor:not-allowed;text-decoration:line-through}
.pdp-more{display:flex;flex-direction:column;gap:24px;margin-top:28px}
.specs th{border-top:1px solid #D3DAE3;padding:12px 10px;text-align:left;text-transform:none;letter-spacing:0;font-size:14px;color:var(--muted);width:40%}
.prose{line-height:1.75;font-size:16px}
.prose h2{font-size:24px;margin:26px 0 10px}.prose h3{font-size:20px;margin:22px 0 8px}
.prose img{border-radius:16px;margin:14px 0}
.prose blockquote{margin:16px 0;padding:12px 18px;border-radius:14px;box-shadow:var(--in-sm);color:var(--muted)}
.video{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;box-shadow:var(--in-sm);margin:14px 0}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.post{padding:clamp(20px,4vw,44px);max-width:860px;margin-left:auto;margin-right:auto}
.post .cover{width:100%;border-radius:20px;margin-bottom:24px;aspect-ratio:16/9;object-fit:cover}
.blogs{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:26px;margin-top:22px}
.bcard{overflow:hidden}
.bcard .bimg{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;box-shadow:var(--in);color:var(--accent)}
.bcard .bimg img{width:100%;height:100%;object-fit:cover}
.bcard .bimg svg{width:30%}
.bcard h3 a{color:var(--text)}
footer.site{margin-top:72px;padding:40px 0 30px}
footer.site .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
footer.site h4{font-size:14px;letter-spacing:2px;margin-bottom:10px}
footer.site p{margin:4px 0}
.thanks{text-align:center;padding:10px 0 6px}
.thanks .tick{width:72px;height:72px;margin:0 auto 14px;border-radius:50%;box-shadow:var(--out);display:flex;align-items:center;justify-content:center;color:var(--accent)}
.close{position:absolute;top:16px;right:16px}

/* ---------- v3: categories, discounts, product page ---------- */
.catnav{flex-basis:100%;display:flex;gap:10px;overflow-x:auto;padding:4px 2px 2px;scrollbar-width:none}
.catnav::-webkit-scrollbar{display:none}
.catnav a{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:14px;box-shadow:var(--out-sm);color:var(--text);font-weight:700;font-size:13px;letter-spacing:1.5px}
.catnav a svg{color:var(--accent)}
.catnav a:hover,.catnav a[aria-current="page"]{box-shadow:var(--in-sm);color:var(--accent)}
.cattiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:20px;margin-top:20px}
.cattile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 12px;color:var(--text);text-align:center}
.cattile:hover{color:var(--accent)}
.cattile small{color:var(--muted)}
.cicon{width:72px;height:72px;border-radius:50%;box-shadow:var(--in);display:inline-flex;align-items:center;justify-content:center;color:var(--accent);flex:none}
.row .cicon{width:56px;height:56px}
.strike{color:#C62828;text-decoration:line-through;font-weight:600;font-size:14px;margin-left:8px}
.save{color:#C62828;font-size:13px;font-weight:700}
.off{position:absolute;top:10px;right:10px;padding:4px 9px;border-radius:999px;background:#C62828;color:#fff;font-size:12px;font-weight:800}
.off.big{top:16px;right:16px;font-size:14px;padding:6px 12px}
.offpill{display:inline-block;margin-left:10px;padding:4px 10px;border-radius:999px;background:#FDE2E2;color:#B71C1C;font-size:13px;font-weight:800}
.pricebox{display:flex;align-items:baseline;flex-wrap:wrap}
.btn.full{width:100%}
.btn.lg{min-height:54px;padding:0 26px;font-size:16px}
.thumb>svg{width:45%;height:45%;color:var(--accent)}
/* product page */
.pname{font-size:clamp(24px,3vw,32px)}
.sub{margin:6px 0 0;color:var(--muted)}
.prow{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.price.big{font-size:30px}
.pgal{min-width:0}
.pmain{position:relative;border-radius:22px;overflow:hidden;box-shadow:var(--in);background:#fff}
.track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;aspect-ratio:1/1}
.track::-webkit-scrollbar{display:none}
.track img{flex:0 0 100%;width:100%;height:100%;object-fit:contain;scroll-snap-align:start;background:#fff}
.noimg{flex:0 0 100%;display:flex;align-items:center;justify-content:center;color:var(--accent);background:var(--bg)}
.gdots{display:flex;gap:6px;justify-content:center;margin-top:12px}
.gdots button{width:8px;height:8px;border-radius:999px;border:0;padding:0;background:#B7C1CD;cursor:pointer;transition:width .2s}
.gdots button[aria-current="true"]{width:24px;background:var(--text)}
.thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.thumbs button{width:72px;height:72px;border:0;padding:0;border-radius:14px;overflow:hidden;box-shadow:var(--out-sm);cursor:pointer;background:#fff}
.thumbs button[aria-current="true"]{outline:2px solid var(--accent)}
.thumbs img{width:100%;height:100%;object-fit:cover}
@media(max-width:760px){.thumbs{display:none}}
.optlabel{font-size:15px}
.optlabel span{color:var(--muted);margin-left:6px}
.cdots{display:flex;gap:18px;flex-wrap:wrap}
.cdot{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;color:var(--muted);font-weight:600}
.cdot .ring{width:48px;height:48px;border-radius:50%;padding:4px;box-shadow:var(--out-sm);display:block}
.cdot .ring span{display:block;width:100%;height:100%;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.cdot[aria-pressed="true"]{color:var(--text)}
.cdot[aria-pressed="true"] .ring{box-shadow:0 0 0 2px var(--text)}
.cdot[disabled]{opacity:.35;cursor:not-allowed}
.sizegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:10px}
.sz{min-height:50px;border:0;border-radius:14px;background:var(--bg);box-shadow:var(--out-sm);font-weight:600;font-size:15px;cursor:pointer;color:var(--text)}
.sz[aria-pressed="true"]{background:var(--text);color:#fff;box-shadow:none}
.sz[disabled]{box-shadow:var(--in-sm);color:#9AA5B1;text-decoration:line-through;cursor:not-allowed}
.pbtns{display:grid;grid-template-columns:2fr 1fr;gap:12px}
.buybar{display:none}
@media(max-width:760px){
  .buybar{display:flex;position:fixed;left:8px;right:8px;bottom:8px;z-index:45;padding:12px 14px;align-items:center;justify-content:space-between;gap:12px;border-radius:20px}
  .buybar .btn{flex:0 0 55%}
  footer.site{padding-bottom:110px}
  .pbtns{grid-template-columns:1fr}
}
/* quick add + upsell */
.quick{display:grid;grid-template-columns:200px 1fr;gap:22px}
.quick .qimg{border-radius:18px;overflow:hidden;box-shadow:var(--in);aspect-ratio:1/1;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--accent)}
.quick .qimg img{width:100%;height:100%;object-fit:contain}
@media(max-width:600px){.quick{grid-template-columns:1fr}.quick .qimg{max-width:180px}}
.upsell{margin-top:24px;padding:20px;border-radius:22px;box-shadow:var(--in)}
@media(max-width:700px){
  .topnav{display:none}
  header.top .cartbtn{margin-left:auto}
  .catnav{order:3}
  header.top .search{order:4}
  .catnav a{min-height:40px;padding:0 12px;font-size:12px}
}
