/* Public storefront (Views/Store, StoreAccount, StoreOrder, StoreJobCard) - one layout,
   _StoreLayout.cshtml. Every colour derives from the shop's brand colour (--brand, set inline by
   the layout), so each tenant's storefront carries its own palette. */

:root {
    --brand: #16803f;
    --accent-100: color-mix(in srgb, var(--brand) 10%, white);
    --accent-200: color-mix(in srgb, var(--brand) 22%, white);
    --accent-300: color-mix(in srgb, var(--brand) 40%, white);
    --accent-400: color-mix(in srgb, var(--brand) 65%, white);
    --accent-500: color-mix(in srgb, var(--brand) 85%, white);
    --accent-600: var(--brand);
    --accent-700: color-mix(in srgb, var(--brand) 82%, black);
    --accent-800: color-mix(in srgb, var(--brand) 64%, black);
    --accent-900: color-mix(in srgb, var(--brand) 48%, black);
    --on-accent: #fff;

    --bg: color-mix(in srgb, var(--brand) 4%, #fafbfa);
    --surface: #fff;
    --text: #15201a;
    --n-100: #f4f6f5;
    --n-200: #e4e9e6;
    --n-300: #cfd7d2;
    --n-400: #a7b2ab;
    --n-500: #7f8b84;
    --n-600: #5e6a63;
    --n-700: #45504a;
    --n-800: #2f3833;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 0 0 1px var(--n-200);
    --shadow-md: 0 0 0 1px var(--n-200), 0 8px 24px rgba(20, 40, 30, .08);
    --shadow-lg: 0 0 0 1px var(--n-300), 0 18px 44px rgba(20, 40, 30, .14);
    --gutter: clamp(16px, 4vw, 48px);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
}

body[data-round="sharp"] { --radius-sm: 2px; --radius-md: 4px; --radius-lg: 6px; }
body[data-round="soft"] { --radius-sm: 10px; --radius-md: 14px; --radius-lg: 22px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body.sf {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
}

.sf a { color: var(--accent-600); text-decoration: none; }
.sf a:hover { color: var(--accent-800); }
.sf img { max-width: 100%; display: block; }
.sf h1, .sf h2, .sf h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sf-page { min-height: 100vh; display: flex; flex-direction: column; }
.sf-main { flex: 1; width: 100%; }
.sf-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- controls ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--radius-md);
    border: 1px solid transparent; background: transparent; color: var(--text);
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
    white-space: nowrap; flex-shrink: 0; cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s, border-color .15s;
    text-decoration: none;
}
.sf a.btn { color: inherit; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-accent, .sf a.btn-accent { background: var(--accent-600); color: var(--on-accent); }
.btn-accent:hover:not(:disabled), .sf a.btn-accent:hover { background: var(--accent-700); color: var(--on-accent); }
.btn-outline, .sf a.btn-outline { background: var(--surface); color: var(--text); border-color: var(--n-300); }
.btn-outline:hover, .sf a.btn-outline:hover { border-color: var(--accent-400); color: var(--accent-700); }
.btn-soft, .sf a.btn-soft { background: var(--accent-100); color: var(--accent-800); }
.btn-soft:hover, .sf a.btn-soft:hover { background: var(--accent-200); color: var(--accent-900); }
.btn-ghost, .sf a.btn-ghost { color: var(--n-700); }
.btn-ghost:hover, .sf a.btn-ghost:hover { background: var(--accent-100); color: var(--accent-700); }
.btn-icon { padding: 8px; width: 40px; height: 40px; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn i { font-size: 1.15em; }

.input, .sf select.input, .sf textarea.input {
    width: 100%; min-height: 42px; padding: 9px 12px;
    border: 1px solid var(--n-300); border-radius: var(--radius-md);
    background: var(--surface); color: var(--text); font: inherit; font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--n-500); }
.input:focus { outline: 0; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-200); }
.input.input-validation-error { border-color: #c2412d; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 13px; font-weight: 500; color: var(--n-700); }
.field-error, .field-validation-error { font-size: 12px; color: #b3321f; }
.field-hint { font-size: 12px; color: var(--n-600); }

.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
    border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
}
.tag-accent { background: var(--accent-600); color: var(--on-accent); font-weight: 600; }
.tag-soft { background: var(--accent-100); color: var(--accent-800); font-weight: 600; }
.tag-plain { background: var(--n-100); color: var(--n-800); box-shadow: var(--shadow-sm); }
.tag-muted { background: var(--n-200); color: var(--n-700); }

.seg { display: flex; padding: 3px; gap: 3px; border-radius: var(--radius-md); background: var(--n-100); box-shadow: var(--shadow-sm); }
.seg-opt {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; border: 0; border-radius: calc(var(--radius-md) - 3px);
    background: transparent; color: var(--n-700); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.sf a.seg-opt { color: var(--n-700); }
.seg-opt.is-active, .sf a.seg-opt.is-active { background: var(--accent-600); color: var(--on-accent); }

.check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--n-700); }
.check-row input { accent-color: var(--accent-600); margin-top: 3px; }

