/*
 * storefront.css — Taiki Marketplace Storefront
 * Philosophy: controlled density, discovery-first, Central Asia market
 * Brand: #675eaa (purple) — energetic, not minimal.
 * Stack: Bootstrap 5 + Bootstrap Icons. No external deps.
 */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    --sf-brand:          #675eaa;
    --sf-brand-dark:     #5a5294;
    --sf-brand-light:    #f0eef9;
    --sf-brand-xlight:   #faf9ff;

    /* Accent palette */
    --sf-red:            #ef4444;
    --sf-red-bg:         #fef2f2;
    --sf-orange:         #f97316;
    --sf-orange-bg:      #fff7ed;
    --sf-amber:          #f59e0b;
    --sf-green:          #10b981;
    --sf-green-bg:       #ecfdf5;
    --sf-blue:           #3b82f6;
    --sf-blue-bg:        #eff6ff;
    --sf-pink:           #ec4899;
    --sf-pink-bg:        #fdf2f8;
    --sf-violet:         #8b5cf6;
    --sf-violet-bg:      #f5f3ff;
    --sf-teal:           #0d9488;

    /* Surface */
    --sf-bg:             #f5f4fb;
    --sf-surface:        #ffffff;
    --sf-border:         #e8e5f0;
    --sf-border-light:   #f0eef9;

    /* Text */
    --sf-text:           #111827;
    --sf-text-muted:     #6b7280;
    --sf-text-light:     #9ca3af;

    /* Layout */
    --sf-header-h:       60px;
    --sf-radius:         0.5rem;
    --sf-radius-lg:      0.75rem;
    --sf-section-py:     0.97rem;
    --sf-card-shadow:    0 1px 4px rgba(0,0,0,0.08);
    --sf-card-shadow-h:  0 4px 16px rgba(103,94,170,0.15); /* overridden per skin */
}

/* ── Base ────────────────────────────────────────────────────── */
body.storefront {
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ── Sticky header wrapper (topbar + main header) ────────────── */
.sf-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* ── Topbar ──────────────────────────────────────────────────── */
.sf-topbar {
    background: var(--sf-brand-dark);
    border-bottom: 1px solid rgba(255,255,255,0.45);
    height: 32px;
    display: flex;
    align-items: center;
}

.sf-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    gap: 0.5rem;
}

.sf-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sf-topbar-welcome {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    white-space: nowrap;
}

.sf-topbar-locale {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
}

.sf-topbar-locale a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.12s;
}

.sf-topbar-locale a.active,
.sf-topbar-locale a:hover { color: #fff; }

.sf-topbar-locale span { color: rgba(255,255,255,0.25); }

.sf-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.sf-topbar-social {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.12s;
    line-height: 1;
    display: flex;
    align-items: center;
}

.sf-topbar-social:hover { color: #fff; }

.sf-topbar-sep {
    color: rgba(255,255,255,0.25);
    font-size: 0.72rem;
    user-select: none;
}

.sf-topbar-link {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.12s;
    white-space: nowrap;
    line-height: 1;
}

.sf-topbar-link:hover { color: #fff; text-decoration: underline; }

.sf-topbar-link--btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.sf-topbar-link--btn:hover { color: #fff; text-decoration: underline; }

/* ── Main header ─────────────────────────────────────────────── */
.sf-header {
    background: var(--sf-brand);
    height: var(--sf-header-h);
}

.sf-header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    padding: 0 1rem;
}

/* Logo */
.sf-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sf-logo img {
    height: 28px;
    width: auto;
    display: block;
}

/* Search form */
.sf-search-form {
    flex: 1;
    min-width: 0;
    max-width: 640px;
}

.sf-search-wrap {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    transition: border-color 0.15s;
    height: 40px;
}

.sf-search-wrap:focus-within {
    border-color: rgba(255,255,255,0.8);
}

.sf-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--sf-text);
    min-width: 0;
}

.sf-search-input::placeholder { color: var(--sf-text-light); }

.sf-search-camera,
.sf-search-btn {
    border: none;
    background: transparent;
    color: var(--sf-text-muted);
    padding: 0 0.7rem;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.12s;
}

.sf-search-camera:hover { color: var(--sf-brand); }

.sf-search-btn {
    background: #e8e8f0;
    color: var(--sf-brand);
    padding: 0 1.1rem;
    font-size: 1rem;
    border-radius: 0 10px 10px 0;
    align-self: stretch;
    border-left: 1px solid rgba(0,0,0,0.09);
    font-weight: 600;
}

.sf-search-btn:hover { background: #dcdcee; color: var(--sf-brand-dark); }

/* Header right actions */
.sf-header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.sf-locale-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.sf-locale-switch a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.12s;
}

.sf-locale-switch a.active,
.sf-locale-switch a:hover { color: #fff; }

.sf-locale-switch span { color: rgba(255,255,255,0.3); }

.sf-cart-btn {
    position: relative;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.3rem;
}

.sf-cart-btn:hover { color: #fff; }

.sf-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--sf-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ── Hero flash-deal panel (right side of hero promo) ───────── */
.sf-hero-deals {
    background: var(--sf-surface);
    border-radius: var(--sf-radius-lg);
    padding: 0.65rem 0.7rem 0.7rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sf-card-shadow);
}

.sf-hero-deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--sf-border-light);
}

.sf-hero-deals-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--sf-text);
}

.sf-hero-deals-label i { color: var(--sf-red); margin-right: 0.2rem; }

.sf-hero-deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    flex: 1;
    align-content: start;
}

.sf-hero-deal-card {
    background: var(--sf-brand-xlight);
    border-radius: var(--sf-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--sf-text);
    transition: transform 0.12s, box-shadow 0.12s;
    display: flex;
    flex-direction: column;
}

.sf-hero-deal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sf-card-shadow-h);
    color: var(--sf-text);
}

.sf-hero-deal-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.sf-hero-deal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* .sf-hero-deal-countdown removed — replaced by .sf-deal-timer-pill */

.sf-hero-deal-img-wrap .sf-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.28rem;
    top: 0.3rem;
    left: 0.3rem;
}

.sf-hero-deal-info {
    padding: 0.28rem 0.35rem 0.35rem;
}

.sf-hero-deal-info .sf-price {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--sf-red);
    line-height: 1.1;
}

.sf-hero-deal-info .sf-price-orig {
    font-size: 0.6rem;
    color: var(--sf-text-light);
    text-decoration: line-through;
    line-height: 1.2;
}

/* ── Header action buttons (login / wishlist) ────────────────── */
.sf-action-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.4rem;
    border-radius: 0.4rem;
    transition: color 0.12s, background 0.12s;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.sf-action-btn i {
    font-size: 1.15rem;
    line-height: 1;
}

.sf-action-btn-label {
    font-size: 0.75rem;
}

.sf-action-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

/* ── Download App modal ──────────────────────────────────────── */
.sf-download-modal {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.sf-download-modal-header {
    background: var(--sf-brand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
}

.sf-download-modal-body {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.sf-download-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--sf-text);
    margin-bottom: 1.25rem;
}

.sf-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sf-qr-img {
    width: 160px;
    height: 160px;
    border-radius: 0.75rem;
    border: 3px solid var(--sf-border);
    display: block;
}

.sf-store-btns {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
}

.sf-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--sf-text);
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.15s;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.sf-store-btn i { font-size: 1.05rem; line-height: 1; }

.sf-store-btn:hover { background: #2d2d2d; color: #fff; }

.sf-store-btn--google { background: var(--sf-brand); }
.sf-store-btn--google:hover { background: var(--sf-brand-dark); }

/* ── Download modal QR separator ─────────────────────────────── */
.sf-qr-sep {
    height: 1px;
    background: var(--sf-border);
    margin: 0 1.5rem 1.25rem;
}

/* ── Promo tag icon badge (top-right of promoted goods cards) ─── */
.sf-promo-icon-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 22px;
    height: 22px;
    background: var(--sf-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.58rem;
    box-shadow: 0 2px 6px rgba(103,94,170,0.4);
    z-index: 2;
}

/* ── Hero inner layout (left panel: text + 2×2 flash cards) ──── */
.sf-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    height: 100%;
}

.sf-hero-text {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

/* Countdown + button sits just below the headline, small clean gap */
.sf-hero-text > div + div {
    margin-top: 0.65rem;
}

.sf-hero-flash-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    align-content: center;
    min-width: 0;
}

.sf-hero-inner-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--sf-radius);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: background 0.15s, transform 0.15s;
}

.sf-hero-inner-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.sf-hero-inner-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.sf-hero-inner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    transition: opacity 0.15s, transform 0.2s;
}

.sf-hero-inner-card:hover .sf-hero-inner-img {
    opacity: 1;
    transform: scale(1.04);
}

.sf-hero-inner-price {
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    padding: 0.25rem 0.4rem 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.sf-hero-inner-orig {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
    font-weight: 500;
}

/* ── Elegant frosted-glass timer pill (both hero panels) ──────── */
.sf-deal-timer-pill {
    position: absolute;
    bottom: 0.38rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 6, 30, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 0.16rem 0.52rem;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
}

.sf-deal-timer-pill i {
    font-size: 0.6rem;
    color: #fbbf24;
    line-height: 1;
}

/* ── Header action buttons — unified height, flex, badge ─────── */
.sf-action-btn,
.sf-cart-btn {
    height: 38px;
    line-height: 1;
}

/* wishlist needs position:relative for the badge */
.sf-wishlist-btn {
    position: relative;
    justify-content: center;
    padding: 0 0.3rem;
}

.sf-action-btn i,
.sf-cart-btn > i {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Badge: anchor to icon, not to button edge */
.sf-wishlist-btn .sf-cart-badge,
.sf-cart-btn .sf-cart-badge {
    top: 3px;
    right: -4px;
}

/* ── Image Search Overlay ─────────────────────────────────────── */
.sf-img-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 40, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.sf-img-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sf-img-search-dialog {
    background: #ffffff;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.22),
        0 4px 24px rgba(103,94,170,0.18);
    overflow: hidden;
    transform: translateY(28px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.sf-img-search-overlay.is-open .sf-img-search-dialog {
    transform: translateY(0) scale(1);
}

/* Header */
.sf-img-search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem 0.9rem;
    border-bottom: 1px solid var(--sf-border-light);
}

.sf-img-search-icon {
    width: 42px;
    height: 42px;
    background: var(--sf-brand-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-brand);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sf-img-search-header-text { flex: 1; min-width: 0; }

.sf-img-search-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--sf-text);
    margin: 0 0 0.1rem;
    line-height: 1.2;
}

.sf-img-search-sub {
    font-size: 0.75rem;
    color: var(--sf-text-muted);
    margin: 0;
    line-height: 1.3;
}

.sf-img-search-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f4f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-text-muted);
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}

.sf-img-search-close:hover { background: #eae8f4; color: var(--sf-brand); }

/* Body */
.sf-img-search-body {
    padding: 1rem 1.25rem;
}

/* Drop zone */
.sf-img-search-drop {
    border: 2px dashed var(--sf-border);
    border-radius: 0.9rem;
    min-height: 160px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    overflow: hidden;
}

.sf-img-search-drop:hover,
.sf-img-search-drop.is-dragover {
    border-color: var(--sf-brand);
    background: var(--sf-brand-xlight);
}

.sf-img-search-drop.is-dragover { border-style: solid; }

.sf-img-search-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 0;
}

.sf-img-search-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    text-align: center;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    justify-content: center;
}

.sf-img-search-upload-icon {
    width: 52px;
    height: 52px;
    background: var(--sf-brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-brand);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.sf-img-search-drop-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sf-text);
    margin: 0;
}

.sf-img-search-drop-hint {
    font-size: 0.72rem;
    color: var(--sf-text-light);
    margin: 0;
}

.sf-img-search-choose {
    margin-top: 0.55rem;
    background: var(--sf-brand);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.45rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.12s;
    z-index: 2;
    position: relative;
}

.sf-img-search-choose:hover { background: var(--sf-brand-dark); }

/* Preview state */
.sf-img-search-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sf-img-search-preview-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.sf-img-search-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #faf9ff;
    border-top: 1px solid var(--sf-border-light);
}

.sf-img-search-preview-name {
    font-size: 0.72rem;
    color: var(--sf-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.sf-img-search-remove {
    background: none;
    border: none;
    color: var(--sf-text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: color 0.12s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sf-img-search-remove:hover { color: var(--sf-red); }

.sf-img-search-preview-footer {
    padding: 0.6rem 0.75rem;
}

.sf-img-search-search-btn {
    width: 100%;
    background: var(--sf-brand);
    color: #fff;
    border: none;
    border-radius: 0.55rem;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.sf-img-search-search-btn:hover { background: var(--sf-brand-dark); }

/* Divider */
.sf-img-search-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.85rem 0;
    font-size: 0.72rem;
    color: var(--sf-text-light);
    font-weight: 500;
}

.sf-img-search-divider::before,
.sf-img-search-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sf-border);
}

/* URL row */
.sf-img-search-url-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sf-img-search-url-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.sf-img-search-url-icon {
    position: absolute;
    left: 0.6rem;
    color: var(--sf-text-light);
    font-size: 1.05rem;
    pointer-events: none;
    line-height: 1;
}

.sf-img-search-url-input {
    width: 100%;
    border: 1.5px solid var(--sf-border);
    border-radius: 0.55rem;
    padding: 0.5rem 0.7rem 0.5rem 2.1rem;
    font-size: 0.8rem;
    color: var(--sf-text);
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
    font-family: inherit;
}

.sf-img-search-url-input:focus { border-color: var(--sf-brand); }
.sf-img-search-url-input::placeholder { color: var(--sf-text-light); }

.sf-img-search-url-btn {
    background: var(--sf-brand);
    color: #fff;
    border: none;
    border-radius: 0.55rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.12s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 38px;
}

.sf-img-search-url-btn:hover { background: var(--sf-brand-dark); }

/* Footer */
.sf-img-search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    background: #faf9ff;
    border-top: 1px solid var(--sf-border-light);
    font-size: 0.7rem;
    color: var(--sf-text-light);
}

.sf-img-search-footer i {
    color: var(--sf-green);
    font-size: 0.82rem;
}

/* ── Section wrapper ─────────────────────────────────────────── */
.sf-section {
    padding: var(--sf-section-py) 0;
}

.sf-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.sf-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--sf-text);
    margin: 0;
    line-height: 1.2;
}

.sf-view-all {
    font-size: 0.8rem;
    color: var(--sf-brand);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.sf-view-all:hover { color: var(--sf-brand-dark); text-decoration: underline; }

/* ── Action icons ────────────────────────────────────────────── */
.sf-icons-section {
    background: var(--sf-surface);
    border-bottom: 1px solid var(--sf-border);
    padding: 0.75rem 0;
}

.sf-icon-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: space-around;
}

.sf-icon-strip::-webkit-scrollbar { display: none; }

.sf-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 64px;
    transition: transform 0.12s;
}

.sf-icon-item:hover { transform: translateY(-2px); }

.sf-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: box-shadow 0.15s;
}

.sf-icon-item:hover .sf-icon-circle {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sf-icon-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sf-text);
    text-align: center;
    line-height: 1.2;
    max-width: 60px;
}

