/* =========================================================
   CreatinePro — shop extensions (Phase 1)
   Mega-menu · page heads · shop + filters · product detail · offer · cart page · notices
   Builds on the tokens in styles.css; no new visual language.
   ========================================================= */

/* ---------- Test-data banner (only when CP_DATA=test) ---------- */
.test-banner { background: #3A2A00; color: #FFE7A3; font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #6B4E00; }
.test-banner strong { letter-spacing: .08em; margin-right: 6px; }

/* ---------- Header: Dyqani link + chevron toggle ---------- */
.has-mega { display: flex; align-items: center; }
.mega-toggle { display: grid; place-items: center; width: 28px; height: 36px; margin-left: 2px; border-radius: 6px; color: var(--text-2); transition: color .15s, background-color .15s; }
.mega-toggle:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.mega-toggle .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.mega-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--accent); }
.site-header.mega-open { background: var(--bg-2); }
.site-header.mega-open #shopLink::after { transform: scaleX(1); }

/* ---------- Mega-menu ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .9); animation: megaIn .22s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.mega-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .72fr) minmax(0, 1fr) minmax(240px, .8fr); gap: clamp(28px, 3vw, 56px); padding-top: 38px; padding-bottom: 42px; }
.mega-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.mega-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 36px); }
.mega-cat-title { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega-cat-title span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; transition: color .15s; }
.mega-cat-title small { font-size: 13px; color: var(--muted); }
.mega-cat-title:hover span { color: var(--accent); }
.mega-cat ul { display: grid; gap: 2px; }
.mega-cat li a, .mega-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 15px; color: var(--text-2); transition: color .15s, padding .2s var(--ease); }
.mega-cat li a:hover, .mega-list a:hover, .mega-cat li a:focus-visible, .mega-list a:focus-visible { color: #fff; padding-left: 4px; }
.mega-cat li small, .mega-list small { font-size: 12.5px; color: #6C737E; font-variant-numeric: tabular-nums; }
.mega-all { color: var(--accent) !important; font-weight: 600; justify-content: flex-start !important; }
.mega-all .ic { width: 16px; height: 16px; }
.mega-list { margin-bottom: 26px; display: grid; }
.mega-featured ul { display: grid; gap: 10px; }
.mega-prod { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 8px; margin: -8px; border-radius: 8px; transition: background-color .15s; }
.mega-prod:hover, .mega-prod:focus-visible { background: rgba(255, 255, 255, .04); }
.mega-prod .th { width: 64px; height: 72px; border-radius: 6px; background: radial-gradient(60% 60% at 50% 60%, #262B33, #121418 75%); display: grid; place-items: center; }
.mega-prod .th img { max-height: 58px; max-width: 50px; width: auto; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); }
.mega-prod small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mega-prod b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.mega-prod em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mega-promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 26px; border-radius: 6px; overflow: hidden; isolation: isolate; background: radial-gradient(90% 80% at 80% 10%, rgba(20, 169, 242, .16), transparent 60%), var(--surface); border: 1px solid var(--line); transition: border-color .2s; min-height: 250px; }
.mega-promo:hover { border-color: rgba(20, 169, 242, .5); }
.mega-promo .mega-label { margin-bottom: auto; }
.mega-promo-pct { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 64px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; width: max-content; }
.mega-promo b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.mega-promo-text { font-size: 14.5px; color: var(--muted); }
.mega-promo-cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.mega-promo-cta .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.mega-promo:hover .mega-promo-cta .ic { transform: translateX(4px); }
@media (max-width: 1360px) {
  .mega-in { grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1fr); }
  .mega-promo { display: none; }
}

/* ---------- Page head + breadcrumbs ---------- */
.page-head { padding: clamp(28px, 3.4vw, 52px) 0 clamp(22px, 2.6vw, 36px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-head-tight { padding-bottom: 18px; border-bottom: 0; background: none; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #4B515B; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current], .crumbs li:last-child:not(:has(a)) { color: var(--text-2); }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 16px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: 1.08; letter-spacing: -.015em; margin-top: 16px; }
.page-head-row .page-title { margin-top: 0; }
.result-count { font-size: 15px; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 3vw, 56px); padding-top: 32px; padding-bottom: 96px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2A2E35 transparent; padding-right: 6px; }
.fp-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.fp-head h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fp-close, .fp-foot, .shop-bar .fp-open { display: none; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 15.5px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }
.fgroup[open] summary .chev { transform: rotate(180deg); }
.fgroup-body { padding-bottom: 18px; display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--text-2); transition: background-color .15s, color .15s; }
.opt:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .box { width: 20px; height: 20px; flex-shrink: 0; border-radius: 5px; border: 1.5px solid #3A4049; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.opt .box .ic { width: 13px; height: 13px; color: var(--accent-ink); opacity: 0; transition: opacity .15s; }
.opt input:checked + .box { background: var(--accent); border-color: var(--accent); }
.opt input:checked + .box .ic { opacity: 1; }
.opt input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt input:checked ~ .opt-label { color: #fff; font-weight: 600; }
.opt-label { flex: 1; }
.opt-count { font-size: 13px; color: #6C737E; font-variant-numeric: tabular-nums; }
.opt.is-disabled { opacity: .4; cursor: default; }
.opt.is-disabled:hover { background: none; color: var(--text-2); }
.opt .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex-shrink: 0; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25); }
.opt-sub { padding-left: 32px; display: grid; gap: 0; margin: -2px 0 4px; }
.opt-sub .opt { min-height: 36px; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.pill small { font-size: 12px; color: #6C737E; }
.pill:hover { border-color: #4A505A; color: #fff; }
.pill.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.pill.on small { color: #5A606A; }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill.is-disabled { opacity: .4; cursor: default; }
.fnote { font-size: 13.5px; color: var(--muted); padding: 18px 0; border-bottom: 1px solid var(--line); }

/* price */
.price-inputs { display: flex; align-items: flex-end; gap: 10px; }
.price-inputs label { flex: 1; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.price-inputs input { width: 100%; height: 44px; border-radius: 8px; background: #0B0C0F; border: 1px solid #2A2E35; padding: 0 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.price-inputs input:focus { outline: none; border-color: var(--accent); }
.price-inputs .dash { width: 10px; height: 1px; background: #4B515B; margin-bottom: 22px; }
.range { position: relative; height: 28px; margin-top: 16px; }
.range::before, .range::after { content: ""; position: absolute; top: 12px; height: 4px; border-radius: 4px; }
.range::before { left: 0; right: 0; background: #23272E; }
.range::after { left: var(--lo); right: calc(100% - var(--hi)); background: var(--accent); }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 1; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: grab; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; outline-offset: 2px; }
.range-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* toolbar */
.shop-bar { display: flex; align-items: center; gap: 12px; }
.tool-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.badge-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.shop-search { position: relative; flex: 1; max-width: 460px; }
.shop-search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.shop-search input { width: 100%; height: 48px; border-radius: 10px; background: #0B0C0F; border: 1px solid #2A2E35; padding: 0 16px 0 46px; font-size: 15px; }
.shop-search input:focus { outline: none; border-color: var(--accent); }
.shop-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.sort { position: relative; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sort label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.sort label .ic { width: 18px; height: 18px; }
.sort select { -webkit-appearance: none; appearance: none; height: 48px; padding: 0 42px 0 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font: inherit; font-weight: 600; font-size: 15px; color: var(--text); cursor: pointer; }
.sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sort .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.sort option { background: var(--surface); }

/* chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 14px; border-radius: 99px; background: #0F1A22; border: 1px solid rgba(20, 169, 242, .35); font-size: 14px; font-weight: 500; color: #DDEFFA; transition: border-color .15s, background-color .15s; }
.chip .ic { width: 15px; height: 15px; color: var(--accent); }
.chip:hover { border-color: var(--accent); background: #10202B; }
.chip-clear { height: 36px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.chip-clear:hover { color: #fff; }

/* grid + cards (extends the homepage card) */
.shop-grid { margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1800px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-title a { position: static; }
.card .swatches, .card .add-btn { position: relative; z-index: 1; }
.card-title a:hover { color: var(--accent); }
.card-media { color: inherit; }
.tag { position: absolute; right: 14px; top: 12px; z-index: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 5px; }
.tag-sale { background: var(--accent); color: var(--accent-ink); }
.swatch.dim { opacity: .35; }
.card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.price small { font-family: var(--ui); font-weight: 500; font-size: 13px; color: var(--muted); }
.price s { font-family: var(--ui); font-weight: 500; font-size: 14px; color: #6C737E; margin-left: 8px; }
.stock { font-size: 12.5px; font-weight: 600; }
.stock.in { color: #7FD6A0; }
.stock.out { color: #E08A8A; }
.add-btn:disabled { opacity: .45; cursor: not-allowed; background: none !important; border-color: var(--line-2) !important; color: var(--muted) !important; }

.empty { text-align: center; padding: 72px 20px; border: 1px dashed #2A2E35; border-radius: 8px; margin-top: 24px; }
.empty .ic { width: 36px; height: 36px; color: #4B515B; margin: 0 auto 16px; }
.empty h2 { font-size: 19px; font-weight: 700; }
.empty p { color: var(--muted); margin: 8px 0 22px; }

/* homepage additions */
.sec-more { display: flex; justify-content: center; margin-top: 36px; }
.flv-img { display: block; width: 78%; max-width: 230px; position: relative; }
.flv-img img { width: 100%; }

/* ---------- Product detail (Phase 1 baseline) ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding-bottom: 96px; align-items: start; }
.pdp-media { aspect-ratio: 1 / 1; border-radius: 6px; display: grid; place-items: center; background: radial-gradient(60% 55% at 50% 58%, #272C34 0%, rgba(39, 44, 52, 0) 72%), #0F1114; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 20px); }
.pdp-media img { height: 78%; width: auto; max-width: 80%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); }
.pdp-brand { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pdp-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin-top: 10px; }
.pdp-price { display: flex; align-items: baseline; gap: 16px; margin-top: 18px; }
.pdp-price .price { font-size: 30px; }
.pdp-variants { border: 0; margin-top: 30px; }
.pdp-variants legend { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.pdp-variants legend b { color: #fff; font-weight: 600; }
.pdp-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-sw { width: 92px; padding: 8px 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); transition: border-color .15s; }
.pdp-sw img { height: 64px; width: auto; }
.pdp-sw:hover { border-color: #4A505A; }
.pdp-sw.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); color: #fff; }
.pdp-buy { display: flex; gap: 12px; margin-top: 30px; }
.pdp-buy .btn { flex: 1; }
.qty-lg { height: 60px; }
.qty-lg button { width: 48px; height: 58px; }
.qty-lg span { min-width: 28px; font-size: 16px; }
.pdp-facts { margin-top: 32px; border-top: 1px solid var(--line); }
.pdp-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pdp-facts dt { color: var(--muted); }
.pdp-facts dd { text-align: right; }
.pdp .fine { margin: 22px 0 14px; }

/* ---------- Offer page ---------- */
.offer-page { padding-top: 40px; padding-bottom: 96px; }
.offer-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center; padding: clamp(24px, 4vw, 64px); border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(70% 90% at 15% 50%, #1A1E25, transparent 70%), var(--surface); }
.offer-visual { display: flex; align-items: flex-end; justify-content: center; min-height: 340px; }
.offer-visual img { width: 34%; height: auto; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .6)); }
.offer-visual img:nth-child(2) { width: 38%; margin: 0 -5%; position: relative; z-index: 1; }
.offer-copy .bundle-offer { margin: 18px 0 8px; }
.offer-copy .fine { margin-top: 14px; }
.offer-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.offer-none { margin-top: 28px; color: var(--muted); font-size: 15px; }
.bundle-page { border-top: 0; padding-top: 32px; }
.phase-note { margin-top: 18px; font-size: 13.5px; color: #C9B98A; max-width: 480px; padding: 10px 14px; border: 1px solid rgba(201, 185, 138, .25); border-radius: 6px; }

/* ---------- Cart page + notices ---------- */
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 24px; padding-bottom: 96px; align-items: start; }
.cart-page .line { grid-template-columns: 80px 1fr auto; }
.cart-page .line .th { width: 80px; height: 90px; }
.cart-page .line .th img { max-height: 76px; max-width: 64px; }
.line b a:hover { color: var(--accent); }
.line-rm { display: block; margin-top: 6px; font-size: 13px; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.cart-summary .btn { width: 100%; }
.cart-summary .fine { margin: 0; text-align: center; }
.cart-empty-page { padding: 64px 0; }
.notice-page { padding-top: 40px; padding-bottom: 120px; }
.notice { max-width: 620px; display: grid; justify-items: start; gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.notice .ic { width: 32px; height: 32px; color: var(--accent); }
.notice p { color: var(--text-2); font-size: 16px; }
.notfound { text-align: center; display: grid; justify-items: center; gap: 14px; padding-top: 96px; }
.nf-code { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(96px, 14vw, 180px); line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.notfound .lead { margin: 0 auto 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .mega { display: none !important; }
  .mega-toggle { display: none; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .shop-bar .fp-open { display: inline-flex; }
  .filter-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 92; width: min(400px, 88vw); max-height: none; padding: 0; background: var(--bg-2); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; transform: translateX(-102%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .filter-panel.open { transform: none; visibility: visible; }
  .fp-head { flex-shrink: 0; height: 64px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); }
  .fp-close { display: grid; }
  .fp-body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
  .fp-foot { flex-shrink: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
  .fp-scrim { position: fixed; inset: 0; z-index: 91; background: rgba(3, 4, 6, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s; }
  .pdp, .offer-card, .cart-page { grid-template-columns: minmax(0, 1fr); }
  .pdp-media { position: static; }
  .cart-summary { position: static; }
}
@media (max-width: 760px) {
  .page-head-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .result-count { padding-bottom: 0; }
  .shop-bar { flex-wrap: wrap; gap: 10px; }
  .shop-search { order: -1; flex-basis: 100%; max-width: none; }
  .tool-btn { flex: 1 1 0; min-width: 0; justify-content: center; height: 46px; }
  .sort { flex: 1 1 0; min-width: 0; margin-left: 0; }
  .sort label span { display: none; }
  .sort label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
  .sort select { width: 100%; height: 46px; padding: 0 30px 0 14px; font-size: 14px; text-overflow: ellipsis; }
  .sort .chev { right: 10px; }
  .sort label { display: none; }
  .shop-grid { gap: 10px; margin-top: 18px; }
  .price { font-size: 17px; }
  .card-price { flex-direction: column; align-items: flex-start; gap: 2px; }
  .pdp-buy { flex-direction: column; }
  .pdp-buy .qty { align-self: flex-start; }
  .offer-visual { min-height: 220px; }
  .cart-page .line { grid-template-columns: 64px 1fr auto; }
  .cart-page .line .th { width: 64px; height: 72px; }
}

/* =========================================================
   Phase 2 — cart drawer, product gallery, checkout, confirmation
   ========================================================= */
/* Keep the scrollbar's space while the cart/menu locks scrolling, so the page does not widen and shift. */
html { scrollbar-gutter: stable; }
.no-scroll, .no-scroll body { overflow: hidden; }

/* Drawer: slides from the right; on phones it leaves a 52px strip of the page visible */
.cart { width: min(440px, calc(100% - 52px)); height: 100%; height: 100dvh; transform: translateX(104%); transition: transform .38s var(--ease); animation: none; box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .7); padding-right: env(safe-area-inset-right); }
.cart.is-open { transform: none; }
.scrim { opacity: 0; transition: opacity .3s ease; animation: none; }
.scrim.is-open { opacity: 1; }
.cart-head { flex-shrink: 0; padding-top: env(safe-area-inset-top); height: calc(76px + env(safe-area-inset-top)); }
.cart-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cart-foot { flex-shrink: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); background: var(--bg-2); }
.cart-loading { padding: 40px 0; color: var(--muted); text-align: center; }

.line { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.line .th { width: 72px; height: 84px; }
.line .th img { max-height: 70px; max-width: 58px; }
.line-main { min-width: 0; display: grid; gap: 2px; }
.line-main b { font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.line-main small { color: var(--muted); font-size: 13px; }
.line-issue { font-style: normal; font-size: 12.5px; color: #F0B86E; margin-top: 2px; }
.line.is-out .th, .line.is-out .line-main b { opacity: .55; }
.line-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.line-ctrl .qty button { width: 36px; height: 36px; }
.line-ctrl .qty button:disabled { opacity: .3; cursor: not-allowed; }
.line .line-rm { display: inline; margin: 0; font-size: 13px; padding: 8px 0; }
.line-amt { text-align: right; display: grid; gap: 2px; justify-items: end; }
.line-price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-price s { display: block; font-weight: 500; font-size: 12.5px; color: #6C737E; }
.line-each { font-size: 12px; color: var(--muted); white-space: nowrap; }
.line-amt .price-tbd { font-size: 12.5px; text-align: right; max-width: 80px; }

.totals { display: grid; gap: 8px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt { color: var(--muted); }
.totals dd { font-variant-numeric: tabular-nums; text-align: right; }
.totals .tbd { color: var(--muted); font-size: 13.5px; }
.totals .save dd { color: #7FD6A0; }
.totals .grand { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.totals .grand dt { color: var(--text); }
.cart-note.warn { background: #241C0E; border-color: rgba(240, 184, 110, .3); color: #F3D3A6; }
.cart-view { justify-self: center; font-size: 14px; }
.cod-line { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cod-line .ic { width: 17px; height: 17px; color: var(--accent); }
.cart-foot .btn .arrow { width: 20px; height: 20px; }

/* ---------- Product detail: gallery + zoom ---------- */
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.pdp-gallery .pdp-media { position: relative; top: auto; cursor: zoom-in; overflow: hidden; }
.pdp-media .zoom-lens { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; pointer-events: none; transition: opacity .2s; background-color: #0F1114; }
.pdp-media.zooming .zoom-lens { opacity: 1; }
.pdp-media .zoom-btn { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 8, 10, .7); border: 1px solid var(--line-2); color: #fff; }
.pdp-media .zoom-btn .ic { width: 20px; height: 20px; }
.pdp-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pdp-thumbs button { flex: 0 0 76px; height: 86px; border-radius: 6px; border: 1px solid var(--line); background: #0F1114; display: grid; place-items: center; transition: border-color .15s; }
.pdp-thumbs button img { max-height: 72px; width: auto; }
.pdp-thumbs button[aria-current="true"] { border-color: var(--accent); }
.pdp-thumbs button:hover { border-color: var(--line-2); }
.pdp .pdp-media { position: relative; top: auto; }
.qty-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.related { padding-top: 24px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2vw, 32px); margin: 40px 0 24px; }
.related .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 6, 8, .96); color: #fff; }
.lightbox::backdrop { background: rgba(5, 6, 8, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, var(--nw, 1200px)); max-height: 86dvh; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.lightbox .lb-close { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.lightbox .lb-prev .ic { transform: rotate(180deg); }
.lightbox .lb-count { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(32px, 4vw, 72px); padding-top: 28px; padding-bottom: 96px; align-items: start; }
.co-section { padding: 28px 0; border-top: 1px solid var(--line); }
.co-section:first-child { border-top: 0; padding-top: 0; }
.co-section h2 { font-family: var(--display); font-weight: 800; font-size: 21px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.co-section h2 .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--ui); font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border-radius: 10px; background: #0B0C0F; border: 1px solid #2E333B; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); transition: border-color .15s; }
.field textarea { min-height: 88px; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9EA5B0 50%), linear-gradient(135deg, #9EA5B0 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 169, 242, .18); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: #F28B8B; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #E06464; }
.field.invalid .err { display: block; }
.phone-wrap { position: relative; }
.phone-wrap span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.phone-wrap input { padding-left: 62px; }
.pay-opt { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 10px; border: 1.5px solid var(--accent); background: #0E1820; }
.pay-opt input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); }
.pay-opt b { display: block; font-size: 15.5px; }
.pay-opt span { font-size: 14px; color: var(--muted); }
.co-privacy { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.co-alert { padding: 14px 16px; border-radius: 8px; font-size: 14.5px; margin-bottom: 18px; background: #2A1414; border: 1px solid rgba(224, 100, 100, .4); color: #F6C5C5; }
.co-alert.info { background: #241C0E; border-color: rgba(240, 184, 110, .3); color: #F3D3A6; }
.co-submit { width: 100%; margin-top: 22px; height: 60px; font-size: 17px; }
.co-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.co-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; gap: 16px; }
.co-summary h2 { font-family: var(--display); font-weight: 800; font-size: 19px; display: flex; justify-content: space-between; align-items: baseline; }
.co-summary h2 a { font-family: var(--ui); font-weight: 500; font-size: 13.5px; color: var(--accent); }
.co-lines { display: grid; gap: 12px; max-height: 340px; overflow: auto; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.co-line .th { width: 52px; height: 58px; border-radius: 6px; background: #0F1114; display: grid; place-items: center; position: relative; }
.co-line .th img { max-height: 48px; max-width: 40px; width: auto; }
.co-line .th i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--text); color: var(--bg); font-style: normal; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.co-line small { display: block; color: var(--muted); font-size: 12.5px; }
.co-line .amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ---------- Confirmation ---------- */
/* Order-confirmation page wrapper. Scoped to its id: the bare class ".done" is also the add-to-cart button's
   "added" state, which inherited this padding and grew from 46 to 126 px (cards stretched when adding to the cart). */
#done { padding-top: 28px; padding-bottom: 96px; }
#done > * { max-width: 900px; }
.done-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #10241A; border: 1px solid #2F6B45; color: #7FD6A0; margin-bottom: 20px; }
.done-badge .ic { width: 30px; height: 30px; }
.done-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 28px 0; }
.done-meta div { background: var(--surface); padding: 18px 20px; }
.done-meta dt { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.done-meta dd { margin-top: 6px; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.done-box { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.done-box h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.done-box address { font-style: normal; line-height: 1.7; color: var(--text-2); }
.done-next { margin-top: 24px; color: var(--text-2); }
.done-next small { display: block; color: var(--muted); margin-top: 6px; }

@media (max-width: 1080px) {
  .pdp-gallery { position: static; }
  .related .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .co-summary { position: static; order: -1; }
  .done-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .done-meta { grid-template-columns: minmax(0, 1fr); }
  .related .product-grid { gap: 10px; }
  .pdp-thumbs button { flex-basis: 64px; height: 74px; }
  .lightbox .lb-nav { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; }
}
@media (max-width: 760px) {
  .cart-head { height: calc(64px + env(safe-area-inset-top)); padding-left: 18px; }
  .cart-head h2 { font-size: 20px; }
  .cart-body { padding: 0 18px; }
  .cart-foot { gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .totals { gap: 4px; font-size: 14px; }
  .totals .grand { font-size: 16px; padding-top: 8px; }
  .cart-foot .btn { height: 52px; }
  .cart-foot .cod-line { font-size: 12.5px; }
  .line { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
  .line .th { width: 60px; height: 70px; }
  .line .th img { max-height: 58px; max-width: 48px; }
  .line-main b { font-size: 14px; }
}

/* =========================================================
   Phase 3 — shop by goal (homepage) + bundle builder
   ========================================================= */
.goals { background: var(--bg); border-top: 1px solid var(--line); }
.goal-tabs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.goal-tabs { --n: 3; }
.goal-tab { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: baseline; text-align: left; padding: 26px 24px 24px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.goal-tab + .goal-tab { padding-left: 24px; border-left: 1px solid var(--line); }
.goal-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.goal-tab[aria-selected="true"]::after { transform: scaleX(1); }
.goal-tab .gi { grid-row: 1 / 3; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 18px; color: #4B515B; transition: color .2s; }
.goal-tab .gn { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.15vw, 38px); line-height: 1.05; letter-spacing: -.02em; color: #5E646E; transition: color .2s; }
.goal-tab .gc { font-size: 14px; color: var(--muted); margin-top: 6px; }
.goal-tab:hover .gn { color: #C9CED6; }
.goal-tab[aria-selected="true"] .gn { color: #fff; }
.goal-tab[aria-selected="true"] .gi { color: var(--accent); }
.goal-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: clamp(28px, 4vw, 72px); padding: 44px 0 10px; align-items: start; outline: none; }
.goal-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 4px; }
.goal-name { overflow-wrap: anywhere; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(32px, 2.9vw, 50px); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.goal-text { margin-top: 16px; color: var(--text-2); font-size: 16.5px; max-width: 360px; }
.goal-ctas { display: grid; gap: 10px; margin-top: 26px; justify-items: start; }
.goal-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.goal-prod { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .2s, transform .3s var(--ease); }
.goal-prod:hover { border-color: var(--line-2); transform: translateY(-3px); }
.gp-media { aspect-ratio: 4 / 3.2; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 60%, #262B33, #0F1114 75%); }
.gp-media img { height: 82%; width: auto; max-width: 80%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55)); }
.gp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.gp-body small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gp-body h3 { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.25; }
.gp-body h3 a:hover { color: var(--accent); }
.gp-body p { font-size: 14px; color: var(--text-2); }
.gp-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.gp-foot .price, .gp-foot .price-tbd { margin-right: auto; }
.add-sm { width: 44px; height: 44px; padding: 0; }
.goal-disclaimer { margin-top: 28px; font-size: 13px; color: #7D8490; max-width: 720px; }

/* Builder */
.bp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: 40px; align-items: end; margin-top: 16px; }
.bp-head .page-title { margin-top: 0; }
.bp-head .lead { margin-top: 14px; }
.bp-rule { padding: 20px 22px; border: 1px solid rgba(20, 169, 242, .3); border-radius: 8px; background: #0D1720; }
.bp-rule .bundle-offer { margin: 0 0 8px; }
.bp-rule .bundle-offer .n, .bp-rule .bundle-offer .pct { font-size: 52px; }
.bp-rule .bundle-offer .x { font-size: 30px; }
.bp-rule p { font-size: 14.5px; color: var(--text-2); }
.bp-rule.pending { border-color: rgba(240, 184, 110, .3); background: #1C160C; }
.bp-rule.pending p { color: #F3D3A6; }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: clamp(28px, 3.4vw, 60px); padding-top: 32px; padding-bottom: 110px; align-items: start; }
.bp-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bp-list-head h2 { font-family: var(--display); font-weight: 800; font-size: 22px; outline: none; }
.bp-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-filter .filter { border: 1px solid var(--line-2); }
.bp-filter .filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.bp-products { display: grid; gap: 12px; }
.bp-item { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .2s; }
.bp-item.in { border-color: rgba(20, 169, 242, .45); }
.bp-img { width: 104px; height: 116px; border-radius: 6px; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 60%, #262B33, #0F1114 75%); }
.bp-img img { max-height: 98px; max-width: 84px; width: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); }
.bp-info { display: grid; gap: 4px; min-width: 0; }
.bp-info small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bp-info h3 { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.bp-info h3 a:hover { color: var(--accent); }
.bp-meta { font-size: 13.5px; color: var(--muted); }
.bp-info .swatches { margin-top: 4px; }
.bp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.bp-in { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.bp-act { display: grid; gap: 10px; justify-items: stretch; min-width: 170px; }
.bp-act .qty { justify-self: center; }
.bp-act .qty button:disabled, .bp-line .qty button:disabled { opacity: .3; cursor: not-allowed; }

.bp-stack { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .3s; scroll-margin-top: calc(var(--header-h) + 16px); }
.bp-stack.unlocked { border-color: rgba(20, 169, 242, .55); }
.bp-stack-head { display: flex; justify-content: space-between; align-items: baseline; }
.bp-stack-head h2 { font-family: var(--display); font-weight: 800; font-size: 20px; }
.bp-stack-head .text-btn { font-size: 13.5px; }
.bp-visual { position: relative; height: 150px; border-radius: 8px; background: radial-gradient(70% 70% at 50% 75%, #232831, #0D0F12 75%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px; }
.bp-visual::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 12px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.bp-visual img { position: relative; z-index: 1; height: 108px; width: auto; margin: 0 -10px; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .55)); transform: translateY(calc(var(--i) * 0px)); animation: drop .45s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.bp-visual.is-empty { align-items: center; padding: 0 24px; }
.bp-visual p { color: var(--muted); font-size: 14px; text-align: center; }
.bp-meter { display: grid; gap: 8px; }
.bp-meter p { font-size: 14px; font-weight: 600; color: var(--text-2); min-height: 1.4em; }
.bp-stack.unlocked .bp-meter p { color: var(--accent); }
.bp-lines { display: grid; gap: 4px; max-height: 300px; overflow: auto; }
.bp-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto 36px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bp-line img { max-height: 44px; max-width: 36px; width: auto; justify-self: center; }
.bl-name small { display: block; color: var(--muted); font-size: 12.5px; }
.bp-line .qty button { width: 30px; height: 30px; }
.bl-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bl-amt .price-tbd { font-size: 12px; }
.bl-rm { width: 36px; height: 36px; }
.bl-rm .ic { width: 16px; height: 16px; }
.bp-cta { width: 100%; }
.bp-stack .fine { margin: 0; }
.bp-mobilebar { display: none; }
.bundle-line dt { color: var(--accent) !important; }

@media (max-width: 1080px) {
  .goal-panel { grid-template-columns: minmax(0, 1fr); padding-top: 30px; }
  .goal-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .bp-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
  .bp-stack { position: static; }
  .bp-mobilebar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgba(12, 13, 16, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); font-size: 14px; font-weight: 600; }
}
@media (max-width: 760px) {
  .goal-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .goal-tabs::-webkit-scrollbar { display: none; }
  .goal-tab { flex: 0 0 auto; padding: 18px 22px 16px 0; }
  .goal-tab + .goal-tab { padding-left: 18px; }
  .goal-tab .gn { font-size: 24px; }
  .goal-products { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); gap: 10px; }
  .goal-products::-webkit-scrollbar { display: none; }
  .goal-prod { flex: 0 0 72%; scroll-snap-align: start; }
  .goal-name { font-size: 40px; }
  .goal-ctas { grid-auto-flow: row; justify-items: stretch; }
  .goal-ctas .btn { width: 100%; }
  .bp-item { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .bp-img { width: 76px; height: 88px; }
  .bp-img img { max-height: 74px; max-width: 62px; }
  .bp-act { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; min-width: 0; }
  .bp-info h3 { font-size: 16px; }
  .bp-line { grid-template-columns: 34px minmax(0, 1fr) auto 32px; }
  .bp-line .bl-amt { grid-column: 2; grid-row: 2; }
  .bp-line .qty { grid-column: 3; grid-row: 1 / 3; }
  .bp-line .bl-rm { grid-column: 4; grid-row: 1 / 3; }
  .bp-rule .bundle-offer .n, .bp-rule .bundle-offer .pct { font-size: 44px; }
}

/* =========================================================
   Phase 4 — consent banner, cookie settings, legal pages
   ========================================================= */
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 85; max-width: 980px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); padding: 20px 22px calc(20px + env(safe-area-inset-bottom) * .5); animation: ccIn .35s var(--ease); }
@keyframes ccIn { from { opacity: 0; transform: translateY(16px); } }
.cc-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cc-text h2 { font-family: var(--display); font-weight: 800; font-size: 18px; }
.cc-text p { font-size: 14.5px; color: var(--text-2); margin-top: 6px; }
.cc-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn-cc { height: 46px; padding: 0 20px; font-size: 15px; background: var(--text); color: var(--bg); min-width: 170px; }
.btn-cc:hover { background: #fff; }
.cc-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
.cc-form h2 { font-family: var(--display); font-weight: 800; font-size: 22px; }
.cc-intro { margin-top: 10px; color: var(--text-2); font-size: 14.5px; }
.cc-cat { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-head b { font-size: 15.5px; }
.cc-cat p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.cc-always { font-size: 12.5px; font-weight: 600; color: #7FD6A0; white-space: nowrap; }
.cc-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 99px; background: #2E333B; transition: background-color .2s; }
.cc-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.cc-switch input:checked + span { background: var(--accent); }
.cc-switch input:checked + span::after { transform: translateX(22px); }
.cc-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.cc-note a { color: var(--accent); }
.cc-dialog .cc-actions { margin-top: 18px; justify-content: stretch; }
.cc-dialog .cc-actions .btn { flex: 1 1 140px; min-width: 0; height: 46px; }
.cc-clear { margin-top: 14px; font-size: 13px; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 5vw, 96px); padding-bottom: 110px; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal-nav ul { display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 9px 12px; margin-left: -12px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); }
.legal-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.legal-nav a[aria-current="page"] { color: #fff; background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.legal-doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.015em; }
.legal-doc h2 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 40px 0 12px; }
.legal-doc p, .legal-doc li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul, .legal-doc ol { margin: 10px 0 0 20px; display: grid; gap: 8px; }
.legal-doc ul { list-style: disc; } .legal-doc ol { list-style: decimal; }
.legal-doc strong { color: var(--text); }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc code { font-size: 13.5px; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text); }
.legal-lead { margin-top: 16px; font-size: 17.5px !important; }
.legal-table { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.legal-table th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.legal-table tr:last-child td { border-bottom: 0; }
mark.todo { background: #3A2A00; color: #FFE7A3; padding: 1px 6px; border-radius: 4px; font-size: .92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-draft { margin-bottom: 28px; padding: 14px 16px; border-radius: 8px; background: #241C0E; border: 1px solid rgba(240, 184, 110, .3); color: #F3D3A6; font-size: 14.5px; }
.legal-updated { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.link-inline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font: inherit; }

@media (max-width: 1080px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; order: 2; padding-top: 28px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cc-in { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cc-actions { justify-content: stretch; }
  .cc-banner .btn-cc { flex: 1 1 140px; min-width: 0; }
  .cc-banner .text-btn { flex-basis: 100%; text-align: center; padding: 6px; }
}
.goal-notice { margin-top: 10px; max-width: 640px; padding: 12px 16px; border: 1px solid rgba(20, 169, 242, .35); border-radius: 8px; font-size: 14.5px; color: var(--text-2); background: rgba(20, 169, 242, .06); }

/* ================= Homepage blocks managed in the editor (categories, featured products, showcase) ================= */
/* Category visual: product photos are sized by HEIGHT inside the stage (never wider/taller than it), so packaging is
   never cut off; at most three photos, the middle one in front. An uploaded cover fills the stage on its focal point. */
.cat-scene[data-n] { gap: 0; padding: 0 5% 11%; }
.cat-scene[data-n] img { width: auto; height: auto; min-width: 0; flex: 0 1 auto; max-height: 76%; object-fit: contain; }
.cat-scene[data-n="1"] img { max-width: 60%; max-height: 80%; }
.cat-scene[data-n="2"] img { max-width: 46%; }
.cat-scene[data-n="2"] img + img { margin-left: -3%; position: relative; }
.cat-scene[data-n="3"] img { max-width: 34%; max-height: 64%; }
.cat-scene[data-n="3"] img:nth-child(2) { max-width: 38%; max-height: 76%; margin: 0 -3%; position: relative; z-index: 1; }
.cat-scene.has-cover { padding: 0; }
.cat-scene.has-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.cat-stage:has(.cat-scene.has-cover.is-on)::before { opacity: 0; }
.cat-stage::before { transition: opacity .45s ease; }

/* Showcase row ("Zgjidh shijen tënde"): as many columns as selected products (2–6). */
.flavour-row { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
@media (max-width: 1280px) { .flavour-row { grid-template-columns: repeat(var(--n, 5), minmax(150px, 1fr)); } }

/* Featured products on the homepage: 4 × 2 on desktop; on phones one swipeable row with two cards in view. */
@media (max-width: 760px) {
  #produktet .product-grid { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  #produktet .product-grid::-webkit-scrollbar { display: none; }
  #produktet .product-grid > * { flex: 0 0 calc((100% - 10px) / 2); min-width: 0; scroll-snap-align: start; }
}
/* Category tabs above the featured products: with five categories they no longer fit beside the title on tablets. */
@media (max-width: 1080px) and (min-width: 761px) {
  #produktet .sec-head { flex-wrap: wrap; }
  #produktet .filters { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  #produktet .filters::-webkit-scrollbar { display: none; }
}
/* Phones: five category tabs in one swipeable pill row (the 4-column grid left "Vitamina…" alone on a 2nd row). */
@media (max-width: 760px) {
  #produktet .filters { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  #produktet .filters::-webkit-scrollbar { display: none; }
  #produktet .filters .filter { flex: 0 0 auto; white-space: nowrap; }
}