.alert { padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.alert i { font-size: 17px; margin-top: 1px; }
.alert-error { background: #fdecea; color: #8a2414; }
.alert-ok { background: var(--accent-100); color: var(--accent-900); }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

.kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); }
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-lg { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); }

/* ---------- header ---------- */

.sf-promo { background: var(--accent-800); color: var(--accent-100); text-align: center; font-size: 13px; padding: 7px var(--gutter); }

.sf-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--n-200);
}
.sf-header-row { max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 20px; }
.sf-logo { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.sf a.sf-logo { color: var(--text); }
.sf-logo-mark { width: 36px; height: 36px; flex: none; border-radius: var(--radius-md); background: var(--accent-600); color: var(--on-accent); display: grid; place-items: center; font-size: 20px; }
.sf-logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sf-logo-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-logo-sub { font-size: 11px; color: var(--n-600); white-space: nowrap; }
.sf-nav { display: none; gap: 2px; }
.sf-nav a { padding: 8px 12px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--n-700); }
.sf-nav a:hover { background: var(--accent-100); color: var(--accent-700); }
.sf-nav a.is-active { background: var(--accent-100); color: var(--accent-700); }
.sf-search { position: relative; flex: 1; max-width: 340px; margin-left: auto; display: none; }
.sf-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--n-500); pointer-events: none; }
.sf-search .input { padding-left: 36px; background: var(--n-100); border-color: transparent; }
.sf-search .input:focus { background: var(--surface); }
.sf-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.sf-search + .sf-actions { margin-left: 0; }
.sf-cart-btn { position: relative; color: var(--text); }
.sf-badge {
    position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--accent-600); color: var(--on-accent);
    font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.sf-badge[hidden] { display: none; }
.sf-desktop-only { display: none !important; }
.sf-mobile-search { padding: 0 16px 10px; position: relative; }
.sf-mobile-search i { position: absolute; left: 28px; top: calc(50% - 5px); transform: translateY(-50%); color: var(--n-500); }
.sf-mobile-search .input { padding-left: 36px; background: var(--n-100); border-color: transparent; }

@media (min-width: 900px) {
    .sf-nav, .sf-search { display: flex; }
    .sf-desktop-only { display: inline-flex !important; }
    .sf-mobile-only, .sf-mobile-search { display: none !important; }
}

/* ---------- home ---------- */

.sf-hero { background: linear-gradient(180deg, var(--accent-100), var(--bg)); }
.sf-hero-row { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 6vw, 80px) var(--gutter); display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: center; }
.sf-hero-copy { flex: 1 1 420px; min-width: 0; }
.sf-hero-kicker { background: var(--surface); color: var(--accent-700); box-shadow: var(--shadow-sm); padding: 5px 12px; }
.sf-hero h1 { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -0.025em; margin-top: 16px; }
.sf-hero h1 span { color: var(--accent-600); }
.sf-hero-sub { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.65; color: var(--n-700); max-width: 50ch; margin: 16px 0 0; }
.sf-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sf-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: 13px; color: var(--n-700); }
.sf-hero-meta span { display: flex; gap: 6px; align-items: center; }
.sf-hero-meta i { color: var(--accent-600); }
.sf-feature { flex: 1 1 300px; max-width: 420px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sf-feature-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--n-600); }
.sf-feature-img { aspect-ratio: 4/3; border-radius: var(--radius-md); background: radial-gradient(circle at 50% 45%, var(--accent-200), var(--accent-100) 70%); display: grid; place-items: center; color: var(--accent-700); overflow: hidden; }
.sf-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-feature-img i { font-size: 96px; }
.sf-feature-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sf-feature-name { font-size: 16px; font-weight: 600; color: var(--text); }
.sf-feature-price { font-size: 22px; font-weight: 600; color: var(--accent-700); margin-top: 4px; }
.sf-book h2 { font-size: 18px; }
.sf-book form { display: flex; flex-direction: column; gap: 12px; }
.sf-book p { margin: 0; font-size: 13px; color: var(--n-600); }