/* Icon color modifiers */
.sf-icon-item--electronics .sf-icon-circle { background: var(--sf-blue-bg);   color: var(--sf-blue);   }
.sf-icon-item--fashion      .sf-icon-circle { background: var(--sf-pink-bg);   color: var(--sf-pink);   }
.sf-icon-item--home         .sf-icon-circle { background: #fff7ed;             color: var(--sf-orange); }
.sf-icon-item--kitchen      .sf-icon-circle { background: var(--sf-red-bg);    color: var(--sf-red);    }
.sf-icon-item--beauty       .sf-icon-circle { background: var(--sf-violet-bg); color: var(--sf-violet); }
.sf-icon-item--china        .sf-icon-circle { background: #fff1f2;             color: #dc2626;          }
.sf-icon-item--deals        .sf-icon-circle { background: var(--sf-orange-bg); color: var(--sf-orange); }
.sf-icon-item--new          .sf-icon-circle { background: var(--sf-green-bg);  color: var(--sf-green);  }
.sf-icon-item--installment  .sf-icon-circle { background: var(--sf-brand-light); color: var(--sf-brand); }

/* ── Hero promo strip ────────────────────────────────────────── */
.sf-promo-section {
    padding: 0.6rem 0 0;
}

.sf-promo {
    border-radius: var(--sf-radius-lg);
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    padding: 1.25rem 1.5rem;
    min-height: 180px;
    color: #fff;
    transition: opacity 0.15s;
}

.sf-promo:hover { opacity: 0.94; color: #fff; }

.sf-promo--main {
    min-height: 200px;
    background: linear-gradient(135deg, #3d3575 0%, #675eaa 45%, #9b8dd4 100%);
}

.sf-promo--b {
    min-height: 86px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 60%, #fb923c 100%);
}

.sf-promo--c {
    min-height: 86px;
    background: linear-gradient(135deg, #047857 0%, #10b981 60%, #34d399 100%);
}

.sf-promo-label {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.sf-promo-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    color: #fff;
}

.sf-promo-title-sm {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.15rem;
}

.sf-promo-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1rem;
}

.sf-promo-btn {
    display: inline-block;
    background: #fff;
    color: var(--sf-brand);
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.12s;
}

.sf-promo-btn:hover { background: #f0eef9; color: var(--sf-brand-dark); }

/* ── Countdown timer ─────────────────────────────────────────── */
.sf-countdown {
    margin-bottom: 1rem;
}

.sf-countdown-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.sf-countdown-display {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.sf-countdown-cell {
    background: rgba(255,255,255,0.18);
    border-radius: 0.35rem;
    padding: 0.2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    border: 1px solid rgba(255,255,255,0.25);
}

.sf-countdown-cell span {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.sf-countdown-cell small {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sf-countdown-sep {
    font-size: 1.1rem;
    font-weight: 900;
    color: rgba(255,255,255,0.6);
    line-height: 1;
    margin-top: -4px;
}

/* ── Social proof strip (marquee) ────────────────────────────── */
.sf-social-strip {
    background: var(--sf-surface);
    border-top: 1px solid var(--sf-border-light);
    border-bottom: 1px solid var(--sf-border-light);
    overflow: hidden;
    padding: 0.55rem 0;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sf-marquee-track {
    overflow: hidden;
    width: 100%;
}

/* The runner holds BOTH copies side-by-side and is the ONLY animated element.
   translateX(-50%) moves by exactly one copy width → seamless loop. */
.sf-marquee-runner {
    display: flex;
    width: max-content;
    animation: sf-marquee 42s linear infinite;
    will-change: transform;
}

.sf-marquee-runner:hover { animation-play-state: paused; }

.sf-marquee-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 2.5rem; /* matches gap so the loop seam is invisible */
}

@keyframes sf-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sf-social-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    white-space: nowrap;
    padding: 0.15rem 0;
}

.sf-social-chip i {
    font-size: 0.85rem;
}

.sf-social-chip--fire   { color: var(--sf-red);    }
.sf-social-chip--bolt   { color: var(--sf-orange);  }
.sf-social-chip--star   { color: var(--sf-amber);   }
.sf-social-chip--pin    { color: var(--sf-brand);   }

/* ── Product card ────────────────────────────────────────────── */
.sf-card {
    background: var(--sf-surface);
    border-radius: var(--sf-radius);
    overflow: hidden;
    box-shadow: var(--sf-card-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s, transform 0.18s;
    text-decoration: none;
    color: var(--sf-text);
    height: 100%;
}

.sf-card:hover {
    box-shadow: var(--sf-card-shadow-h);
    transform: translateY(-2px);
    color: var(--sf-text);
    text-decoration: none;
}

.sf-card-img-wrap {
    position: relative;
    flex-shrink: 0;
    background: var(--sf-brand-xlight);
}

.sf-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.sf-card-body {
    padding: 0.5rem 0.6rem 0.65rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sf-card-title {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--sf-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.2rem;
}

.sf-card-shop {
    font-size: 0.68rem;
    color: var(--sf-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-card-sold {
    font-size: 0.65rem;
    color: var(--sf-text-light);
    white-space: nowrap;
}

/* Compact card (deals grid) */
.sf-card--compact .sf-card-body {
    padding: 0.4rem 0.45rem 0.5rem;
}

.sf-card--compact .sf-card-title {
    font-size: 0.72rem;
}

/* ── Price display ───────────────────────────────────────────── */
.sf-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.sf-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--sf-red);
    line-height: 1.1;
}

.sf-price--regular { color: var(--sf-text); }

.sf-price-orig {
    font-size: 0.72rem;
    color: var(--sf-text-light);
    text-decoration: line-through;
    line-height: 1;
}

.sf-card--compact .sf-price {
    font-size: 0.9rem;
}

/* ── Badges ──────────────────────────────────────────────────── */
.sf-badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    display: inline-flex;
    align-items: center;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    z-index: 1;
}

.sf-badge--sale {
    background: var(--sf-orange);
    color: #fff;
}

.sf-badge--hot {
    background: var(--sf-red);
    color: #fff;
    animation: sf-pulse 2s ease-in-out infinite;
}

.sf-badge--new {
    background: var(--sf-green);
    color: #fff;
}

@keyframes sf-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.78; }
}

/* ── Category river (horizontal scroll) ─────────────────────── */
.sf-river-wrap {
    position: relative;
}

.sf-river {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    cursor: grab;
}

.sf-river:active { cursor: grabbing; }
.sf-river::-webkit-scrollbar { display: none; }

.sf-river-item {
    flex-shrink: 0;
    width: 150px;
    scroll-snap-align: start;
}

.sf-river-item--wide { width: 175px; }

/* ── Deals grid — dense 6-column ────────────────────────────── */
.sf-deals-section {
    background: var(--sf-surface);
    border-radius: var(--sf-radius-lg);
    padding: 1rem;
    box-shadow: var(--sf-card-shadow);
}

/* ── Merchant cards ──────────────────────────────────────────── */
.sf-merchant-card {
    background: var(--sf-surface);
    border-radius: var(--sf-radius);
    padding: 1rem;
    box-shadow: var(--sf-card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--sf-text);
    transition: box-shadow 0.18s, transform 0.18s;
    height: 100%;
}

.sf-merchant-card:hover {
    box-shadow: var(--sf-card-shadow-h);
    transform: translateY(-2px);
    color: var(--sf-text);
}

.sf-merchant-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.sf-merchant-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.sf-merchant-cat {
    font-size: 0.7rem;
    color: var(--sf-text-muted);
    margin-bottom: 0.35rem;
}

.sf-merchant-count {
    font-size: 0.68rem;
    color: var(--sf-brand);
    font-weight: 600;
}

/* Avatar colour variants */
.sf-avatar--blue   { background: var(--sf-blue-bg);   color: var(--sf-blue);   }
.sf-avatar--orange { background: var(--sf-orange-bg);  color: var(--sf-orange); }
.sf-avatar--violet { background: var(--sf-violet-bg);  color: var(--sf-violet); }
.sf-avatar--green  { background: var(--sf-green-bg);   color: var(--sf-green);  }
.sf-avatar--pink   { background: var(--sf-pink-bg);    color: var(--sf-pink);   }
.sf-avatar--red    { background: var(--sf-red-bg);     color: var(--sf-red);    }

/* ── Discovery feed (masonry-ish mixed grid) ─────────────────── */
.sf-feed-grid {
    columns: 2;
    column-gap: 0.6rem;
}

.sf-feed-item {
    break-inside: avoid;
    margin-bottom: 0.6rem;
    display: block;
}

/* Promo card in feed */
.sf-feed-promo {
    border-radius: var(--sf-radius);
    padding: 1.25rem;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: opacity 0.15s;
}

.sf-feed-promo:hover { opacity: 0.9; color: #fff; }

.sf-feed-promo--violet { background: linear-gradient(135deg, var(--sf-brand), #9b8dd4); }
.sf-feed-promo--teal   { background: linear-gradient(135deg, var(--sf-teal), #0d9488); }
.sf-feed-promo--amber  { background: linear-gradient(135deg, #d97706, var(--sf-amber)); }
.sf-feed-promo--red    { background: linear-gradient(135deg, #dc2626, var(--sf-red)); }

.sf-feed-promo-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    display: block;
    margin-bottom: 0.3rem;
}

.sf-feed-promo-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 0.2rem;
}

.sf-feed-promo-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
}

/* (stale footer rules removed — new footer rules in Shoppy-style section below) */

/* ── Mobile tweaks ───────────────────────────────────────────── */
@media (max-width: 575.98px) {
    :root { --sf-header-h: 54px; }

    .sf-topbar           { display: none; }
    .sf-search-camera    { display: none; }
    .sf-logo img         { height: 24px; }
    .sf-locale-switch    { display: none; }
    .sf-action-btn-label { display: none; }

    .sf-promo       { min-height: 140px; padding: 1rem; }
    .sf-promo--main { min-height: 160px; }
    .sf-promo-title { font-size: 1rem; }

    .sf-promo--b,
    .sf-promo--c { min-height: 70px; }

    .sf-feed-grid { columns: 2; }

    .sf-icon-strip { justify-content: flex-start; }
}

@media (min-width: 768px) {
    .sf-feed-grid { columns: 3; }
    .sf-river-item { width: 170px; }
}

@media (min-width: 992px) {
    .sf-feed-grid { columns: 4; }
    .sf-promo--b,
    .sf-promo--c { min-height: 94px; }
}

/* ── Promo sub-cols equal height ─────────────────────────────── */
.sf-promo-sub-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.sf-promo-sub-stack .sf-promo {
    flex: 1;
    min-height: 0;
}

@media (max-width: 767.98px) {
    .sf-promo-sub-stack {
        flex-direction: row;
    }

    .sf-hero-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .sf-hero-text {
        flex: none;
    }

    .sf-hero-flash-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Intentional grid, clear hierarchy, premium feel
   ═══════════════════════════════════════════════════════════════ */

.sf-footer {
    background: linear-gradient(175deg, #4a4490 0%, #3a3478 100%);
    color: rgba(255,255,255,0.72);
    margin-top: 2.5rem;
    position: relative;
}

/* Thin branded accent stripe across the very top */
.sf-footer-stripe {
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--sf-brand) 30%,
        rgba(255,255,255,0.4) 50%,
        var(--sf-brand) 70%,
        transparent 100%);
}

/* ── Top grid ─────────────────────────────────────────────────── */
.sf-footer-top {
    padding: 3rem 0 2.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Brand column ─────────────────────────────────────────────── */
.sf-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0;          /* controlled manually per element */
}

.sf-footer-logo-link {
    display: inline-block;
    line-height: 0;
    margin-bottom: 1rem;
}

.sf-footer-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sf-footer-tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 210px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sf-footer-social-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.55rem;
}

.sf-footer-social {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.sf-footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
    flex-shrink: 0;
}

.sf-footer-social-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Brand-specific hover colours */
.sf-footer-social-btn--wa:hover  { background: #25D366; border-color: #25D366; }
.sf-footer-social-btn--tg:hover  { background: #229ED9; border-color: #229ED9; }
.sf-footer-social-btn:not(.sf-footer-social-btn--wa):not(.sf-footer-social-btn--tg):hover {
    background: var(--sf-brand);
    border-color: var(--sf-brand);
}

/* ── Link columns ─────────────────────────────────────────────── */
.sf-footer-link-col {
    display: flex;
    flex-direction: column;
}

.sf-footer-col-title {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 0 0 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    line-height: 1.2;
}

.sf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sf-footer-links li { display: flex; align-items: center; }

.sf-footer-links a {
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    font-size: 0.83rem;
    line-height: 1.4;
    transition: color 0.15s, padding-left 0.15s;
    display: inline-block;
}

.sf-footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* ── Download card ────────────────────────────────────────────── */
.sf-footer-download-card {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sf-footer-qr {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0.55rem;
    border: 2px solid rgba(255,255,255,0.14);
    display: block;
    background: #fff;
    max-width: 160px;   /* cap on large screens */
}

.sf-footer-qr-caption {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.sf-footer-store-btns {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sf-footer-store-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.55rem;
    padding: 0.45rem 0.7rem;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sf-footer-store-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}

.sf-footer-store-btn i {
    font-size: 1.25rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.sf-footer-store-btn small {
    display: block;
    font-size: 0.56rem;
    font-weight: 400;
    color: rgba(255,255,255,0.42);
    line-height: 1;
    margin-bottom: 0.12rem;
    letter-spacing: 0.02em;
}

/* ── Bottom bar ───────────────────────────────────────────────── */
.sf-footer-bottom {
    padding: 1.25rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.sf-footer-rights {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    margin: 0;
    white-space: nowrap;
}

/* Trust chips — center cell */
.sf-footer-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.sf-footer-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.3);
}

.sf-footer-trust-chip i {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.22);
}

.sf-footer-trust-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
}

.sf-footer-contact {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-end;
}

.sf-footer-contact:hover { color: rgba(255,255,255,0.75); }

.sf-footer-contact i { font-size: 0.75rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .sf-footer-tagline { max-width: 100%; }
    .sf-footer-qr { max-width: 120px; }
}

@media (max-width: 767.98px) {
    .sf-footer-top { padding: 2rem 0 1.5rem; }

    .sf-footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .sf-footer-contact { justify-content: center; }
    .sf-footer-trust { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 575.98px) {
    .sf-footer-download-card { padding: 0.75rem; }
}

/* ── Login Overlay ───────────────────────────────────────────── */
.sf-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 40, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.sf-login-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sf-login-dialog {
    background: #fff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 760px;
    min-height: 460px;
    display: flex;
    overflow: hidden;
    box-shadow:
        0 40px 100px rgba(0,0,0,0.28),
        0 4px 32px rgba(103,94,170,0.22);
    transform: translateY(32px) scale(0.96);
    transition: transform 0.34s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.sf-login-overlay.is-open .sf-login-dialog {
    transform: translateY(0) scale(1);
}

/* ── QR panel (left) ────────────────────────────────────────── */
.sf-login-qr-panel {
    flex: 0 0 42%;
    background: linear-gradient(145deg, var(--sf-brand) 0%, var(--sf-brand-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* decorative circles */
.sf-login-qr-panel::before {
    content: '';
    position: absolute;
    top: -55px; right: -55px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}

.sf-login-qr-panel::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.sf-login-qr-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    position: relative;
    z-index: 1;
}

.sf-login-brand-logo {
    height: 26px;
    width: auto;
    display: block;
    margin-bottom: 0.1rem;
}

.sf-login-qr {
    width: 148px;
    height: 148px;
    border-radius: 1rem;
    border: 3px solid rgba(255,255,255,0.22);
    padding: 6px;
    background: rgba(255,255,255,0.08);
    display: block;
}

.sf-login-qr-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.sf-login-qr-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.55;
    max-width: 190px;
}

.sf-login-qr-steps {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.2rem;
}

.sf-login-qr-step {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.45;
}

.sf-login-qr-num {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Form panel (right) ─────────────────────────────────────── */
.sf-login-form-panel {
    flex: 1;
    padding: 2rem 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.sf-login-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sf-bg);
    border: 1px solid var(--sf-border);
    color: var(--sf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
}

.sf-login-close:hover {
    background: var(--sf-border);
    color: var(--sf-text);
}

.sf-login-step {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sf-login-form-icon {
    width: 46px;
    height: 46px;
    background: var(--sf-brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-brand);
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.sf-login-form-icon--otp {
    background: #ecfdf5;
    color: var(--sf-green);
}

.sf-login-form-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--sf-text);
    margin: 0 0 0.2rem;
    line-height: 1.25;
}

.sf-login-form-sub {
    font-size: 0.78rem;
    color: var(--sf-text-muted);
    margin: 0 0 1.35rem;
    line-height: 1.55;
}

.sf-login-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.sf-login-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--sf-text);
}

.sf-login-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--sf-border);
    border-radius: 0.65rem;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sf-login-phone-wrap:focus-within {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(103,94,170,0.12);
}

.sf-login-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: var(--sf-bg);
    border-right: 1.5px solid var(--sf-border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sf-text);
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.sf-login-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    color: var(--sf-text);
    background: #fff;
    font-family: inherit;
    letter-spacing: 0.05em;
    min-width: 0;
}

.sf-login-input::placeholder { color: var(--sf-text-light); font-size: 0.85rem; letter-spacing: 0; }

.sf-login-hint {
    font-size: 0.68rem;
    color: var(--sf-text-light);
    margin: 0;
    line-height: 1.45;
}

.sf-login-submit {
    width: 100%;
    background: var(--sf-brand);
    color: #fff;
    border: none;
    border-radius: 0.65rem;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    font-family: inherit;
}

.sf-login-submit:hover  { background: var(--sf-brand-dark); }
.sf-login-submit:active { transform: scale(0.98); }

.sf-login-legal {
    font-size: 0.66rem;
    color: var(--sf-text-light);
    margin: auto 0 0;
    line-height: 1.55;
    text-align: center;
}

/* OTP cells */
.sf-login-otp-boxes {
    display: flex;
    gap: 0.4rem;
}

.sf-login-otp-cell {
    flex: 1;
    aspect-ratio: 1;
    max-width: 54px;
    border: 1.5px solid var(--sf-border);
    border-radius: 0.55rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sf-brand);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
    background: #fff;
}

.sf-login-otp-cell:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(103,94,170,0.12);
}

.sf-login-otp-cell.filled {
    background: var(--sf-brand-light);
    border-color: var(--sf-brand);
}

.sf-login-back {
    background: none;
    border: none;
    color: var(--sf-brand);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: color 0.12s;
    align-self: flex-start;
}

.sf-login-back:hover { color: var(--sf-brand-dark); }

.sf-login-resend {
    background: none;
    border: none;
    color: var(--sf-text-muted);
    font-size: 0.74rem;
    cursor: pointer;
    padding: 0.5rem 0 0;
    text-align: center;
    font-family: inherit;
    transition: color 0.12s;
    text-decoration: underline;
    align-self: center;
}

.sf-login-resend:hover { color: var(--sf-brand); }

/* Mobile: hide QR panel */
@media (max-width: 640px) {
    .sf-login-qr-panel { display: none; }
    .sf-login-dialog {
        max-width: 400px;
        min-height: 0;
        border-radius: 1.25rem;
    }
    .sf-login-form-panel { padding: 1.75rem 1.5rem 1.5rem; }
}

/* ── Scroll to top button ─────────────────────────────────────── */
.sf-scroll-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 1500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sf-brand);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(103,94,170,0.45);
    opacity: 0;
    transform: translateY(12px) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s;
    pointer-events: none;
}

.sf-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sf-scroll-top:hover {
    background: var(--sf-brand-dark);
    box-shadow: 0 6px 24px rgba(103,94,170,0.55);
    transform: translateY(-2px) scale(1.05);
}

.sf-scroll-top:active {
    transform: scale(0.95);
}

@keyframes sf-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED — breadcrumb used by search, product, checkout
═══════════════════════════════════════════════════════════════ */

.sf-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
    color: var(--sf-text-muted);
}
.sf-breadcrumb ol li + li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.45;
}
.sf-breadcrumb ol li a {
    color: var(--sf-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.sf-breadcrumb ol li a:hover { color: var(--sf-brand); }
.sf-breadcrumb ol li[aria-current] { color: var(--sf-text-main); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE
═══════════════════════════════════════════════════════════════ */

/* Header bar */
.sf-search-header-bar {
    background: #fff;
    border-bottom: 1px solid var(--sf-border);
    padding: 0.75rem 0 0.65rem;
}
.sf-search-header-meta {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    color: var(--sf-text-muted);
    line-height: 1.4;
}
.sf-search-header-meta strong { color: var(--sf-text-main); }

/* Page layout */
.sf-search-page { padding-top: 1.25rem; padding-bottom: 3rem; }

/* ── Filters sidebar ── */
.sf-filters-col { position: relative; }
.sf-filters {
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 1.1rem 1rem;
}

/* Active filter chips */
.sf-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--sf-border);
}
.sf-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(103,94,170,0.08);
    border: 1px solid rgba(103,94,170,0.2);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--sf-brand);
}
.sf-filter-chip-rm {
    color: var(--sf-brand);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.sf-filter-chip-rm:hover { opacity: 1; }

/* Filter sections */
.sf-filter-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--sf-border);
}
.sf-filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sf-filter-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sf-text-muted);
    margin-bottom: 0.7rem;
}

/* Filter list */
.sf-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.sf-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.45rem;
    border-radius: calc(var(--sf-radius) - 2px);
    font-size: 0.82rem;
    color: var(--sf-text-main);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sf-filter-item:hover { background: rgba(103,94,170,0.07); color: var(--sf-brand); }
.sf-filter-item.is-active {
    background: rgba(103,94,170,0.12);
    color: var(--sf-brand);
    font-weight: 600;
}
.sf-filter-item-name { flex: 1; }
.sf-filter-item-count {
    font-size: 0.72rem;
    color: var(--sf-text-muted);
    background: var(--sf-surface);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    min-width: 28px;
    text-align: center;
}
.sf-filter-item.is-active .sf-filter-item-count { background: rgba(103,94,170,0.15); color: var(--sf-brand); }

/* Price range filter */
.sf-price-form { display: flex; flex-direction: column; gap: 0.6rem; }
.sf-price-inputs { display: flex; align-items: center; gap: 0.4rem; }
.sf-price-dash { color: var(--sf-text-muted); font-size: 0.82rem; flex-shrink: 0; }
.sf-price-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.sf-price-currency {
    position: absolute;
    left: 0.5rem;
    font-size: 0.78rem;
    color: var(--sf-text-muted);
    pointer-events: none;
}
.sf-price-input {
    width: 100%;
    border: 1px solid var(--sf-border);
    border-radius: calc(var(--sf-radius) - 2px);
    padding: 0.32rem 0.45rem 0.32rem 1.35rem;
    font-size: 0.8rem;
    color: var(--sf-text-main);
    background: var(--sf-surface);
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}
.sf-price-input::-webkit-outer-spin-button,
.sf-price-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sf-price-input:focus { border-color: var(--sf-brand); }
.sf-price-apply {
    width: 100%;
    padding: 0.42rem 0;
    background: var(--sf-brand);
    color: #fff;
    border: none;
    border-radius: calc(var(--sf-radius) - 2px);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.sf-price-apply:hover { background: var(--sf-brand-dark); }

/* Rating filter */
.sf-rating-filters { display: flex; flex-direction: column; gap: 0.22rem; }
.sf-rating-filter {
    display: flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.28rem 0.45rem;
    border-radius: calc(var(--sf-radius) - 2px);
    text-decoration: none;
    color: var(--sf-text-main);
    font-size: 0.8rem;
    transition: background 0.15s;
}
.sf-rating-filter i { font-size: 0.72rem; color: #fbbf24; }
.sf-rating-filter span { margin-left: 0.1rem; color: var(--sf-text-muted); }
.sf-rating-filter:hover { background: rgba(103,94,170,0.07); }
.sf-rating-filter.is-active {
    background: rgba(103,94,170,0.1);
    color: var(--sf-brand);
    font-weight: 600;
}
.sf-rating-filter.is-active span { color: var(--sf-brand); }

/* Filter checkbox items */
.sf-filter-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.45rem;
    border-radius: calc(var(--sf-radius) - 2px);
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.15s;
}
.sf-filter-check:hover { background: rgba(103,94,170,0.07); }
.sf-filter-checkbox {
    width: 15px;
    height: 15px;
    accent-color: var(--sf-brand);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Sort bar ── */
.sf-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0.9rem;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    margin-bottom: 1rem;
}
.sf-sort-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sf-text-main);
    margin-right: auto;
}
.sf-sort-options {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}
.sf-sort-label { font-size: 0.78rem; color: var(--sf-text-muted); margin-right: 0.2rem; }
.sf-sort-btn {
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sf-text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.sf-sort-btn:hover { color: var(--sf-brand); background: rgba(103,94,170,0.07); }
.sf-sort-btn.is-active {
    background: var(--sf-brand);
    color: #fff;
    border-color: var(--sf-brand);
}
.sf-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: var(--sf-brand);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.sf-filter-toggle:hover { background: var(--sf-brand-dark); }

/* ── Product grid ── */
.sf-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 1rem;
}
@media (min-width: 1400px) {
    .sf-search-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Search card */
.sf-search-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.sf-search-card:hover {
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

/* Card image */
.sf-search-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--sf-surface);
}
.sf-search-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.sf-search-card:hover .sf-search-card-img { transform: scale(1.04); }
.sf-search-card-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 2;
}
.sf-search-card-wish {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--sf-text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
}
.sf-search-card-wish:hover { color: #e74c3c; background: #fff; }

/* Card body */
.sf-search-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.7rem 0.75rem;
    gap: 0.25rem;
}
.sf-search-card-merchant {
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--sf-brand);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sf-search-card-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sf-text-main);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sf-search-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
}
.sf-search-card-rating {
    display: flex;
    align-items: center;
    gap: 0.18rem;
    font-size: 0.73rem;
    font-weight: 600;
    color: #f59e0b;
}
.sf-search-card-rating i { font-size: 0.65rem; }
.sf-search-card-sold { font-size: 0.7rem; color: var(--sf-text-muted); }

