/* ==========================================================================
   Flaz Parfums - Storefront Stylesheet
   Public page layout composed on top of the core component system tokens
   ========================================================================== */

/* ─── Page Foundation ───────────────────────────────────────────────────── */

/* Body & Typography */
.sf { background: var(--canvas); color: var(--text-body); }
:where(.sf) :where(h1, h2, h3, h4) { margin: 0; color: var(--text-strong); }
:where(.sf) :where(p, figure, blockquote, dl, dd) { margin: 0; }
:where(.sf) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.sf .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }

/* Two-tone heading */
.tone-strong { color: var(--text-strong); }
.tone-muted { color: var(--text-placeholder); }
.tone-brand { color: var(--brand); }

/* Programmatic focus targets */
.sf .k-dialog:focus, .sf .k-drawer:focus { outline: none; }

/* Skip link */
.sf-skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: var(--r-md); background: var(--contrast); color: #fff; font-weight: 600; transition: top .15s var(--ease); }
.sf-skip:focus { top: 12px; }

/* Touch targets */
@media (max-width: 767px) {
  .sf .k-btn:not(.k-btn-xs):not(.k-btn-sm) { --btn-h: 48px; }
  .sf .k-tab { min-height: 44px; }
  .sf .k-input, .sf .k-select { height: 48px; font-size: 16px; }
  .sf .k-textarea { font-size: 16px; }
}

/* ─── Section Scaffolding ───────────────────────────────────────────────── */

.sf-section { padding: 72px 0; }
.sf-section-tight { padding: 40px 0; }
.sf-section-alt { background: var(--base); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
@media (min-width: 1024px) { .sf-section { padding: 96px 0; } }

/* Section Header */
.sf-head { max-width: 720px; margin-bottom: 32px; }
.sf-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sf-head-center .sf-pill { margin: 0 auto 16px; }
.sf-head-row { display: flex; flex-direction: column; gap: 20px; max-width: none; }
@media (min-width: 900px) { .sf-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sf-eyebrow { display: inline-block; margin-bottom: 10px; color: var(--brand-text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sf-title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.sf-title-sm { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.sf-sub { margin-top: 14px; max-width: 640px; color: var(--text-subtle); font-size: 16px; line-height: 1.7; }
.sf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--brand-line); font-size: 12.5px; }
.sf-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-price { color: var(--text-strong); font-size: 17px; font-weight: 600; }

/* ─── Announcement Strip ────────────────────────────────────────────────── */

.sf-announce { background: var(--contrast); color: #E2E8F0; font-size: 13px; }
.sf-announce-inner { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.sf-announce-text { display: flex; align-items: center; gap: 8px; text-align: center; }
.sf-announce-text .ic { color: #93C5FD; width: 15px; height: 15px; }
.sf-announce-meta { display: none; align-items: center; gap: 16px; }
.sf-announce-hours, .sf-announce-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sf-announce-hours .ic, .sf-announce-link .ic { width: 14px; height: 14px; }
.sf-announce-link { color: #fff; font-weight: 600; min-height: 32px; }
.sf-announce-link:hover { color: #BFDBFE; }
@media (min-width: 1024px) {
  .sf-announce-inner { justify-content: space-between; }
  .sf-announce-meta { display: flex; }
}

/* ─── Floating Navigation ───────────────────────────────────────────────── */

.sf-header { position: sticky; top: 0; z-index: 60; padding-top: 16px; }
.sf-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 8px 0 14px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: rgba(255, 255, 255, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }

/* Brand lockup */
.sf-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-strong); font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.sf-brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.sf-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Links with sliding indicator */
.sf-nav-links { position: relative; display: none; align-items: center; gap: 2px; }
.sf-nav-link { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-md); color: var(--text-soft); font-size: 14px; font-weight: 600; transition: color .15s var(--ease); }
.sf-nav-link:hover, .sf-nav-link:focus-visible { color: var(--text-strong); }
.sf-nav-indicator { position: absolute; top: 0; left: 0; height: 36px; width: 0; border-radius: var(--r-md); background: var(--brand-tint); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), width .25s var(--ease), opacity .2s var(--ease); }
.sf-nav-links.is-hovering .sf-nav-indicator { opacity: 1; }
@media (min-width: 1100px) { .sf-nav-links { display: flex; } }

/* Actions */
.sf-nav-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.sf-nav-quiz, .sf-nav-track { display: none; }
.sf-cart-btn { position: relative; overflow: visible; }
.sf-cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-full); border: 2px solid var(--base); background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; text-align: center; }
.sf-cart-count.is-bump { animation: sf-bump .35s var(--ease); }
@keyframes sf-bump { 50% { transform: scale(1.25); } }
@media (min-width: 640px) { .sf-nav-track { display: inline-flex; } }
@media (min-width: 900px) { .sf-nav-quiz { display: inline-flex; } }
@media (min-width: 1100px) { .sf-menu-btn { display: none; } }

/* ─── Hero ──────────────────────────────────────────────────────────────── */

/* Hero extends up behind the transparent sticky header (16px offset + 60px bar) so its gradient fills the band behind the navbar */
.sf { --sf-header-h: 76px; }
.sf-hero { position: relative; margin-top: calc(-1 * var(--sf-header-h)); padding: calc(48px + var(--sf-header-h)) 0 56px; background: radial-gradient(60% 55% at 78% 30%, rgba(37, 99, 235, .12), transparent 70%), radial-gradient(45% 40% at 10% 10%, rgba(191, 211, 254, .45), transparent 70%), var(--canvas); }
.sf-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .sf-hero { padding: calc(72px + var(--sf-header-h)) 0 72px; } .sf-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* Copy column */
.sf-hero-title { margin-top: 18px; font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 1.02; }
.sf-hero-title span { display: block; }
.sf-hero-tagline { margin-top: 16px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-soft); }
.sf-hero-value { margin-top: 14px; max-width: 560px; font-size: 16.5px; line-height: 1.7; color: var(--text-body); }

/* Trust badges */
.sf-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sf-trust li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--base); color: var(--text); font-size: 13px; font-weight: 600; }
.sf-trust .ic { width: 15px; height: 15px; color: var(--brand); }

