/* Storefront. Colours/fonts come from the theme chosen in admin (see top.ejs).
   Direction: quiet, premium essentials — soft neutral palette, one muted
   accent, native-iOS chrome (rounded corners, blurred bars, spring motion,
   soft shadows instead of hard borders), restrained lowercase type. */
*,*::before,*::after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:450 16px/1.5 -apple-system,BlinkMacSystemFont,Epilogue,system-ui,sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:calc(70px + env(safe-area-inset-bottom))}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2{font-family:-apple-system,BlinkMacSystemFont,Epilogue,system-ui,sans-serif;font-weight:700;line-height:1.05;margin:0;letter-spacing:-.01em}
h3{font-family:-apple-system,BlinkMacSystemFont,Epilogue,sans-serif;font-weight:700;line-height:1.25;margin:0}
p{margin:0}
.ic{flex:none}
.wrap{width:100%;max-width:1240px;margin:0 auto;padding:0 16px}
.narrow{max-width:720px}
.muted{color:#68655e}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 14px;z-index:100;border-radius:0 0 10px 0}
.skip:focus{left:8px}
:focus-visible{outline:2.5px solid var(--accent);outline-offset:2px}

/* Announcement + header */
.announce{background:var(--soft);color:var(--ink);text-align:center;font:500 13px/1.4 inherit;padding:9px 16px}
.top{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid #0000000f}
.top-row{display:flex;align-items:center;gap:20px;min-height:58px}
.brand{font-family:-apple-system,BlinkMacSystemFont,Epilogue,sans-serif;font-weight:600;font-size:20px;letter-spacing:-.01em;color:var(--ink);text-transform:lowercase}
.brand img{height:30px;width:auto}
.desk-nav,.desk-search{display:none}
.mob-search{margin-left:auto;width:38px;height:38px;display:grid;place-items:center;border:0;background:#00000010;border-radius:50%;color:var(--ink);cursor:pointer}
.mob-search:active{transform:scale(.92)}

/* Buttons — full-round, spring press, no hard borders */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 22px;border:1.5px solid #00000018;background:var(--bg);color:var(--ink);font:600 15px/1 inherit;cursor:pointer;border-radius:999px;transition:transform .15s cubic-bezier(.34,1.56,.64,1),background-color .15s,opacity .15s}
.btn:hover{background:#00000008}
.btn:active{transform:scale(.95);opacity:.85}
.btn-solid{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 6px 16px -6px color-mix(in srgb,var(--accent) 70%,transparent)}
.btn-solid:hover{background:var(--accent);filter:brightness(1.06)}
.btn-lg{min-height:54px;padding:0 30px;font-size:16px}
.btn-off{background:#e4e2da;border-color:#e4e2da;color:#9b988d}
.btn-off:hover{background:#e4e2da;color:#9b988d}

/* Hero — rounded feature card, not full-bleed, quiet neutral tone */
.hero{padding:14px 0 0}
.hero-grid{display:grid;gap:0;background:var(--soft);border-radius:24px;overflow:hidden}
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:14px;justify-content:center;padding:36px 24px 28px}
.hero-copy h1{color:var(--ink);font-size:clamp(34px,9vw,64px);max-width:11ch;letter-spacing:-.02em}
.hero p{max-width:40ch;color:#55503f;font-size:16px;font-weight:450}
.hero-media{aspect-ratio:4/5;background:var(--bg);overflow:hidden;position:relative}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-ph{height:100%;display:grid;place-items:center;background:repeating-linear-gradient(135deg,var(--bg),var(--bg) 22px,#00000006 22px,#00000006 24px)}
.hero-ph span{font:600 clamp(110px,36vw,260px)/1 -apple-system,BlinkMacSystemFont,Epilogue,sans-serif;color:var(--ink);opacity:.1}

/* One orchestrated reveal on the home hero only, with a soft spring settle */
@keyframes hero-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes hero-media-in{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}
.hero-copy h1{animation:hero-in .55s cubic-bezier(.22,1,.36,1) both}
.hero-copy p{animation:hero-in .55s cubic-bezier(.22,1,.36,1) .07s both}
.hero-copy .btn{animation:hero-in .55s cubic-bezier(.22,1,.36,1) .14s both}
.hero-media{animation:hero-media-in .6s cubic-bezier(.22,1,.36,1) .05s both}

.cat-strip{display:flex;gap:8px;overflow-x:auto;padding:14px 0 2px;scrollbar-width:none}
.cat-strip::-webkit-scrollbar{display:none}
.cat-strip a{flex:none;padding:10px 18px;border-radius:999px;background:#00000009;font:600 14px inherit;color:var(--ink);transition:background-color .15s,color .15s}
.cat-strip a:hover{background:var(--ink);color:#fff}

/* Sections */
.block{padding-top:40px}
.block.tight{padding-top:8px}
.block-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.block-head h2{font-size:clamp(26px,5.5vw,36px)}
.block-head a{font:600 14px inherit;color:var(--accent)}
.page-head{padding-top:28px}
.page-head h1{font-size:clamp(32px,7vw,52px)}
.lead{font-size:17px;margin:12px 0 22px;color:#403d37;max-width:60ch;font-weight:450}
.empty{padding:48px 0;text-align:center;display:grid;gap:16px;justify-items:center;color:#68655e}

/* Product grid + cards — rounded, soft shadow instead of hard border */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.card{display:block;border-radius:18px;background:var(--bg);box-shadow:0 1px 2px #00000012;transition:transform .2s cubic-bezier(.22,1,.36,1),box-shadow .2s}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 24px -10px #00000030}
.card-img{position:relative;aspect-ratio:4/5;background:var(--soft);overflow:hidden;border-radius:18px}
.card-img img{width:100%;height:100%;object-fit:cover}
.card.is-out .card-img img{opacity:.45;filter:grayscale(1)}
.card-body{padding:10px 4px 2px}
.card h3{font-size:14px;letter-spacing:0}
.price{font:700 15px/1 inherit;margin-top:5px}
.price s{font-weight:450;color:#9b988d;margin-left:6px}
.price.lg{font-size:26px;margin:10px 0 4px}
.badge{position:absolute;top:10px;left:10px;background:var(--accent);color:#fff;font:600 11px/1 inherit;padding:5px 11px;border-radius:999px;box-shadow:0 3px 8px -2px #00000030}
.badge-dark{background:var(--ink)}
.ph{height:100%;display:grid;place-items:center;background:var(--soft)}
.ph span{font:600 64px/1 -apple-system,BlinkMacSystemFont,Epilogue,sans-serif;color:var(--ink);opacity:.25}

.how{display:grid;gap:12px;padding-top:52px;padding-bottom:16px}
.how div{background:#00000007;border-radius:18px;padding:20px 18px}
.how h3{font-size:17px;margin-bottom:5px}
.how p{color:#68655e;font-size:14px;font-weight:450}

/* Listing filters */
.filters{display:flex;flex-direction:column;gap:12px;padding-top:16px;padding-bottom:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips.scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.chip{flex:none;padding:9px 16px;border-radius:999px;background:#00000009;font:600 13px inherit;color:var(--ink)}
.chip.on,.chip:hover{background:var(--ink);color:#fff}
.sort select{min-height:44px;border:0;background:#00000009;padding:0 14px;font:500 16px inherit;border-radius:999px;color:var(--ink)}
.pager{display:flex;justify-content:center;align-items:center;gap:16px;padding:32px 0}

/* Product page */
.crumbs{font:600 13px inherit;color:#78756b;padding:16px 0}
.crumbs a:hover{text-decoration:underline}
.pdp-grid{display:grid;gap:18px}
.gallery-main{position:relative;aspect-ratio:4/5;background:var(--soft);overflow:hidden;border-radius:22px}
.gallery-main img{width:100%;height:100%;object-fit:cover}
.thumbs{display:flex;gap:8px;margin-top:8px;overflow-x:auto}
.thumbs button{flex:none;width:62px;aspect-ratio:1;padding:0;border:0;border-radius:12px;background:var(--soft);cursor:pointer;opacity:.5;overflow:hidden}
.thumbs button.on{opacity:1;outline:2.5px solid var(--accent);outline-offset:2px}
.thumbs img{width:100%;height:100%;object-fit:cover}
.info h1{font-family:-apple-system,BlinkMacSystemFont,Epilogue,sans-serif;font-weight:800;text-transform:none;letter-spacing:-.01em;font-size:clamp(26px,6vw,36px)}
.sizes{border:0;padding:0;margin:20px 0 4px;display:flex;flex-wrap:wrap;gap:8px}
.sizes legend{font:700 13px inherit;margin-bottom:8px;padding:0}
.sizes label{cursor:pointer}
.sizes input{position:absolute;opacity:0}
.sizes span{display:grid;place-items:center;min-width:48px;min-height:44px;padding:0 14px;border-radius:999px;background:#00000009;font:600 14px inherit;transition:all .15s}
.sizes input:checked+span{background:var(--accent);color:#fff}
.sizes input:focus-visible+span{outline:2.5px solid var(--accent);outline-offset:2px}
.actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.hint{font-size:13px;color:#78756b;margin-top:10px;font-weight:450}
.desc{margin-top:28px;border-top:1px solid #00000012;padding-top:20px}
.desc h2{font-family:-apple-system,BlinkMacSystemFont,Epilogue,sans-serif;font-weight:800;font-size:19px;margin-bottom:8px}
.desc p{white-space:pre-line;color:#403d37;max-width:62ch;font-weight:450}
.sticky-buy{position:fixed;left:12px;right:12px;bottom:calc(72px + env(safe-area-inset-bottom));z-index:25;display:flex;gap:8px;align-items:center;padding:10px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(16px);border-radius:20px;box-shadow:0 10px 30px -8px #00000040;transform:translateY(0) scale(1);transition:transform .25s cubic-bezier(.34,1.56,.64,1),opacity .2s}
.sticky-buy .sb-price{font:700 16px/1 inherit;margin-right:auto;padding-left:6px}
.sticky-buy.away{transform:translateY(160%) scale(.9);opacity:0}
body:has(.sticky-buy){padding-bottom:calc(150px + env(safe-area-inset-bottom))}

/* About */
.contact-list{display:grid;gap:4px;margin-top:12px}
.contact-list a,.contact-list span{display:flex;align-items:center;gap:12px;min-height:50px;border-bottom:1px solid #00000012;font-weight:550}
.contact-list a:hover{color:var(--accent)}

/* Footer */
.foot{margin-top:64px;background:var(--ink);color:#e4e2d9;padding:40px 0 16px;border-radius:28px 28px 0 0}
.foot-grid{display:grid;gap:26px}
.foot-grid a,.foot-grid span{display:block;padding:4px 0;color:#c6c4ba;font-weight:500}
.foot-grid a:hover{color:var(--pop)}
.foot-brand{font:600 24px -apple-system,BlinkMacSystemFont,Epilogue,sans-serif;letter-spacing:-.01em;text-transform:lowercase;color:#fff}
.foot-h{font:700 12px inherit;color:#fff;margin-bottom:6px;opacity:.6}
.foot .muted{color:#a19e92}
.foot-end{margin-top:24px;padding-top:16px;border-top:1px solid #ffffff18;font:500 12px inherit;color:#8f8c80}

/* Mobile bottom bar + sheets — iOS blurred chrome */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(3,1fr);background:color-mix(in srgb,var(--bg) 78%,transparent);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:1px solid #0000000f;padding-bottom:env(safe-area-inset-bottom)}
.tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:58px;border:0;background:none;color:#8a877d;font:600 10.5px inherit;cursor:pointer;transition:color .15s,transform .15s}
.tabbar .on{color:var(--accent)}
.tabbar a:active,.tabbar button:active{transform:scale(.9)}
.scrim{position:fixed;inset:0;background:#00000055;backdrop-filter:blur(2px);z-index:50;opacity:0;visibility:hidden;transition:opacity .25s}
.scrim.open{opacity:1;visibility:visible}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--bg);border-radius:22px 22px 0 0;padding:10px 20px calc(28px + env(safe-area-inset-bottom));max-height:82vh;overflow-y:auto;transform:translateY(100%);visibility:hidden;transition:transform .4s cubic-bezier(.22,1,.36,1),visibility .4s;box-shadow:0 -10px 40px -10px #00000030}
.sheet.open{transform:none;visibility:visible}
.sheet-grip{width:36px;height:5px;border-radius:99px;background:#00000022;margin:4px auto 16px}
.sheet-h{font-family:-apple-system,BlinkMacSystemFont,Epilogue,sans-serif;font-weight:800;font-size:19px;margin:18px 0 8px}
.sheet-links a{display:flex;justify-content:space-between;align-items:center;min-height:50px;border-bottom:1px solid #00000012;font:500 16px inherit}
.sheet-links small{color:#78756b}
.sheet-search{display:flex;gap:8px;align-items:center}
.search-field{flex:1;display:flex;align-items:center;gap:8px;min-height:46px;padding:0 14px;border-radius:999px;background:#00000009;color:#8a877d}
.search-field input{flex:1;min-width:0;border:0;background:none;font:450 16px inherit;color:var(--ink);min-height:44px}
.search-field input:focus{outline:none}
.sheet-social{display:flex;gap:10px;margin-top:20px}
.sheet-social a{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#00000009;color:var(--ink)}
.sheet .chips{margin-top:8px}

/* Tablet and up */
@media (min-width:760px){
  .wrap{padding:0 28px}
  .grid{grid-template-columns:repeat(3,1fr);gap:20px}
  .hero-grid{grid-template-columns:1.05fr 1fr;gap:0;align-items:stretch}
  .hero-copy{padding:0 48px}
  .hero-media{aspect-ratio:auto;min-height:520px}
  .how{grid-template-columns:repeat(3,1fr)}
  .pdp-grid{grid-template-columns:1.1fr 1fr;gap:56px;align-items:start}
  .info{position:sticky;top:90px}
  .actions{flex-direction:row}
  .actions .btn{flex:1}
  .foot-grid{grid-template-columns:1.4fr 1fr 1fr}
  .filters{flex-direction:row;justify-content:space-between;align-items:center}
}
/* Desktop: the bottom bar is a phone feature, the header takes over */
@media (min-width:980px){
  body,body:has(.sticky-buy){padding-bottom:0}
  .tabbar,.scrim,.sheet,.sticky-buy,.mob-search{display:none}
  .desk-nav{display:flex;gap:4px;margin-left:12px;font:600 14px inherit}
  .desk-nav a{padding:8px 14px;border-radius:999px}
  .desk-nav a:hover,.desk-nav a.on{background:#00000009}
  .desk-search{display:flex;margin-left:auto;position:relative}
  .desk-search input{width:200px;min-height:40px;padding:0 40px 0 16px;border:0;background:#00000009;border-radius:999px;font:450 15px inherit;color:var(--ink)}
  .desk-search button{position:absolute;right:4px;top:4px;height:32px;width:32px;border:0;background:none;cursor:pointer;color:var(--ink)}
  .grid{grid-template-columns:repeat(4,1fr)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