.sf-search-card-prices {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.1rem;
}
.sf-search-card-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sf-text-main);
}
.sf-search-card-orig {
    font-size: 0.73rem;
    color: var(--sf-text-muted);
    text-decoration: line-through;
}

.sf-search-card-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.42rem 0;
    background: rgba(103,94,170,0.08);
    border: 1px solid rgba(103,94,170,0.18);
    border-radius: calc(var(--sf-radius) - 2px);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--sf-brand);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
}
.sf-search-card-cart:hover { background: var(--sf-brand); color: #fff; border-color: var(--sf-brand); }

/* ── Pagination ── */
.sf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem 0 0.5rem;
    flex-wrap: wrap;
}
.sf-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: calc(var(--sf-radius) - 2px);
    border: 1px solid var(--sf-border);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sf-text-main);
    text-decoration: none;
    transition: all 0.15s;
}
.sf-page-btn:hover { border-color: var(--sf-brand); color: var(--sf-brand); }
.sf-page-btn.is-active {
    background: var(--sf-brand);
    border-color: var(--sf-brand);
    color: #fff;
    font-weight: 700;
}

/* Mobile filter sidebar */
@media (max-width: 767px) {
    .sf-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 82vw;
        max-width: 320px;
        height: 100dvh;
        overflow-y: auto;
        z-index: 1200;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    .sf-filters.is-open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0,0,0,0.18);
    }
}


/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE  (sf-prd-* namespace)
═══════════════════════════════════════════════════════════════ */

/* Page wrapper */
.sf-prd-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--sf-border);
    padding: 0.65rem 0;
}
.sf-prd-page { padding-top: 1.25rem; padding-bottom: 3.5rem; }
.sf-prd-left { padding-bottom: 2rem; }

/* ── Gallery ──────────────────────────────────────────────── */
.sf-prd-gallery { display: flex; flex-direction: column; gap: 0.65rem; }

.sf-prd-gallery-main {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--sf-radius);
    overflow: hidden;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
}
.sf-prd-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.18s ease;
    display: block;
}
.sf-prd-gallery-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    z-index: 2;
}
.sf-prd-gallery-wish {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--sf-text-muted);
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
    backdrop-filter: blur(4px);
}
.sf-prd-gallery-wish:hover { color: #dc2626; background: #fff; }

/* Thumbnails */
.sf-prd-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.sf-prd-thumbs::-webkit-scrollbar { display: none; }
.sf-prd-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: calc(var(--sf-radius) - 2px);
    border: 2px solid var(--sf-border);
    overflow: hidden;
    background: var(--sf-surface);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, transform 0.15s;
}
.sf-prd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-prd-thumb:hover { border-color: rgba(103,94,170,0.5); transform: scale(1.04); }
.sf-prd-thumb.is-active { border-color: var(--sf-brand); }

/* ── Mobile panel (inline, non-sticky) ───────────────────── */
.sf-prd-panel--mobile {
    position: static !important;
    border-radius: var(--sf-radius);
    border: 1px solid var(--sf-border);
    background: #fff;
    padding: 1rem;
    margin-top: 0.75rem;
}

/* ── Merchant strip ──────────────────────────────────────── */
.sf-prd-merchant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    margin-top: 0.85rem;
}
.sf-prd-merchant-left { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.sf-prd-merchant-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(103,94,170,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--sf-brand);
    flex-shrink: 0;
}
.sf-prd-merchant-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sf-prd-merchant-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sf-text-main);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-prd-verified { color: var(--sf-brand); font-size: 0.85rem; }
.sf-prd-merchant-meta {
    font-size: 0.72rem;
    color: var(--sf-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.sf-prd-merchant-meta i { color: #f59e0b; font-size: 0.65rem; }
.sf-prd-merchant-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--sf-brand);
    color: var(--sf-brand);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}
.sf-prd-merchant-btn:hover { background: var(--sf-brand); color: #fff; }

/* ── Tabs ────────────────────────────────────────────────── */
.sf-prd-tabs-wrap { margin-top: 1.2rem; }
.sf-prd-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--sf-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.sf-prd-tab-nav::-webkit-scrollbar { display: none; }
.sf-prd-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.sf-prd-tab-btn:hover { color: var(--sf-brand); }
.sf-prd-tab-btn.is-active { color: var(--sf-brand); border-bottom-color: var(--sf-brand); }
.sf-prd-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(103,94,170,0.12);
    color: var(--sf-brand);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    min-width: 22px;
}
.sf-prd-tab-pane { padding: 1.2rem 0; }
.sf-prd-tab-pane[hidden] { display: none; }

/* Detail stream */
.sf-prd-detail-stream { display: flex; flex-direction: column; gap: 0.5rem; }
.sf-prd-stream-img { width: 100%; height: auto; display: block; border-radius: calc(var(--sf-radius) - 2px); }

/* Specs table */
.sf-prd-specs-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.sf-prd-specs-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--sf-border); vertical-align: top; }
.sf-prd-specs-table td:first-child { font-weight: 600; color: var(--sf-text-muted); width: 40%; }
.sf-prd-specs-table td:last-child { color: var(--sf-text-main); }
.sf-prd-specs-alt td { background: var(--sf-surface); }

/* Reviews summary */
.sf-prd-reviews-summary {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.sf-prd-reviews-score { text-align: center; flex-shrink: 0; }
.sf-prd-score-num { font-size: 2.8rem; font-weight: 900; color: var(--sf-text-main); line-height: 1; display: block; }
.sf-prd-score-stars { color: #f59e0b; font-size: 0.88rem; margin: 0.25rem 0; }
.sf-prd-score-total { font-size: 0.72rem; color: var(--sf-text-muted); }

.sf-prd-reviews-bars { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-width: 180px; }
.sf-prd-bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; }
.sf-prd-bar-lbl { color: #f59e0b; width: 26px; text-align: right; flex-shrink: 0; }
.sf-prd-bar-track { flex: 1; height: 6px; background: var(--sf-border); border-radius: 999px; overflow: hidden; }
.sf-prd-bar-fill { height: 100%; background: #f59e0b; border-radius: 999px; }
.sf-prd-bar-pct { color: var(--sf-text-muted); width: 30px; flex-shrink: 0; }

/* Review cards */
.sf-prd-reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.sf-prd-review {
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 1rem 1.1rem;
}
.sf-prd-review-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; }
.sf-prd-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sf-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sf-prd-review-meta { flex: 1; min-width: 0; }
.sf-prd-review-author { font-size: 0.82rem; font-weight: 700; color: var(--sf-text-main); display: block; }
.sf-prd-review-stars { color: #f59e0b; font-size: 0.7rem; margin-top: 0.05rem; }
.sf-prd-review-date { font-size: 0.7rem; color: var(--sf-text-muted); flex-shrink: 0; }
.sf-prd-review-text { font-size: 0.83rem; color: var(--sf-text-main); line-height: 1.6; margin-bottom: 0.6rem; }
.sf-prd-review-imgs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sf-prd-review-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: calc(var(--sf-radius) - 4px);
    border: 1px solid var(--sf-border);
    cursor: pointer;
    transition: transform 0.15s;
}
.sf-prd-review-img:hover { transform: scale(1.05); }

/* ── RIGHT STICKY PANEL ──────────────────────────────────── */
.sf-prd-right-col { padding-top: 0; }
.sf-prd-panel {
    position: sticky;
    top: calc(var(--sf-header-h, 60px) + 1rem);
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Title */
.sf-prd-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sf-text-main);
    line-height: 1.4;
    margin: 0;
}

/* Rating row */
.sf-prd-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.sf-prd-stars { display: flex; gap: 0.08rem; color: #f59e0b; font-size: 0.82rem; }
.sf-prd-rating-num { font-size: 0.84rem; font-weight: 700; color: var(--sf-text-main); }
.sf-prd-review-link { font-size: 0.78rem; color: var(--sf-brand); text-decoration: none; }
.sf-prd-review-link:hover { text-decoration: underline; }
.sf-prd-sold { font-size: 0.76rem; color: var(--sf-text-muted); }

/* Price */
.sf-prd-price-row { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.sf-prd-price { font-size: 1.75rem; font-weight: 900; color: var(--sf-text-main); line-height: 1; }
.sf-prd-orig { font-size: 0.9rem; color: var(--sf-text-muted); text-decoration: line-through; }
.sf-prd-disc-tag {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

/* Divider */
.sf-prd-divider { height: 1px; background: var(--sf-border); }

/* Variant dimension */
.sf-prd-dim { display: flex; flex-direction: column; gap: 0.45rem; }
.sf-prd-dim-label {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sf-prd-dim-val { color: var(--sf-text-main); text-transform: none; letter-spacing: 0; font-size: 0.82rem; margin-left: 0.2rem; }
.sf-prd-dim-opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sf-prd-opt {
    padding: 0.32rem 0.8rem;
    border: 1.5px solid var(--sf-border);
    border-radius: calc(var(--sf-radius) - 2px);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sf-text-main);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sf-prd-opt:hover { border-color: var(--sf-brand); color: var(--sf-brand); }
.sf-prd-opt.is-active {
    border-color: var(--sf-brand);
    background: rgba(103,94,170,0.08);
    color: var(--sf-brand);
    font-weight: 700;
}

/* Qty row */
.sf-prd-qty-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.sf-prd-qty-label { font-size: 0.77rem; font-weight: 600; color: var(--sf-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sf-prd-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sf-border);
    border-radius: calc(var(--sf-radius) - 2px);
    overflow: hidden;
}
.sf-prd-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-surface);
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sf-text-main);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.sf-prd-qty-btn:hover { background: rgba(103,94,170,0.1); color: var(--sf-brand); }
.sf-prd-qty-val {
    width: 44px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sf-text-main);
    border: none;
    border-left: 1px solid var(--sf-border);
    border-right: 1px solid var(--sf-border);
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
    padding: 0;
    height: 36px;
}
.sf-prd-qty-val::-webkit-outer-spin-button,
.sf-prd-qty-val::-webkit-inner-spin-button { -webkit-appearance: none; }
.sf-prd-stock {
    font-size: 0.76rem;
    font-weight: 600;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.sf-prd-stock i { font-size: 0.78rem; }

/* CTA buttons */
.sf-prd-cta { display: flex; flex-direction: column; gap: 0.55rem; }
.sf-prd-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1rem;
    border-radius: var(--sf-radius);
    border: 2px solid var(--sf-brand);
    background: rgba(103,94,170,0.07);
    color: var(--sf-brand);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}
.sf-prd-btn-cart:hover { background: rgba(103,94,170,0.15); }
.sf-prd-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1rem;
    border-radius: var(--sf-radius);
    border: none;
    background: var(--sf-brand);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    width: 100%;
    text-align: center;
}
.sf-prd-btn-buy:hover { background: var(--sf-brand-dark); transform: translateY(-1px); color: #fff; }

/* Delivery rows */
.sf-prd-delivery { display: flex; flex-direction: column; gap: 0.55rem; }
.sf-prd-delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
}
.sf-prd-delivery-row > i { color: var(--sf-brand); font-size: 0.95rem; flex-shrink: 0; margin-top: 0.05rem; }
.sf-prd-delivery-row > div { display: flex; flex-direction: column; gap: 0.05rem; }
.sf-prd-delivery-row strong { color: var(--sf-text-main); font-weight: 600; font-size: 0.8rem; }
.sf-prd-delivery-row span { color: var(--sf-text-muted); font-size: 0.74rem; }

/* Trust chips */
.sf-prd-trust { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sf-prd-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.7rem;
    color: var(--sf-text-muted);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}
.sf-prd-trust-chip i { font-size: 0.72rem; color: var(--sf-brand); }

/* ── Similar products strip ──────────────────────────────── */
.sf-prd-similar { margin-top: 1rem; }

/* ── Mobile overrides ────────────────────────────────────── */
@media (max-width: 991px) {
    .sf-prd-panel { position: static; }
    .sf-prd-panel--mobile { display: flex !important; }
    .sf-prd-page { padding-top: 0.75rem; }
    .sf-prd-title { font-size: 1rem; }
    .sf-prd-price { font-size: 1.45rem; }
}

@media (max-width: 576px) {
    .sf-prd-gallery-main { aspect-ratio: 1; }
    .sf-prd-thumb { width: 54px; height: 54px; }
    .sf-prd-tab-btn { padding: 0.55rem 0.75rem; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════════════════════ */

.sf-co-header {
    background: #fff;
    border-bottom: 1px solid var(--sf-border);
    padding: 0.65rem 0;
}
.sf-co-page { padding-top: 1.25rem; padding-bottom: 3.5rem; }

/* ── Step indicator ── */
.sf-co-steps-wrap {
    background: #fff;
    border-bottom: 1px solid var(--sf-border);
    padding: 1rem 0 0.85rem;
}
.sf-co-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
}
.sf-co-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
}
.sf-co-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--sf-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sf-text-muted);
    position: relative;
    transition: all 0.25s ease;
}
.sf-co-step-check { display: none; }
.sf-co-step-num { display: block; }
.sf-co-step.is-active .sf-co-step-circle {
    border-color: var(--sf-brand);
    background: var(--sf-brand);
    color: #fff;
}
.sf-co-step.is-done .sf-co-step-circle {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.sf-co-step.is-done .sf-co-step-check { display: block; }
.sf-co-step.is-done .sf-co-step-num  { display: none; }
.sf-co-step-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    white-space: nowrap;
    transition: color 0.2s;
}
.sf-co-step.is-active .sf-co-step-label { color: var(--sf-brand); }
.sf-co-step.is-done .sf-co-step-label { color: #16a34a; }
.sf-co-step-line {
    flex: 1;
    height: 2px;
    background: var(--sf-border);
    min-width: 40px;
    transition: background 0.25s;
    margin-bottom: 1.2rem;
}
.sf-co-step-line.is-done { background: #16a34a; }

/* ── Checkout panels ── */
.sf-co-panel {
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: opacity 0.2s;
}
.sf-co-panel--locked {
    opacity: 0.55;
    pointer-events: none;
}
.sf-co-panel--done { opacity: 1; pointer-events: auto; }

.sf-co-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--sf-border);
    background: var(--sf-surface);
}
.sf-co-panel-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sf-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sf-co-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sf-text-main);
    margin: 0;
    flex: 1;
}
.sf-co-edit-btn {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--sf-brand);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    transition: background 0.15s;
}
.sf-co-edit-btn:hover { background: rgba(103,94,170,0.1); }