/* CTA row */
.sf-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 479px) { .sf-hero-ctas .k-btn { width: 100%; } }

/* Social proof stack */
.sf-proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--text-subtle); font-size: 14px; }
.sf-avatars { display: flex; }
.sf-avatars span { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -8px; border: 2px solid var(--canvas); border-radius: 50%; background: var(--brand-tint-2); color: var(--brand-strong); font-size: 11px; font-weight: 700; }
.sf-avatars span:first-child { margin-left: 0; }
.sf-avatars span:nth-child(2) { background: #E0E7FF; }
.sf-avatars span:nth-child(3) { background: #DBEAFE; }
.sf-avatars span:nth-child(4) { background: var(--contrast); color: #fff; }

/* Media column */
.sf-hero-media { position: relative; max-width: 480px; width: 100%; margin: 0 auto; }
.sf-hero-frame { padding: 10px; border: 1px solid var(--hairline); border-radius: 20px; background: rgba(255, 255, 255, .7); }
.sf-hero-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--brand-tint); }

/* Stats row */
.sf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 48px 0 0; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--base); overflow: hidden; }
.sf-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 14px; border-left: 1px solid var(--hairline); }
.sf-stats > div:first-child { border-left: 0; }
.sf-stats dt { color: var(--text-subtle); font-size: 12.5px; }
.sf-stats dd { margin: 0; color: var(--text-strong); font-size: clamp(1.05rem, 2.6vw, 1.6rem); font-weight: 600; }

/* ─── Scent Finder Quiz ─────────────────────────────────────────────────── */

