/*
 * 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;
    overflow-x: hidden; /* prevent horizontal scroll from marquee/river on mobile */
}

/* ── 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;
}

/* Hide desktop header and search on mobile */
@media (max-width: 767.98px) {
    /* Hide entire desktop header (topbar + header with search) */
    .sf-header-wrap {
        display: none !important;
    }

    /* Hide desktop search */
    .sf-search-form {
        display: none !important;
    }

    /* Hide mobile topbar logo — ONLY search bar should show */
    .sf-mob-logo {
        display: none !important;
    }
}

.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;
}

/* Wishlist badge — same shape as cart badge, uses pink */
.sf-wish-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--sf-pink);
    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-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1630 0%, #251e3e 100%);
    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-wishlist-btn .sf-wish-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 — fallback for DB categories without a slug-specific modifier */
.sf-icon-item .sf-icon-circle { background: var(--sf-brand-light); color: var(--sf-brand); }

/* Icon color modifiers — slug-matched categories override the fallback */
.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;
    max-width: 100%;
    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;
    word-break: break-word;
    /* Clamp height for browsers without -webkit-line-clamp support */
    max-height: calc(1.35em * 2);
}

.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;
}

/* ── Horizontal scrollable merchant section ──────────────────────── */
.sf-merchant-scroll {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    cursor: grab;
}

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

.sf-merchant-scroll .sf-merchant-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
}

/* 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);    }
/* Neutral — used for real merchants: subtle brand-light bg + brand icon */
.sf-avatar--neutral { background: var(--sf-brand-light); color: var(--sf-brand);
                      border: 1px solid var(--sf-border-light); }

/* Merchant logo image inside avatar circle */
.sf-merchant-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 6px;
}

/* ── 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(2, 1fr);
        gap: 0.5rem;
    }

    /* Hero deals grid on mobile: 2 columns */
    .sf-hero-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    /* Timer pill styling for mobile (smaller cards) */
    .sf-deal-timer-pill {
        font-size: 0.5rem;
        padding: 0.1rem 0.22rem;
        gap: 0.08rem;
        letter-spacing: 0;
    }
    .sf-deal-timer-pill i { display: none; }

    /* Main content padding to avoid overlap with bottom nav */
    main {
        padding-bottom: 72px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   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: inline-flex;   /* shrink to content width */
    flex-direction: column;
    align-items: stretch;   /* children fill card width */
    gap: 0.65rem;
    width: fit-content;     /* card is only as wide as its content */
}

.sf-footer-qr {
    width: 148px;           /* fixed — drives the card width */
    height: 148px;
    aspect-ratio: 1 / 1;   /* bulletproof 1:1 regardless of container */
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.55rem;
    border: 2px solid rgba(255,255,255,0.14);
    display: block;
    background: #fff;
}

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

.sf-footer-store-btns {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 148px;           /* match QR — buttons never wider */
}

.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.6rem;
    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;
    width: 100%;            /* fill the 148px store-btns container */
    box-sizing: border-box;
}

.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.1rem;
    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         { width: 120px; height: 120px; }
    .sf-footer-qr-caption { width: 120px; }
    .sf-footer-store-btns { 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; }
    .sf-footer-qr         { width: 108px; height: 108px; }
    .sf-footer-qr-caption { width: 108px; }
    .sf-footer-store-btns { width: 108px; }
    /* Timer pill already covered by the 767.98px breakpoint above */
}

/* ── 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); }

/* Login modal error */
.sf-login-error {
    font-size: 0.8rem;
    color: var(--sf-red);
    padding: 0.45rem 0.6rem;
    background: rgba(220, 53, 69, 0.07);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Login / Register tab switcher */
.sf-login-tabs {
    display: flex;
    border-radius: 0.75rem;
    background: var(--sf-bg-alt, #f5f5f7);
    padding: 0.25rem;
    padding-right: 3rem;
    margin-bottom: 1.5rem;
    gap: 0.25rem;
}

.sf-login-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    border-radius: 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sf-text-light);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.sf-login-tab.is-active {
    background: #fff;
    color: var(--sf-brand);
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* 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; }
}