.sf-co-panel-body { padding: 1.2rem 1.2rem; }
.sf-co-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-top: 1px solid var(--sf-border);
    background: var(--sf-surface);
}

/* ── Form fields ── */
.sf-co-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sf-text-muted);
    margin: 0 0 0.75rem;
}
.sf-co-section-hint { font-size: 0.8rem; color: var(--sf-text-muted); margin-bottom: 0.75rem; }

.sf-co-field { display: flex; flex-direction: column; gap: 0.3rem; }
.sf-co-label { font-size: 0.76rem; font-weight: 600; color: var(--sf-text-muted); }
.sf-co-input {
    border: 1.5px solid var(--sf-border);
    border-radius: calc(var(--sf-radius) - 2px);
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: var(--sf-text-main);
    background: #fff;
    width: 100%;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-co-input:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(103,94,170,0.12);
}
.sf-co-textarea { resize: vertical; min-height: 56px; }
.sf-co-select {
    border: 1.5px solid var(--sf-border);
    border-radius: calc(var(--sf-radius) - 2px);
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: var(--sf-text-main);
    background: #fff;
    width: 100%;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}
.sf-co-select:focus { border-color: var(--sf-brand); }

/* Phone input */
.sf-co-phone-wrap { position: relative; display: flex; align-items: center; }
.sf-co-phone-prefix {
    position: absolute;
    left: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sf-text-main);
    pointer-events: none;
}
.sf-co-input--phone { padding-left: 2.2rem; }

/* Delivery type tabs */
.sf-co-delivery-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.sf-co-dtab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sf-text-muted);
    background: #fff;
    transition: all 0.15s;
    min-width: 80px;
    text-align: center;
}
.sf-co-dtab i { font-size: 1.1rem; }
.sf-co-dtab:hover { border-color: var(--sf-brand); color: var(--sf-brand); }
.sf-co-dtab.is-active {
    border-color: var(--sf-brand);
    background: rgba(103,94,170,0.07);
    color: var(--sf-brand);
    font-weight: 600;
}

/* Pickup points */
.sf-co-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 140px;
    background: var(--sf-surface);
    border: 1px dashed var(--sf-border);
    border-radius: var(--sf-radius);
    color: var(--sf-text-muted);
    font-size: 0.82rem;
}
.sf-co-map-placeholder i { font-size: 2rem; opacity: 0.4; }
.sf-co-pickup-list { display: flex; flex-direction: column; gap: 0.45rem; }
.sf-co-pickup-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.sf-co-pickup-point:hover { border-color: var(--sf-brand); background: rgba(103,94,170,0.04); }
.sf-co-pickup-point.is-active { border-color: var(--sf-brand); background: rgba(103,94,170,0.07); }
.sf-co-pickup-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.08rem; font-size: 0.8rem; }
.sf-co-pickup-info strong { color: var(--sf-text-main); font-weight: 600; }
.sf-co-pickup-info span { color: var(--sf-text-muted); font-size: 0.74rem; }
.sf-co-pickup-hours { color: #16a34a !important; }
.sf-co-pickup-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--sf-border);
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.sf-co-pickup-point.is-active .sf-co-pickup-radio-dot {
    border-color: var(--sf-brand);
    background: var(--sf-brand);
}
.sf-co-pickup-point.is-active .sf-co-pickup-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* ── Payment grid ── */
.sf-co-pay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}
@media (min-width: 480px) {
    .sf-co-pay-grid { grid-template-columns: repeat(4, 1fr); }
}
.sf-co-pay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 0.6rem;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}
.sf-co-pay-card:hover { border-color: var(--sf-brand); }
.sf-co-pay-card.is-active {
    border-color: var(--sf-brand);
    background: rgba(103,94,170,0.06);
}
.sf-co-pay-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(103,94,170,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--sf-brand);
}
.sf-co-pay-icon-wrap--kaspi { background: rgba(217,31,42,0.1); color: #d91f2a; }
.sf-co-pay-icon-wrap--install { background: rgba(22,163,74,0.1); color: #16a34a; }
.sf-co-pay-icon-wrap--cod { background: rgba(245,158,11,0.1); color: #d97706; }
.sf-co-pay-label strong { font-size: 0.73rem; font-weight: 700; color: var(--sf-text-main); display: block; }
.sf-co-pay-label span { font-size: 0.65rem; color: var(--sf-text-muted); }
.sf-co-pay-check {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    font-size: 0.75rem;
    color: var(--sf-brand);
    opacity: 0;
    transition: opacity 0.15s;
}
.sf-co-pay-card.is-active .sf-co-pay-check { opacity: 1; }

/* Card preview widget */
.sf-co-card-form { margin-bottom: 0.5rem; }
.sf-co-card-preview {
    background: linear-gradient(135deg, var(--sf-brand) 0%, #9c8fe0 100%);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    color: #fff;
    position: relative;
    margin-bottom: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sf-co-card-chip {
    width: 30px;
    height: 22px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.sf-co-card-number-preview {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    font-family: 'Courier New', monospace;
}
.sf-co-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 0.5rem; }
.sf-co-card-preview-lbl { font-size: 0.58rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 0.06em; }
.sf-co-card-preview-val { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; }
.sf-co-input--card { letter-spacing: 0.12em; font-family: 'Courier New', monospace; }

/* Kaspi QR panel */
.sf-co-kaspi-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1.5px dashed rgba(217,31,42,0.35);
    border-radius: var(--sf-radius);
    text-align: center;
    margin-bottom: 0.5rem;
}
.sf-co-kaspi-hint { font-size: 0.8rem; color: var(--sf-text-muted); margin: 0; }
.sf-co-kaspi-qr { border-radius: 8px; border: 3px solid #d91f2a; }
.sf-co-kaspi-sub { font-size: 0.72rem; color: var(--sf-text-muted); margin: 0; }

/* Installment grid */
.sf-co-install-panel { margin-bottom: 0.5rem; }
.sf-co-install-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
@media (min-width: 480px) {
    .sf-co-install-grid { grid-template-columns: repeat(4, 1fr); }
}
.sf-co-install-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.7rem 0.4rem;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.sf-co-install-card:hover { border-color: var(--sf-brand); }
.sf-co-install-card.is-active { border-color: var(--sf-brand); background: rgba(103,94,170,0.07); }
.sf-co-install-months { font-size: 0.9rem; font-weight: 700; color: var(--sf-text-main); }
.sf-co-install-monthly { font-size: 0.7rem; color: var(--sf-text-muted); }
.sf-co-install-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
    white-space: nowrap;
}
.sf-co-install-note { font-size: 0.72rem; color: var(--sf-text-muted); }

/* COD info */
.sf-co-cod-panel { margin-bottom: 0.5rem; }
.sf-co-cod-info {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--sf-radius);
    font-size: 0.8rem;
    color: var(--sf-text-main);
}
.sf-co-cod-info i { font-size: 1rem; color: #d97706; flex-shrink: 0; margin-top: 0.05rem; }
.sf-co-cod-info p { margin: 0; }

/* Promo code */
.sf-co-promo-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--sf-border);
}
.sf-co-promo-input {
    flex: 1;
    border: 1.5px solid var(--sf-border);
    border-radius: calc(var(--sf-radius) - 2px);
    padding: 0.48rem 0.75rem;
    font-size: 0.82rem;
    color: var(--sf-text-main);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.sf-co-promo-input:focus { border-color: var(--sf-brand); }
.sf-co-promo-btn {
    padding: 0.48rem 1rem;
    background: transparent;
    border: 1.5px solid var(--sf-brand);
    border-radius: calc(var(--sf-radius) - 2px);
    color: var(--sf-brand);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.sf-co-promo-btn:hover { background: var(--sf-brand); color: #fff; }

/* ── Review step ── */
.sf-co-review-block {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--sf-border);
}
.sf-co-review-block:last-of-type { border-bottom: none; margin-bottom: 0; }
.sf-co-review-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.45rem; }
.sf-co-review-block-title { font-size: 0.8rem; font-weight: 700; color: var(--sf-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
.sf-co-review-edit {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--sf-brand);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    transition: background 0.15s;
}
.sf-co-review-edit:hover { background: rgba(103,94,170,0.1); }
.sf-co-review-text { font-size: 0.83rem; color: var(--sf-text-main); margin: 0; }

.sf-co-review-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.sf-co-review-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--sf-surface);
    border-radius: calc(var(--sf-radius) - 2px);
}
.sf-co-review-item-img { width: 50px; height: 50px; object-fit: cover; border-radius: calc(var(--sf-radius) - 4px); flex-shrink: 0; }
.sf-co-review-item-info { flex: 1; min-width: 0; }
.sf-co-review-item-title { font-size: 0.79rem; font-weight: 600; color: var(--sf-text-main); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-co-review-item-variant { font-size: 0.71rem; color: var(--sf-text-muted); margin: 0.07rem 0 0; }
.sf-co-review-item-qty { font-size: 0.71rem; color: var(--sf-text-muted); margin: 0; }
.sf-co-review-item-price { font-size: 0.88rem; font-weight: 700; color: var(--sf-text-main); flex-shrink: 0; }

/* Terms checkbox */
.sf-co-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    cursor: pointer;
    margin-top: 0.85rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    background: var(--sf-surface);
}
.sf-co-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--sf-brand);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.sf-co-terms-text { font-size: 0.78rem; color: var(--sf-text-main); line-height: 1.5; }
.sf-co-terms-link { color: var(--sf-brand); text-decoration: none; font-weight: 600; }
.sf-co-terms-link:hover { text-decoration: underline; }

@keyframes sf-terms-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60%  { transform: translateX(-5px); }
    40%, 80%  { transform: translateX(5px); }
}
.sf-co-terms-shake { animation: sf-terms-shake 0.5s ease; border-color: #dc2626 !important; }

/* ── Buttons ── */
.sf-co-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.4rem;
    background: var(--sf-brand);
    color: #fff;
    border: none;
    border-radius: var(--sf-radius);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.sf-co-next-btn:hover { background: var(--sf-brand-dark); transform: translateY(-1px); }

.sf-co-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--sf-text-muted);
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.sf-co-back-btn:hover { border-color: var(--sf-text-muted); color: var(--sf-text-main); }

.sf-co-place-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.6rem;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: var(--sf-radius);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}
.sf-co-place-btn:hover { background: #15803d; transform: translateY(-1px); }

/* ── Confirmation panel ── */
.sf-co-panel--confirm {
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.sf-co-confirm-inner { max-width: 420px; margin: 0 auto; }
.sf-co-confirm-icon {
    font-size: 3.5rem;
    color: #16a34a;
    margin-bottom: 1rem;
    animation: sf-confirm-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes sf-confirm-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.sf-co-confirm-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sf-text-main);
    margin-bottom: 0.4rem;
}
.sf-co-confirm-sub { font-size: 0.85rem; color: var(--sf-text-muted); margin-bottom: 1rem; }
.sf-co-confirm-order-id {
    display: inline-block;
    background: rgba(103,94,170,0.1);
    border: 1px solid rgba(103,94,170,0.2);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    color: var(--sf-brand);
    margin-bottom: 0.9rem;
}
.sf-co-confirm-delivery-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--sf-text-muted);
    background: var(--sf-surface);
    border-radius: var(--sf-radius);
    padding: 0.55rem 0.85rem;
    margin-bottom: 1.5rem;
}
.sf-co-confirm-delivery-note i { color: var(--sf-brand); }
.sf-co-confirm-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.sf-co-confirm-home-btn {
    display: block;
    padding: 0.65rem 1.2rem;
    background: var(--sf-brand);
    color: #fff;
    border-radius: var(--sf-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.15s;
}
.sf-co-confirm-home-btn:hover { background: var(--sf-brand-dark); color: #fff; }
.sf-co-confirm-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--sf-brand);
    color: var(--sf-brand);
    border-radius: var(--sf-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.15s;
}
.sf-co-confirm-track-btn:hover { background: rgba(103,94,170,0.08); }

/* ── Order summary sidebar ── */
.sf-co-summary {
    position: sticky;
    top: calc(var(--sf-header-h, 64px) + 1rem);
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 1.2rem 1.1rem;
}
.sf-co-summary-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sf-text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sf-border);
}
.sf-co-summary-items {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.sf-co-summary-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.sf-co-summary-item-img-wrap { position: relative; flex-shrink: 0; }
.sf-co-summary-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: calc(var(--sf-radius) - 4px);
    border: 1px solid var(--sf-border);
}
.sf-co-summary-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--sf-brand);
    color: #fff;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.sf-co-summary-item-info { flex: 1; min-width: 0; }