/* Intro card */
.sf-quiz-intro { display: grid; gap: 20px; padding: 24px; align-items: center; }
.sf-quiz-intro-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--brand-line); border-radius: var(--r-lg); background: var(--brand-tint); color: var(--brand); }
.sf-quiz-intro-icon .ic { width: 24px; height: 24px; }
.sf-quiz-intro-copy p { margin-top: 8px; color: var(--text-subtle); max-width: 620px; }
@media (min-width: 900px) { .sf-quiz-intro { grid-template-columns: auto 1fr auto; padding: 28px 32px; } }

/* Dialog */
.sf-dialog-sub { margin-top: 2px; color: var(--text-subtle); font-size: 13px; }
.sf-quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sf-dots { display: flex; gap: 6px; }
.sf-dots li { width: 8px; height: 8px; border-radius: 50%; background: var(--fill); transition: background-color .2s var(--ease), transform .2s var(--ease); }
.sf-dots li.is-active { background: var(--brand); transform: scale(1.2); }
.sf-dots li.is-done { background: var(--brand-line); }
.sf-quiz-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.sf-quiz-q { display: block; margin-bottom: 18px; padding: 0; color: var(--text-strong); font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.sf-quiz-profile { margin: -8px 0 16px; color: var(--text-subtle); font-size: 14px; }
.sf-quiz-foot { justify-content: space-between; }

/* Radio tiles */
.sf-tiles { display: grid; gap: 10px; }
@media (min-width: 560px) { .sf-tiles-4 { grid-template-columns: repeat(2, 1fr); } }
.sf-tile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--base); cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.sf-tile:hover { border-color: var(--brand-line); }
.sf-tile input { position: absolute; opacity: 0; pointer-events: none; }
.sf-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--recessed); color: var(--text-soft); flex: none; }
.sf-tile-icon .ic { width: 20px; height: 20px; }
.sf-tile-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sf-tile-text strong { color: var(--text-strong); font-size: 15px; }
.sf-tile-text small { color: var(--text-subtle); font-size: 13px; }
.sf-tile-check { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; color: transparent; flex: none; }
.sf-tile-check .ic { width: 14px; height: 14px; }
.sf-tile:has(input:checked), .sf-tile.is-checked { border-color: var(--brand); background: var(--brand-tint); }
.sf-tile:has(input:checked) .sf-tile-icon, .sf-tile.is-checked .sf-tile-icon { background: var(--base); color: var(--brand); }
.sf-tile:has(input:checked) .sf-tile-check, .sf-tile.is-checked .sf-tile-check { border-color: var(--brand); background: var(--brand); color: #fff; }
.sf-tile:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Results */
.sf-quiz-results { display: grid; gap: 10px; }
.sf-rec { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--base); animation: sf-rise .35s var(--ease) both; }
.sf-rec:nth-child(2) { animation-delay: .07s; }
.sf-rec:nth-child(3) { animation-delay: .14s; }
.sf-rec img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-md); background: var(--brand-tint); }
.sf-rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sf-rec-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-strong); }
.sf-rec-reason { margin-top: 4px; color: var(--text-subtle); font-size: 13.5px; }
.sf-rec-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.sf-rec-match { font-family: var(--font-mono); }
@keyframes sf-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Signature Showcase & Pyramid ──────────────────────────────────────── */

