/* Store-only layout. Components live in /shared/css/ds.css. Nothing here is sticky. */
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.art { display: block; }
#main > * { animation: page-in .35s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid #F1F1EF; }

/* search type-ahead */
.site-header .searchbox { position: relative; }
.searchbox.open { background: #fff; border-color: var(--line); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; border-radius: 14px; padding: 6px; max-height: min(72vh, 580px); overflow-y: auto; box-shadow: 0 0 0 1px rgba(10,10,10,.05), 0 24px 56px rgba(10,10,10,.18); animation: menu-in .16s var(--ease); }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 13.5px; }
.sg-row > svg { color: var(--faint); flex: none; }
.sg-row:hover, .sg-row.active { background: var(--well); color: var(--ink); }
.sg-term { color: var(--soft); }
.sg-term b { color: var(--ink); font-weight: 600; }
.sg-row mark { background: none; color: inherit; font-weight: 700; }
.sg-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); }
.sg-thumb { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.sg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 10px; }
.sg-chips .chip.active { border-color: var(--ink); background: var(--well); }
.sg-none { padding: 14px 10px 6px; font-size: 13px; color: var(--muted); }
kbd { font: inherit; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--well); color: var(--muted); }
.search-dim { position: fixed; inset: 0; z-index: 40; background: rgba(10,10,10,.28); animation: fade .15s ease; }
.site-header .bar { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.brand-logo { height: 32px; width: auto; max-width: 180px; object-fit: contain; flex: none; display: block; }
.site-header .searchbox { flex: 1 1 360px; min-width: 0; max-width: 720px; margin: 0 auto; }
.branch-btn { height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 6px; cursor: pointer; text-align: left; }
.branch-btn:hover { background: var(--well); }
.branch-btn .lbl { display: flex; flex-direction: column; line-height: 1.15; }
.branch-btn .lbl small { font-size: 10.5px; color: var(--muted); }
.branch-btn .lbl b { font-size: 12.5px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-icons { display: flex; align-items: center; gap: 2px; flex: none; }
.hdr-link { height: 38px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; text-decoration: none; }
.hdr-link:hover { background: var(--well); color: var(--ink); }

.catnav-bar { position: relative; }
.catnav { display: flex; align-items: center; gap: 2px; height: 42px; font-size: 13px; overflow-x: auto; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav > a, .all-btn { height: 30px; padding: 0 12px; border-radius: 15px; text-decoration: none; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--soft); transition: background .15s ease, color .15s ease; }
.catnav > a:hover, .all-btn:hover { background: var(--well); color: var(--ink); }
.catnav > a.on { background: var(--well); color: var(--ink); font-weight: 600; }
.catnav > a svg { color: var(--muted); }
.all-btn { border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
.catnav .spacer { flex: 1; }
.catnav .menu-wrap { position: static; }
.mega { top: calc(100% + 4px); left: 16px; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px 16px; padding: 14px; width: min(900px, calc(100vw - 32px)); }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega .mega-root { font-weight: 600; gap: 8px; min-height: 40px; }
.pic.mini { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--well); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.pic.mini img { width: 100%; height: 100%; object-fit: cover; }
.mega .mega-sub { min-height: 30px; padding: 5px 10px; color: var(--soft); font-size: 12.5px; }
.notif-list { width: 340px; max-height: 420px; overflow-y: auto; }
.notif { padding: 8px 10px; border-radius: 8px; display: flex; gap: 10px; text-decoration: none; font-size: 13px; }
.notif:hover { background: var(--well); }
.notif .dot { margin-top: 6px; }

/* ---------- page ---------- */
.page { padding-top: 20px; padding-bottom: 64px; }
.crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); }

/* footer: stick to bottom on short pages */
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#app > #main { flex: 1 0 auto; }
#app > .site-footer { flex-shrink: 0; }
#app.loading > .site-footer { display: none; }
.site-footer { margin-top: 24px; background: #FAFAF9; }
.to-top { width: 100%; height: 40px; border: 0; background: #F4F4F2; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.to-top svg { transform: rotate(180deg); }
.to-top:hover { background: #E4E4E1; }
.foot-cols { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.foot-cols h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.foot-cols a { color: var(--soft); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { max-width: 280px; line-height: 1.5; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 20px; border-top: 1px solid var(--line); }

/* ---------- ads (photo + copy) ---------- */
.ad { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: #2A2A2A; color: #fff; text-decoration: none; isolation: isolate; }
.ad:hover { color: #fff; }
.ad img, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.ad:hover img { transform: scale(1.03); }
.ad::after, .hero-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.45) 45%, rgba(10,10,10,.05) 80%); }
.ad-tile::after, .ad-side::after { background: linear-gradient(0deg, rgba(10,10,10,.8) 0%, rgba(10,10,10,.25) 55%, rgba(10,10,10,0) 80%); }
.ad-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 520px; }
.ad-brand { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; opacity: .8; }
.ad-title { font-size: 20px; font-weight: 600; letter-spacing: -.4px; line-height: 1.15; }
.ad-sub { font-size: 13px; opacity: .85; line-height: 1.45; }
.ad-cta { margin-top: 6px; height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.ad-label { position: absolute; right: 10px; top: 10px; height: 18px; padding: 0 6px; border-radius: 4px; background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); font-size: 10px; font-weight: 500; display: inline-flex; align-items: center; pointer-events: none; backdrop-filter: blur(4px); z-index: 3; }
.ad-strip { height: 150px; display: flex; align-items: center; padding: 0 32px; }
.ad-tile { aspect-ratio: 1 / 1; display: flex; align-items: flex-end; padding: 14px; }
.ad-tile .ad-title { font-size: 15px; }
.ad-tile .ad-cta { height: 28px; padding: 0 12px; font-size: 12px; }
.ad-card .ad { border-radius: 10px; }
.ad-side { aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 16px; }

/* hero carousel */
.hero-ads { --hero-pad: calc(max(24px, (100vw - 1440px) / 2 + 24px) + 8px); position: relative; overflow: hidden; height: var(--hero-h); background: #2A2A2A; }
.hero-ads::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(243,243,241,0), rgba(243,243,241,.9) 70%, var(--page-bg)); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 56px var(--hero-pad) 0; color: #fff; text-decoration: none; opacity: 0; transition: opacity .7s var(--ease); isolation: isolate; }
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-slide:hover { color: #fff; }
.hero-slide .ad-title { font-size: 36px; letter-spacing: -1px; }
.hero-slide .ad-sub { font-size: 15px; max-width: 420px; }
.hero-slide .ad-cta { height: 38px; padding: 0 18px; font-size: 13px; margin-top: 10px; }
.hero-slide.on .ad-copy { animation: copy-in .7s var(--ease) both; }
@keyframes copy-in { from { opacity: 0; transform: translateY(10px); } }
.hero-nav { position: absolute; top: 34%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.hero-nav.prev { left: 16px; } .hero-nav.next { right: 16px; }
.hero-ads:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-ads > .ad-label { right: var(--hero-pad); top: 28px; }
.hero-dots { position: absolute; left: var(--hero-pad); top: 32px; z-index: 3; display: flex; gap: 6px; }
.hero-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s var(--ease), background .3s ease; }
.hero-dots button[aria-current="true"] { width: 20px; background: #fff; }

/* ---------- home ---------- */
.home { display: flex; flex-direction: column; gap: 36px; }
.home-bg { background: #fff; }
.page.home { padding-top: 16px; gap: 36px; }

/* ads stay hidden until the page's own content has loaded */
.ad, .ad-hcard, .ad-card { transition: opacity .4s var(--ease); }
.is-loading .ad, .is-loading .ad-hcard, .is-loading .ad-card { opacity: 0; pointer-events: none; }

/* hero panel (light, photo card on the right) */
.hero2 { position: relative; display: grid; border-radius: 24px; overflow: hidden; }
.hero2-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 32px; min-height: 420px; padding: 48px 56px 72px; background: var(--tint); opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.hero2-slide.on { opacity: 1; visibility: visible; }
.hero2-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 540px; }
.hero2-brand { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.hero2-title { font-size: clamp(34px, 4.3vw, 62px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.hero2-sub { font-size: 14.5px; color: var(--soft); max-width: 430px; line-height: 1.55; }
.hero2-cta { height: 46px; padding: 0 22px; border-radius: 23px; font-size: 14px; margin-top: 6px; }
.hero2-slide.on .hero2-copy > * { animation: copy-in .7s var(--ease) both; }
.hero2-slide.on .hero2-copy > :nth-child(2) { animation-delay: .06s; }
.hero2-slide.on .hero2-copy > :nth-child(3) { animation-delay: .12s; }
.hero2-slide.on .hero2-copy > :nth-child(4) { animation-delay: .18s; }
.hero2-art { position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 300px; text-decoration: none; }
.hero2-blob { position: absolute; width: min(80%, 420px); aspect-ratio: 1 / 1; border-radius: 50%; background: var(--blob); }
.hero2-card { position: relative; width: min(76%, 400px); aspect-ratio: 4 / 3.3; border-radius: 22px; overflow: hidden; transform: rotate(-4deg); box-shadow: 0 28px 60px rgba(10,10,10,.18); background: #DDD; transition: transform .6s var(--ease); }
.hero2-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero2-slide.on .hero2-card { animation: card-in .9s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: rotate(2deg) translateY(18px); } }
.hero2-art:hover .hero2-card { transform: rotate(-2deg) scale(1.02); }
.hero2-badge { position: absolute; left: 10%; bottom: 14%; height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; box-shadow: 0 10px 28px rgba(10,10,10,.14); }
.hero2-dots { position: absolute; left: 56px; bottom: 30px; z-index: 2; display: flex; gap: 6px; }
.hero2-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(10,10,10,.18); cursor: pointer; transition: width .3s var(--ease), background .3s ease; }
.hero2-dots button[aria-current="true"] { width: 24px; background: var(--ink); }
.hero2-label { position: absolute; right: 20px; top: 16px; z-index: 2; font-size: 10px; color: var(--faint); pointer-events: none; }

/* category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.cat-tile { text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cat-tile:hover { color: var(--ink); }
.ct-pic { aspect-ratio: 4 / 3; border-radius: 18px; }
.ct-pic img { transition: transform .5s var(--ease); }
.cat-tile:hover .ct-pic img { transform: scale(1.05); }
.ct-go { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(10,10,10,.12); transition: background .2s ease, color .2s ease, transform .3s var(--ease); }
.cat-tile:hover .ct-go { background: var(--ink); color: #fff; transform: rotate(45deg); }
.ct-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-count { flex: none; height: 22px; padding: 0 9px; border-radius: 11px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; }
.card-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hcard { background: #fff; border-radius: var(--r); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-1); min-width: 0; }
.hcard[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.tile { min-width: 0; text-decoration: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--soft); }
.tile:hover { color: var(--ink); }
.tile-pic { aspect-ratio: 1 / 1; border-radius: 8px; }
.tile-pic img { transition: transform .4s var(--ease); }
.tile:hover .tile-pic img { transform: scale(1.05); }
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.see-more { margin-top: auto; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink); align-self: flex-start; }
.see-more:hover { text-decoration: underline; color: var(--ink); }
.hcard-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.verify { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 12px 8px; color: var(--muted); }
.verify svg { color: var(--ink); }
.ad-hcard { padding: 0; overflow: hidden; }
.ad-hcard .ad { height: 100%; min-height: 300px; aspect-ratio: auto; border-radius: 0; }
.panel { background: #fff; border-radius: var(--r); padding: 18px 18px 20px; box-shadow: var(--sh-1); }
.home-bg .panel { padding: 0; box-shadow: none; background: none; border-radius: 0; }
.home-bg .perks { padding: 4px 6px; }
.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; font-weight: 500; text-align: center; color: var(--soft); }
.cat-chip .pic { width: 100%; max-width: 96px; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--well); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cat-chip .pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip:hover { color: var(--ink); }
.cat-chip:hover .pic { transform: translateY(-2px); box-shadow: var(--sh-2); }
.perks { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 2px 4px; }
.perk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--soft); }
.perk svg { flex: none; }
.perk b { font-weight: 600; color: var(--ink); }
.perk svg { color: var(--muted); }
.cart-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: var(--well); }
.cart-strip .groups { flex: 1 1 400px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.cart-strip .progress { height: 5px; }

/* shelves */
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.see-all { font-size: 12.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.shelf-wrap { position: relative; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px 0; scroll-behavior: smooth; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.shelf-nav { position: absolute; top: 72px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; box-shadow: 0 2px 8px rgba(10,10,10,.08); }
.shelf-nav.prev { left: -10px; } .shelf-nav.next { right: -10px; }
.shelf-wrap:hover .shelf-nav, .shelf-nav:focus-visible { opacity: 1; }

.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sup-card { text-decoration: none; padding: 14px 16px; border-radius: var(--r); background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.sup-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); color: var(--ink); }
.kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 11.5px; }
.kv3 span { display: flex; flex-direction: column; gap: 1px; }

/* ---------- search ---------- */
.search-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 18px; }
.filters section { display: flex; flex-direction: column; gap: 6px; }
.filters section + section { padding-top: 16px; border-top: 1px solid var(--line); }
.filters .label-caps { font-size: 11px; color: var(--muted); }
.filter-link { text-decoration: none; display: flex; align-items: center; justify-content: space-between; margin: 0 -8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--soft); }
.filter-link:hover { background: var(--hover); color: var(--ink); }
.filter-link.on { background: var(--well); color: var(--ink); font-weight: 600; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 2px 0; }
.filter-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; cursor: pointer; }
.filters-btn { display: none; }
.results { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; gap: 4px; padding-top: 12px; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.pager span { border-color: transparent; color: var(--muted); }

/* ---------- product ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr); gap: 56px; align-items: start; }
.pdp-gallery { min-width: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.pdp-gallery .main { grid-column: 2; aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
.pdp-gallery.single { grid-template-columns: minmax(0, 1fr); }
.pdp-gallery.single .main { grid-column: 1; }
.thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; }
.thumbs button { width: 56px; aspect-ratio: 1 / 1; border-radius: 10px; background: var(--well); border: 1.5px solid transparent; cursor: pointer; padding: 0; overflow: hidden; transition: border-color .15s ease; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-side { min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.vendor-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--soft); }
.pdp-title { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.7px; }
.pdp-meta { font-size: 13px; color: var(--muted); }
.pdp-price { font-size: 30px; font-weight: 600; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.packs { display: flex; gap: 8px; flex-wrap: wrap; }
.pack { min-width: 128px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; font-size: 13px; transition: border-color .15s ease, background .15s ease; }
.pack:hover { border-color: var(--faint); }
.pack[aria-pressed="true"] { background: var(--well); border-color: var(--ink); }
.pack small { font-size: 11px; color: var(--muted); }
.pack.oos { color: var(--faint); }
.tiers { border-radius: var(--r); background: var(--well); padding: 6px; }
.tiers .head { padding: 6px 10px 8px; font-size: 12px; font-weight: 600; }
.tiers .t { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; transition: background .2s ease; }
.tiers .t span:last-child { text-align: right; color: var(--muted); white-space: nowrap; }
.tiers .t.on { background: #fff; font-weight: 600; box-shadow: var(--sh-1); }
.tiers .t.on span:last-child { color: var(--ink); }
.buy { display: flex; flex-direction: column; gap: 10px; }
.buy-row { display: flex; gap: 8px; align-items: center; }
.buy-row .stepper { height: 44px; border-radius: 22px; }
.buy-row .stepper button { height: 42px; }
.buy-row .btn { height: 44px; border-radius: 22px; font-size: 14px; }
.btn.icon-only { width: 44px; padding: 0; flex: none; }
.facts { margin: 0; padding: 18px 0 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--soft); border-top: 1px solid #F1F1EF; }
.facts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.facts svg { flex: none; margin-top: 1px; color: var(--muted); }
.facts li.ok svg { color: var(--green); }
.facts li.bad svg { color: var(--red); }
.facts strong { color: var(--ink); font-weight: 600; }
.spec { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); font-size: 13px; }
.spec dt, .spec dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #F1F1EF; }
.spec dt { color: var(--muted); }
.lock-note { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: var(--r); background: var(--well); font-size: 12.5px; }
.lock-note svg { flex: none; }

.rating-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; text-decoration: none; }
.rating-link:hover strong { text-decoration: underline; }

/* reviews */
.rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.rv-summary { display: flex; flex-direction: column; gap: 16px; }
.rv-avg { font-size: 40px; font-weight: 600; letter-spacing: -1.2px; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-bar { display: grid; grid-template-columns: 10px 12px minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.rv-bar .progress { height: 6px; }
.rv-list { display: flex; flex-direction: column; }
.rv-item { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid #F1F1EF; }
.rv-item:first-child { padding-top: 0; }
.rv-item.mine { padding: 14px 16px; border: 0; border-radius: var(--r); background: var(--well); margin-bottom: 12px; }
.rv-body { font-size: 13.5px; line-height: 1.6; color: var(--soft); white-space: pre-line; }
.rv-reply { margin-top: 4px; padding: 10px 12px; border-left: 2px solid var(--line); background: #FAFAF9; border-radius: 0 8px 8px 0; font-size: 13px; color: var(--soft); }
.rv-reply p { margin-top: 2px; }
.rv-form { display: flex; flex-direction: column; gap: 14px; }
.rv-star { padding: 2px; border: 0; background: none; cursor: pointer; border-radius: 6px; transition: transform .12s ease; }
.rv-star:hover { transform: scale(1.12); }
.pc-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cart-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.vgroup-head { padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #F1F1EF; }
.citem { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #F1F1EF; }
.citem .well { width: 60px; height: 60px; border-radius: 8px; }
.citem .issue { font-size: 12px; color: var(--red); }
.vgroup-foot { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.sumline { display: flex; justify-content: space-between; font-size: 13px; }
.sumline.total { font-size: 16px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); }
.issue-box { padding: 8px 12px; border-radius: 8px; background: var(--red-bg); color: var(--red); font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; }
.issue-box svg { flex: none; margin-top: 1px; }

/* ---------- orders ---------- */
.order-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.status { height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; background: var(--well); white-space: nowrap; }
.status .dot { width: 6px; height: 6px; }
.status.ok { background: var(--green-bg); color: var(--green); }
.status.bad { background: var(--red-bg); color: var(--red); }
.status.warn { background: var(--amber-bg); color: var(--amber); }

/* sign-in screen */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: left; }

/* ---------- responsive ---------- */
/* floating messages */
.cw { position: fixed; right: 24px; bottom: 24px; z-index: 90; }
.cw[hidden] { display: none; }
.cw-fab { position: relative; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(10,10,10,.22); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cw-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10,10,10,.28); }
.cw-fab:active { transform: scale(.96); }
.cw-ic { position: absolute; display: flex; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.cw-ic-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.cw.open .cw-ic-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.cw.open .cw-ic-x { opacity: 1; transform: none; }
.cw-dot { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.cw.open .cw-dot { display: none; }
.cw-panel { position: absolute; right: 0; bottom: 64px; width: 368px; height: min(540px, calc(100vh - 120px)); background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(10,10,10,.05), 0 24px 56px rgba(10,10,10,.18); transform-origin: bottom right; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transition: opacity .18s var(--ease), transform .22s var(--ease), visibility .22s; }
.cw.open .cw-panel { opacity: 1; visibility: visible; transform: none; }
.cw-head { display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 14px; border-bottom: 1px solid #F1F1EF; }
.cw-back { margin-left: -6px; }
.cw-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cw-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cw-list { overflow-y: auto; flex: 1; }
.cw-list .thread { width: 100%; border: 0; border-bottom: 1px solid #F6F6F4; background: none; cursor: pointer; font: inherit; }
.cw-av { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; flex-shrink: 0; }
.cw-body { flex: 1; padding: 14px; }
.cw-body .msg { max-width: 82%; }
.cw-composer { padding: 10px; }
.cw-composer textarea { min-height: 38px; max-height: 120px; padding: 9px 12px; }
.cw-empty { margin: auto; padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.cw-empty p { margin: 0; }
@media (max-width: 640px) {
  .cw { right: 16px; bottom: 16px; }
  .cw-panel { position: fixed; inset: auto 8px 80px 8px; width: auto; height: calc(100dvh - 104px); }
}

@media (max-width: 1180px) {
  .pdp { gap: 32px; }
}
@media (max-width: 900px) {
  .site-header .bar { flex-wrap: wrap; row-gap: 8px; }
  .site-header .searchbox { order: 3; flex: 1 1 100%; }
  .deliver { order: 4; flex: 1 1 100%; margin: 0 -14px; padding: 0 14px; border-top: 1px solid var(--line); }
  .deliver .branch-btn { height: 34px; padding: 0; width: 100%; }
  .deliver .branch-btn .lbl { flex-direction: row; gap: 4px; align-items: baseline; }
  .deliver .branch-btn .lbl b { max-width: none; }
  .header-icons { margin-left: auto; }
  .hdr-link span { display: none; }
  .hdr-link { padding: 0; width: 38px; justify-content: center; }
  .catnav .spacer, .catnav .sub { display: none; }
  .mega { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 70vh; overflow-y: auto; }
  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .filters { display: none; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
  .filters.open { display: flex; }
  .ad-side-wrap { display: none; }
  .filters-btn { display: inline-flex; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rv-layout { grid-template-columns: minmax(0, 1fr); }
  .rv-summary { order: -1; }
  .hero-slide .ad-title { font-size: 28px; }
  .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero2-slide { padding: 40px 36px 64px; }
  .hero2-dots { left: 36px; }
  .pdp-gallery { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery .main { grid-column: 1; aspect-ratio: 4 / 3; }
  .thumbs { grid-row: 2; flex-direction: row; overflow-x: auto; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .home { gap: 22px; }
  .hero-ads { height: 300px; --hero-pad: 20px; }
  .hero-slide { padding-top: 52px; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,.4) 55%, rgba(10,10,10,.1) 100%); }
  .hero-slide .ad-title { font-size: 22px; }
  .hero-slide .ad-sub { display: none; }
  .hero-slide .ad-cta { height: 32px; margin-top: 4px; }
  .hero-dots { top: 26px; }
  .hero2-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; padding: 28px 22px 52px; }
  .hero2-title { font-size: 30px; }
  .hero2-sub { font-size: 13px; }
  .hero2-cta { height: 40px; font-size: 13px; }
  .hero2-art { min-height: 170px; margin-top: 4px; }
  .hero2-blob { width: 52%; }
  .hero2-card { width: 54%; }
  .hero2-badge { left: 6%; bottom: 8%; height: 30px; font-size: 11.5px; }
  .hero2-dots { left: 22px; bottom: 22px; }
  .hero2 { border-radius: 18px; }
  .cat-tiles { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; scroll-padding: 0 14px; scroll-snap-type: x mandatory; }
  .cat-tile { scroll-snap-align: start; }
  .page.home { gap: 28px; }
  .card-row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 14px; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; }
  .card-row::-webkit-scrollbar { display: none; }
  .card-row > * { scroll-snap-align: start; }
  .panel { padding: 14px 12px 16px; }
  .hero-nav { display: none; }
  .perks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .perk { flex: none; }
  .ad-strip { height: 130px; padding: 0 18px; }
  .ad-strip .ad-sub { display: none; }
  .pdp-title { font-size: 21px; }
  .pdp-price { font-size: 26px; }
  .shelf { grid-auto-columns: 148px; gap: 10px; }
  .shelf-nav { display: none; }
  .cat-rail { grid-auto-columns: 76px; }
  .citem { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .citem .well { width: 52px; height: 52px; }
  .tiers .t { font-size: 12px; padding: 7px 10px; }
  .brand-logo { height: 26px; }
}
/* messages page (chat styles live in shared/css/kit.css) */
.store-messages .sc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.store-messages .chat { height: calc(100vh - 250px); }