.sf-co-summary-item-title { font-size: 0.76rem; font-weight: 600; color: var(--sf-text-main); margin: 0; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sf-co-summary-item-variant { font-size: 0.68rem; color: var(--sf-text-muted); margin: 0.05rem 0 0; }
.sf-co-summary-item-price { font-size: 0.82rem; font-weight: 700; color: var(--sf-text-main); flex-shrink: 0; }

.sf-co-summary-divider { height: 1px; background: var(--sf-border); margin: 0.75rem 0; }

.sf-co-summary-breakdown { display: flex; flex-direction: column; gap: 0.4rem; }
.sf-co-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.sf-co-summary-row span:first-child { color: var(--sf-text-muted); display: flex; align-items: center; gap: 0.3rem; }
.sf-co-summary-row span:last-child { color: var(--sf-text-main); font-weight: 500; }
.sf-co-summary-shipping { color: var(--sf-text-muted) !important; }
.sf-co-summary-row--discount span:last-child { color: #16a34a !important; font-weight: 600; }
.sf-co-summary-row--discount i { color: #16a34a; }

.sf-co-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.1rem;
}
.sf-co-summary-total-label { font-size: 0.88rem; font-weight: 700; color: var(--sf-text-main); }
.sf-co-summary-total-price { font-size: 1.22rem; font-weight: 800; color: var(--sf-text-main); }

.sf-co-summary-trust {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--sf-border);
}
.sf-co-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.73rem;
    color: var(--sf-text-muted);
}
.sf-co-trust-item i { color: var(--sf-brand); font-size: 0.8rem; }

/* Mobile order summary: show above form on small screens */
@media (max-width: 991px) {
    .sf-co-summary { position: static; }
}

/* ─── Shipping service-level options (Step 1) ─────────────────── */
.sf-co-shipping-opts-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sf-border);
}
.sf-co-ship-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}
.sf-co-ship-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.sf-co-ship-card:hover { border-color: var(--sf-brand); }
.sf-co-ship-card.is-active {
    border-color: var(--sf-brand);
    background: rgba(103,94,170,0.06);
}
.sf-co-ship-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(103,94,170,0.1);
    color: var(--sf-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.sf-co-ship-card-icon--qazpost { background: rgba(0,102,160,0.1); color: #0066a0; }
.sf-co-ship-card-info { flex: 1; min-width: 0; }
.sf-co-ship-card-info strong { font-size: 0.83rem; font-weight: 600; color: var(--sf-text-main); display: block; }
.sf-co-ship-days { font-size: 0.71rem; color: var(--sf-text-muted); }
.sf-co-ship-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.sf-co-ship-price-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sf-text-main);
    white-space: nowrap;
    min-width: 72px;
    text-align: right;
}
.sf-co-ship-price-val--free { color: #16a34a; font-weight: 700; }
.sf-co-ship-check {
    color: var(--sf-brand);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.sf-co-ship-card.is-active .sf-co-ship-check { opacity: 1; }

/* Policy: included message */
.sf-co-shipping-included-msg {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.22);
    border-radius: var(--sf-radius);
    color: #15803d;
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.sf-co-shipping-included-msg i { font-size: 1rem; flex-shrink: 0; }

/* Approximate price note */
.sf-co-ship-approx-note {
    font-size: 0.69rem;
    color: var(--sf-text-muted);
    margin-top: 0.25rem;
    padding-left: 0.1rem;
}

/* Summary shipping free/included label — green, toggled by JS class */
.sf-co-summary-shipping--free {
    color: #16a34a;
}

/* Price cell loading state — shown while waiting for API response */
.sf-co-ship-price-loading {
    color: var(--sf-text-muted);
    opacity: 0.6;
    animation: sf-pulse 1.2s ease-in-out infinite;
}

@keyframes sf-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 0.25; }
}


.sf-shake { animation: sf-shake 0.45s ease; }

/* ═══════════════════════════════════════════════════════════════
   REGISTER PAGE  (sf-reg-*)
════════════════════════════════════════════════════════════════ */
.sf-reg-wrap {
    min-height: calc(100vh - var(--sf-header-h, 60px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--sf-bg);
}

.sf-reg-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    padding: 2rem 2rem 1.75rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--sf-card-shadow);
}

.sf-reg-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sf-reg-logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--sf-brand);
    letter-spacing: -0.04em;
}

.sf-reg-step {
    display: none;
}
.sf-reg-step.is-active {
    display: block;
    animation: sf-reg-fade 0.25s ease;
}

@keyframes sf-reg-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sf-reg-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sf-text);
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.sf-reg-subtitle {
    font-size: 0.82rem;
    color: var(--sf-text-muted);
    margin: 0 0 1.4rem;
}

.sf-reg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.sf-reg-field {
    margin-bottom: 0.65rem;
}

.sf-reg-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    margin-bottom: 0.28rem;
    letter-spacing: 0.01em;
}

.sf-reg-input {
    width: 100%;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.52rem 0.75rem;
    font-size: 0.875rem;
    color: var(--sf-text);
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.sf-reg-input:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(103,94,170,0.12);
    background: #fff;
}
.sf-reg-input.is-invalid { border-color: var(--sf-red); }

.sf-reg-phone-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    background: #fafafa;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-reg-phone-wrap:focus-within {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(103,94,170,0.12);
    background: #fff;
}
.sf-reg-phone-prefix {
    padding: 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sf-text);
    border-right: 1.5px solid var(--sf-border);
    white-space: nowrap;
    background: var(--sf-brand-light);
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.sf-reg-phone-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
}
.sf-reg-phone-input:focus {
    border: none;
    box-shadow: none;
}

.sf-reg-checks {
    margin: 0.75rem 0 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sf-reg-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.76rem;
    color: var(--sf-text-muted);
    line-height: 1.4;
}

.sf-reg-checkbox {
    display: none;
}

.sf-reg-check-box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--sf-border);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: border-color 0.15s, background 0.15s;
}
.sf-reg-checkbox:checked + .sf-reg-check-box {
    background: var(--sf-brand);
    border-color: var(--sf-brand);
}
.sf-reg-checkbox:checked + .sf-reg-check-box::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

.sf-reg-link {
    color: var(--sf-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sf-reg-link:hover { color: var(--sf-brand-dark); }

.sf-reg-error {
    background: var(--sf-red-bg);
    color: var(--sf-red);
    border-radius: var(--sf-radius);
    padding: 0.45rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 500;
    margin-bottom: 0.65rem;
}

.sf-reg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.68rem 1.25rem;
    background: var(--sf-brand);
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: var(--sf-radius);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    margin-top: 0.2rem;
}
.sf-reg-btn:hover { background: var(--sf-brand-dark); color: #fff; }
.sf-reg-btn:active { transform: scale(0.98); }
.sf-reg-btn--outline {
    background: transparent;
    color: var(--sf-brand);
    border-color: var(--sf-brand);
}
.sf-reg-btn--outline:hover { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-reg-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.sf-reg-switch {
    text-align: center;
    font-size: 0.76rem;
    color: var(--sf-text-muted);
    margin: 1.1rem 0 0;
}

/* Step 2 — OTP */
.sf-reg-back {
    background: none;
    border: none;
    color: var(--sf-text-muted);
    font-size: 0.76rem;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
    transition: color 0.15s;
}
.sf-reg-back:hover { color: var(--sf-brand); }

.sf-reg-otp-icon {
    width: 56px;
    height: 56px;
    background: var(--sf-brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--sf-brand);
    margin: 0 auto 1.1rem;
}

.sf-reg-otp-hint {
    font-size: 0.8rem;
    color: var(--sf-text-muted);
    text-align: center;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.sf-otp-fields {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.sf-otp-cell {
    width: 54px;
    height: 60px;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sf-text);
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    caret-color: var(--sf-brand);
}
.sf-otp-cell:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(103,94,170,0.12);
    background: #fff;
}
.sf-otp-cell.is-filled { border-color: var(--sf-brand); }

.sf-reg-resend {
    text-align: center;
    margin-top: 0.9rem;
    font-size: 0.76rem;
    color: var(--sf-text-muted);
}

.sf-reg-resend-btn {
    background: none;
    border: none;
    color: var(--sf-brand);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sf-reg-resend-btn:disabled {
    color: var(--sf-text-light);
    cursor: not-allowed;
    text-decoration: none;
}

/* Step 3 — Success */
.sf-reg-success-icon {
    width: 72px;
    height: 72px;
    background: var(--sf-green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--sf-green);
    margin: 0 auto 1.1rem;
}

.sf-reg-success-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.sf-reg-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sf-spin 0.7s linear infinite;
    display: inline-block;
}

@media (max-width: 480px) {
    .sf-reg-wrap { padding: 0; align-items: flex-start; }
    .sf-reg-card { border: none; border-radius: 0; padding: 1.5rem 1.1rem 1.5rem; min-height: 100vh; }
    .sf-reg-row-2 { grid-template-columns: 1fr; }
    .sf-otp-cell { width: 46px; height: 54px; font-size: 1.3rem; }
    .sf-otp-fields { gap: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE  (sf-prof-*)
════════════════════════════════════════════════════════════════ */
.sf-prof-wrap {
    padding: var(--sf-section-py) 0 2.5rem;
}

.sf-prof-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* Sidebar */
.sf-prof-sidebar {
    position: sticky;
    top: calc(var(--sf-header-h, 60px) + 0.75rem);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    overflow: hidden;
}

.sf-prof-user {
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, var(--sf-brand) 0%, var(--sf-brand-dark) 100%);
    color: #fff;
    text-align: center;
}

.sf-prof-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 0.55rem;
    border: 2px solid rgba(255,255,255,0.35);
    overflow: hidden;
}
.sf-prof-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.sf-prof-name {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.12rem;
}
.sf-prof-phone {
    font-size: 0.7rem;
    opacity: 0.8;
}

.sf-prof-stats {
    display: flex;
    justify-content: space-around;
    padding: 0.65rem 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.18);
    margin-top: 0.55rem;
}

.sf-prof-stat { text-align: center; }
.sf-prof-stat-val { font-size: 1.05rem; font-weight: 900; display: block; }
.sf-prof-stat-lbl { font-size: 0.58rem; opacity: 0.72; text-transform: uppercase; letter-spacing: 0.05em; }

.sf-prof-nav { padding: 0.4rem 0; }

.sf-prof-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    color: var(--sf-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.12s, color 0.12s;
    border-left: 3px solid transparent;
}
.sf-prof-nav-item i { font-size: 0.9rem; flex-shrink: 0; width: 16px; text-align: center; }
.sf-prof-nav-item:hover { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-prof-nav-item.is-active {
    background: var(--sf-brand-light);
    color: var(--sf-brand);
    font-weight: 700;
    border-left-color: var(--sf-brand);
}

.sf-prof-nav-sep { height: 1px; background: var(--sf-border); margin: 0.35rem 0.75rem; }

.sf-prof-nav-item--logout { color: var(--sf-red); }
.sf-prof-nav-item--logout:hover { background: var(--sf-red-bg); color: var(--sf-red); }

/* Content */
.sf-prof-content { min-width: 0; }

.sf-prof-panel {
    display: none;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    padding: 1.35rem;
    animation: sf-reg-fade 0.2s ease;
}
.sf-prof-panel.is-active { display: block; }

.sf-prof-panel-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sf-text);
    margin: 0 0 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Orders */
.sf-prof-order-list { display: flex; flex-direction: column; gap: 0.65rem; }

.sf-prof-order-card {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.85rem 1rem;
    transition: box-shadow 0.15s;
}
.sf-prof-order-card:hover { box-shadow: var(--sf-card-shadow-h); }

.sf-prof-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sf-prof-order-id { font-size: 0.8rem; font-weight: 700; color: var(--sf-text); }
.sf-prof-order-date { font-size: 0.7rem; color: var(--sf-text-muted); }

.sf-prof-status {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sf-prof-status--pending    { background: #fff3cd; color: #856404; }
.sf-prof-status--processing { background: var(--sf-blue-bg); color: var(--sf-blue); }
.sf-prof-status--shipped    { background: var(--sf-violet-bg); color: var(--sf-violet); }
.sf-prof-status--delivered  { background: var(--sf-green-bg); color: var(--sf-green); }
.sf-prof-status--cancelled  { background: var(--sf-red-bg); color: var(--sf-red); }

.sf-prof-order-items { display: flex; gap: 0.35rem; margin-bottom: 0.55rem; }
.sf-prof-order-thumb { width: 38px; height: 38px; border-radius: var(--sf-radius); object-fit: cover; border: 1px solid var(--sf-border); }

.sf-prof-order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.sf-prof-order-total { font-size: 0.88rem; font-weight: 800; color: var(--sf-text); }
.sf-prof-order-actions { display: flex; gap: 0.35rem; }

/* Buttons */
.sf-prof-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: var(--sf-radius);
    border: none;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.sf-prof-btn--primary { background: var(--sf-brand); color: #fff; }
.sf-prof-btn--primary:hover { background: var(--sf-brand-dark); color: #fff; }
.sf-prof-btn--outline { background: transparent; border: 1px solid var(--sf-border); color: var(--sf-text-muted); }
.sf-prof-btn--outline:hover { border-color: var(--sf-brand); color: var(--sf-brand); background: var(--sf-brand-light); }
.sf-prof-btn--danger { background: var(--sf-red-bg); color: var(--sf-red); }
.sf-prof-btn--danger:hover { background: var(--sf-red); color: #fff; }

/* Empty state */
.sf-prof-empty { text-align: center; padding: 2.5rem 1rem; }
.sf-prof-empty-icon { font-size: 2.25rem; color: var(--sf-text-light); margin-bottom: 0.65rem; }
.sf-prof-empty-title { font-size: 0.92rem; font-weight: 700; color: var(--sf-text-muted); margin: 0 0 0.2rem; }
.sf-prof-empty-sub { font-size: 0.76rem; color: var(--sf-text-light); margin: 0; }

/* Wishlist */
.sf-prof-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.65rem;
}

/* Addresses */
.sf-prof-addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.sf-prof-addr-card {
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.85rem;
    position: relative;
    transition: border-color 0.15s;
}
.sf-prof-addr-card.is-default { border-color: var(--sf-brand); }

.sf-prof-addr-default-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    background: var(--sf-brand);
    color: #fff;
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-prof-addr-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: 0.3rem;
}
.sf-prof-addr-label i { color: var(--sf-brand); font-size: 0.8rem; }

.sf-prof-addr-text {
    font-size: 0.76rem;
    color: var(--sf-text-muted);
    line-height: 1.45;
    margin-bottom: 0.6rem;
}

.sf-prof-addr-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* Add address button-card */
.sf-prof-addr-add-card {
    border: 1.5px dashed var(--sf-border);
    border-radius: var(--sf-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.25rem;
    cursor: pointer;
    color: var(--sf-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    background: none;
    min-height: 100px;
}
.sf-prof-addr-add-card:hover { border-color: var(--sf-brand); color: var(--sf-brand); background: var(--sf-brand-light); }
.sf-prof-addr-add-card i { font-size: 1.2rem; }

/* Address modal form */
.sf-addr-modal-field { margin-bottom: 0.7rem; }
.sf-addr-modal-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--sf-text-muted); margin-bottom: 0.25rem; }
.sf-addr-modal-input {
    width: 100%;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.5rem 0.7rem;
    font-size: 0.875rem;
    color: var(--sf-text);
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.sf-addr-modal-input:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.12); background: #fff; }

/* Tracking */
.sf-prof-track-search { display: flex; gap: 0.5rem; margin-bottom: 1.35rem; }
.sf-prof-track-input {
    flex: 1;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.52rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}
.sf-prof-track-input:focus { border-color: var(--sf-brand); }

.sf-prof-timeline { position: relative; padding-left: 2rem; }
.sf-prof-timeline::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sf-border);
}

.sf-prof-timeline-step { position: relative; padding-bottom: 1.35rem; }
.sf-prof-timeline-step:last-child { padding-bottom: 0; }

.sf-prof-timeline-dot {
    position: absolute;
    left: -1.6rem;
    top: 0.05rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sf-border);
    border: 2px solid var(--sf-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: transparent;
}
.sf-prof-timeline-step.is-done .sf-prof-timeline-dot { background: var(--sf-brand); color: #fff; }
.sf-prof-timeline-step.is-current .sf-prof-timeline-dot { background: var(--sf-green); color: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,0.15); }

.sf-prof-timeline-title { font-size: 0.83rem; font-weight: 700; color: var(--sf-text-muted); }
.sf-prof-timeline-step.is-done .sf-prof-timeline-title,
.sf-prof-timeline-step.is-current .sf-prof-timeline-title { color: var(--sf-text); }
.sf-prof-timeline-time { font-size: 0.7rem; color: var(--sf-text-light); margin-top: 0.08rem; }

/* Notifications */
.sf-prof-notif-list { display: flex; flex-direction: column; }

.sf-prof-notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--sf-border);
    gap: 1rem;
}
.sf-prof-notif-row:last-child { border-bottom: none; }

.sf-prof-notif-info { flex: 1; }
.sf-prof-notif-title { font-size: 0.83rem; font-weight: 600; color: var(--sf-text); margin: 0 0 0.12rem; }
.sf-prof-notif-sub { font-size: 0.7rem; color: var(--sf-text-muted); margin: 0; }

.sf-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.sf-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.sf-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--sf-border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}
.sf-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.sf-toggle input:checked + .sf-toggle-track { background: var(--sf-brand); }
.sf-toggle input:checked + .sf-toggle-track::after { transform: translateX(18px); }