.sf-sig-tabs { margin-bottom: 24px; }
.sf-sig-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .sf-sig-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; } }
.sf-sig-media { padding: 10px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--base); }
.sf-sig-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--brand-tint); transition: opacity .25s var(--ease); }
.sf-sig-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sf-sig-name { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.sf-sig-tagline { font-family: var(--font-display); font-style: italic; color: var(--text-soft); font-size: 17px; }
.sf-sig-desc { color: var(--text-body); line-height: 1.7; }
.sf-fade { animation: sf-fade .3s var(--ease); }
@keyframes sf-fade { from { opacity: .2; } to { opacity: 1; } }

/* Scent notes list */
.sf-sig-conc { align-self: flex-start; }
.sf-sig-notes { margin: 6px 0 0; border-top: 1px solid var(--hairline); }
.sf-sig-notes > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.sf-sig-notes dt { color: var(--text-subtle); font-size: 13px; font-weight: 600; }
.sf-sig-notes dd { margin: 0; color: var(--text-strong); font-size: 15px; }
.sf-sig-meta { color: var(--text-subtle); font-size: 14px; }

/* Meters & buy row */
.sf-meters { display: grid; gap: 14px; }
@media (min-width: 560px) { .sf-meters { grid-template-columns: 1fr 1fr; } }
.sf-meters em { margin-left: 6px; font-style: normal; color: var(--brand-text); font-weight: 600; }
.sf-buy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ─── Catalog ───────────────────────────────────────────────────────────── */

.sf-search { width: 100%; max-width: 380px; }
.sf-search .k-input { height: 44px; }

/* Filter chips */
.sf-chips { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chip { flex: none; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--base); color: var(--text-soft); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.sf-chip:hover { border-color: var(--brand-line); color: var(--text-strong); }
.sf-chip.is-active { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text); }
@media (max-width: 767px) { .sf-chip { height: 44px; } }

/* Touch-friendly segmented tabs on phones */
@media (max-width: 767px) { .sf .k-tabs .k-tab { height: 44px; } }

/* Grid */
.sf-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Product card */
.sf-pcard { display: flex; flex-direction: column; transition: border-color .2s var(--ease); }
.sf-pcard:hover { border-color: var(--brand-line); }
.sf-pcard-media { position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--hairline); background: var(--brand-tint); cursor: zoom-in; overflow: hidden; }
.sf-pcard-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.sf-pcard:hover .sf-pcard-media img { transform: scale(1.03); }
.sf-pcard-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px; }
.sf-pcard-name { font-size: 20px; }
.sf-pcard-body .sf-variant-tabs { margin-top: auto; }

/* Mini note chips (product detail dialog) */
.sf-mini-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-mini-notes li { padding: 2px 8px; border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--elevated); color: var(--text-soft); font-size: 12px; }
.sf-variant-tabs { align-self: flex-start; }
.sf-variant-tabs .k-tab { font-family: var(--font-mono); font-size: 12.5px; padding: 0 10px; }
.sf-variant-tabs .k-tab:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.sf-catalog-empty { margin-top: 8px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--elevated); }

/* ─── Discovery Set Configurator ────────────────────────────────────────── */

.sf-disc { display: grid; gap: 24px; align-items: start; }
.sf-disc > *, .sf-gift-grid > *, .sf-loc-grid > *, .sf-story-grid > *, .sf-hero-grid > *, .sf-faq-grid > * { min-width: 0; }
@media (min-width: 1024px) { .sf-disc { grid-template-columns: 1fr 360px; } .sf-disc-summary { position: sticky; top: 104px; } }
.sf-tab-meta { margin-left: 6px; color: var(--text-subtle); font-size: 11.5px; font-weight: 500; }
.sf-disc-hint { margin: 14px 0; color: var(--text-subtle); font-size: 14px; }
.sf-disc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .sf-disc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sf-disc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-vial { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--base); text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.sf-vial:hover:not(:disabled) { border-color: var(--brand-line); }
.sf-vial:disabled { opacity: .45; cursor: not-allowed; }
.sf-vial img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-md); background: var(--brand-tint); }
.sf-vial strong { color: var(--text-strong); font-size: 14px; line-height: 1.3; }
.sf-vial small { color: var(--text-subtle); font-size: 12px; }
.sf-vial-check { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--base); color: transparent; }
.sf-vial-check .ic { width: 14px; height: 14px; }
.sf-vial[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); }
.sf-vial[aria-pressed="true"] .sf-vial-check { border-color: var(--brand); background: var(--brand); color: #fff; }

/* Slot bar */
.sf-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.sf-slot { display: grid; place-items: center; height: 44px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--text-placeholder); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.sf-slot.is-filled { border-style: solid; border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text); animation: sf-bump .3s var(--ease); }
.sf-features li, .sf-checklist li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-soft); font-size: 14px; }
.sf-features li + li, .sf-checklist li + li { margin-top: 6px; }
.sf-features .ic, .sf-checklist .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }
.sf-disc-price { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--text-subtle); font-size: 14px; }
.sf-disc-price strong { color: var(--text-strong); font-size: 20px; }
.sf-rebate { display: flex; gap: 8px; padding: 10px 12px; border: 1px solid var(--brand-line); border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand-strong); font-size: 13px; }
.sf-rebate .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }

