/* Grace N Grind - merch store (/shop, /shop-thanks). Loaded after site.css on those pages only.
   Every colour goes through the --gng-* tokens (theme.css, swapped by html[data-theme="light"] in
   site.css), so the store follows the light / dark switch on its own. Subtle fills use color-mix on
   the cream token, which is cream in dark mode and forest ink in light mode. */

.shop-page { --tint: color-mix(in srgb, var(--gng-cream) 6%, transparent); --tint-2: color-mix(in srgb, var(--gng-cream) 12%, transparent); --edge: color-mix(in srgb, var(--gng-cream) 16%, transparent); --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, .7, .4, 1.4); }

/* ============ hero ============ */
.shop-hero { padding-bottom: 40px; }
.shop-hero .btn-ghost { gap: 8px; }
.shop-hero-count:not(:empty) { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--gng-gold); color: var(--gng-night); font-size: 14px; letter-spacing: 0; }
.shop-sec { padding-top: clamp(40px, 5vw, 70px); }

/* ============ toolbar + filter chips ============ */
.shop-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: 30px; }
.shop-bar .eyebrow { margin-bottom: 12px; }
.chips { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--gng-line); }
.chip-f { position: relative; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--gng-cream-dim); cursor: pointer; font: 800 16px/1 var(--gng-font-display); letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s, transform .25s var(--spring); }
.chip-f small { margin-left: 6px; font-size: 12px; opacity: .65; letter-spacing: .04em; }
.chip-f:hover { color: var(--gng-cream); }
.chip-f:active { transform: scale(.96); }
.chip-f.is-on { background: var(--gng-gold); color: var(--gng-night); box-shadow: 0 8px 22px -10px var(--gng-gold-glow); }
@media (max-width: 480px) { .shop-bar { align-items: stretch; flex-direction: column; } .chips { display: flex; } .chip-f { flex: 1; padding: 0 10px; } }

/* ============ product grid ============ */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: minmax(0, 1fr); } }
.pcard-skel { aspect-ratio: 4 / 6.1; border-radius: 28px; background: linear-gradient(100deg, var(--tint) 30%, var(--tint-2) 50%, var(--tint) 70%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -300% 0; } }