/* Reviews */
.sf-prof-review-card { border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.85rem; margin-bottom: 0.65rem; }
.sf-prof-review-card:last-child { margin-bottom: 0; }
.sf-prof-review-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.45rem; }
.sf-prof-review-img { width: 42px; height: 42px; border-radius: var(--sf-radius); object-fit: cover; border: 1px solid var(--sf-border); }
.sf-prof-review-product { font-size: 0.8rem; font-weight: 600; color: var(--sf-text); margin-bottom: 0.08rem; }
.sf-prof-review-stars { color: var(--sf-amber); font-size: 0.7rem; }
.sf-prof-review-date { font-size: 0.66rem; color: var(--sf-text-light); }
.sf-prof-review-text { font-size: 0.79rem; color: var(--sf-text-muted); line-height: 1.45; }

/* Settings */
.sf-prof-settings-form { max-width: 460px; }

.sf-prof-photo-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--sf-border);
}
.sf-prof-photo-preview {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--sf-brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--sf-brand);
    border: 2px solid var(--sf-border);
    overflow: hidden;
    flex-shrink: 0;
}
.sf-prof-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.sf-prof-settings-field { margin-bottom: 0.85rem; }
.sf-prof-settings-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--sf-text-muted); margin-bottom: 0.25rem; }
.sf-prof-settings-input {
    width: 100%;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.52rem 0.75rem;
    font-size: 0.875rem;
    color: var(--sf-text);
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.sf-prof-settings-input:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.12); background: #fff; }
.sf-prof-settings-input:disabled { background: var(--sf-bg); color: var(--sf-text-muted); cursor: not-allowed; }

/* Security */
.sf-prof-sec-card {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.9rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.sf-prof-sec-icon { width: 38px; height: 38px; border-radius: var(--sf-radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sf-prof-sec-icon--brand { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-prof-sec-icon--red { background: var(--sf-red-bg); color: var(--sf-red); }
.sf-prof-sec-info { flex: 1; }
.sf-prof-sec-title { font-size: 0.83rem; font-weight: 700; color: var(--sf-text); margin: 0 0 0.1rem; }
.sf-prof-sec-sub { font-size: 0.7rem; color: var(--sf-text-muted); margin: 0; }

.sf-prof-danger-zone {
    border: 1px solid var(--sf-red);
    border-radius: var(--sf-radius);
    padding: 1rem;
    background: var(--sf-red-bg);
    margin-top: 1rem;
}
.sf-prof-danger-title { font-size: 0.83rem; font-weight: 700; color: var(--sf-red); margin: 0 0 0.25rem; }
.sf-prof-danger-sub { font-size: 0.73rem; color: var(--sf-red); opacity: 0.8; margin: 0 0 0.7rem; }

/* Saved stores */
.sf-prof-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 0.65rem;
}
.sf-prof-store-card { border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 1rem; text-align: center; transition: box-shadow 0.15s; }
.sf-prof-store-card:hover { box-shadow: var(--sf-card-shadow-h); }
.sf-prof-store-avatar { width: 50px; height: 50px; border-radius: var(--sf-radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 0.45rem; }
.sf-prof-store-name { font-size: 0.85rem; font-weight: 700; color: var(--sf-text); margin-bottom: 0.18rem; }
.sf-prof-store-cat { font-size: 0.7rem; color: var(--sf-text-muted); margin-bottom: 0.18rem; }
.sf-prof-store-count { font-size: 0.68rem; color: var(--sf-text-light); margin-bottom: 0.6rem; }
.sf-prof-store-actions { display: flex; gap: 0.3rem; justify-content: center; flex-wrap: wrap; }

/* Mobile tabs */
.sf-prof-mobile-tabs {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--sf-surface);
    border-bottom: 1px solid var(--sf-border);
    padding: 0 0.5rem;
    white-space: nowrap;
    position: sticky;
    top: var(--sf-header-h, 60px);
    z-index: 90;
}
.sf-prof-mobile-tabs::-webkit-scrollbar { display: none; }
.sf-prof-mobile-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.6rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.12s, border-color 0.12s;
}
.sf-prof-mobile-tab i { font-size: 0.82rem; }
.sf-prof-mobile-tab.is-active { color: var(--sf-brand); border-bottom-color: var(--sf-brand); }

@media (max-width: 991px) {
    .sf-prof-layout { grid-template-columns: 1fr; }
    .sf-prof-sidebar { display: none; }
    .sf-prof-mobile-tabs { display: block; }
    .sf-prof-panel { border-top: none; border-radius: 0 0 var(--sf-radius-lg) var(--sf-radius-lg); }
}

@media (max-width: 575px) {
    .sf-prof-panel { padding: 1rem 0.9rem; }
    .sf-prof-addr-grid { grid-template-columns: 1fr; }
    .sf-prof-stores-grid { grid-template-columns: 1fr 1fr; }
    .sf-prof-wishlist-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ PAGE  (sf-faq-*)
════════════════════════════════════════════════════════════════ */
.sf-faq-wrap { padding: 0 0 3rem; }

.sf-faq-hero {
    background: var(--sf-surface);
    border-bottom: 1px solid var(--sf-border);
    text-align: center;
    padding: 2.25rem 1rem 2rem;
}

.sf-faq-hero-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--sf-text);
    letter-spacing: -0.03em;
    margin: 0 0 0.3rem;
}

.sf-faq-hero-sub {
    font-size: 0.85rem;
    color: var(--sf-text-muted);
    margin: 0 0 1.2rem;
}

.sf-faq-search-wrap {
    max-width: 460px;
    margin: 0 auto;
    position: relative;
}

.sf-faq-search {
    width: 100%;
    border: 1.5px solid var(--sf-border);
    border-radius: 999px;
    padding: 0.62rem 1rem 0.62rem 2.4rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafafa;
    box-sizing: border-box;
}
.sf-faq-search:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(103,94,170,0.12);
    background: #fff;
}

.sf-faq-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sf-text-muted);
    font-size: 0.88rem;
    pointer-events: none;
}

.sf-faq-body {
    padding: var(--sf-section-py) 0 0;
}

.sf-faq-layout {
    display: grid;
    grid-template-columns: 195px 1fr;
    gap: 1.75rem;
    align-items: start;
}

/* Sidebar */
.sf-faq-sidebar {
    position: sticky;
    top: calc(var(--sf-header-h, 60px) + 0.75rem);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    padding: 0.5rem 0;
    overflow: hidden;
}

.sf-faq-sidebar-title {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--sf-text-light);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0.4rem 0.9rem 0.2rem;
}

.sf-faq-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.9rem;
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--sf-text-muted);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    border-left: 2px solid transparent;
}
.sf-faq-nav-item i { font-size: 0.82rem; width: 14px; text-align: center; flex-shrink: 0; }
.sf-faq-nav-item:hover { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-faq-nav-item.is-active { background: var(--sf-brand-light); color: var(--sf-brand); font-weight: 700; border-left-color: var(--sf-brand); }

/* FAQ content */
.sf-faq-content { min-width: 0; }

.sf-faq-section { margin-bottom: 1.75rem; }
.sf-faq-section:last-child { margin-bottom: 0; }

.sf-faq-section-label {
    font-size: 0.63rem;
    font-weight: 800;
    color: var(--sf-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.sf-faq-section-label i { color: var(--sf-brand); }

/* Q&A item — ultra slim */
.sf-faq-item { border-bottom: 1px solid var(--sf-border-light); }
.sf-faq-item:first-of-type { border-top: 1px solid var(--sf-border-light); }

.sf-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.sf-faq-q-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sf-text);
    transition: color 0.12s;
    line-height: 1.4;
}
.sf-faq-q:hover .sf-faq-q-text { color: var(--sf-brand); }
.sf-faq-item.is-open .sf-faq-q-text { color: var(--sf-brand); }

.sf-faq-q-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sf-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.22s;
    line-height: 1;
}
.sf-faq-item.is-open .sf-faq-q-icon {
    background: var(--sf-brand);
    border-color: var(--sf-brand);
    color: #fff;
    transform: rotate(45deg);
}

.sf-faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.2s ease;
    padding-bottom: 0;
}
.sf-faq-item.is-open .sf-faq-a {
    max-height: 500px;
    padding-bottom: 0.9rem;
}

.sf-faq-a-text {
    font-size: 0.82rem;
    color: var(--sf-text-muted);
    line-height: 1.65;
}