/* ── Search autocomplete dropdown ────────────────────────────── */
.sf-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 9999;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.sf-autocomplete-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--sf-text);
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s;
}

.sf-autocomplete-item:last-child { border-bottom: none; }

.sf-autocomplete-item:hover,
.sf-autocomplete-item.is-active {
    background: var(--sf-bg-alt, #f5f5f7);
    color: var(--sf-brand);
}

/* ── 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.1rem;
}
.sf-filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--sf-text-main);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    min-height: 34px;
}
.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.11);
    color: var(--sf-brand);
    font-weight: 600;
}
.sf-filter-item-check {
    flex-shrink: 0;
    width: 15px;
    font-size: 0.88rem;
    line-height: 1;
    color: #c5c2d8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf-filter-item.is-active .sf-filter-item-check { color: var(--sf-brand); }
.sf-filter-item-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-filter-item-count {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--sf-text-muted);
    background: #f0eef8;
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
    min-width: 26px;
    text-align: center;
    line-height: 1.5;
}
.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); }

/* Image search — match score badge */
.sf-img-match-score {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--sf-brand);
    background: var(--sf-brand-xlight, #eae8f4);
    border-radius: 4px;
    padding: 1px 5px;
    margin-bottom: 3px;
}

/* ── 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;
}

/* ── Pagination ellipsis ── */
.sf-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
    color: var(--sf-text-muted);
}

/* ── Empty state ── */
.sf-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    gap: 1rem;
    color: var(--sf-text-muted);
}
.sf-search-empty i {
    font-size: 3rem;
    opacity: 0.35;
}
.sf-search-empty p {
    font-size: 1rem;
    margin: 0;
}

/* ── Image placeholder ── */
.sf-search-card-img--placeholder {
    background: var(--sf-bg);
    width: 100%;
    height: 100%;
}

/* 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-variant-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 0.2rem;
}
.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 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    width: 100%;
    color: var(--sf-red);
}

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

/* Logout Confirmation Modal */
#logoutModal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#logoutModal.hidden {
    display: none !important;
}

.logout-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.logout-modal-content h3 {
    margin: 0 0 1rem 0;
    color: var(--sf-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.logout-modal-content p {
    margin: 0 0 2rem 0;
    color: var(--sf-text-muted);
    line-height: 1.5;
}

.logout-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.logout-modal-buttons button {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    font: inherit;
}

#logoutCancel {
    border: 1px solid var(--sf-border);
    background: white;
    color: var(--sf-text);
}

#logoutCancel:hover {
    background: var(--sf-bg-light);
}

#logoutConfirm {
    background: var(--sf-red);
    color: white;
}

#logoutConfirm:hover {
    opacity: 0.9;
}

/* 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;
}

/* ── ADDRESS FORM STYLES ──────────────────────────────────────── */
.sf-addr-label {
    color: var(--sf-text) !important;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.sf-addr-input-prefix {
    background: var(--sf-bg-light);
    border-color: var(--sf-border);
    color: var(--sf-text-muted);
    font-weight: 500;
}

.sf-addr-select,
.sf-addr-text-input,
.sf-addr-phone-input,
.sf-addr-postal-input,
.sf-addr-textarea {
    border-color: var(--sf-border);
}

.sf-addr-select:focus,
.sf-addr-text-input:focus,
.sf-addr-phone-input:focus,
.sf-addr-postal-input:focus,
.sf-addr-textarea:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 0.2rem rgba(103, 94, 170, 0.1);
}

.sf-addr-postal-input {
    background: var(--sf-bg-light);
}

.sf-addr-textarea {
    resize: vertical;
}

/* ── PROFILE ADDRESS FORM COMPREHENSIVE STYLES ──────────────── */

.sf-addr-form-wrapper {
    max-width: 700px;
}

.sf-addr-form-title {
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: 0.25rem;
}

.sf-addr-form-subtitle {
    color: var(--sf-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.sf-addr-form-container {
    background: var(--sf-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--sf-border);
}

.sf-addr-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sf-border);
}