.sf-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: -4px; }
.sf-perk { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sf-perk-icon { width: 40px; height: 40px; flex: none; border-radius: var(--radius-md); background: var(--accent-100); display: grid; place-items: center; color: var(--accent-700); font-size: 20px; }
.sf-perk-t { font-size: 14px; font-weight: 600; }
.sf-perk-d { font-size: 13px; color: var(--n-600); }

.sf-section { padding-top: clamp(32px, 5vw, 56px); }
.sf-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sf-section-head h2, .sf-section-head h1 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.015em; margin-top: 6px; }
.sf-section-note { color: var(--n-600); font-size: 14px; margin: 6px 0 0; }

.sf-chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chip {
    flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px;
    border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap;
    background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text);
}
.sf a.sf-chip { color: var(--text); }
.sf-chip:hover { box-shadow: 0 0 0 1px var(--accent-400); }
.sf-chip.is-active, .sf a.sf-chip.is-active { background: var(--accent-600); color: var(--on-accent); box-shadow: none; }
.sf-chip-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--n-100); display: grid; place-items: center; font-size: 15px; }
.sf-chip.is-active .sf-chip-img { background: color-mix(in srgb, var(--on-accent) 20%, transparent); }
.sf-chip-count { font-size: 12px; opacity: .7; }

.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 12px; padding-top: 14px; }
.sf-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 8px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.sf-card:hover { box-shadow: var(--shadow-md); }
.sf-card-img { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--n-100); display: grid; place-items: center; color: var(--accent-700); overflow: hidden; }
.sf-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-card-img i { font-size: clamp(40px, 6vw, 60px); }
.sf-card-img .tag { position: absolute; top: 8px; left: 8px; }
.sf-card-body { padding: 0 4px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sf-card-cat { font-size: 12px; color: var(--n-600); }
.sf-card-name { font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf a .sf-card-name { color: var(--text); }
.sf-card-price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-top: auto; padding-top: 4px; font-size: 16px; font-weight: 600; color: var(--accent-700); }
.sf-card-price small { font-size: 12px; font-weight: 500; color: var(--n-600); }
.sf-card .btn { border-color: var(--accent-600); color: var(--accent-700); }
.sf-card .btn:hover:not(:disabled) { background: var(--accent-700); color: var(--on-accent); }
.sf-card .btn.is-added { background: var(--accent-600); color: var(--on-accent); }
.sf-card .btn:disabled { border-color: var(--n-300); color: var(--n-600); }
.sf-empty { padding: 40px 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
.sf-empty > i { font-size: 36px; color: var(--accent-600); }
.sf-empty-t { font-size: 18px; font-weight: 600; }

.sf-pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 24px; font-size: 14px; color: var(--n-600); }

.sf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 16px; }
.sf-step { padding: 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sf-step-n { font-size: 12px; font-weight: 600; color: var(--accent-600); letter-spacing: .06em; }
.sf-step-t { font-size: 15px; font-weight: 600; margin-top: 4px; }
.sf-step-d { font-size: 13px; color: var(--n-600); margin-top: 2px; }

.sf-band { margin-top: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--accent-800); color: var(--accent-100); }
.sf-band h3 { font-size: clamp(20px, 2.4vw, 24px); }
.sf-band p { font-size: 15px; line-height: 1.6; color: var(--accent-200); margin: 8px 0 0; max-width: 56ch; }
.sf-band .btn, .sf a.sf-band-btn { background: var(--accent-100); color: var(--accent-800); }
.sf-band .btn:hover, .sf a.sf-band-btn:hover { background: var(--accent-200); color: var(--accent-900); }

/* ---------- product page ---------- */