/* ─── Order Tracker ─────────────────────────────────────────────────────── */

.sf-track-card { display: grid; gap: 20px; padding: 24px; align-items: center; background: linear-gradient(180deg, var(--base), var(--elevated)); }
.sf-track-copy p { margin-top: 8px; color: var(--text-subtle); }
@media (min-width: 960px) { .sf-track-card { grid-template-columns: 1fr 1fr; padding: 32px; } }
.sf-track-form { display: flex; flex-direction: column; gap: 10px; }
.sf-track-form .k-input-group { flex: 1; }
.sf-track-form .k-input { height: 44px; text-transform: uppercase; }
.sf-track-form .k-input::placeholder { text-transform: none; }
@media (min-width: 560px) { .sf-track-form { flex-direction: row; } }
@media (max-width: 767px) { .sf-track-form .k-input { height: 48px; } }
.sf-track-results { margin-top: 20px; }
.sf-track-results:empty { display: none; }

/* Result header */
.sf-trk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.sf-trk-code { color: var(--text-strong); font-family: var(--font-mono); font-size: 16px; font-weight: 600; }
.sf-trk-meta { color: var(--text-subtle); font-size: 13px; }

/* Timeline */
.sf-timeline { position: relative; margin: 20px 0; padding-left: 4px; }
.sf-tl-step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; opacity: 0; transform: translateY(6px); animation: sf-rise .35s var(--ease) forwards; }
.sf-tl-step:last-child { padding-bottom: 0; }
.sf-tl-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--fill); }
.sf-tl-step:last-child::before { display: none; }
.sf-tl-step.is-done::before { background: var(--brand); }
.sf-tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--fill); border-radius: 50%; background: var(--base); color: var(--text-placeholder); }
.sf-tl-dot .ic { width: 14px; height: 14px; }
.sf-tl-step.is-done .sf-tl-dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.sf-tl-step.is-current .sf-tl-dot { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.sf-tl-step.is-current .sf-tl-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand-line); animation: sf-pulse 1.6s var(--ease) infinite; }
@keyframes sf-pulse { from { opacity: 1; transform: scale(.85); } to { opacity: 0; transform: scale(1.25); } }
.sf-tl-body strong { display: block; color: var(--text-strong); font-size: 14.5px; }
.sf-tl-step:not(.is-done):not(.is-current) .sf-tl-body strong { color: var(--text-muted); }
.sf-tl-body time { display: block; color: var(--text-subtle); font-family: var(--font-mono); font-size: 12px; }
.sf-tl-body p { margin-top: 4px; color: var(--text-soft); font-size: 13.5px; }

/* Items & code list */
.sf-trk-items { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--elevated); font-size: 14px; }
.sf-trk-items li { display: flex; justify-content: space-between; gap: 12px; }
.sf-trk-items span:last-child { font-family: var(--font-mono); color: var(--text-subtle); }
.sf-trk-resi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.sf-code-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sf-code-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--base); text-align: left; }
.sf-code-item .mono { color: var(--text-strong); font-weight: 600; }

/* Standalone page */
.sf-track-page { padding-top: 48px; }
.sf-track-page-inner { max-width: 760px; }
.sf-track-back { margin-top: 20px; text-align: center; }