/* CTA */
.sf-faq-cta {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.75rem;
}
.sf-faq-cta-title { font-size: 0.92rem; font-weight: 700; color: var(--sf-text); margin: 0 0 0.4rem; }
.sf-faq-cta-sub { font-size: 0.78rem; color: var(--sf-text-muted); margin: 0 0 0.9rem; }
.sf-faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--sf-brand);
    color: #fff;
    border-radius: var(--sf-radius);
    padding: 0.52rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.sf-faq-cta-btn:hover { background: var(--sf-brand-dark); color: #fff; }

/* Mobile */
.sf-faq-cat-select {
    display: none;
    width: 100%;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 0.52rem 0.75rem;
    font-size: 0.875rem;
    color: var(--sf-text);
    background: var(--sf-surface);
    outline: none;
    margin-bottom: 0.9rem;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .sf-faq-layout { grid-template-columns: 1fr; }
    .sf-faq-sidebar { display: none; }
    .sf-faq-cat-select { display: block; }
    .sf-faq-hero-title { font-size: 1.3rem; }
    .sf-faq-hero { padding: 1.5rem 1rem 1.35rem; }
}


/* ═══════════════════════════════════════════════════════════════
   REGISTER PAGE  (sf-reg-*)
════════════════════════════════════════════════════════════════ */
.sf-reg-wrap {
    min-height: calc(100vh - var(--sf-header-h,60px) - 32px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem; background: var(--sf-bg);
}
.sf-reg-card {
    background: var(--sf-surface); border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg); padding: 2rem 2rem 1.75rem;
    width: 100%; max-width: 460px; box-shadow: var(--sf-card-shadow);
}
.sf-reg-logo { text-align: center; margin-bottom: 1.5rem; }
.sf-reg-logo-text { font-size: 1.65rem; font-weight: 900; color: var(--sf-brand); letter-spacing: -0.04em; }
.sf-reg-step { display: none; }
.sf-reg-step.is-active { display: block; animation: sf-reg-in 0.22s ease; }
@keyframes sf-reg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sf-reg-title { font-size: 1.3rem; font-weight: 800; color: var(--sf-text); margin: 0 0 0.2rem; letter-spacing: -0.02em; }
.sf-reg-subtitle { font-size: 0.82rem; color: var(--sf-text-muted); margin: 0 0 1.35rem; }
.sf-reg-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 0.65rem; }
.sf-reg-field { margin-bottom: 0.65rem; }
.sf-reg-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--sf-text-muted); margin-bottom: 0.28rem; }
.sf-reg-input {
    width: 100%; border: 1.5px solid var(--sf-border); border-radius: var(--sf-radius);
    padding: 0.52rem 0.75rem; font-size: 0.875rem; color: var(--sf-text);
    background: #fafafa; outline: none; box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-reg-input:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.11); background: #fff; }
.sf-reg-phone-wrap {
    display: flex; align-items: center; border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius); background: #fafafa; overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-reg-phone-wrap:focus-within { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.11); background: #fff; }
.sf-reg-phone-prefix {
    padding: 0.52rem 0.6rem; font-size: 0.82rem; font-weight: 700;
    color: var(--sf-text); border-right: 1.5px solid var(--sf-border);
    white-space: nowrap; background: var(--sf-brand-light); flex-shrink: 0;
}
.sf-reg-phone-input { border: none !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; flex: 1; min-width: 0; }
.sf-reg-checks { margin: 0.8rem 0 0.9rem; }
.sf-reg-check {
    display: flex; align-items: flex-start; gap: 0.55rem; cursor: pointer;
    font-size: 0.77rem; color: var(--sf-text-muted); line-height: 1.45;
    margin-bottom: 0.45rem; user-select: none;
}
.sf-reg-check:last-child { margin-bottom: 0; }
.sf-reg-checkbox { display: none; }
.sf-reg-check-box {
    flex-shrink: 0; width: 15px; height: 15px; border: 1.5px solid var(--sf-border);
    border-radius: 3px; background: #fff; display: flex; align-items: center;
    justify-content: center; margin-top: 1px; transition: border-color 0.15s, background 0.15s;
}
.sf-reg-checkbox:checked + .sf-reg-check-box { background: var(--sf-brand); border-color: var(--sf-brand); }
.sf-reg-checkbox:checked + .sf-reg-check-box::after {
    content: ''; width: 7px; height: 4px; border-left: 2px solid #fff;
    border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); display: block;
}
.sf-reg-link { color: var(--sf-brand); text-decoration: underline; text-underline-offset: 2px; }
.sf-reg-link:hover { color: var(--sf-brand-dark); }
.sf-reg-error {
    background: var(--sf-red-bg); color: var(--sf-red); border-radius: var(--sf-radius);
    padding: 0.45rem 0.7rem; font-size: 0.77rem; font-weight: 500;
    margin-bottom: 0.65rem; border-left: 3px solid var(--sf-red);
}
.sf-reg-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    width: 100%; padding: 0.68rem 1.25rem; background: var(--sf-brand); color: #fff;
    border: none; border-radius: var(--sf-radius); font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s, transform 0.1s; text-decoration: none; margin-top: 0.2rem;
}
.sf-reg-btn:hover { background: var(--sf-brand-dark); color: #fff; }
.sf-reg-btn:active { transform: scale(0.98); }
.sf-reg-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sf-reg-btn--outline { background: transparent; color: var(--sf-brand); border: 1.5px solid var(--sf-brand); }
.sf-reg-btn--outline:hover { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-reg-switch { text-align: center; font-size: 0.77rem; color: var(--sf-text-muted); margin: 1.1rem 0 0; }
.sf-reg-back {
    background: none; border: none; color: var(--sf-text-muted); font-size: 0.77rem;
    cursor: pointer; padding: 0; display: flex; align-items: center;
    gap: 0.3rem; margin-bottom: 1.2rem; transition: color 0.15s;
}
.sf-reg-back:hover { color: var(--sf-brand); }
.sf-reg-otp-icon {
    width: 54px; height: 54px; background: var(--sf-brand-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem; color: var(--sf-brand); margin: 0 auto 1.15rem;
}
.sf-reg-otp-hint { font-size: 0.81rem; color: var(--sf-text-muted); text-align: center; margin-bottom: 1.35rem; }
.sf-otp-fields { display: flex; gap: 0.65rem; justify-content: center; margin-bottom: 1.1rem; }
.sf-otp-cell {
    width: 54px; height: 58px; border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius); text-align: center; font-size: 1.45rem;
    font-weight: 800; color: var(--sf-text); background: #fafafa; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-otp-cell:focus, .sf-otp-cell.is-filled { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.11); background: #fff; }
.sf-reg-resend { text-align: center; margin-top: 0.9rem; font-size: 0.77rem; color: var(--sf-text-muted); }
.sf-reg-resend-btn {
    background: none; border: none; color: var(--sf-brand); font-size: 0.77rem;
    font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline;
}
.sf-reg-resend-btn:disabled { color: var(--sf-text-light); cursor: not-allowed; text-decoration: none; }
.sf-reg-success-icon {
    width: 70px; height: 70px; background: var(--sf-green-bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--sf-green); margin: 0 auto 1.15rem;
}
.sf-reg-success-btns { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.35rem; }
.sf-reg-spinner {
    width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: sf-spin 0.65s linear infinite; display: inline-block;
}
@keyframes sf-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .sf-reg-card { padding: 1.35rem 1rem; border: none; border-radius: 0; box-shadow: none; }
    .sf-reg-wrap { padding: 0; align-items: flex-start; min-height: 100vh; }
    .sf-reg-row-2 { grid-template-columns: 1fr; }
    .sf-otp-cell { width: 46px; height: 52px; font-size: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE  (sf-prof-*)
════════════════════════════════════════════════════════════════ */
.sf-prof-wrap { padding: var(--sf-section-py) 0 2.5rem; }
.sf-prof-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.25rem; align-items: start; }
.sf-prof-sidebar {
    position: sticky; top: calc(var(--sf-header-h,60px) + 32px + 0.75rem);
    background: var(--sf-surface); border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg); overflow: hidden;
}
.sf-prof-user {
    padding: 1.15rem 0.9rem 0.75rem;
    background: linear-gradient(135deg, var(--sf-brand) 0%, var(--sf-brand-dark) 100%);
    color: #fff; text-align: center;
}
.sf-prof-avatar {
    width: 60px; height: 60px; background: rgba(255,255,255,0.22); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem; margin: 0 auto 0.55rem;
    border: 2px solid rgba(255,255,255,0.35); overflow: hidden;
}
.sf-prof-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sf-prof-name { font-size: 0.9rem; font-weight: 700; margin: 0 0 0.1rem; }
.sf-prof-phone { font-size: 0.68rem; opacity: 0.78; }
.sf-prof-stats { display: flex; justify-content: space-around; padding: 0.65rem 0 0; border-top: 1px solid rgba(255,255,255,0.18); margin-top: 0.6rem; }
.sf-prof-stat { text-align: center; }
.sf-prof-stat-val { font-size: 1.05rem; font-weight: 900; display: block; }
.sf-prof-stat-lbl { font-size: 0.58rem; opacity: 0.73; text-transform: uppercase; letter-spacing: 0.04em; }
.sf-prof-nav { padding: 0.4rem 0; }
.sf-prof-nav-item {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem;
    color: var(--sf-text-muted); font-size: 0.81rem; font-weight: 500;
    cursor: pointer; border: none; background: none; width: 100%; text-align: left;
    transition: background 0.12s, color 0.12s; border-left: 3px solid transparent;
}
.sf-prof-nav-item i { font-size: 0.9rem; flex-shrink: 0; width: 16px; text-align: center; }
.sf-prof-nav-item:hover { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-prof-nav-item.is-active { background: var(--sf-brand-light); color: var(--sf-brand); font-weight: 700; border-left-color: var(--sf-brand); }
.sf-prof-nav-sep { height: 1px; background: var(--sf-border); margin: 0.35rem 0.8rem; }
.sf-prof-nav-item--logout { color: var(--sf-red); }
.sf-prof-nav-item--logout:hover { background: var(--sf-red-bg); color: var(--sf-red); }
.sf-prof-content { min-width: 0; }
.sf-prof-panel {
    display: none; background: var(--sf-surface); border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg); padding: 1.35rem;
}
.sf-prof-panel.is-active { display: block; }
.sf-prof-panel-title {
    font-size: 1.05rem; font-weight: 800; color: var(--sf-text);
    margin: 0 0 1.15rem; padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--sf-border);
    display: flex; align-items: center; gap: 0.5rem;
}
.sf-prof-order-list { display: flex; flex-direction: column; gap: 0.65rem; }
.sf-prof-order-card { border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.85rem 0.9rem; transition: box-shadow 0.15s; }
.sf-prof-order-card:hover { box-shadow: var(--sf-card-shadow-h); }
.sf-prof-order-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.35rem; }
.sf-prof-order-id { font-size: 0.8rem; font-weight: 700; color: var(--sf-text); }
.sf-prof-order-date { font-size: 0.7rem; color: var(--sf-text-muted); }
.sf-prof-status { font-size: 0.65rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.sf-prof-status--pending    { background: #fef9c3; color: #854d0e; }
.sf-prof-status--processing { background: var(--sf-blue-bg); color: var(--sf-blue); }
.sf-prof-status--shipped    { background: var(--sf-violet-bg); color: var(--sf-violet); }
.sf-prof-status--delivered  { background: var(--sf-green-bg); color: var(--sf-green); }
.sf-prof-status--cancelled  { background: var(--sf-red-bg); color: var(--sf-red); }
.sf-prof-order-items { display: flex; gap: 0.35rem; margin-bottom: 0.55rem; flex-wrap: wrap; }
.sf-prof-order-thumb { width: 38px; height: 38px; border-radius: var(--sf-radius); object-fit: cover; border: 1px solid var(--sf-border); }
.sf-prof-order-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.35rem; }
.sf-prof-order-total { font-size: 0.88rem; font-weight: 800; color: var(--sf-text); }
.sf-prof-order-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.sf-prof-btn { font-size: 0.7rem; font-weight: 600; padding: 0.28rem 0.65rem; border-radius: var(--sf-radius); border: none; cursor: pointer; transition: background 0.12s, color 0.12s; text-decoration: none; display: inline-flex; align-items: center; gap: 0.28rem; }
.sf-prof-btn--primary { background: var(--sf-brand); color: #fff; }
.sf-prof-btn--primary:hover { background: var(--sf-brand-dark); color: #fff; }
.sf-prof-btn--outline { background: transparent; border: 1px solid var(--sf-border); color: var(--sf-text-muted); }
.sf-prof-btn--outline:hover { border-color: var(--sf-brand); color: var(--sf-brand); background: var(--sf-brand-light); }
.sf-prof-btn--danger { background: var(--sf-red-bg); color: var(--sf-red); }
.sf-prof-btn--danger:hover { background: var(--sf-red); color: #fff; }
.sf-prof-empty { text-align: center; padding: 2.5rem 1rem; }
.sf-prof-empty-icon { font-size: 2.25rem; color: var(--sf-text-light); margin-bottom: 0.65rem; }
.sf-prof-empty-title { font-size: 0.9rem; font-weight: 700; color: var(--sf-text-muted); margin: 0 0 0.2rem; }
.sf-prof-empty-sub { font-size: 0.77rem; color: var(--sf-text-light); margin: 0; }
.sf-prof-wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 0.65rem; }
.sf-prof-stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 0.65rem; }
.sf-prof-store-card { border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.9rem; text-align: center; transition: box-shadow 0.15s; }
.sf-prof-store-card:hover { box-shadow: var(--sf-card-shadow-h); }
.sf-prof-store-avatar { width: 50px; height: 50px; border-radius: var(--sf-radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 0.5rem; }
.sf-avatar--blue   { background: var(--sf-blue-bg);   color: var(--sf-blue); }
.sf-avatar--pink   { background: var(--sf-pink-bg);   color: var(--sf-pink); }
.sf-avatar--orange { background: var(--sf-orange-bg); color: var(--sf-orange); }
.sf-avatar--green  { background: var(--sf-green-bg);  color: var(--sf-green); }
.sf-avatar--violet { background: var(--sf-violet-bg); color: var(--sf-violet); }
.sf-avatar--red    { background: #fff1f2; color: #dc2626; }
.sf-prof-store-name  { font-size: 0.85rem; font-weight: 700; color: var(--sf-text); margin-bottom: 0.15rem; }
.sf-prof-store-cat   { font-size: 0.7rem; color: var(--sf-text-muted); margin-bottom: 0.15rem; }
.sf-prof-store-count { font-size: 0.68rem; color: var(--sf-text-light); margin-bottom: 0.6rem; }
.sf-prof-store-actions { display: flex; gap: 0.3rem; justify-content: center; flex-wrap: wrap; }
.sf-prof-addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.65rem; }
.sf-prof-addr-card { border: 1.5px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.85rem; position: relative; transition: border-color 0.15s; }
.sf-prof-addr-card.is-default { border-color: var(--sf-brand); }
.sf-prof-addr-default-badge { position: absolute; top: 0.45rem; right: 0.45rem; font-size: 0.58rem; font-weight: 700; background: var(--sf-brand); color: #fff; border-radius: 999px; padding: 0.12rem 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sf-prof-addr-label { display: flex; align-items: center; gap: 0.3rem; font-size: 0.77rem; font-weight: 700; color: var(--sf-text); margin-bottom: 0.3rem; }
.sf-prof-addr-label i { color: var(--sf-brand); }
.sf-prof-addr-text { font-size: 0.75rem; color: var(--sf-text-muted); line-height: 1.45; margin-bottom: 0.6rem; }
.sf-prof-addr-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.sf-prof-addr-add-card {
    border: 1.5px dashed var(--sf-border); border-radius: var(--sf-radius); padding: 0.85rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.4rem; font-size: 0.77rem; font-weight: 600; color: var(--sf-text-muted);
    background: none; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; min-height: 120px;
}
.sf-prof-addr-add-card i { font-size: 1.35rem; color: var(--sf-text-light); }
.sf-prof-addr-add-card:hover { border-color: var(--sf-brand); color: var(--sf-brand); background: var(--sf-brand-light); }
.sf-prof-addr-add-card:hover i { color: var(--sf-brand); }
.sf-addr-modal-field { margin-bottom: 0.75rem; }
.sf-addr-modal-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--sf-text-muted); margin-bottom: 0.25rem; }
.sf-addr-modal-input { width: 100%; border: 1.5px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.5rem 0.7rem; font-size: 0.875rem; color: var(--sf-text); background: #fafafa; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.sf-addr-modal-input:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.11); background: #fff; }
.sf-prof-track-search { display: flex; gap: 0.5rem; margin-bottom: 1.35rem; }
.sf-prof-track-input { flex: 1; border: 1.5px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.52rem 0.75rem; font-size: 0.875rem; outline: none; transition: border-color 0.15s; min-width: 0; }
.sf-prof-track-input:focus { border-color: var(--sf-brand); }
.sf-prof-timeline { position: relative; padding-left: 2rem; }
.sf-prof-timeline::before { content: ''; position: absolute; left: 0.65rem; top: 0; bottom: 0; width: 2px; background: var(--sf-border); }
.sf-prof-timeline-step { position: relative; padding-bottom: 1.35rem; }
.sf-prof-timeline-step:last-child { padding-bottom: 0; }
.sf-prof-timeline-dot { position: absolute; left: -1.6rem; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--sf-border); border: 2px solid var(--sf-surface); display: flex; align-items: center; justify-content: center; font-size: 0.5rem; color: #fff; }
.sf-prof-timeline-step.is-done .sf-prof-timeline-dot { background: var(--sf-brand); }
.sf-prof-timeline-step.is-current .sf-prof-timeline-dot { background: var(--sf-green); box-shadow: 0 0 0 4px rgba(16,185,129,0.15); }
.sf-prof-timeline-title { font-size: 0.83rem; font-weight: 700; color: var(--sf-text-light); }
.sf-prof-timeline-step.is-done .sf-prof-timeline-title,
.sf-prof-timeline-step.is-current .sf-prof-timeline-title { color: var(--sf-text); }
.sf-prof-timeline-time { font-size: 0.7rem; color: var(--sf-text-light); margin-top: 0.08rem; }
.sf-prof-notif-list { display: flex; flex-direction: column; }
.sf-prof-notif-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--sf-border); gap: 1rem; }
.sf-prof-notif-row:last-child { border-bottom: none; }
.sf-prof-notif-info { flex: 1; }
.sf-prof-notif-title { font-size: 0.83rem; font-weight: 600; color: var(--sf-text); margin: 0 0 0.12rem; }
.sf-prof-notif-sub { font-size: 0.7rem; color: var(--sf-text-muted); margin: 0; }
.sf-toggle { position: relative; width: 38px; height: 21px; flex-shrink: 0; }
.sf-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.sf-toggle-track { position: absolute; inset: 0; background: var(--sf-border); border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.sf-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.sf-toggle input:checked + .sf-toggle-track { background: var(--sf-brand); }
.sf-toggle input:checked + .sf-toggle-track::after { transform: translateX(17px); }
.sf-prof-review-card { border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.85rem; margin-bottom: 0.65rem; }
.sf-prof-review-card:last-child { margin-bottom: 0; }
.sf-prof-review-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.45rem; }
.sf-prof-review-img { width: 42px; height: 42px; border-radius: var(--sf-radius); object-fit: cover; border: 1px solid var(--sf-border); }
.sf-prof-review-product { font-size: 0.8rem; font-weight: 600; color: var(--sf-text); margin-bottom: 0.1rem; }
.sf-prof-review-stars { color: var(--sf-amber); font-size: 0.7rem; margin-bottom: 0.05rem; }
.sf-prof-review-date { font-size: 0.66rem; color: var(--sf-text-light); }
.sf-prof-review-text { font-size: 0.78rem; color: var(--sf-text-muted); line-height: 1.45; }
.sf-prof-settings-form { max-width: 440px; }
.sf-prof-settings-field { margin-bottom: 0.9rem; }
.sf-prof-settings-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--sf-text-muted); margin-bottom: 0.27rem; }
.sf-prof-settings-input { width: 100%; border: 1.5px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.52rem 0.75rem; font-size: 0.875rem; color: var(--sf-text); background: #fafafa; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.sf-prof-settings-input:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.11); background: #fff; }
.sf-prof-settings-input:disabled { background: var(--sf-bg); color: var(--sf-text-muted); cursor: not-allowed; }
.sf-prof-photo-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.35rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--sf-border); }
.sf-prof-photo-preview { width: 68px; height: 68px; border-radius: 50%; background: var(--sf-brand-light); display: flex; align-items: center; justify-content: center; font-size: 1.85rem; color: var(--sf-brand); border: 2px solid var(--sf-border); overflow: hidden; flex-shrink: 0; }
.sf-prof-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.sf-prof-sec-card { border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.9rem; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.9rem; }
.sf-prof-sec-info { flex: 1; min-width: 0; }
.sf-prof-sec-icon { width: 38px; height: 38px; border-radius: var(--sf-radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sf-prof-sec-icon--brand { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-prof-sec-icon--red   { background: var(--sf-red-bg); color: var(--sf-red); }
.sf-prof-sec-title { font-size: 0.83rem; font-weight: 700; color: var(--sf-text); margin: 0 0 0.1rem; }
.sf-prof-sec-sub   { font-size: 0.7rem; color: var(--sf-text-muted); margin: 0; }
.sf-prof-danger-zone { border: 1px solid var(--sf-red); border-radius: var(--sf-radius); padding: 0.9rem; background: var(--sf-red-bg); margin-top: 0.9rem; }
.sf-prof-danger-title { font-size: 0.83rem; font-weight: 700; color: var(--sf-red); margin: 0 0 0.25rem; }
.sf-prof-danger-sub { font-size: 0.73rem; color: var(--sf-red); opacity: 0.82; margin: 0 0 0.7rem; }
.sf-prof-mobile-tabs {
    display: none; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; background: var(--sf-surface);
    border-bottom: 2px solid var(--sf-border); padding: 0 0.5rem;
    white-space: nowrap; position: sticky;
    top: calc(var(--sf-header-h,60px) + 32px); z-index: 10;
}
.sf-prof-mobile-tabs::-webkit-scrollbar { display: none; }
.sf-prof-mobile-tab {
    display: inline-flex; align-items: center; gap: 0.28rem; padding: 0.6rem 0.7rem;
    font-size: 0.72rem; font-weight: 600; color: var(--sf-text-muted);
    border: none; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    white-space: nowrap; transition: color 0.12s, border-color 0.12s;
}
.sf-prof-mobile-tab.is-active { color: var(--sf-brand); border-bottom-color: var(--sf-brand); }
@media (max-width: 991px) {
    .sf-prof-layout { grid-template-columns: 1fr; }
    .sf-prof-sidebar { display: none; }
    .sf-prof-mobile-tabs { display: flex; }
    .sf-prof-panel { border-radius: 0; border-left: none; border-right: none; border-top: none; }
}
@media (max-width: 575px) {
    .sf-prof-panel { padding: 0.9rem; }
    .sf-prof-addr-grid { grid-template-columns: 1fr; }
    .sf-prof-stores-grid { grid-template-columns: 1fr 1fr; }
    .sf-prof-wishlist-grid { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ PAGE  (sf-faq-*)
════════════════════════════════════════════════════════════════ */
.sf-faq-wrap { padding: 0; }
.sf-faq-hero { text-align: center; padding: 2rem 1rem 1.5rem; background: var(--sf-surface); border-bottom: 1px solid var(--sf-border); }
.sf-faq-hero-title { font-size: 1.65rem; font-weight: 900; color: var(--sf-text); letter-spacing: -0.03em; margin: 0 0 0.25rem; }
.sf-faq-hero-sub { font-size: 0.85rem; color: var(--sf-text-muted); margin: 0 0 1.1rem; }
.sf-faq-search-wrap { max-width: 460px; margin: 0 auto; position: relative; }
.sf-faq-search { width: 100%; border: 1.5px solid var(--sf-border); border-radius: 999px; padding: 0.6rem 1rem 0.6rem 2.4rem; font-size: 0.875rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; background: var(--sf-surface); box-sizing: border-box; }
.sf-faq-search:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(103,94,170,0.11); }
.sf-faq-search-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--sf-text-muted); font-size: 0.85rem; pointer-events: none; }
.sf-faq-body { padding: 1.5rem 0 3rem; }
.sf-faq-layout { display: grid; grid-template-columns: 190px 1fr; gap: 1.75rem; align-items: start; }
.sf-faq-sidebar { position: sticky; top: calc(var(--sf-header-h,60px) + 32px + 0.75rem); background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); padding: 0.45rem 0; overflow: hidden; }
.sf-faq-sidebar-title { font-size: 0.62rem; font-weight: 800; color: var(--sf-text-light); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.4rem 0.9rem 0.2rem; }
.sf-faq-nav-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.48rem 0.9rem; font-size: 0.79rem; font-weight: 500; color: var(--sf-text-muted); text-decoration: none; transition: background 0.12s, color 0.12s; border-left: 2px solid transparent; }
.sf-faq-nav-item i { font-size: 0.82rem; width: 15px; text-align: center; flex-shrink: 0; }
.sf-faq-nav-item:hover { background: var(--sf-brand-light); color: var(--sf-brand); }
.sf-faq-nav-item.is-active { background: var(--sf-brand-light); color: var(--sf-brand); font-weight: 700; border-left-color: var(--sf-brand); }
.sf-faq-content { min-width: 0; }
.sf-faq-section { margin-bottom: 1.65rem; }
.sf-faq-section:last-of-type { margin-bottom: 0; }
.sf-faq-section-label { font-size: 0.65rem; font-weight: 800; color: var(--sf-text-light); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.38rem; }
.sf-faq-section-label i { color: var(--sf-brand); font-size: 0.78rem; }
.sf-faq-item { border-bottom: 1px solid var(--sf-border-light); }
.sf-faq-item:first-of-type { border-top: 1px solid var(--sf-border-light); }
.sf-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; cursor: pointer; user-select: none; background: none; border: none; width: 100%; text-align: left; }
.sf-faq-q-text { font-size: 0.855rem; font-weight: 600; color: var(--sf-text); transition: color 0.12s; line-height: 1.4; }
.sf-faq-q:hover .sf-faq-q-text { color: var(--sf-brand); }
.sf-faq-q-icon { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--sf-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sf-text-muted); font-size: 0.78rem; font-weight: 700; line-height: 1; transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.22s; }
.sf-faq-item.is-open .sf-faq-q-icon { background: var(--sf-brand); border-color: var(--sf-brand); color: #fff; transform: rotate(45deg); }
.sf-faq-item.is-open .sf-faq-q-text { color: var(--sf-brand); }
.sf-faq-a { display: none; padding: 0 0 0.85rem; }
.sf-faq-a-text { font-size: 0.81rem; color: var(--sf-text-muted); line-height: 1.6; margin: 0; }
.sf-faq-item.is-open .sf-faq-a { display: block; animation: sf-reg-in 0.18s ease; }
.sf-faq-cta { background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); padding: 1.35rem; text-align: center; margin-top: 1.75rem; }
.sf-faq-cta-title { font-size: 0.92rem; font-weight: 700; color: var(--sf-text); margin: 0 0 0.35rem; }
.sf-faq-cta-sub { font-size: 0.78rem; color: var(--sf-text-muted); margin: 0 0 0.9rem; }
.sf-faq-cta-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--sf-brand); color: #fff; border-radius: var(--sf-radius); padding: 0.52rem 1.15rem; font-size: 0.81rem; font-weight: 700; text-decoration: none; transition: background 0.15s; }
.sf-faq-cta-btn:hover { background: var(--sf-brand-dark); color: #fff; }
.sf-faq-cat-select { display: none; width: 100%; border: 1.5px solid var(--sf-border); border-radius: var(--sf-radius); padding: 0.52rem 0.75rem; font-size: 0.875rem; color: var(--sf-text); background: var(--sf-surface); outline: none; margin-bottom: 0.9rem; box-sizing: border-box; }
@media (max-width: 767px) {
    .sf-faq-layout { grid-template-columns: 1fr; }
    .sf-faq-sidebar { display: none; }
    .sf-faq-cat-select { display: block; }
    .sf-faq-hero-title { font-size: 1.3rem; }
    .sf-faq-hero { padding: 1.25rem 0.75rem 1.1rem; }
    .sf-faq-body { padding: 1rem 0 2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   SKIN SYSTEM
   Each skin overrides tokens + targeted component rules only.
   Structure never changes — only color, radius, shadow.
   Default = no class — Taiki purple baseline.
════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   TECH  —  electric blue / steel grey / razor corners
   Feel: data-dense, technical, high-clarity grid
───────────────────────────────────────────────────────────── */
body.skin-tech {
    --sf-brand:         #1d4ed8;
    --sf-brand-dark:    #1e40af;
    --sf-brand-light:   #dbeafe;
    --sf-brand-xlight:  #f0f6ff;
    --sf-bg:            #eef2f7;
    --sf-surface:       #ffffff;
    --sf-border:        #cdd7e3;
    --sf-border-light:  #dde6ef;
    --sf-card-shadow:   0 1px 3px rgba(0,0,0,0.09);
    --sf-card-shadow-h: 0 4px 18px rgba(29,78,216,0.16);
    --sf-radius:        0.2rem;
    --sf-radius-lg:     0.35rem;
    --sf-section-py:    0.85rem;
}
/* Topbar: deepest navy — anchors depth stack */
body.skin-tech .sf-topbar        { background: #172554; border-bottom-color: rgba(255,255,255,0.07); }
/* Header: mid navy — clear step up from topbar */
body.skin-tech .sf-header        { background: #1e3a8a; border-bottom: 2px solid #1d4ed8; }
/* Card image bg: cool blue-grey instead of purple */
body.skin-tech .sf-card-img-wrap { background: #e2ebf6; }
/* Installment icon circle picks up brand blue */
body.skin-tech .sf-icon-item--installment .sf-icon-circle { background: #dbeafe; color: #1d4ed8; }

/* ─────────────────────────────────────────────────────────────
   FASHION  —  vibrant rose / deep pink / soft editorial
   Feel: aspirational, romantic, runway
───────────────────────────────────────────────────────────── */
body.skin-fashion {
    --sf-brand:         #db2777;
    --sf-brand-dark:    #be185d;
    --sf-brand-light:   #fce7f3;
    --sf-brand-xlight:  #fff8fd;
    --sf-bg:            #fff5fb;
    --sf-surface:       #ffffff;
    --sf-border:        #f0d0e5;
    --sf-border-light:  #fae8f4;
    --sf-card-shadow:   0 1px 3px rgba(0,0,0,0.07);
    --sf-card-shadow-h: 0 4px 18px rgba(219,39,119,0.14);
    --sf-radius:        0.65rem;
    --sf-radius-lg:     0.9rem;
}
/* Topbar: deep plum — darkest layer */
body.skin-fashion .sf-topbar        { background: #831843; border-bottom-color: rgba(255,255,255,0.09); }
/* Header: rose gradient — plum left → brand right */
body.skin-fashion .sf-header        { background: linear-gradient(90deg, #9d174d 0%, #db2777 100%); }
/* Card image bg: soft blush */
body.skin-fashion .sf-card-img-wrap { background: #fdf2f8; }
/* Fashion category circle glows brand rose */
body.skin-fashion .sf-icon-item--fashion .sf-icon-circle { background: #fce7f3; color: #db2777; }

/* ─────────────────────────────────────────────────────────────
   COSMETICS  —  warm gold / deep olive / cream ivory
   Gold  = primary brand (CTAs, links, active states)
   Olive = header, topbar, structural accents (sharp contrast)
   Ivory = page background (breathable, airy luxury)
───────────────────────────────────────────────────────────── */
body.skin-cosmetics {
    --sf-brand:         #c9a227;
    --sf-brand-dark:    #a07d10;
    --sf-brand-light:   #fdf0b8;
    --sf-brand-xlight:  #fffbec;
    --sf-bg:            #f9f6ee;
    --sf-surface:       #ffffff;
    --sf-border:        #ddd09a;
    --sf-border-light:  #eee8c8;
    --sf-card-shadow:   0 1px 4px rgba(0,0,0,0.07);
    --sf-card-shadow-h: 0 4px 20px rgba(74,94,42,0.18);
    --sf-radius:        0.55rem;
    --sf-radius-lg:     0.8rem;
}
/* Topbar: darkest olive — maximum depth contrast */
body.skin-cosmetics .sf-topbar       { background: #2e3b18; border-bottom-color: rgba(255,255,255,0.08); }
/* Header: olive range gradient, dark left → bright right */
body.skin-cosmetics .sf-header       { background: linear-gradient(90deg, #3d4e22 0%, #5c6b2e 55%, #7a8a38 100%); }
/* Logo text: gold on olive — the signature hero contrast */
body.skin-cosmetics .sf-merch-logo-placeholder { color: #f5d96a; letter-spacing: -0.02em; }
/* Card image bg: warm ivory */
body.skin-cosmetics .sf-card-img-wrap { background: #f5f0df; }
/* Deadline promo banner: olive → golden sweep — the money shot */
body.skin-cosmetics .sf-merch-deadline { background: linear-gradient(135deg, #3d4e22 0%, #7a8a38 45%, #c9a227 100%); }
/* "View all" links: olive (readable on cream, better than gold on ivory) */
body.skin-cosmetics .sf-view-all       { color: #5c6b2e; }
body.skin-cosmetics .sf-view-all:hover { color: #3d4e22; }
/* Category icon circles: gold=beauty, olive=nature/new/home */
body.skin-cosmetics .sf-icon-item--beauty .sf-icon-circle { background: #fdf0b8; color: #a07d10; }
body.skin-cosmetics .sf-icon-item--new    .sf-icon-circle { background: #eef2e3; color: #4a5e2a; }
body.skin-cosmetics .sf-icon-item--home   .sf-icon-circle { background: #eef2e3; color: #5c6b2e; }
body.skin-cosmetics .sf-icon-item--kitchen .sf-icon-circle { background: #fdf0b8; color: #c9a227; }

/* ─────────────────────────────────────────────────────────────
   DARK  —  deep navy / indigo glow / glass premium
   Feel: ultra-modern, night mode, exclusive
───────────────────────────────────────────────────────────── */
body.skin-dark {
    --sf-brand:         #818cf8;
    --sf-brand-dark:    #6366f1;
    --sf-brand-light:   rgba(129,140,248,0.14);
    --sf-brand-xlight:  rgba(129,140,248,0.06);
    --sf-bg:            #0f0e1a;
    --sf-surface:       #1a1827;
    --sf-border:        #2e2c44;
    --sf-border-light:  #252337;
    --sf-text:          #f0eeff;
    --sf-text-muted:    #9b97be;
    --sf-text-light:    #65618f;
    --sf-card-shadow:   0 1px 4px rgba(0,0,0,0.55);
    --sf-card-shadow-h: 0 6px 24px rgba(0,0,0,0.65);
}
/* Topbar: void black — deepest layer */
body.skin-dark .sf-topbar        { background: #0d0b18; border-bottom-color: #1e1c30; }
/* Header: deep navy — step up from void */
body.skin-dark .sf-header        { background: #130f22; border-bottom: 1px solid #2e2c44; }
/* Footer matches topbar void */
body.skin-dark .sf-footer        { background: #0d0b18; border-top-color: #2e2c44; }
/* Icon strip & social: raised surface so they don't vanish into bg */
body.skin-dark .sf-icons-section { background: #1a1827; border-bottom-color: #2e2c44; }
body.skin-dark .sf-social-strip  { background: #1a1827; }
/* Card image bg: dark surface — NO light blobs */
body.skin-dark .sf-card-img-wrap { background: #252337; }
/* Deadline banner: deep indigo — darker and more dramatic than brand purple */
body.skin-dark .sf-merch-deadline { background: linear-gradient(135deg, #0d0b18 0%, #1a1740 50%, #2d2960 100%); border-top: 1px solid #2e2c44; border-bottom: 1px solid #2e2c44; }
/* Deadline CTA: solid brand color on dark bg (white bg unreadable) */
body.skin-dark .sf-merch-deadline-cta       { background: #818cf8; color: #fff; }
body.skin-dark .sf-merch-deadline-cta:hover { background: #6366f1; opacity: 1; color: #fff; }
/* "View all" links visible on dark */
body.skin-dark .sf-view-all       { color: #818cf8; }
body.skin-dark .sf-view-all:hover { color: #a5b4fc; }
/* ALL icon circles → dark surface, then recolor icons individually */
body.skin-dark .sf-icon-circle { background: #252337 !important; }
body.skin-dark .sf-icon-item--electronics .sf-icon-circle { color: #818cf8; }
body.skin-dark .sf-icon-item--fashion     .sf-icon-circle { color: #f472b6; }
body.skin-dark .sf-icon-item--home        .sf-icon-circle { color: #fb923c; }
body.skin-dark .sf-icon-item--kitchen     .sf-icon-circle { color: #f87171; }
body.skin-dark .sf-icon-item--beauty      .sf-icon-circle { color: #c084fc; }
body.skin-dark .sf-icon-item--deals       .sf-icon-circle { color: #fbbf24; }
body.skin-dark .sf-icon-item--new         .sf-icon-circle { color: #34d399; }
body.skin-dark .sf-icon-item--installment .sf-icon-circle { color: #818cf8; }

/* ── Footer overrides — base footer has hardcoded Taiki purple gradient ── */
/* Tech: deep navy footer matches header depth stack */
body.skin-tech .sf-footer      { background: linear-gradient(175deg, #1e3a8a 0%, #172554 100%); }
/* Fashion: deep plum footer — darkest rose layer */
body.skin-fashion .sf-footer   { background: linear-gradient(175deg, #831843 0%, #5b0f2e 100%); }
/* Cosmetics: deep olive footer — ground the gold/ivory palette */
body.skin-cosmetics .sf-footer { background: linear-gradient(175deg, #2e3b18 0%, #1e2810 100%); }
/* Dark: already set above — void black */

/* ═══════════════════════════════════════════════════════════════
   MERCHANT STOREFRONT  (sf-merch-*)
════════════════════════════════════════════════════════════════ */
.sf-merch-taiki-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px; padding: 0.12rem 0.6rem 0.12rem 0.4rem;
    font-size: 0.64rem; font-weight: 700; color: rgba(255,255,255,0.9);
    text-decoration: none; transition: background 0.15s; letter-spacing: 0.01em; white-space: nowrap;
}
.sf-merch-taiki-badge:hover { background: rgba(255,255,255,0.25); color: #fff; }
.sf-merch-taiki-badge img { height: 11px; width: auto; opacity: 0.88; }
.sf-merch-logo-wrap { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; flex-shrink: 0; }
.sf-merch-logo-img { height: 34px; width: auto; object-fit: contain; }
.sf-merch-logo-placeholder { height: 34px; display: flex; align-items: center; font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.sf-merch-logo-sub { font-size: 0.6rem; color: rgba(255,255,255,0.62); font-weight: 500; line-height: 1; margin-top: 0.1rem; }
/* Hero slider */
.sf-merch-slider { position: relative; width: 100%; overflow: hidden; background: #0f0e1a; height: 420px; }
.sf-merch-track { display: flex; height: 100%; transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.sf-merch-slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; }
.sf-merch-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 8s ease; transform-origin: center; }
.sf-merch-slide.is-active .sf-merch-slide-bg { transform: scale(1.04); }
.sf-merch-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,0,0,0.68) 0%,rgba(0,0,0,0.35) 55%,rgba(0,0,0,0.05) 100%); }
.sf-merch-slide-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 5%; max-width: 580px; }
.sf-merch-slide-eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.sf-merch-slide-title { font-size: clamp(1.5rem,4vw,2.4rem); font-weight: 900; color: #fff; line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.sf-merch-slide-sub { font-size: 0.95rem; color: rgba(255,255,255,0.8); margin: 0 0 1.35rem; line-height: 1.5; }
.sf-merch-slide-cta { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--sf-brand); color: #fff; border-radius: var(--sf-radius); padding: 0.65rem 1.35rem; font-size: 0.88rem; font-weight: 700; text-decoration: none; transition: background 0.15s, transform 0.1s; align-self: flex-start; }
.sf-merch-slide-cta:hover { background: var(--sf-brand-dark); color: #fff; transform: translateY(-1px); }
.sf-merch-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; color: #fff; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; z-index: 5; backdrop-filter: blur(4px); }
.sf-merch-arrow:hover { background: rgba(255,255,255,0.3); }
.sf-merch-arrow--prev { left: 1rem; }
.sf-merch-arrow--next { right: 1rem; }
.sf-merch-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; z-index: 5; }
.sf-merch-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s, width 0.2s; border: none; padding: 0; }
.sf-merch-dot.is-active { background: #fff; width: 20px; border-radius: 3px; }
@media (max-width: 767px) {
    .sf-merch-slider { height: 260px; }
    .sf-merch-slide-title { font-size: 1.25rem; }
    .sf-merch-slide-sub { font-size: 0.8rem; }
    .sf-merch-slide-inner { padding: 1.25rem 1rem; }
    .sf-merch-arrow { display: none; }
}
/* Merchant homepage deadline promo section */
.sf-merch-deadline { padding: var(--sf-section-py) 0; background: linear-gradient(135deg,var(--sf-brand) 0%,var(--sf-brand-dark) 100%); color: #fff; }
.sf-merch-deadline-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.sf-merch-deadline-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.78; margin-bottom: 0.2rem; }
.sf-merch-deadline-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 0.12rem; }
.sf-merch-deadline-sub { font-size: 0.8rem; opacity: 0.78; margin: 0; }
.sf-merch-deadline-timer { display: flex; gap: 0.4rem; align-items: center; flex-shrink: 0; }
.sf-merch-deadline-cell { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--sf-radius); padding: 0.32rem 0.6rem; text-align: center; min-width: 50px; }
.sf-merch-deadline-cell span { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1; }
.sf-merch-deadline-cell small { font-size: 0.52rem; text-transform: uppercase; opacity: 0.73; letter-spacing: 0.06em; }
.sf-merch-deadline-sep { font-size: 1.2rem; font-weight: 900; opacity: 0.6; margin-top: -4px; }
.sf-merch-deadline-cta { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; color: var(--sf-brand); border-radius: var(--sf-radius); padding: 0.58rem 1.15rem; font-size: 0.83rem; font-weight: 700; text-decoration: none; transition: opacity 0.15s; flex-shrink: 0; }
.sf-merch-deadline-cta:hover { opacity: 0.88; color: var(--sf-brand); }
@media (max-width: 767px) {
    .sf-merch-deadline-inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
    .sf-merch-deadline-title { font-size: 1.05rem; }
}

/* ── Order tracking page (/track) ──────────────────────────────────────── */
.sf-track-container   { max-width: 680px; padding-top: 2.5rem; padding-bottom: 3rem; }
.sf-track-item-meta   { font-size: .8rem; }
.sf-track-event-time  { font-size: .75rem; color: #888; }