.sf-crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--n-600); padding-top: clamp(20px, 3vw, 32px); }
.sf-product { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); align-items: flex-start; padding-top: 16px; }
.sf-product-img { flex: 1 1 360px; max-width: 560px; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--accent-700); overflow: hidden; }
.sf-product-img img { width: 100%; height: 100%; object-fit: contain; }
.sf-product-img i { font-size: 120px; }
.sf-product-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sf-product-info h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; }
.sf-product-price { font-size: 28px; font-weight: 600; color: var(--accent-700); }
.sf-product-stock { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.sf-product-stock.is-in { color: var(--accent-700); }
.sf-product-stock.is-out { color: #a8321f; }
.sf-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-option { padding: 8px 14px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); font: inherit; font-size: 14px; cursor: pointer; border: 0; color: var(--text); }
.sf-option.is-active { box-shadow: 0 0 0 2px var(--accent-600); background: var(--accent-100); }
.sf-option:disabled { color: var(--n-500); text-decoration: line-through; cursor: not-allowed; }
.sf-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.sf-qty { display: inline-flex; align-items: center; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); background: var(--surface); }
.sf-qty button { all: unset; cursor: pointer; width: 34px; height: 36px; display: grid; place-items: center; color: var(--text); }
.sf-qty button:hover { color: var(--accent-600); }
.sf-qty span, .sf-qty input { min-width: 26px; width: 36px; text-align: center; font-size: 14px; font-weight: 600; border: 0; background: transparent; font: inherit; font-variant-numeric: tabular-nums; }
.sf-qty-sm button { width: 28px; height: 28px; font-size: 13px; }

/* ---------- auth ---------- */

.sf-auth { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 6vw, 80px) 0; }
.sf-auth-copy { flex: 1 1 340px; }
.sf-auth-copy h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin-top: 10px; }
.sf-auth-copy p { font-size: 16px; line-height: 1.65; color: var(--n-700); max-width: 44ch; margin: 14px 0 0; }
.sf-auth-form { flex: 1 1 340px; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.sf-auth-form.is-wide { max-width: 540px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.sf-auth-form .span-all { grid-column: 1 / -1; }
.sf-auth-note { font-size: 14px; color: var(--n-600); margin: 0; text-align: center; }
.sf-auth-note a { font-weight: 600; }
.sf-reg-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.sf-reg-perk { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--n-700); }
.sf-reg-perk span { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent-100); display: grid; place-items: center; color: var(--accent-700); }
.sf-pw { position: relative; }
.sf-pw .input { padding-right: 42px; }
.sf-pw button { all: unset; cursor: pointer; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--n-600); font-size: 18px; display: grid; }

/* ---------- track ---------- */

.sf-track { padding-top: clamp(28px, 6vw, 72px); max-width: 820px; }
.sf-track h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin-top: 10px; }
.sf-track-lead { font-size: 16px; line-height: 1.65; color: var(--n-700); margin: 12px 0 0; max-width: 56ch; }
.sf-track .seg { display: inline-flex; margin-top: 20px; background: var(--surface); }
.sf-track-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 12px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.sf-track-form .input { min-height: 44px; }
.sf-track-form .btn { min-height: 44px; padding: 0 22px; flex: 1 0 auto; }
.sf-result { margin-top: 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.sf-result-head { padding: 20px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start; background: var(--accent-100); }
.sf-result-who { display: flex; gap: 14px; align-items: center; }
.sf-result-icon { width: 48px; height: 48px; flex: none; border-radius: var(--radius-md); background: var(--surface); display: grid; place-items: center; color: var(--accent-700); box-shadow: var(--shadow-sm); font-size: 24px; }
.sf-result-id { font-size: 12px; color: var(--n-600); }
.sf-result-title { font-size: 18px; font-weight: 600; margin-top: 2px; }
.sf-result-detail { font-size: 14px; color: var(--n-700); margin-top: 2px; }
.sf-progress { padding: 16px 20px 0; }
.sf-progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--n-600); }
.sf-progress-bar { height: 6px; border-radius: 3px; background: var(--n-200); margin-top: 6px; overflow: hidden; }
.sf-progress-bar div { height: 100%; background: var(--accent-500); border-radius: 3px; }
.sf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; padding: 16px 20px; }
.sf-fact { padding: 10px 12px; border-radius: var(--radius-md); background: var(--n-100); }
.sf-fact-k { font-size: 12px; color: var(--n-600); }
.sf-fact-v { font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sf-timeline { list-style: none; margin: 0; padding: 8px 20px 12px; display: flex; flex-direction: column; }
.sf-timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.sf-tl-rail { display: flex; flex-direction: column; align-items: center; }
.sf-tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--n-300); background: var(--surface); color: var(--on-accent); font-size: 12px; }
.sf-tl-line { width: 2px; flex: 1; min-height: 18px; background: var(--n-200); }
.sf-timeline li.is-done .sf-tl-dot { border-color: var(--accent-600); background: var(--accent-600); }
.sf-timeline li.is-done .sf-tl-line { background: var(--accent-600); }
.sf-timeline li.is-current .sf-tl-dot { border-color: var(--accent-600); box-shadow: 0 0 0 4px var(--accent-200); }
.sf-timeline li:last-child .sf-tl-line { background: transparent; }
.sf-tl-body { padding-bottom: 16px; }
.sf-tl-t { font-size: 15px; font-weight: 600; color: var(--n-500); }
.sf-timeline li.is-done .sf-tl-t, .sf-timeline li.is-current .sf-tl-t { color: var(--text); }
.sf-tl-d { font-size: 13px; color: var(--n-600); margin-top: 2px; }
.sf-result-foot { padding: 14px 20px; border-top: 1px solid var(--n-200); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--n-700); }