/* ─── Brand Story (Dark Band) ───────────────────────────────────────────── */

.sf-dark { background: var(--contrast); color: #CBD5E1; }
.sf-dark .sf-title { color: #F8FAFC; }
.sf-story-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .sf-story-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.sf-story-copy .sf-title { margin: 16px 0 18px; }
.sf-story-copy p + p { margin-top: 14px; }
.sf-story-copy p { line-height: 1.75; }
.sf-pill-dark { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #BFDBFE; }
.sf-story-points { display: grid; gap: 12px; margin-top: 28px; }
.sf-story-points li { display: flex; align-items: center; gap: 12px; color: #E2E8F0; font-size: 14.5px; }
.sf-story-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); background: rgba(255, 255, 255, .05); color: #93C5FD; flex: none; }
.sf-story-icon .ic { width: 18px; height: 18px; }
.sf-story-media { padding: 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; background: rgba(255, 255, 255, .03); }
.sf-story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #1E293B; }

/* ─── Atmosphere Bento Grid ─────────────────────────────────────────────── */

.sf-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 12px; }
.sf-bento-cols-1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 320px; }
@media (min-width: 900px) {
  .sf-bento { grid-auto-rows: 230px; gap: 16px; }
  .sf-bento-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 320px; }
  .sf-bento-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 280px; }
  .sf-bento-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sf-bento-item { position: relative; overflow: hidden; margin: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--brand-tint); }
.sf-bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sf-bento-item:hover img { transform: scale(1.04); }
.sf-bento-item.is-feature { grid-column: span 2; grid-row: span 2; }
.sf-glass-chip { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r-full); background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-strong); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Layering Guide ────────────────────────────────────────────────────── */

.sf-layer-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .sf-layer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-layer-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.sf-combo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sf-combo-name { padding: 0; border: 0; background: none; color: var(--text-strong); font-size: 20px; text-align: left; }
button.sf-combo-name { cursor: pointer; text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 5px; min-height: 32px; }
button.sf-combo-name:hover { color: var(--brand-text); text-decoration-color: var(--brand); }
.sf-combo-plus { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--brand-line); border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.sf-combo-plus .ic { width: 14px; height: 14px; }
.sf-layer-desc { color: var(--text-subtle); font-size: 14.5px; line-height: 1.65; }

/* ─── Corporate Gifting ─────────────────────────────────────────────────── */

.sf-gift-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .sf-gift-grid { grid-template-columns: 1fr 440px; gap: 56px; } }
.sf-gift-copy .sf-checklist { margin-top: 22px; }
.sf-form-2 { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .sf-form-2 { grid-template-columns: 1fr 1fr; } }
.sf-gift-form .k-banner { margin-bottom: 14px; }

/* ─── Testimonials Slider ───────────────────────────────────────────────── */

.sf-slider-ctrl { display: flex; gap: 8px; }
.sf-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; }
.sf-slider::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .sf-slider { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1024px) { .sf-slider { grid-auto-columns: calc((100% - 32px) / 3); } }
.sf-testi { display: flex; flex-direction: column; gap: 16px; padding: 24px; scroll-snap-align: start; }
.sf-testi-mark { width: 24px !important; height: 24px !important; color: var(--brand-line); }
.sf-testi blockquote { margin: 0; flex: 1; color: var(--text-strong); font-family: var(--font-display); font-size: 18px; line-height: 1.5; }
.sf-testi figcaption { display: flex; align-items: center; gap: 12px; }
.sf-testi figcaption > span:last-child { display: flex; flex-direction: column; }
.sf-testi strong { color: var(--text-strong); font-size: 14px; }
.sf-testi small { color: var(--text-subtle); font-size: 12.5px; }
.sf-testi-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); font-size: 13px; font-weight: 700; }

/* ─── Boutique Location ─────────────────────────────────────────────────── */