.pcard { display: flex; flex-direction: column; animation: pc-in .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pc-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
.pcard.is-quiet { animation: none; }
.pcard-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: radial-gradient(90% 70% at 50% 38%, color-mix(in srgb, var(--gng-gold) 16%, transparent), transparent 70%), var(--gng-deep); }
.pcard-media img, .pcard-media .garment { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s var(--ease); }
.pcard-media img { filter: saturate(.9) contrast(1.04); }
.pcard-media .alt-img { opacity: 0; }
.pcard:hover .pcard-media img, .pcard:hover .pcard-media .garment { transform: scale(1.05); }
@media (hover: hover) { .pcard:hover .pcard-media .alt-img { opacity: 1; } }
.pcard-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--gng-night) 55%, transparent)); }
.pcard-tags { position: absolute; z-index: 2; left: 16px; top: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font: 800 12px/1 var(--gng-font-display); letter-spacing: .14em; text-transform: uppercase; background: var(--gng-gold); color: var(--gng-night); }
.tag-soft { background: color-mix(in srgb, var(--gng-night) 72%, transparent); color: var(--gng-cream); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gng-gold) 45%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tag-out { background: #c2412f; color: #fff; }
.pcard-zoom { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--gng-night) 70%, transparent); color: var(--gng-cream); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.pcard-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pcard:hover .pcard-zoom, .pcard-media:focus-visible .pcard-zoom { opacity: 1; transform: none; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.pcard-cat { margin: 0; font: 700 12px/1 var(--gng-font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--gng-gold); }
.pcard-name { font-size: clamp(22px, 2vw, 27px); line-height: 1; }
.pcard-name button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; text-align: left; cursor: pointer; letter-spacing: inherit; }
.pcard-name button:hover { color: var(--gng-gold-hot); }
.pcard-sizes { margin: 2px 0 0; font-size: 14px; color: var(--gng-muted); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.pcard-price { font: 800 30px/1 var(--gng-font-display); color: var(--gng-cream); }
.pcard-price small { font-size: .5em; color: var(--gng-muted); margin-left: 2px; }
.pcard .btn { min-height: 46px; animation: none; }
.pcard .btn::after { display: none; }
.pcard .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pcard .btn.is-added { background: linear-gradient(135deg, #b9d9a3, #7fae68); }
.pcard .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pcard.is-hidden { display: none; }
.shop-noscript { padding: 18px 20px; border-radius: 16px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--gng-line); }
.shop-empty { grid-column: 1 / -1; padding: 30px; border-radius: 22px; text-align: center; color: var(--gng-cream-dim); background: var(--tint); }

/* the inline garment preview (tees have no real photo yet) */
.garment { display: block; color: color-mix(in srgb, var(--gng-cream) 30%, transparent); }
.garment .g-body { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.garment .g-rib { fill: none; stroke-linecap: round; }

/* trust row */
.shop-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--gng-line); font: 600 14px/1.3 var(--gng-font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gng-cream-dim); }
.shop-trust li { display: inline-flex; align-items: center; gap: 10px; }
.shop-trust svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gng-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-trust a { color: var(--gng-gold-hot); }

/* ============ shared dialog chrome ============ */
.shop-page dialog { padding: 0; border: 0; color: var(--gng-cream); background: none; max-width: none; max-height: none; overflow: visible; }
.shop-page dialog::backdrop { background: rgba(3, 8, 5, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.shop-page dialog.is-open::backdrop { opacity: 1; }
html.shop-locked { overflow: hidden; }
.x-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--gng-cream); background: var(--tint-2); transition: background .25s, transform .35s var(--spring); }
.x-btn:hover { background: var(--gng-gold); color: var(--gng-night); transform: rotate(90deg); }
.x-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ============ quick view ============ */
.qv { width: min(1000px, calc(100% - 32px)); margin: auto; }
.qv-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-height: calc(100dvh - 48px); overflow: auto; border-radius: 30px; background: linear-gradient(180deg, var(--gng-panel), var(--gng-deep)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gng-gold) 32%, transparent), 0 60px 120px -50px rgba(0, 0, 0, .9); opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease); overscroll-behavior: contain; }
.qv.is-open .qv-in { opacity: 1; transform: none; }
.qv-x { position: absolute; z-index: 3; right: 14px; top: 14px; background: color-mix(in srgb, var(--gng-night) 70%, transparent); }
.qv-gallery { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.qv-main { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: radial-gradient(90% 70% at 50% 38%, color-mix(in srgb, var(--gng-gold) 18%, transparent), transparent 70%), var(--gng-deep); }
.qv-main img, .qv-main .garment { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: qv-img .5s var(--ease); }
@keyframes qv-img { from { opacity: 0; transform: scale(1.04); } }
.qv-main .tag { position: absolute; z-index: 2; left: 14px; bottom: 14px; }
@media (min-width: 761px) { .qv-main { aspect-ratio: auto; height: min(640px, calc(100dvh - 170px)); } }
@media (min-width: 761px) and (max-height: 820px) { .qv-info { padding-top: 26px; padding-bottom: 22px; } .qv-row, .qv-sizes { margin-top: 12px; padding-top: 12px; } .qv-desc { margin-top: 10px; } .qv-info .btn-block { margin-top: 16px; } .qv-price { margin-top: 8px; } }
.qv-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.qv-thumbs::-webkit-scrollbar { display: none; }
.qv-thumbs button { flex: none; width: 64px; height: 80px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--gng-deep); box-shadow: inset 0 0 0 1px var(--gng-line); opacity: .6; transition: opacity .25s, box-shadow .25s, transform .25s; }
.qv-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.qv-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.qv-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--gng-gold); }
.qv-info { display: flex; flex-direction: column; padding: 34px 32px 30px 18px; }
.qv-cat { margin: 0 0 10px; font: 700 13px/1 var(--gng-font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--gng-gold); }
.qv-title { font-size: clamp(30px, 3.2vw, 42px); padding-right: 40px; }
.qv-price { margin: 12px 0 0; font: 800 36px/1 var(--gng-font-display); color: var(--gng-gold-hot); }
.qv-desc { margin: 14px 0 0; color: var(--gng-cream-dim); }
.qv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gng-line); }
.qv-label { font: 700 13px/1 var(--gng-font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gng-cream-dim); }
.qv-color { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.qv-color i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gng-cream) 30%, transparent), 0 0 0 3px var(--gng-panel), 0 0 0 5px var(--gng-gold); }
.qv-sizes { margin: 18px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--gng-line); min-width: 0; }
.qv-sizes legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; }
.size-seg { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.size-seg label { position: relative; cursor: pointer; }
.size-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-seg span { display: grid; place-items: center; min-width: 64px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--edge); font: 800 17px/1 var(--gng-font-display); letter-spacing: .06em; text-transform: uppercase; transition: background .25s, box-shadow .25s, color .25s, transform .25s var(--spring); }
.size-seg label:hover span { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--gng-gold); }
.size-seg input:checked + span { background: var(--gng-gold); color: var(--gng-night); box-shadow: none; }
.size-seg input:focus-visible + span { outline: 3px solid var(--gng-gold-hot); outline-offset: 2px; }
.size-seg input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; transform: none; }
.qv-sizes.is-bad .size-seg span { animation: shake .4s; box-shadow: inset 0 0 0 2px #e0493c; }
.qv-hint { margin: 10px 0 0; font-size: 14px; color: var(--gng-muted); min-height: 1.4em; }
.qv-hint.is-bad { color: #e0493c; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--edge); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--gng-cream); cursor: pointer; font: 700 22px/1 var(--gng-font-body); transition: background .2s, color .2s; }
.stepper button:hover { background: var(--gng-gold-soft); color: var(--gng-gold-hot); }
.stepper button:disabled { opacity: .35; cursor: default; background: none; }
.stepper output { min-width: 34px; text-align: center; font: 800 20px/1 var(--gng-font-display); }
.qv-info .btn-block { margin-top: 22px; }
.qv-fine { margin: 12px 0 0; font-size: 13.5px; color: var(--gng-muted); }
@media (max-width: 760px) {
  .qv { width: 100%; margin: auto 0 0; }
  .qv-in { grid-template-columns: minmax(0, 1fr); max-height: 94dvh; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .5s var(--ease), opacity .2s; padding-bottom: env(safe-area-inset-bottom); }
  .qv-gallery { padding: 12px 12px 0; }
  .qv-main { aspect-ratio: 5 / 4; }
  .qv-main img { object-position: 50% 45%; }
  .qv-info { padding: 20px 18px 22px; }
  .qv-title { padding-right: 0; }
  .qv-info .btn-block { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2; }
}

/* ============ cart drawer ============ */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); height: 100%; margin: 0 0 0 auto; }
.drawer-in { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, var(--gng-panel), var(--gng-deep)); box-shadow: inset 1px 0 0 color-mix(in srgb, var(--gng-gold) 35%, transparent), -40px 0 90px -40px rgba(0, 0, 0, .8); transform: translateX(104%); transition: transform .5s var(--ease); }
.drawer.is-open .drawer-in { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 16px 24px; border-bottom: 1px solid var(--gng-line); }
.drawer-head h2 { font-size: 30px; }
.drawer-head h2 span { font: 400 1.35em/0 var(--gng-font-script); text-transform: none; color: var(--gng-gold-hot); }
.drawer-head h2 small { margin-left: 4px; font: 700 14px/1 var(--gng-font-display); letter-spacing: .12em; color: var(--gng-muted); vertical-align: middle; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gng-line); animation: line-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes line-in { from { opacity: 0; transform: translateX(24px); } }
.line.is-leaving { animation: line-out .3s ease forwards; }
@keyframes line-out { to { opacity: 0; transform: translateX(30px); height: 0; } }
.line-img { position: relative; width: 78px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--gng-deep); box-shadow: inset 0 0 0 1px var(--gng-line); }
.line-img img, .line-img .garment { width: 100%; height: 100%; object-fit: cover; }
.line-top { display: flex; justify-content: space-between; gap: 10px; }
.line-name { margin: 0; font: 800 17px/1.1 var(--gng-font-display); text-transform: uppercase; }
.line-price { flex: none; font: 800 18px/1.1 var(--gng-font-display); color: var(--gng-gold-hot); }
.line-meta { margin: 4px 0 0; font-size: 14px; color: var(--gng-muted); }
.line-warn { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #e0493c; }
.line-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.line .stepper output { min-width: 28px; font-size: 18px; }
.line-rm { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--gng-muted); cursor: pointer; font: 700 13px/1 var(--gng-font-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--gng-line); text-underline-offset: 4px; }
.line-rm:hover { color: #e0493c; }
.cart-empty { padding: 50px 10px; text-align: center; color: var(--gng-cream-dim); }
.cart-empty svg { width: 76px; height: 76px; margin: 0 auto 16px; fill: none; stroke: var(--gng-gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; animation: bag-bob 3.6s ease-in-out infinite; }
@keyframes bag-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.cart-empty b { display: block; margin-bottom: 4px; font: 800 24px/1.1 var(--gng-font-display); text-transform: uppercase; color: var(--gng-cream); }
.drawer-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gng-line); background: color-mix(in srgb, var(--gng-night) 35%, transparent); }
.drawer-foot[hidden] { display: none !important; }
.sub { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sub span { font: 700 14px/1 var(--gng-font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gng-cream-dim); }
.sub b { font: 900 34px/1 var(--gng-font-display); }
.sub-note { margin: 6px 0 14px; font-size: 14px; color: var(--gng-muted); }
.drawer-foot .btn-lg { min-height: 64px; font-size: 22px; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--gng-muted); }
.pay-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.notice { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--gng-gold-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gng-gold) 50%, transparent); font-size: 15px; line-height: 1.45; animation: step-in .45s var(--ease); }
.notice b { display: block; font: 800 18px/1.1 var(--gng-font-display); text-transform: uppercase; color: var(--gng-gold-hot); margin-bottom: 4px; }
.notice a:not(.btn) { color: var(--gng-gold-hot); font-weight: 700; }
.notice a.btn, .notice a.btn:hover { color: #0b1a10; }
.notice.is-bad { background: rgba(224, 73, 60, .12); box-shadow: inset 0 0 0 1px rgba(224, 73, 60, .5); }
.notice.is-bad b { color: #e0493c; }
.notice .btn { margin-top: 12px; min-height: 46px; animation: none; }
.notice .btn::after { display: none; }

/* ============ floating cart button ============ */
.cart-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 75; width: 64px; height: 64px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #0b1a10; background: linear-gradient(135deg, #f0d58a, #cfae5c 45%, #a2863e); box-shadow: 0 16px 36px -12px rgba(224, 191, 106, .75), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .18); transition: transform .35s var(--spring), bottom .45s var(--ease), box-shadow .3s; }
.cart-fab:hover { transform: translateY(-3px) scale(1.05); }
.cart-fab:active { transform: scale(.94); }
.cart-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fab-count { position: absolute; top: -4px; right: -4px; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--gng-green); color: #efe9d8; font: 800 14px/1 var(--gng-font-display); box-shadow: 0 0 0 3px var(--gng-night); }
.cart-fab.is-bump { animation: fab-bump .6s var(--spring); }
.cart-fab.is-bump .fab-count { animation: count-pop .6s var(--spring); }
@keyframes fab-bump { 30% { transform: scale(1.18) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
@keyframes count-pop { 40% { transform: scale(1.5); background: var(--gng-gold-hot); color: #0b1a10; } }
.cart-fab.has-items::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(224, 191, 106, .55); animation: btn-ring 3.4s ease-out infinite; pointer-events: none; }
@media (max-width: 760px) { .mobile-cta.is-on ~ .cart-fab { bottom: calc(92px + env(safe-area-inset-bottom)); } .cart-fab { width: 58px; height: 58px; } }

/* the thing that flies from the card into the cart */
.fly { position: fixed; z-index: 96; left: 0; top: 0; border-radius: 16px; overflow: hidden; pointer-events: none; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6), 0 0 0 2px var(--gng-gold); background: var(--gng-deep); }
.fly img, .fly .garment { width: 100%; height: 100%; object-fit: cover; }

/* toast */
.shop-toast { position: fixed; left: 50%; bottom: 26px; z-index: 97; max-width: calc(100% - 120px); padding: 12px 18px; border-radius: 999px; background: var(--gng-panel-2); color: var(--gng-cream); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gng-gold) 45%, transparent), 0 20px 40px -18px rgba(0, 0, 0, .7); font: 700 14px/1.2 var(--gng-font-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translate(-50%, 160%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.shop-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.shop-toast b { color: var(--gng-gold-hot); font-weight: 800; }
@media (max-width: 760px) { .shop-toast { left: 16px; right: 90px; max-width: none; transform: translateY(160%); bottom: calc(22px + env(safe-area-inset-bottom)); } .shop-toast.is-on { transform: none; } .has-mobile-cta .shop-toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ============ /shop-thanks ============ */
.order-done { position: relative; padding-top: 150px; }
@media (max-width: 640px) { .order-done { padding-top: 120px; } }
.celebrate { position: relative; width: 150px; height: 150px; margin: 0 auto 12px; display: grid; place-items: center; }
.celebrate .tick { position: relative; z-index: 2; margin: 0; }
.celebrate .ring { position: absolute; inset: 20px; border-radius: 50%; border: 2px solid var(--gng-gold); opacity: 0; animation: ring-out 1.6s var(--ease) .7s forwards; }
.celebrate .ring:nth-child(2) { animation-delay: 1s; }
@keyframes ring-out { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
.celebrate .bit { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4px; border-radius: 2px; background: var(--gng-gold-hot); opacity: 0; animation: bit-out 1.3s cubic-bezier(.15, .7, .3, 1) .8s forwards; }
.celebrate .bit:nth-child(3n) { background: var(--gng-green-lit); border-radius: 50%; }
.celebrate .bit:nth-child(4n) { background: var(--gng-leather); width: 12px; height: 5px; }
@keyframes bit-out { 0% { opacity: 1; transform: rotate(var(--a)) translateX(10px) rotate(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d, 120px)) rotate(260deg); } }
.order-done .hero-ctas { justify-content: center; margin-top: 30px; }
.receipt-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; max-width: 560px; margin: 36px auto 0; padding: 20px 24px; text-align: left; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--gng-green) 45%, var(--gng-panel)), var(--gng-panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gng-gold) 40%, transparent), 0 40px 80px -50px rgba(0, 0, 0, .8); overflow: hidden; animation: pass-in 1s var(--ease) .5s both; }
.receipt-card img { width: 72px; height: 72px; animation: badge 30s linear infinite; }
.receipt-card small { display: block; font: 700 11px/1 var(--gng-font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--gng-gold); }
.receipt-card b { display: block; margin: 6px 0 4px; font: 800 26px/1 var(--gng-font-display); text-transform: uppercase; }
.receipt-card span { color: var(--gng-cream-dim); font-size: 15px; }
.receipt-card .shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%) -200% 0 / 60% 100% no-repeat; animation: btn-shine 5s ease-in-out 1.4s infinite; pointer-events: none; }
@media (max-width: 480px) { .receipt-card { grid-template-columns: 1fr; text-align: center; } .receipt-card img { margin: 0 auto; } }
/* the order summary under the receipt card (same panel language as the receipt card and cart lines) */
.order-card { max-width: 560px; margin: 18px auto 0; padding: 18px 24px 20px; text-align: left; border-radius: 24px; background: var(--gng-panel); box-shadow: inset 0 0 0 1px var(--gng-line); animation: pass-in 1s var(--ease) .7s both; }
.order-card[hidden] { display: none; }
.order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--gng-line); }
.order-head h2 { margin: 0; font: 800 22px/1 var(--gng-font-display); text-transform: uppercase; }
.order-head h2 span { color: var(--gng-gold-hot); }
.order-head small { font-size: 14px; color: var(--gng-muted); }
.order-lines { margin: 0; padding: 0; list-style: none; }
.order-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gng-line); }
.order-lines .line-img { width: 56px; height: 70px; border-radius: 12px; }
.order-sums { margin: 12px 0 0; }
.order-sums div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--gng-cream-dim); }
.order-sums dt, .order-sums dd { margin: 0; }
.order-sums .order-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--gng-line); color: var(--gng-cream); font: 800 20px/1 var(--gng-font-display); text-transform: uppercase; }
@media (max-width: 480px) { .order-card { padding: 16px 16px 18px; } .order-lines li { grid-template-columns: 48px minmax(0, 1fr) auto; } .order-lines .line-img { width: 48px; height: 60px; } }