/* ---------- checkout ---------- */

.sf-checkout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 20px; }
.sf-checkout-main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sf-panel { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(16px, 2.4vw, 24px); }
.sf-panel-title { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; }
.sf-panel-title span { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-600); color: var(--on-accent); display: grid; place-items: center; font-size: 12px; }
.sf-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: 16px; }
.sf-form-grid .span-all { grid-column: 1 / -1; }
.sf-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-top: 8px; }
.sf-choice {
    all: unset; cursor: pointer; box-sizing: border-box; padding: 12px 14px; border-radius: var(--radius-md);
    background: var(--surface); box-shadow: var(--shadow-sm); display: flex; justify-content: space-between; gap: 8px; font-size: 14px;
}
.sf-choice.is-active { background: var(--accent-100); box-shadow: 0 0 0 2px var(--accent-600); }
.sf-choice:focus-visible { box-shadow: 0 0 0 3px var(--accent-300); }
.sf-choice b { display: block; font-weight: 600; }
.sf-choice small { font-size: 12px; color: var(--n-600); }
.sf-pay-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sf-pay { align-items: center; gap: 12px; justify-content: flex-start; padding: 14px; }
.sf-pay-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--n-400); display: grid; place-items: center; flex: none; }
.sf-pay-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.sf-pay.is-active .sf-pay-radio { border-color: var(--accent-600); }
.sf-pay.is-active .sf-pay-radio::after { background: var(--accent-600); }
.sf-pay-icon { width: 36px; height: 36px; flex: none; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 20px; color: var(--accent-700); }
.sf-pay-text { flex: 1; min-width: 0; }
.sf-pay-text b { font-size: 15px; }
.sf-pay-text small { font-size: 13px; }
.sf-pay-extra { margin-top: 14px; padding: 16px; border-radius: var(--radius-md); background: var(--n-100); display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.6; color: var(--n-700); }
.sf-pay-extra strong { color: var(--text); }
.sf-pay-extra .input { background: var(--surface); }
.sf-pay-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--accent-100); display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--accent-900); }
.sf-summary { flex: 1 1 320px; min-width: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(16px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .sf-summary { position: sticky; top: 84px; } }
.sf-summary-title { font-size: 16px; font-weight: 600; }
.sf-summary-title span { color: var(--n-600); font-weight: 400; }
.sf-line { display: flex; gap: 12px; align-items: center; }
.sf-line-img { width: 52px; height: 52px; flex: none; border-radius: var(--radius-md); background: var(--n-100); display: grid; place-items: center; color: var(--accent-700); font-size: 24px; overflow: hidden; }
.sf-line-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-line-body { flex: 1; min-width: 0; }
.sf-line-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.sf-line-warn { font-size: 12px; color: #a8321f; margin-top: 2px; }
.sf-line-body .sf-qty { margin-top: 6px; }
.sf-line-total { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sf-totals { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--n-300); font-size: 14px; font-variant-numeric: tabular-nums; }
.sf-totals > div { display: flex; justify-content: space-between; color: var(--n-700); }
.sf-totals .sf-grand { font-size: 18px; font-weight: 600; padding-top: 6px; color: var(--text); }
.sf-totals .sf-grand span:last-child { color: var(--accent-700); }
.sf-free-hint { font-size: 12px; color: var(--accent-800); background: var(--accent-100); border-radius: var(--radius-sm); padding: 6px 10px; }
.sf-secure { display: flex; gap: 6px; justify-content: center; align-items: center; font-size: 12px; color: var(--n-600); }

.sf-success { padding: clamp(40px, 7vw, 96px) 0 0; max-width: 620px; }
.sf-success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-600); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--accent-100); font-size: 30px; }
.sf-success h1 { font-size: clamp(28px, 4.2vw, 42px); margin-top: 24px; }
.sf-success p { font-size: 16px; line-height: 1.65; color: var(--n-700); margin: 10px 0 0; }