.sf-loc-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .sf-loc-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.sf-loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 479px) { .sf-loc-actions .k-btn { width: 100%; } }
.sf-loc-row { display: flex; align-items: flex-start; gap: 10px; color: var(--text-body); font-size: 14.5px; }
.sf-loc-row .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */

.sf-faq-grid { display: grid; gap: 8px; }
@media (min-width: 1024px) { .sf-faq-grid { grid-template-columns: 380px 1fr; gap: 56px; align-items: start; } }

/* ─── Footer ────────────────────────────────────────────────────────────── */

.sf-footer { padding: 56px 0 32px; border-top: 1px solid var(--hairline); background: var(--base); font-size: 14px; }
.sf-footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .sf-footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.sf-footer-brand p { margin-top: 12px; max-width: 320px; color: var(--text-subtle); }
.sf-footer-title { margin-bottom: 14px !important; color: var(--text-strong); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sf-footer-list li + li { margin-top: 10px; }
.sf-footer-list a { color: var(--text-soft); }
.sf-footer-list a:hover { color: var(--brand-text); }

/* Touch-friendly footer and layering links on phones */
@media (max-width: 767px) {
  .sf-footer-list li + li { margin-top: 0; }
  .sf-footer-list a, .sf-footer-admin, .sf .sf-brand { display: inline-flex; align-items: center; min-height: 44px; }
  button.sf-combo-name { min-height: 44px; }
}
.sf-footer-row { display: flex; align-items: flex-start; gap: 8px; color: var(--text-soft); }
.sf-footer-row .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--text-muted); }
.sf-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--text-subtle); font-size: 13px; }
.sf-footer-admin { color: var(--text-muted); }
.sf-footer-admin:hover { color: var(--text-strong); }

/* ─── Overlay Layers: Drawer, Sheet, Dialogs ────────────────────────────── */

/* Drawer frame */
.sf-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--hairline); }
.sf-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; }
.sf-drawer-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: var(--elevated); }
.sf-close .ic { width: 18px; height: 18px; }
@media (max-width: 767px) { .sf .sf-close { --btn-h: 48px; } }

/* Mobile menu sheet */
.sf-sheet-body { display: flex; flex-direction: column; padding: 8px 12px 24px; overflow-y: auto; }
.sf-sheet-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--hairline); color: var(--text-strong); font-size: 16px; font-weight: 600; }
.sf-sheet-link .ic { width: 18px; height: 18px; color: var(--text-muted); }
.sf-sheet-actions { display: grid; gap: 10px; margin-top: 20px; }

/* Free shipping meter */
.sf-ship { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--brand-line); border-radius: var(--r-md); background: var(--brand-tint); }
.sf-ship .k-meter-row { color: var(--brand-strong); }
.sf-ship .k-meter { background: var(--base); }
.sf-ship.is-reached { border-color: var(--success-line); background: var(--success-tint); }
.sf-ship.is-reached .k-meter-row { color: var(--success-text); }
.sf-ship.is-reached .k-meter > span { background: var(--success); }

/* Cart lines */
.sf-cart-lines { display: grid; gap: 10px; margin-bottom: 16px; }
.sf-line { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--base); }
.sf-line img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--r-md); background: var(--brand-tint); }
.sf-line-set-icon { display: grid; place-items: center; width: 56px; height: 70px; border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand); }
.sf-line-set-icon .ic { width: 24px; height: 24px; }
.sf-line-top { display: flex; justify-content: space-between; gap: 8px; }
.sf-line-name { color: var(--text-strong); font-weight: 700; font-size: 14.5px; }
.sf-line-variant { color: var(--text-subtle); font-size: 12.5px; }
.sf-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sf-line-price { color: var(--text-strong); font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; }
.sf-line-remove { --btn-h: 32px; color: var(--text-muted); }
.sf-line-remove:hover { color: var(--danger) !important; }