/* ============ light theme touches (tokens do most of the work) ============ */
html[data-theme="light"] .shop-page dialog::backdrop { background: rgba(31, 51, 33, .38); }
html[data-theme="light"] :is(.qv-in, .drawer-in) { background: linear-gradient(180deg, #fffdf6, #f5efe0); }
html[data-theme="light"] .qv-in { box-shadow: inset 0 0 0 1px rgba(162, 134, 62, .4), 0 60px 110px -50px rgba(31, 51, 33, .6); }
html[data-theme="light"] .drawer-in { box-shadow: inset 1px 0 0 rgba(162, 134, 62, .4), -30px 0 80px -40px rgba(31, 51, 33, .5); }
html[data-theme="light"] :is(.pcard-media, .qv-main) { background: radial-gradient(90% 70% at 50% 38%, rgba(162, 134, 62, .18), transparent 70%), #ebe4d0; }
html[data-theme="light"] .pcard-media::after { background: linear-gradient(180deg, transparent 70%, rgba(31, 51, 33, .12)); }
html[data-theme="light"] :is(.chips, .stepper, .size-seg span) { background: #fff; }
html[data-theme="light"] .size-seg input:checked + span { background: var(--gng-gold); color: #fffdf6; }
html[data-theme="light"] .chip-f.is-on { color: #fffdf6; }
html[data-theme="light"] .garment { color: rgba(31, 51, 33, .28); }
html[data-theme="light"] .fab-count { box-shadow: 0 0 0 3px #f4efe1; }
html[data-theme="light"] .shop-toast { background: #1c2f1e; color: #f4efe1; }
html[data-theme="light"] .shop-toast b { color: #e0bf6a; }
html[data-theme="light"] .x-btn { background: rgba(31, 51, 33, .08); }
html[data-theme="light"] .qv-x { background: rgba(255, 253, 246, .85); }
html[data-theme="light"] .drawer-foot { background: rgba(236, 229, 210, .6); }
html[data-theme="light"] .receipt-card { background: linear-gradient(135deg, #e6eddc, #fffdf6); }
html[data-theme="light"] .order-card { background: #fbf8ef; box-shadow: inset 0 0 0 1px rgba(31, 51, 33, .12), 0 14px 30px -24px rgba(31, 51, 33, .45); }
html[data-theme="light"] .tag-soft { background: rgba(255, 253, 246, .88); color: #1c2f1e; }
html[data-theme="light"] .pcard-zoom { background: rgba(255, 253, 246, .9); color: #1c2f1e; }

/* ============ reduced motion: calmer, not dead ============ */
@media (prefers-reduced-motion: reduce) {
  .pcard { animation: pc-fade .6s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
  @keyframes pc-fade { from { opacity: 0; } }
  .pcard:hover .pcard-media img, .pcard:hover .pcard-media .garment { transform: none; }
  .qv-in, .drawer-in { transition-duration: .25s; }
  .qv-in { transform: none; }
  .drawer-in { transform: translateX(24px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
  .drawer.is-open .drawer-in { opacity: 1; }
  .line { animation: pc-fade .4s ease both; }
  .cart-fab.is-bump { animation: fab-glow 1.2s ease; }
  .cart-fab.is-bump .fab-count { animation: none; }
  @keyframes fab-glow { 50% { box-shadow: 0 0 0 8px rgba(224, 191, 106, .35), 0 16px 36px -12px rgba(224, 191, 106, .75); } }
  .cart-fab.has-items::before { animation-duration: 6s; }
  .cart-empty svg { animation-duration: 8s; }
  .celebrate .bit { display: none; }
  .celebrate .ring { animation-duration: 2.6s; }
  .receipt-card img { animation-duration: 80s; }
  .pcard-skel { animation-duration: 3s; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .qv-in { transform: none; opacity: 0; } .qv.is-open .qv-in { opacity: 1; } }

/* no-photo tile (tees until real photos are uploaded in the portal) */
.garment.nophoto { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 14px; object-fit: initial;
  background: radial-gradient(70% 60% at 50% 40%, var(--gng-panel-2), var(--gng-deep)); color: var(--gng-muted); }
.garment.nophoto img { position: static !important; width: 34% !important; height: auto !important; max-width: 140px; opacity: .22; filter: grayscale(1); transform: none !important; }
.garment.nophoto b { font: 700 12px/1 var(--gng-font-display); letter-spacing: .22em; text-transform: uppercase; }
.line-img .garment.nophoto b, .fly .garment.nophoto b { display: none; }
.line-img .garment.nophoto img { width: 60% !important; }
