/* Float Euphoria sale page v2 -- mobile first */
:root {
	--ink: #0c1a22;
	--ink-2: #3b4a52;
	--muted: #6b7a82;
	--line: #e3e7ea;
	--bg: #f7f6f2;
	--card: #ffffff;
	--teal: #007f99;
	--teal-d: #006478;
	--teal-l: #e3f3f6;
	--gold: #f2c14e;
	--gold-d: #b8870f;
	--red: #c0392b;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(12,26,34,.06), 0 6px 20px rgba(12,26,34,.08);
	--safe-b: env(safe-area-inset-bottom, 0px);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.small { font-size: 13px; color: var(--muted); }

.testbar { background: #fff3cd; color: #6b4e00; font-size: 13px; text-align: center; padding: 8px 16px; font-weight: 600; }

/* hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,26,34,.35) 0%, rgba(12,26,34,.55) 55%, rgba(12,26,34,.96) 100%); }
.hero-in { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 20px 20px 36px; text-align: center; }
.logo img { width: 150px; height: auto; margin: 0 auto 28px; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border: 1px solid rgba(242,193,78,.6); border-radius: 999px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 12px; font-size: clamp(40px, 12vw, 68px); line-height: .98; font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: var(--gold); }
.lede { margin: 0 auto 20px; max-width: 30em; font-size: 17px; color: rgba(255,255,255,.88); }
.countdown { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; color: rgba(255,255,255,.8); }
.cd-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; color: #fff; }
.cta { display: block; width: 100%; max-width: 360px; margin: 20px auto 0; padding: 15px 20px; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; }

.ended-msg, .soon-msg { display: none; max-width: 640px; margin: 24px auto; padding: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.state-ended .ended-msg, .state-soon .soon-msg { display: block; margin-left: 16px; margin-right: 16px; }
@media (min-width: 672px) { .state-ended .ended-msg, .state-soon .soon-msg { margin-left: auto; margin-right: auto; } }
.state-ended .qty, .state-soon .qty, .state-ended .cartbar, .state-soon .cartbar, .state-ended .cta, .state-soon .cta { display: none !important; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px calc(120px + var(--safe-b)); }

/* perks */
.perks { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perks li { background: var(--card); border-radius: 12px; padding: 10px 8px; text-align: center; box-shadow: var(--shadow); }
.perks b { display: block; font-size: 14px; line-height: 1.2; }
.perks span { display: block; font-size: 12px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
.perks .perk-bonus { background: var(--ink); color: #fff; }
.perks .perk-bonus b { color: var(--gold); }
.perks .perk-bonus span { color: rgba(255,255,255,.75); }

.sec-title { font-size: 22px; margin: 26px 0 12px; letter-spacing: -.01em; }

/* featured */
.feats { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.feats::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .feats { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 4px 0 14px; } }
.feat { scroll-snap-align: start; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feat-img { position: relative; aspect-ratio: 16 / 10; background: #dfe6e9; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.pct { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 999px; }
.feat-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feat-line { font-weight: 700; font-size: 17px; line-height: 1.25; }
.feat-price b { font-size: 26px; letter-spacing: -.02em; }
.feat-price s, .item-price s { color: var(--muted); }
.feat .qty { margin-top: auto; width: 100%; }
.feat .qty .add { width: 100%; }

/* category chips */
.chips { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 10px 16px; background: rgba(247,246,242,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* categories */
.cat { margin-top: 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat-head { position: relative; aspect-ratio: 16 / 7; background: #dfe6e9; }
.cat-head img { width: 100%; height: 100%; object-fit: cover; }
.cat-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,26,34,.75)); }
.cat-head h2 { position: absolute; left: 16px; bottom: 10px; z-index: 1; margin: 0; color: #fff; font-size: 24px; letter-spacing: -.01em; }
.blurb { margin: 12px 16px 4px; font-size: 14px; color: var(--ink-2); }
.items { list-style: none; margin: 0; padding: 0 16px 6px; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-main { flex: 1; min-width: 0; }
.item-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--teal-l); color: var(--teal-d); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.note { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.item-price { margin-top: 4px; font-size: 15px; }
.item-price b { font-size: 19px; }
.save { color: var(--teal-d); font-weight: 700; font-size: 13px; margin-left: 2px; }

/* qty stepper */
.qty { flex: none; display: inline-flex; align-items: center; justify-content: space-between; min-width: 112px; height: 44px; }
.qty .add { height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; }
.qty .add:active { background: var(--teal-d); }
.qty .dec, .qty .inc, .qty .n { display: none; }
.qty:not([data-q="0"]) { background: var(--teal-l); border-radius: 12px; }
.qty:not([data-q="0"]) .add { display: none; }
.qty:not([data-q="0"]) .dec, .qty:not([data-q="0"]) .inc, .qty:not([data-q="0"]) .n { display: inline-flex; align-items: center; justify-content: center; }
.qty .dec, .qty .inc { width: 44px; height: 44px; border: 0; background: transparent; color: var(--teal-d); font-size: 24px; font-weight: 600; line-height: 1; border-radius: 12px; }
.qty .dec:active, .qty .inc:active { background: rgba(0,127,153,.15); }
.qty .n { min-width: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.feat .qty:not([data-q="0"]) { justify-content: space-between; }
.bump { animation: bump .25s ease; }
@keyframes bump { 50% { transform: scale(1.18); } }

/* fine print + footer */
.fine { margin-top: 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.fine summary { padding: 16px; font-weight: 700; cursor: pointer; }
.fine ul { margin: 0; padding: 0 16px 16px 34px; font-size: 14px; color: var(--ink-2); }
.fine li { margin: 6px 0; }
.foot { text-align: center; padding: 28px 8px 10px; font-size: 14px; color: var(--ink-2); }
.foot img { width: 160px; height: auto; margin: 0 auto 8px; }

/* cart bar */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 12px calc(10px + var(--safe-b)); background: rgba(247,246,242,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); animation: up .25s ease; }
@keyframes up { from { transform: translateY(100%); } }
.cartbar > * { max-width: 736px; margin-left: auto; margin-right: auto; }
.bonusmeter { margin-bottom: 8px; }
.bm-track { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bm-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .3s ease; }
.bm-text { font-size: 13px; color: var(--ink-2); margin-top: 4px; text-align: center; }
.bm-text b { color: var(--ink); }
.bonusmeter.won .bm-text { color: var(--gold-d); font-weight: 700; }
.cartbtn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 18px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; text-align: left; }
.cb-left { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; font-size: 15px; }
.cb-left small { color: var(--gold); font-weight: 600; font-size: 12px; }
.cb-right { font-weight: 700; font-size: 16px; white-space: nowrap; }
.cb-right b { font-size: 18px; margin-left: 6px; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(12,26,34,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-in { width: 100%; max-width: 560px; height: 100%; background: var(--bg); display: flex; flex-direction: column; animation: up .25s ease; }
@media (min-width: 600px) { .sheet { align-items: center; padding: 24px; } .sheet-in { height: auto; max-height: 100%; border-radius: 18px; overflow: hidden; } }
.sheet-head { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 6px; background: var(--card); border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; text-align: center; font-size: 18px; }
.back { width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; color: var(--ink); border-radius: 10px; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(24px + var(--safe-b)); }
.summary { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.summary li:first-child { border-top: 0; }
.summary .bonusline { color: var(--gold-d); font-weight: 700; }
.totals { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 4px; font-size: 15px; }
.totals b { font-size: 22px; }
.totals .saved { color: var(--teal-d); font-weight: 700; }
.upsell { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7e0; color: #6b4e00; font-size: 14px; }
.upsell button { border: 0; background: none; color: var(--teal-d); font-weight: 700; text-decoration: underline; padding: 0; }
.optins { margin: 14px 2px 4px; display: grid; gap: 4px; font-size: 15px; }
.optins label { display: flex; gap: 10px; align-items: center; min-height: 36px; }
.optins input { width: 20px; height: 20px; accent-color: var(--teal); }
.wallet { margin-top: 12px; }
#express { min-height: 50px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#cardform { margin-top: 8px; }
#cardform label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; color: var(--ink-2); }
#cardform input { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid #cfd6da; border-radius: 10px; background: #fff; color: var(--ink); }
#cardform input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
#cardform input.bad { border-color: var(--red); }
.payment { margin-top: 16px; min-height: 120px; }
.err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: var(--red); font-size: 14px; }
.paybtn { width: 100%; height: 56px; margin-top: 16px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; font-weight: 800; font-size: 18px; }
.paybtn:disabled { opacity: .6; }
.paybtn.busy { position: relative; color: transparent; }
.paybtn.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.paybtn.ghost { background: transparent; color: var(--teal-d); border: 2px solid var(--teal); }
.secure { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.done-body { text-align: center; padding-top: calc(32px + env(safe-area-inset-top, 0px)); }
.done-body .summary, .done-body .totals { text-align: left; }
.check { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--teal); position: relative; }
.check::after { content: ""; position: absolute; left: 25px; top: 15px; width: 18px; height: 34px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.done-body h2 { margin: 0 0 4px; font-size: 26px; }
.done-sub { margin: 0 0 16px; color: var(--ink-2); }
.next { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.next h3 { margin: 0 0 4px; }
body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* card-on-file notice (checkout + confirmation) */
.notice { margin: 14px 0 4px; padding: 12px 14px 12px 44px; position: relative; border-radius: 12px; background: #fff7e0; border: 1px solid #f2d27a; color: #4d3a00; font-size: 14px; line-height: 1.45; text-align: left; }
.notice::before { content: "!"; position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 14px; line-height: 22px; text-align: center; }
.notice > b:first-child { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.done-body .next + .notice, .done-body .notice + .next { margin-top: 12px; }

/* gift certificate art header */
.gift-art { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 20% 0%, #13445a 0%, var(--ink) 60%); }
.gift-art::after { background: linear-gradient(180deg, transparent 55%, rgba(12,26,34,.6)); }
.gc-card { position: relative; z-index: 1; width: 62%; max-width: 300px; aspect-ratio: 1.6; margin-bottom: 18px; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(135deg, var(--teal) 0%, #01586b 55%, #0b3a48 100%); box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); transform: rotate(-4deg); overflow: hidden; }
.gc-card::before { content: ""; position: absolute; right: 22%; top: -10%; bottom: -10%; width: 14px; background: linear-gradient(180deg, var(--gold), var(--gold-d)); }
.gc-card::after { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 14px; background: linear-gradient(90deg, var(--gold), var(--gold-d)); }
.gc-card span { position: relative; z-index: 1; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.gc-card b { position: relative; z-index: 1; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.gc-card small { position: relative; z-index: 1; font-size: 13px; opacity: .9; }
.fine summary::marker { color: var(--teal); }
.cat-head.gift-art { aspect-ratio: 16 / 9; align-items: flex-start; padding-top: 18px; }
.gift-art .gc-card { width: 50%; max-width: 240px; margin-bottom: 0; padding: 10px 14px; }
.gift-art .gc-card b { font-size: 32px; }

/* spotlight category (Thai Yoga) */
.cat.spotlight { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.spot { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cat.spotlight .cat-head { aspect-ratio: 16 / 10; }
.cat.spotlight .cat-head img { object-position: center 40%; }
.cat.spotlight .blurb { font-size: 15px; color: var(--ink); }