/* Quantity stepper */
.sf-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.sf-qty button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: var(--base); color: var(--text); cursor: pointer; }
.sf-qty button:hover:not(:disabled) { background: var(--tint); }
.sf-qty button:disabled { opacity: .4; cursor: not-allowed; }
.sf-qty button .ic { width: 14px; height: 14px; }
.sf-qty output { min-width: 32px; text-align: center; font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; }
@media (max-width: 767px) { .sf-qty button { width: 44px; height: 44px; } .sf-line-remove { --btn-h: 44px !important; } }

/* Add-ons & checkout */
.sf-addons { margin-bottom: 20px; }
.sf-switch-row { align-items: flex-start; }
.sf-switch-row input { margin-top: 2px; }
.sf-checkout-title { margin-bottom: 14px !important; font-size: 15px; font-weight: 700; }
.sf-seg { display: flex; width: 100%; }
.sf-seg .k-tab { flex: 1; }
.sf-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sf-checkout .k-banner { margin-top: 4px; }

/* Totals */
.sf-totals { display: grid; gap: 6px; margin: 0 0 12px; font-size: 14px; }
.sf-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.sf-totals dt { color: var(--text-subtle); }
.sf-totals dd { margin: 0; color: var(--text-strong); }
.sf-totals-grand { padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.sf-totals-grand dt { color: var(--text-strong); font-weight: 700; }
.sf-totals-grand dd { font-size: 17px; font-weight: 600; }
.sf-foot-note { margin-top: 8px !important; color: var(--text-subtle); font-size: 12px; text-align: center; }

/* Product dialog */
.sf-pd { display: grid; gap: 20px; }
@media (min-width: 640px) { .sf-pd { grid-template-columns: 240px 1fr; } }
.sf-pd-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--brand-tint); }
.sf-pd-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sf-pd-name { font-size: 28px; }
.sf-pd-tiers { display: grid; gap: 10px; }
.sf-pd-tier { padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--elevated); }
.sf-pd-tier-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--text-strong); font-size: 13px; font-weight: 700; }
.sf-pd-tier-head .mono { color: var(--text-subtle); font-weight: 500; font-size: 12px; }

/* Invoice */
.sf-inv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sf-inv-grid { display: grid; gap: 20px; margin-top: 18px; }
@media (min-width: 640px) { .sf-inv-grid { grid-template-columns: 1fr 200px; } }
.sf-inv-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--base); text-align: center; color: var(--text-subtle); font-size: 12.5px; }
.sf-inv-qr svg { width: 168px; height: 168px; }
.sf-inv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sf-inv-note { margin-top: 14px; }

/* ─── Sticky Mobile Cart Bar ────────────────────────────────────────────── */

.sticky-cta-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.sticky-cta-bar.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.sticky-cta-info { display: flex; flex-direction: column; line-height: 1.3; }
.sticky-cta-count { color: var(--text-subtle); font-size: 12px; }
.sticky-cta-info strong { color: var(--text-strong); font-size: 15px; }
@media (min-width: 768px) { .sticky-cta-bar { display: none; } }
@media (max-width: 767px) { .sf.has-sticky .sf-footer { padding-bottom: 104px; } }

/* ─── Error Page ────────────────────────────────────────────────────────── */

.sf-error { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: radial-gradient(50% 50% at 50% 30%, rgba(37, 99, 235, .1), transparent 70%), var(--canvas); }
.sf-error-card { width: 100%; max-width: 480px; text-align: center; }
.sf-error-card .sf-brand { justify-content: center; }
.sf-error-code { margin-top: 28px !important; color: var(--brand); font-size: 14px; font-weight: 500; letter-spacing: .2em; }
.sf-error-card h1 { margin-top: 8px; font-size: 30px; }
.sf-error-card p:not(.sf-error-code) { margin-top: 10px; color: var(--text-subtle); }
.sf-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ─── Toast Notifications ───────────────────────────────────────────────── */
/* Informational toasts never block clicks on the checkout button underneath */
#toast-stack .k-toast { pointer-events: none; }