.sf-addr-section:last-of-type {
    border-bottom: none;
}

.sf-addr-section-header {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sf-text-muted);
    margin-bottom: 1rem;
}

.sf-addr-form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--sf-text);
}

.sf-addr-form-label-optional {
    font-size: 0.75rem;
    color: var(--sf-text-muted);
}

.sf-addr-input-default {
    border-color: var(--sf-border);
}

.sf-addr-input-default:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 0.2rem rgba(103, 94, 170, 0.1);
}

.sf-addr-section-checkbox {
    padding: 1rem;
    background: var(--sf-bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.sf-addr-section-checkbox-label {
    color: var(--sf-text);
}

.sf-addr-section-checkbox-sublabel {
    color: var(--sf-text-muted);
    font-size: 0.75rem;
}

.sf-addr-button-group {
    display: flex;
    gap: 0.5rem;
}

.sf-addr-button-delete {
    display: none;
}

.sf-addr-back-button {
    color: var(--sf-text-muted);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sf-addr-back-button:hover {
    color: var(--sf-brand) !important;
    transform: translateX(-2px);
}

.sf-addr-back-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 94, 170, 0.1);
    border-radius: 4px;
}

.sf-addr-back-button-icon {
    font-size: 1rem;
}

/* ── PROFILE SETTINGS EMAIL ────────────────────────────────── */
.sf-settings-email-hint {
    font-size: 0.875rem;
    color: var(--sf-text-muted);
    margin-top: 0.3rem;
}

/* ADDRESS CARD REDESIGN - IMPROVED UX */
.sf-addr-card {
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sf-addr-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: var(--sf-brand);
}

.sf-addr-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sf-text);
    word-break: break-word;
}

.sf-addr-card-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-addr-card-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sf-text-muted);
    margin-bottom: 0.25rem;
}

.sf-addr-card-section-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-addr-card-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--sf-text);
    line-height: 1.4;
}

.sf-addr-card-line i {
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
    color: var(--sf-brand);
    margin-top: 0.1rem;
}

.sf-addr-card-line span {
    flex: 1;
    word-break: break-word;
}