/* ---------- account ---------- */

.sf-account { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding-top: clamp(24px, 4vw, 48px); }
.sf-account-side { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.sf-account-main { flex: 2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sf-order-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sf-order-row .sf-result-id { font-size: 13px; font-weight: 600; color: var(--text); }

/* ---------- footer ---------- */

.sf-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--surface); border-top: 1px solid var(--n-200); }
.sf-footer-grid { max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.sf-footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sf-footer-col b { font-size: 14px; }
.sf-footer-name { font-weight: 600; font-size: 16px; }
.sf-footer-line { font-size: 13px; line-height: 1.6; color: var(--n-600); }
.sf-footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter); border-top: 1px solid var(--n-200); font-size: 12px; color: var(--n-600); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.sf-footer-bottom a { font-weight: 600; }

/* ---------- floating: chat, back to top, bottom nav ---------- */

.sf-fab { position: fixed; right: clamp(14px, 3vw, 28px); bottom: 24px; z-index: 29; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sf-fab-btn { all: unset; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-600); color: var(--on-accent); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 35%, transparent); display: grid; place-items: center; font-size: 24px; }
.sf-fab-btn:hover { background: var(--accent-700); }
.sf-top-btn { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--accent-700); font-size: 18px; }
.sf-top-btn[hidden] { display: none; }
.sf-chat { width: min(300px, calc(100vw - 28px)); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.sf-chat[hidden] { display: none; }
.sf-chat-head { padding: 14px 16px; background: var(--accent-800); color: var(--accent-100); display: flex; gap: 10px; align-items: center; }
.sf-chat-head > span { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-600); display: grid; place-items: center; font-size: 18px; }
.sf-chat-head b { display: block; font-size: 14px; }
.sf-chat-head small { font-size: 12px; color: var(--accent-200); }
.sf-chat-head button { all: unset; cursor: pointer; margin-left: auto; font-size: 18px; }
.sf-chat-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sf-chat-hi { font-size: 13px; line-height: 1.5; color: var(--n-700); background: var(--n-100); padding: 10px 12px; border-radius: var(--radius-md); }
.sf a.sf-chat-link { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--text); font-size: 14px; font-weight: 500; }
.sf a.sf-chat-link:hover { background: var(--accent-100); }
.sf-chat-link i { font-size: 20px; color: var(--accent-600); }

.sf-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--n-200); box-shadow: 0 -6px 20px rgba(20, 40, 30, .06); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.sf a.sf-bn { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--n-600); }
.sf-bn-icon { position: relative; width: 48px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; }
.sf a.sf-bn.is-active { color: var(--accent-700); }
.sf-bn.is-active .sf-bn-icon { background: var(--accent-100); }
.sf-bn .sf-badge { top: -3px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; }

@media (max-width: 899px) {
    body.sf { padding-bottom: 72px; }
    .sf-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
    .sf-bottom-nav { display: none; }
}

@media (max-width: 899px) {
    .sf-feature { max-width: none; }
}

/* Product page: checkout link + wishlist heart */
.sf-product-links { display: flex; gap: 8px; align-items: stretch; }
.sf-product-links form { display: contents; }
.sf-wish-btn { flex: none; }
.sf-wish-btn.is-saved i { color: #d23b3b; }
