/* ================================================================
   Theme LAYOUTS (structure): header / hero / homepage sections /
   category style / grid columns / card layout / footer.
   Body classes from theme_body_classes(); stores without a theme get
   none of them, so only the neutral rules at the top apply to them.
   ================================================================ */

/* header icon group: invisible by default — its children keep their old place in the bar */
.hd-icons{display:contents}

/* announcement strip (inside the header, so it travels with it) */
.ann-bar{background:var(--teal-dk,#222);color:#fff;font-size:12.5px;font-weight:700;text-align:center;padding:7px 0;letter-spacing:.02em}
.ann-bar .wrap{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* the home header floats over the hero: give a taller header (strip / centred logo) room */
body.home.th-ann{--th-hx:31px}
@media(min-width:901px){body.home.th-header-centered{--th-hx:46px}body.home.th-header-centered.th-ann{--th-hx:77px}}
body.home.th main>:first-child:not(.hsec),body.home.th main>.hsec:first-child>:first-child{border-top:var(--th-hx,0px) solid transparent;background-origin:border-box}

/* ---------- header layouts (desktop) ---------- */
@media(min-width:901px){
  body.th-header-centered .bar,body.th-header-centered header.solid .bar,body.th-header-centered.inner .bar{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;height:auto;padding-top:12px;padding-bottom:2px;row-gap:0;align-items:center}
  body.th-header-centered .logo{grid-column:2;grid-row:1;margin:0;justify-self:center}
  body.th-header-centered .hd-icons{display:flex;align-items:center;gap:12px;grid-column:3;grid-row:1;justify-self:end}
  body.th-header-centered .mainnav{grid-column:1/-1;grid-row:2;justify-content:center;padding:8px 0 10px}
  body.th-header-split .bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
  body.th-header-split .mainnav{grid-column:1;grid-row:1;justify-self:start;gap:18px;font-size:14px}
  body.th-header-split .logo{grid-column:2;grid-row:1;margin:0}
  body.th-header-split .hd-icons{display:flex;align-items:center;gap:12px;grid-column:3;grid-row:1;justify-self:end}
  body.th-header-split .hsearch input{width:120px}
}

/* ---------- product grid columns ---------- */
body.th-cols-3 .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.th-cols-4 .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body.th-cols-5 .grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
@media(max-width:1100px){body.th-cols-5 .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:880px){body.th .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  body.th-mcols-1 .grid{grid-template-columns:1fr}
  body.th-mcols-2 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.th-mcols-2 .card .body{padding:10px 10px 4px}
  body.th-mcols-2 .card h3{font-size:13.5px}
  body.th-mcols-2 .card .add{margin:8px 10px 10px;padding:10px 6px;font-size:13px}
  body.th-mcols-2 .card .savepill{display:none}
}

/* ---------- product card layouts ---------- */
body.th-cardl-overlay .card{display:grid;grid-template-rows:auto 1fr;grid-template-areas:"img" "body"}
body.th-cardl-overlay .card>.thumb{grid-area:img}
body.th-cardl-overlay .card>.body{grid-area:body;padding-bottom:14px}
body.th-cardl-overlay .card>form,body.th-cardl-overlay .card>.add{grid-area:img;align-self:end;margin:0 10px 10px;z-index:2;transition:opacity .2s,transform .2s}
body.th-cardl-overlay .card>form .add{margin:0;width:100%;box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}
@media(hover:hover) and (min-width:641px){
  body.th-cardl-overlay .card>form,body.th-cardl-overlay .card>.add{opacity:0;transform:translateY(8px)}
  body.th-cardl-overlay .card:hover>form,body.th-cardl-overlay .card:hover>.add,body.th-cardl-overlay .card:focus-within>form{opacity:1;transform:none}
}
body.th-cardl-centered .card .body{align-items:center;text-align:center}
body.th-cardl-centered .card .metarow,body.th-cardl-centered .card .pricerow{justify-content:center}
body.th-cardl-centered .card .tag{display:none}

/* ---------- footer layouts ---------- */
body.th-footer-light .site-foot{background:#fff;color:var(--soft);border-top:1px solid var(--line)}
body.th-footer-light .site-foot .logo,body.th-footer-light .foot h4{color:var(--ink)}
body.th-footer-light .site-foot .logo .bw b{color:var(--teal)}
body.th-footer-light .social .soc{background:var(--lav);color:var(--teal)}
body.th-footer-light .subfoot{border-top-color:var(--line)}
body.th-footer-centered .foot{grid-template-columns:1fr;justify-items:center;text-align:center;gap:22px}
body.th-footer-centered .foot .about p{margin-left:auto;margin-right:auto}
body.th-footer-centered .site-foot .footlogo{justify-content:center}
body.th-footer-centered .social,body.th-footer-centered .pays{justify-content:center}
body.th-footer-centered .foot ul{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px 18px}
body.th-footer-centered .subfoot{justify-content:center;text-align:center}

/* ---------- category styles ---------- */
.lc-circles{display:flex;gap:22px;justify-content:center;flex-wrap:wrap}
.lc-circle{display:flex;flex-direction:column;align-items:center;gap:10px;width:120px;text-align:center}
.lc-ring{width:112px;height:112px;border-radius:50%;padding:3px;background:conic-gradient(var(--teal),var(--yellow),var(--teal));display:block;transition:transform .2s}
.lc-circle:hover .lc-ring{transform:scale(1.05)}
.lc-ring img,.lc-ring i{width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid #fff;display:grid;place-items:center;background:var(--lav);font-style:normal;font-size:40px}
.lc-circle b{font-size:14px;line-height:1.25}
@media(max-width:640px){.lc-circles{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:8px;gap:14px;scrollbar-width:none}.lc-circle{width:84px;flex:none}.lc-ring{width:78px;height:78px}.lc-circle b{font-size:12.5px}}
.lc-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lc-card{position:relative;aspect-ratio:4/5;border-radius:var(--th-radius,18px);overflow:hidden;display:grid;place-items:center}
.lc-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.lc-card:hover img{transform:scale(1.05)}
.lc-card i{font-size:64px;font-style:normal}
.lc-cap{position:absolute;left:0;right:0;bottom:0;padding:48px 18px 16px;background:linear-gradient(transparent,rgba(0,0,0,.68));color:#fff;display:flex;flex-direction:column;gap:2px}
.lc-cap b{font-family:var(--font-head),sans-serif;font-size:21px;line-height:1.15}.lc-cap small{opacity:.85;font-size:13px}
@media(max-width:880px){.lc-cards{grid-template-columns:1fr 1fr;gap:10px}.lc-cap{padding:34px 12px 12px}.lc-cap b{font-size:16px}}
.lc-chipbar{padding:24px 0 0}
.lc-chips{display:flex;gap:10px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:thin}
.lc-chip{flex:none;border:1.5px solid var(--line);background:#fff;border-radius:var(--th-btn,999px);padding:10px 16px;font-weight:700;font-size:14px;white-space:nowrap}
.lc-chip.on,.lc-chip:hover{border-color:var(--teal);color:var(--teal)}

/* ---------- new arrivals scroller ---------- */
.lc-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,calc((100% - 54px)/4));gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;scrollbar-width:thin}
.lc-row .card{scroll-snap-align:start}
@media(max-width:640px){.lc-row{grid-auto-columns:64%;gap:12px}}

/* ---------- promo banner ---------- */
.lc-promo{display:grid;grid-template-columns:1.15fr 1fr;align-items:stretch;gap:24px;background:linear-gradient(120deg,var(--teal),var(--teal-dk));color:#fff;border-radius:var(--th-radius,22px);overflow:hidden;padding-left:40px;min-height:300px}
.lc-promo-t{padding:38px 0;align-self:center}
.lc-promo-k{font-weight:800;letter-spacing:.1em;text-transform:uppercase;font-size:12px;color:var(--yellow)}
.lc-promo h2{color:#fff;font-size:clamp(24px,3vw,36px);margin:8px 0 10px;line-height:1.12}.lc-promo p{opacity:.9;margin:0 0 18px;max-width:46ch}
.lc-promo .btn{background:var(--yellow);color:var(--on-accent)}
.lc-promo-i{display:block}.lc-promo-i img{width:100%;height:100%;object-fit:cover;min-height:300px}
@media(max-width:760px){.lc-promo{grid-template-columns:1fr;padding:0;gap:0}.lc-promo-t{padding:26px 22px}.lc-promo-i img{min-height:220px;max-height:260px}}

/* ---------- our story ---------- */
.lc-story{background:var(--lav)}
.lc-story-in{max-width:780px;text-align:center}
.lc-story h2{font-size:clamp(24px,3.4vw,36px);margin:10px 0}
.lc-story p{color:var(--soft);font-size:17px;line-height:1.7;margin:0 auto}
.lc-story-pts{display:flex;gap:10px 22px;justify-content:center;flex-wrap:wrap;margin:18px 0 22px;font-weight:700;font-size:14px}

/* ---------- heroes ---------- */
.lh-kick{display:inline-block;font-weight:800;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:10px}
.lh-btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
/* banner */
.lh-banner{position:relative;min-height:min(86vh,720px);display:flex;align-items:flex-end;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,.22),rgba(0,0,0,.62)),var(--lh-img) center/cover no-repeat;background-origin:border-box}
.lh-banner-in{padding:150px 22px 72px;width:100%}
.lh-banner .lh-kick{color:var(--yellow)}
.lh-banner h1{color:#fff;font-size:clamp(34px,6vw,70px);line-height:1.03;max-width:15ch;margin:0}
.lh-banner p{font-size:18px;max-width:46ch;opacity:.92;margin:14px 0 0}
.lh-banner .lh-b1{background:var(--yellow);color:var(--on-accent)}
.lh-banner .lh-b2{background:rgba(255,255,255,.12);color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7)}
@media(max-width:640px){.lh-banner{min-height:76vh}.lh-banner-in{padding:120px 16px 42px}.lh-banner p{font-size:16px}}
/* mosaic */
.lh-mosaic{padding:118px 0 30px;background:linear-gradient(180deg,var(--lav),transparent)}
.lh-mo-grid{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:14px;height:min(68vh,560px)}
.lh-mo-big{grid-row:1/3;position:relative;border-radius:var(--th-radius,18px);overflow:hidden}
.lh-mo-big img,.lh-mo-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.lh-mo-big:hover img,.lh-mo-tile:hover img{transform:scale(1.04)}
.lh-mo-txt{position:absolute;left:0;right:0;bottom:0;padding:70px 28px 26px;background:linear-gradient(transparent,rgba(0,0,0,.74));color:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.lh-mo-txt small{font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--yellow)}
.lh-mo-txt b{font-family:var(--font-head),sans-serif;font-size:clamp(26px,3.4vw,42px);line-height:1.06}
.lh-mo-txt em{font-style:normal;opacity:.9;max-width:44ch}
.lh-mo-txt .btn{margin-top:8px;background:var(--yellow);color:var(--on-accent)}
.lh-mo-tile{position:relative;border-radius:var(--th-radius,18px);overflow:hidden;background:#fff}
.lh-mo-tile span{position:absolute;left:10px;right:10px;bottom:10px;background:rgba(255,255,255,.95);border-radius:10px;padding:8px 10px;display:flex;justify-content:space-between;gap:8px;font-size:13px}
.lh-mo-tile b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lh-mo-tile i{font-style:normal;font-weight:800;color:var(--teal);white-space:nowrap}
@media(max-width:820px){.lh-mosaic{padding:96px 0 18px}.lh-mo-grid{grid-template-columns:1fr 1fr;grid-template-rows:none;height:auto;gap:10px}.lh-mo-big{grid-column:1/-1;grid-row:auto;aspect-ratio:4/5}.lh-mo-tile{aspect-ratio:1/1}}
/* editorial */
.lh-editorial{padding:130px 0 50px}
.lh-ed-in{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.lh-ed-t h1{font-size:clamp(36px,5.4vw,66px);line-height:1.02;margin:0}
.lh-ed-t p{color:var(--soft);font-size:18px;max-width:42ch;margin:16px 0 0}
.lh-ed-pics{position:relative;height:min(64vh,540px)}
.lh-ed-pic{position:absolute;overflow:hidden;border-radius:var(--th-radius,16px);box-shadow:0 30px 60px -30px rgba(0,0,0,.45);background:#fff}
.lh-ed-pic img{width:100%;height:100%;object-fit:cover}
.lh-ed-pic.p0{left:0;top:0;width:62%;height:84%}
.lh-ed-pic.p1{right:0;bottom:0;width:50%;height:60%;border:6px solid var(--th-page,#fff)}
.lh-ed-pic span{position:absolute;left:10px;bottom:10px;max-width:calc(100% - 20px);background:rgba(255,255,255,.93);font-size:12.5px;font-weight:700;padding:5px 10px;border-radius:99px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:820px){.lh-editorial{padding:98px 0 26px}.lh-ed-in{grid-template-columns:1fr;gap:22px}.lh-ed-pics{height:360px}.lh-ed-t{text-align:center}.lh-ed-t p{margin-left:auto;margin-right:auto}.lh-ed-t .lh-btns{justify-content:center}}
/* minimal (search-first) */
.lh-minimal{padding:150px 0 54px;text-align:center;background:radial-gradient(70% 90% at 50% 0%,var(--lav),transparent)}
.lh-mi-in{max-width:840px}
.lh-minimal h1{font-size:clamp(32px,5vw,58px);line-height:1.05;margin:0}
.lh-minimal p{color:var(--soft);font-size:18px;margin:14px auto 0;max-width:52ch}
.lh-search{display:flex;gap:8px;max-width:620px;margin:26px auto 0;background:#fff;border:1.5px solid var(--line);border-radius:var(--th-btn,999px);padding:6px;box-shadow:var(--shadow-sm)}
.lh-search input{flex:1;min-width:0;border:0;outline:none;font:inherit;font-size:16px;padding:10px 14px;background:transparent}
.lh-mi-cats{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.lh-mi-cats a{background:#fff;border:1px solid var(--line);border-radius:99px;padding:7px 13px;font-size:13.5px;font-weight:700}
.lh-mi-cats a:hover{border-color:var(--teal);color:var(--teal)}
@media(max-width:640px){.lh-minimal{padding:108px 0 34px}.lh-minimal p{font-size:16px}}

/* ---------- product page layouts ---------- */
/* gallery: every photo big, one under another; the buy box rides along */
@media(min-width:821px){.pdp-gallery{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
.pd-stack{display:grid;gap:12px}
.pd-stack img,.pd-stack video{width:100%;height:auto;display:block;border-radius:var(--th-radius,18px);background:#fff}
.has-stack .pd-media{display:none}
.has-stack:not(.is-admin) .pd-thumbs{display:none}
@media(min-width:821px){.pdp-gallery .pd-info,.pdp-accordion .pd-info{position:sticky;top:96px;align-self:start}}
@media(max-width:820px){
  .pd-stack{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;margin:0 -16px;padding:0 16px;scrollbar-width:none}
  .pd-stack img,.pd-stack video{flex:0 0 88%;scroll-snap-align:center;aspect-ratio:4/5;object-fit:cover}
}
/* accordion: description / specs / delivery / reviews fold out inside the buy box */
.pd-acc{margin:18px 0 6px;border-top:1px solid var(--line)}
.pd-acc details{border-bottom:1px solid var(--line)}
.pd-acc summary{cursor:pointer;list-style:none;padding:15px 2px;font-weight:800;font-size:15px;display:flex;justify-content:space-between;align-items:center}
.pd-acc summary::-webkit-details-marker{display:none}
.pd-acc summary::after{content:"+";font-size:20px;font-weight:600;color:var(--soft)}
.pd-acc details[open] summary::after{content:"–"}
.pd-acc details>*:not(summary){margin:0 2px 16px}
.pd-acc .pd-desc{max-width:none;font-size:14.5px;line-height:1.75}
.pd-acc p{color:var(--soft);font-size:14px;line-height:1.7}
/* centered: big photo first, everything centred under it */
.pdp-centered{grid-template-columns:1fr;max-width:880px;margin-left:auto;margin-right:auto;text-align:center;gap:22px}
.pdp-centered .pd-thumbs{justify-content:center}
.pdp-centered .pd-info .stars,.pdp-centered .pd-price,.pdp-centered .pd-optsets .pv-opts,.pdp-centered .pd-buy{justify-content:center}
.pdp-centered .pd-price,.pdp-centered .pd-buy{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.pdp-centered .pd-short{max-width:60ch;margin-left:auto;margin-right:auto}
.pdp-centered .pd-perks{text-align:left}
.pdp-centered .pd-order{text-align:left;max-width:520px;margin-left:auto;margin-right:auto}
/* sticky buy bar on phones (shows once the main button scrolls away) */
.pd-sticky{display:none}
@media(max-width:820px){
  .pd-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;align-items:center;gap:10px;background:#fff;border-top:1px solid var(--line);
    box-shadow:0 -10px 26px -14px rgba(0,0,0,.35);padding:10px 14px calc(10px + env(safe-area-inset-bottom));transform:translateY(110%);transition:transform .25s}
  .pd-sticky.on{transform:none}
  .pd-sticky-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
  .pd-sticky-t b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pd-sticky-t span{font-weight:800;color:var(--teal-dk)}
  .pd-sticky .btn{flex:none;padding:12px 18px;font-size:15px}
}
.pdp-centered .pd-left{width:100%;max-width:620px;margin:0 auto}

/* owner menus (includes/menus.php) — dropdowns on desktop, list in the phone menu */
.mn-custom{align-items:center}
.mn-dd{position:relative}
.mn-dd>a{display:inline-flex;align-items:center;gap:4px}
.mn-caret{font-size:.75em;opacity:.7}
.mn-dd-menu{position:absolute;top:100%;left:-12px;min-width:210px;max-height:70vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px -18px rgba(0,0,0,.35);padding:8px;display:none;z-index:60;font-size:14px}
.mn-dd:hover .mn-dd-menu,.mn-dd:focus-within .mn-dd-menu{display:grid}
.mn-dd-menu a{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:9px;color:var(--ink)!important;font-weight:600;white-space:nowrap}
.mn-dd-menu a:hover{background:rgba(var(--brand-rgb),.08);color:var(--teal)!important}
.mn-ic{width:20px;text-align:center}
.mm-links{display:grid;gap:4px;margin:4px 0 14px}
.mm-lk,.mm-lk-dd>summary{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--line);font-weight:800;color:var(--ink);cursor:pointer;list-style:none}
.mm-lk-dd>summary::-webkit-details-marker{display:none}
.mm-lk-dd>summary::after{content:"＋";color:var(--soft)}.mm-lk-dd[open]>summary::after{content:"－"}
.mm-lk.sub{margin:4px 0 0 14px;font-weight:600;padding:10px 12px}
.mm-lk .go{color:var(--soft)}
/* rotating announcement (includes/widgets.php) */
.wg-ann .wrap{position:relative;height:18px;line-height:18px}
.wg-ann-i{position:absolute;left:0;right:0;opacity:0;transition:opacity .45s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 10px}
.wg-ann-i.on{opacity:1;z-index:1}
.wg-ann a{text-decoration:none}.wg-ann a:hover{text-decoration:underline}