.sf-addr-card-line .fw-500 {
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SEARCH FORM — Optimized for mobile viewport
   Visible only on mobile (< 768px), hidden on tablet/desktop
════════════════════════════════════════════════════════════════ */

/* Default: hide mobile search on desktop */
.sf-mob-search-form {
    display: none !important;
}

/* Show only on mobile and style as header */
@media (max-width: 767.98px) {
    .sf-mob-search-form {
        display: flex !important;
        align-items: center;
        height: auto;
        padding: 0.75rem 1rem;
        background: #fff;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 50;
        border-bottom: 1px solid var(--sf-border);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .sf-mob-search-inner {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #f5f4fb;
        border-radius: 20px;
        padding: 0.6rem 1rem;
        border: none;
    }

    .sf-mob-search-icon {
        font-size: 1rem;
        color: var(--sf-text-muted);
        flex-shrink: 0;
    }

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

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

    .sf-mob-camera-btn {
        border: none;
        background: transparent;
        color: var(--sf-text-muted);
        padding: 0;
        cursor: pointer;
        font-size: 1.1rem;
        transition: color 0.12s;
        flex-shrink: 0;
    }

    .sf-mob-camera-btn:active {
        color: var(--sf-brand);
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION — App shell style (5 tabs)
   Visible only on mobile (< 768px), hidden on tablet/desktop
════════════════════════════════════════════════════════════════ */

/* Default: hide on all screens */
.sf-mob-bottom-nav {
    display: none !important;
}

/* Show only on mobile */
@media (max-width: 767.98px) {
    .sf-mob-bottom-nav {
        display: flex !important;
    }
    .sf-mob-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--sf-surface);
        border-top: 1px solid var(--sf-border);
        display: flex;
        align-items: stretch;
        height: 68px;
        z-index: 100;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    .sf-mob-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        text-decoration: none;
        color: var(--sf-text-muted);
        background: none;
        border: none;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0.5rem;
        transition: color 0.15s;
        cursor: pointer;
        position: relative;
    }

    .sf-mob-nav-item:active,
    .sf-mob-nav-item.active {
        color: var(--sf-brand);
    }

    .sf-mob-nav-item:active .sf-mob-nav-icon,
    .sf-mob-nav-item.active .sf-mob-nav-icon {
        color: var(--sf-brand);
    }

    .sf-mob-nav-icon {
        font-size: 1.35rem;
        line-height: 1;
        color: var(--sf-text-muted);
        transition: color 0.15s;
        position: relative;
    }

    .sf-mob-cart-badge {
        position: absolute;
        top: -2px;
        right: -4px;
        background: var(--sf-red);
        color: #fff;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.55rem;
        font-weight: 800;
        min-width: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU OVERLAY & NAVIGATION
   Hidden on desktop, shown only on mobile when toggled
════════════════════════════════════════════════════════════════ */

/* Mobile menu overlay — hidden by default on all screens */
.sf-mob-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Show overlay on mobile when active */
@media (max-width: 767px) {
    .sf-mob-menu-overlay.open {
        display: flex;
    }
}

/* Hide on desktop completely */
@media (min-width: 768px) {
    .sf-mob-menu-overlay {
        display: none !important;
    }
}

/* Mobile menu panel — slides up from bottom */
.sf-mob-menu-panel {
    background: var(--sf-surface);
    border-radius: 12px 12px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.sf-mob-menu-header {
    border-bottom: 1px solid var(--sf-border);
}

.sf-mob-menu-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.sf-mob-menu-brand {
    height: 28px;
}

.sf-mob-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: var(--sf-text);
}

.sf-mob-menu-guest,
.sf-mob-menu-user {
    padding: 1rem;
}

.sf-mob-menu-user {
    display: flex;
    gap: 1rem;
    background: var(--sf-bg);
}

.sf-mob-menu-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--sf-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.sf-mob-menu-user-name {
    font-weight: 600;
    color: var(--sf-text);
}

.sf-mob-menu-user-phone {
    font-size: 0.875rem;
    color: var(--sf-text-muted);
}

.sf-mob-menu-welcome {
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--sf-text);
}

.sf-mob-menu-welcome-sub {
    font-size: 0.875rem;
    color: var(--sf-text-muted);
    margin: 0 0 1rem;
}

.sf-mob-menu-auth-btns {
    display: flex;
    gap: 0.5rem;
}

.sf-mob-menu-signin,
.sf-mob-menu-register {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.sf-mob-menu-signin {
    background: var(--sf-brand);
    color: white;
}

.sf-mob-menu-signin:hover {
    background: var(--sf-brand-dark);
}

.sf-mob-menu-register {
    background: var(--sf-bg);
    color: var(--sf-text);
    border: 1px solid var(--sf-border);
}

.sf-mob-menu-register:hover {
    background: var(--sf-border);
}

.sf-mob-menu-nav {
    padding: 1rem 0;
}

.sf-mob-menu-section {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sf-text-muted);
    margin-top: 0.5rem;
}

.sf-mob-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--sf-text);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.sf-mob-menu-link:hover {
    background: var(--sf-bg);
}

.sf-mob-menu-link i:first-child {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    color: var(--sf-text-muted);
}

.sf-mob-link-arrow {
    margin-left: auto;
    font-size: 0.85rem;
}

.sf-mob-menu-divider {
    height: 1px;
    background: var(--sf-border);
    margin: 0.5rem 0;
}

.sf-mob-menu-locale {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
}

.sf-mob-locale-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--sf-border);
    border-radius: 6px;
    background: var(--sf-surface);
    color: var(--sf-text-muted);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.sf-mob-locale-btn.active {
    background: var(--sf-brand);
    color: white;
    border-color: var(--sf-brand);
}

.sf-mob-menu-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--sf-red);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-weight: 500;
    transition: background 0.2s;
}

.sf-mob-menu-logout:hover {
    background: var(--sf-red-bg);
}
