/* ============================================================
   STOREFRONT DESIGN SYSTEM — Bento Grid Commerce
   Apple meets Notion meets luxury e-commerce
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
    --sf-primary: #6C5CE7;
    --sf-primary-light: #a29bfe;
    --sf-primary-dark: #5a4bd1;
    --sf-secondary: #00CECE;
    --sf-secondary-light: #81ecec;
    --sf-accent-pink: #FD79A8;
    --sf-accent-pink-light: #fab1ca;
    --sf-success: #00B894;
    --sf-success-light: #55efc4;
    --sf-warning: #FDCB6E;
    --sf-orange: #e17055;
    --sf-danger: #e17055;
    --sf-dark: #2D3436;
    --sf-dark-lighter: #3d4749;
    --sf-dark-mid: #636e72;

    --sf-bg: #f5f5f7;
    --sf-bg-warm: #f9f8fc;
    --sf-card-bg: #FFFFFF;
    --sf-glass: rgba(255, 255, 255, 0.75);
    --sf-glass-strong: rgba(255, 255, 255, 0.92);
    --sf-glass-subtle: rgba(255, 255, 255, 0.5);
    --sf-glass-dark: rgba(45, 52, 54, 0.6);

    --sf-text: #1a1a2e;
    --sf-text-secondary: #555770;
    --sf-text-muted: #9ca3af;
    --sf-text-on-primary: #FFFFFF;
    --sf-border: #d1d5db;
    --sf-border-light: #e5e7eb;

    --sf-radius-sm: 8px;
    --sf-radius-md: 12px;
    --sf-radius-lg: 16px;
    --sf-radius-xl: 20px;
    --sf-radius-2xl: 24px;
    --sf-radius-pill: 999px;

    --sf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --sf-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --sf-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --sf-shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.15);
    --sf-shadow-glow: 0 0 20px rgba(108, 92, 231, 0.25);
    --sf-shadow-glow-pink: 0 0 20px rgba(253, 121, 168, 0.25);
    --sf-shadow-glow-teal: 0 0 20px rgba(0, 206, 206, 0.25);

    --sf-gradient-primary: linear-gradient(135deg, #6C5CE7, #a29bfe);
    --sf-gradient-hero: linear-gradient(135deg, #5B4ACF 0%, #6C5CE7 35%, #818cf8 65%, #00CECE 100%);
    --sf-gradient-warm: linear-gradient(135deg, #e17055, #FD79A8);
    --sf-gradient-cool: linear-gradient(135deg, #6C5CE7, #00CECE);
    --sf-gradient-accent: linear-gradient(90deg, #6C5CE7, #818cf8, #00CECE);
    --sf-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
    --sf-gradient-card: linear-gradient(160deg, rgba(108,92,231,0.04), rgba(0,206,206,0.03));
    --sf-gradient-card-warm: linear-gradient(160deg, rgba(253,121,168,0.05), rgba(108,92,231,0.03));

    --sf-blur: blur(20px);
    --sf-blur-lg: blur(40px);

    --sf-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sf-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --sf-transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    --sf-header-height: 64px;
    --sf-topbar-height: 30px;
    --sf-pills-height: 40px;

    --sf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sf-font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --sf-bento-gap: 12px;
    --sf-bento-cols: 4;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sf-font);
    color: var(--sf-text);
    background: var(--sf-bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

#main-content {
    flex: 1 0 auto;
    position: relative;
}

.storefront-footer { margin-top: auto; }

a {
    color: var(--sf-primary);
    text-decoration: none;
    transition: color var(--sf-transition);
}
a:hover { color: var(--sf-primary-dark); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

::selection {
    background: rgba(108, 92, 231, 0.2);
    color: var(--sf-dark);
}


/* ============================================================
   TOP ACCENT LINE
   ============================================================ */
.top-accent {
    height: 3px;
    background: var(--sf-gradient-accent);
    position: relative;
    z-index: 1100;
    flex-shrink: 0;
}


/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--sf-bg);
    font-size: 0.78rem;
    position: relative;
    z-index: 1080;
    height: var(--sf-topbar-height);
    display: flex;
    align-items: center;
    color: var(--sf-text-secondary);
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--sf-border-light);
}

.top-bar a {
    color: var(--sf-text-secondary);
    font-weight: 500;
}
.top-bar a:hover { color: var(--sf-primary); }

.top-bar .dropdown-menu { z-index: 1085; }

.currency-dropdown-menu {
    border-radius: var(--sf-radius-lg);
    border: 1px solid var(--sf-border);
    background: #fff;
    box-shadow: var(--sf-shadow-lg);
    overflow: hidden;
}

.currency-dropdown-menu .currency-search-input {
    border-radius: var(--sf-radius-md);
    font-size: 0.8rem;
    border: 1px solid var(--sf-border);
}

.currency-dropdown-menu .dropdown-item {
    border-radius: var(--sf-radius-sm);
    margin: 2px 6px;
    width: auto;
    font-size: 0.82rem;
    transition: all var(--sf-transition-fast);
}

.currency-dropdown-menu .dropdown-item:hover {
    background: rgba(108, 92, 231, 0.12);
}


/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header,
.storefront-navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1070;
    transition: box-shadow var(--sf-transition), background var(--sf-transition);
    border-bottom: 1px solid var(--sf-border-light);
}

.main-header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 0.5rem 0;
    min-height: 4rem;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sf-dark);
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
    transition: opacity var(--sf-transition);
}

.header-logo a:hover { opacity: 0.8; color: var(--sf-dark); }
.header-logo img { max-height: 32px; }

/* Search — grows into available width */
.header-search {
    flex: 1 1 auto;
    min-width: 180px;
    max-width: none;
    position: relative;
    margin: 0 1rem 0 0.5rem;
}

@media (min-width: 1200px) {
    .header-search {
        margin: 0 2rem 0 1rem;
    }
}

.header-search-form {
    display: flex;
    align-items: stretch;
    border-radius: var(--sf-radius-pill);
    overflow: hidden;
    border: 1px solid var(--sf-border);
    background: #fff;
    box-shadow: var(--sf-shadow-sm);
    transition: border-color var(--sf-transition), box-shadow var(--sf-transition);
    min-height: 2.65rem;
}

.header-search-form:focus-within {
    border-color: var(--sf-primary);
    box-shadow: var(--sf-shadow-md), 0 0 0 3px rgba(108, 92, 231, 0.18);
    background: #fff;
}

.header-search-icon {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 0 0 0.85rem;
    color: var(--sf-text-muted);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.header-search-cat {
    display: none;
}

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

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

.header-search-btn {
    background: var(--sf-gradient-primary);
    border: none;
    margin: 0;
    padding: 0 1.15rem;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
    min-width: 2.85rem;
    transition: opacity var(--sf-transition);
    /* Square edges inside pill; parent overflow + border-radius clips the outer curve */
    border-radius: 0;
}

.header-search-btn:hover { opacity: 0.85; }

/* Search Autocomplete */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-xl);
    overflow: hidden;
    max-height: 460px;
    overflow-y: auto;
    z-index: 1090;
    box-shadow: var(--sf-shadow-lg);
}

.search-ac-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--sf-border-light);
    transition: background var(--sf-transition-fast);
}

.search-ac-item:hover,
.search-ac-item.active {
    background: rgba(108, 92, 231, 0.06);
}

.search-ac-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--sf-radius-md);
    background: var(--sf-bg);
    flex-shrink: 0;
}

.search-ac-meta { min-width: 0; flex: 1; }

.search-ac-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-ac-title mark {
    background: rgba(108, 92, 231, 0.15);
    color: var(--sf-primary);
    padding: 0 2px;
    border-radius: 3px;
}

.search-ac-sub {
    font-size: 0.74rem;
    color: var(--sf-text-secondary);
    margin-top: 2px;
}

.search-ac-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.search-ac-price span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sf-primary);
}

.search-ac-price small {
    font-size: 0.72rem;
    color: var(--sf-text-muted);
    text-decoration: line-through;
}

.search-ac-view-all {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(108, 92, 231, 0.04);
    color: var(--sf-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: background var(--sf-transition-fast);
}

.search-ac-view-all:hover {
    background: rgba(108, 92, 231, 0.08);
}

.search-ac-loading,
.search-ac-empty {
    padding: 1rem;
    font-size: 0.86rem;
    color: var(--sf-text-muted);
    text-align: center;
}

.search-ac-section-title {
    padding: 0.55rem 1rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sf-text-muted);
    background: rgba(108, 92, 231, 0.03);
    border-bottom: 1px solid var(--sf-border-light);
}

.search-ac-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--sf-radius-md);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 206, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sf-primary);
    font-size: 1rem;
}

.search-ac-cat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Header Right Actions — icon + text row, roomy */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
    margin-left: auto;
}

@media (min-width: 992px) {
    .header-actions {
        gap: 0.5rem;
    }
}

.header-actions .dropdown {
    display: flex;
    align-items: center;
}

.header-action-link {
    color: var(--sf-text);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--sf-radius-lg);
    line-height: 1.25;
    transition: background var(--sf-transition-fast), color var(--sf-transition-fast), border-color var(--sf-transition-fast);
    text-decoration: none;
    position: relative;
    border: 1px solid transparent;
    min-height: 3.1rem;
}

.header-action-link:hover {
    background: var(--sf-bg);
    border-color: var(--sf-border-light);
    color: var(--sf-primary);
}

.header-action-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    min-width: 0;
    text-align: left;
}

.header-action-icon {
    font-size: 1.4rem;
    color: var(--sf-text-secondary);
    flex-shrink: 0;
    line-height: 1;
}

.header-action-link:hover .header-action-icon {
    color: var(--sf-primary);
}

.header-action-link .action-label-small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--sf-text-secondary);
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-action-link .action-label-bold {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--sf-text);
    letter-spacing: -0.01em;
}

.header-action-link:hover .action-label-bold {
    color: var(--sf-primary);
}

.action-label-accent {
    color: var(--sf-orange);
}

.header-action-link:hover .action-label-accent {
    color: var(--sf-orange);
}

.header-account-toggle.dropdown-toggle::after {
    margin-left: 0.2rem;
    margin-top: 0.35rem;
    align-self: flex-start;
    vertical-align: 0;
    opacity: 0.55;
}

/* Account dropdown in header — static placement + alignment with toggle */
.header-account-dropdown {
    position: relative;
}

.sf-account-dropdown-menu {
    min-width: 13.5rem;
    padding: 0.35rem;
    margin-top: 0.25rem !important;
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-md);
    box-shadow: var(--sf-shadow-lg);
}

.sf-account-dropdown-header {
    padding: 0.65rem 0.75rem 0.75rem;
    margin: -0.15rem -0.15rem 0.25rem;
    border-bottom: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-sm) var(--sf-radius-sm) 0 0;
    background: var(--sf-bg);
}

.sf-account-dropdown-header-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sf-text);
    letter-spacing: -0.02em;
}

.sf-account-dropdown-header-email {
    font-size: 0.72rem;
    color: var(--sf-text-muted);
    max-width: 14rem;
}

.sf-account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--sf-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
}

.sf-account-dropdown-item i {
    font-size: 1.05rem;
    width: 1.35rem;
    text-align: center;
    color: var(--sf-text-secondary);
    flex-shrink: 0;
}

.sf-account-dropdown-item:hover i,
.sf-account-dropdown-item:focus i {
    color: var(--sf-primary);
}

.sf-account-dropdown-logout {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
}

.sf-account-dropdown-logout:hover,
.sf-account-dropdown-logout:focus {
    background: rgba(225, 112, 85, 0.08);
}

.header-cart-link {
    position: relative;
    gap: 0.65rem;
}

.header-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    min-height: 1.5rem;
}

.header-cart-icon {
    font-size: 1.45rem;
}

.header-cart-icon-wrap .cart-count,
.cart-count {
    position: absolute;
    top: -8px;
    right: -6px;
    background: var(--sf-gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: var(--sf-radius-pill);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   CATEGORY NAV STRIP (clear separator from header)
   ============================================================ */
.storefront-category-nav {
    position: relative;
    z-index: 1050;
    background: #fff;
    border-bottom: 1px solid var(--sf-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.storefront-category-nav > .category-pills {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    width: 100%;
    justify-content: center;
}

/* ============================================================
   CATEGORY PILLS (NOT a bar)
   ============================================================ */
.category-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--sf-radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sf-text-secondary);
    background: transparent;
    border: 1px solid var(--sf-border);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--sf-transition);
    cursor: pointer;
    flex-shrink: 0;
}

.category-pill:hover {
    transform: scale(1.03);
    box-shadow: var(--sf-shadow-sm);
    color: var(--sf-primary);
    border-color: var(--sf-primary-light);
    background: #fff;
}

.category-pill.active {
    background: var(--sf-gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.35);
}

.category-pill .cat-count {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Legacy category bar compat */
.category-bar {
    background: transparent;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1060;
    padding: 0.25rem 0;
}

.category-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    padding: 0;
}

.category-bar-inner::-webkit-scrollbar { display: none; }

.category-bar-link {
    color: var(--sf-text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--sf-radius-pill);
    transition: all var(--sf-transition);
    text-decoration: none;
    white-space: nowrap;
    background: var(--sf-glass);
    border: 1px solid var(--sf-border-light);
}

.category-bar-link:hover {
    background: rgba(108, 92, 231, 0.06);
    color: var(--sf-primary);
    border-color: rgba(108, 92, 231, 0.15);
}

.category-bar-link.all-menu {
    font-weight: 700;
    gap: 0.45rem;
    background: var(--sf-gradient-primary);
    color: #fff;
    border-color: transparent;
}

.category-bar-link .cat-count {
    font-size: 0.65rem;
    opacity: 0.55;
}


/* ============================================================
   BENTO GRID SYSTEM
   ============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(var(--sf-bento-cols), 1fr);
    gap: var(--sf-bento-gap);
    padding: 0.5rem 0;
}

.bento-card {
    background: #fff;
    border-radius: var(--sf-radius-xl);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--sf-transition-spring), box-shadow var(--sf-transition);
    box-shadow: var(--sf-shadow-sm);
    border: 1px solid var(--sf-border-light);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sf-gradient-card);
    pointer-events: none;
    border-radius: inherit;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sf-shadow-lift), var(--sf-shadow-glow);
}

.bento-card-sm {
    grid-column: span 1;
}

.bento-card-md {
    grid-column: span 2;
}

.bento-card-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card-wide {
    grid-column: 1 / -1;
}

.bento-glass {
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border-light);
    box-shadow: var(--sf-shadow-sm);
}

.bento-glass::before {
    background: var(--sf-gradient-glass);
}

.bento-gradient {
    background: linear-gradient(160deg, rgba(108, 92, 231, 0.06), rgba(0, 206, 206, 0.04));
}

.bento-gradient::before {
    background: linear-gradient(160deg, rgba(108, 92, 231, 0.03), rgba(0, 206, 206, 0.02));
}


/* ============================================================
   HERO SECTION (Bento)
   ============================================================ */
.hero-bento {
    position: relative;
    min-height: 260px;
    background: var(--sf-gradient-hero);
    border-radius: var(--sf-radius-2xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0;
}

.hero-bento::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.25), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 206, 0.2), transparent 50%);
    pointer-events: none;
}

.hero-bento .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem 2.5rem;
    max-width: 600px;
}

.hero-bento .hero-content h1 {
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.hero-bento .hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero-bento #hero-3d-canvas,
.hero-bento #hero-3d-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bento canvas { display: block; }

/* Legacy hero compat */
.hero-3d-section {
    position: relative;
    min-height: 260px;
    background: var(--sf-gradient-hero);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: var(--sf-radius-2xl);
    margin: 0;
}

.hero-3d-section #hero-3d-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-3d-section canvas { display: block; }

.hero-3d-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 3rem 2.5rem;
}

.hero-3d-content h1 {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 560px;
}

.hero-3d-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 480px;
    margin-top: 1rem;
}

.hero-section {
    background: var(--sf-gradient-hero);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--sf-radius-2xl);
    margin: 1.5rem 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 206, 206, 0.2), transparent 65%);
    pointer-events: none;
}

.hero-section h1 { font-weight: 800; font-size: 3rem; line-height: 1.08; letter-spacing: -0.03em; }
.hero-section p { font-size: 1.1rem; opacity: 0.85; }

.hero-slider-section .carousel-item {
    min-height: 58vh;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--sf-radius-2xl);
}

.hero-slider-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(108, 92, 231, 0.7), rgba(0, 206, 206, 0.3));
    border-radius: var(--sf-radius-2xl);
}

.hero-slider-section .hero-content {
    position: relative;
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next { width: 6%; }

.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
    width: 2.5rem; height: 2.5rem;
    background-color: var(--sf-glass-subtle);
    border-radius: var(--sf-radius-pill);
    backdrop-filter: var(--sf-blur);
}

.hero-slider-section .carousel-indicators [data-bs-target] {
    width: 28px; height: 4px;
    border: 0;
    border-radius: 3px;
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 1rem; }

.section-header h2 {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--sf-text);
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--sf-text-secondary);
    margin-top: 0.25rem;
}

.modern-section-title { letter-spacing: -0.02em; }


/* ============================================================
   PRODUCT CARDS (Bento Style)
   ============================================================ */
.product-card {
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    overflow: hidden;
    transition: transform var(--sf-transition-spring), box-shadow var(--sf-transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sf-shadow-sm);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sf-gradient-card);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sf-shadow-lift), var(--sf-shadow-glow);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--sf-bg);
    border-radius: var(--sf-radius-xl) var(--sf-radius-xl) 0 0;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img { transform: scale(1.06); }

.product-card .product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: var(--sf-radius-pill);
    letter-spacing: 0.04em;
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
}

.product-card .product-badge.badge-sale {
    background: rgba(253, 121, 168, 0.9);
    color: #fff;
}

.product-card .product-badge.badge-new {
    background: rgba(0, 184, 148, 0.9);
    color: #fff;
}

.product-card .product-badge.badge-hot {
    background: rgba(253, 203, 110, 0.9);
    color: var(--sf-dark);
}

.product-card .product-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--sf-transition), transform var(--sf-transition-spring);
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card .product-actions .btn {
    width: 36px;
    height: 36px;
    border-radius: var(--sf-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--sf-glass-strong);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--sf-text-secondary);
    box-shadow: var(--sf-shadow-sm);
    transition: all var(--sf-transition);
    font-size: 0.85rem;
}

.product-card .product-actions .btn:hover {
    background: var(--sf-primary);
    color: #fff;
    border-color: var(--sf-primary);
    transform: scale(1.1);
}

.product-card .product-info {
    padding: 0.75rem 0.85rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-card .product-category {
    font-size: 0.7rem;
    color: var(--sf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.product-card .product-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--sf-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card .product-title:hover { color: var(--sf-primary); }

.product-card .product-rating {
    color: var(--sf-warning);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.4rem 0;
}

.product-card .product-rating .rating-count {
    color: var(--sf-text-muted);
    font-size: 0.73rem;
}

.product-card .product-price {
    font-weight: 700;
    color: var(--sf-primary);
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 0.4rem;
    letter-spacing: -0.01em;
}

.product-card .product-price .currency-symbol {
    font-size: 0.8rem;
    vertical-align: super;
    margin-right: 1px;
}

.product-card .product-price .original-price {
    font-weight: 400;
    color: var(--sf-text-muted);
    text-decoration: line-through;
    font-size: 0.82rem;
    margin-left: 0.5rem;
}

.product-card .product-price .discount-pct {
    color: var(--sf-accent-pink);
    font-size: 0.82rem;
    font-weight: 600;
    margin-right: 0.4rem;
}

.product-card .add-to-cart-btn {
    width: 100%;
    border-radius: var(--sf-radius-xl);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    background: var(--sf-gradient-primary);
    border: none;
    color: #fff;
    transition: all var(--sf-transition);
    margin-top: 0.65rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.product-card .add-to-cart-btn:hover {
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
    opacity: 0.92;
}

.product-card .add-to-cart-btn:disabled {
    opacity: 0.7;
    pointer-events: none;
    transform: none;
}

/* Product overlay */
.product-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(45, 52, 54, 0.55), transparent);
    padding: 1rem 0.85rem 0.85rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--sf-transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-overlay .btn {
    width: 38px; height: 38px;
    border-radius: var(--sf-radius-pill);
    background: var(--sf-glass-strong);
    backdrop-filter: var(--sf-blur);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--sf-text);
    transition: all var(--sf-transition);
    box-shadow: var(--sf-shadow-sm);
}

.product-overlay .btn:hover {
    background: var(--sf-primary);
    color: #fff;
    transform: scale(1.1);
}

/* List view */
.product-card.list-view,
.product-list-view .product-card {
    flex-direction: row;
    height: auto;
    border-radius: var(--sf-radius-xl);
}

.product-card.list-view .product-image,
.product-list-view .product-card .product-image {
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: 200px;
    border-radius: var(--sf-radius-xl) 0 0 var(--sf-radius-xl);
}

.product-card.list-view .product-info,
.product-list-view .product-card .product-info {
    padding: 1.25rem 1.5rem;
}


/* ============================================================
   FLASH DEALS
   ============================================================ */
.flash-deals-section {
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.flash-deal-banner {
    background: var(--sf-gradient-warm);
    border-radius: var(--sf-radius-2xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.flash-deal-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sf-glass-subtle);
    backdrop-filter: blur(4px);
    pointer-events: none;
    border-radius: inherit;
}

.flash-deal-card {
    background: var(--sf-card-bg);
    border-radius: var(--sf-radius-xl);
    overflow: hidden;
    transition: transform var(--sf-transition-spring), box-shadow var(--sf-transition);
    position: relative;
    border: 1px solid var(--sf-border-light);
}

.flash-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sf-shadow-lg);
}

.flash-deal-card .deal-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--sf-bg);
    position: relative;
}

.flash-deal-card .deal-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.flash-deal-card:hover .deal-image img { transform: scale(1.05); }

.flash-deal-card .deal-badge {
    position: absolute;
    top: 0.6rem; left: 0.6rem;
    background: var(--sf-accent-pink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--sf-radius-pill);
    backdrop-filter: var(--sf-blur);
}

.flash-deal-card .deal-info { padding: 1rem; }

.flash-deal-card .deal-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sf-primary);
}

.flash-deal-card .deal-original {
    text-decoration: line-through;
    color: var(--sf-text-muted);
    font-size: 0.82rem;
}

.flash-deal-card .deal-progress {
    height: 5px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--sf-radius-pill);
    overflow: hidden;
    margin-top: 0.6rem;
}

.flash-deal-card .deal-progress-bar {
    height: 100%;
    background: var(--sf-gradient-warm);
    border-radius: var(--sf-radius-pill);
    transition: width 0.5s ease;
}

.flash-deal-countdown {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.6rem;
}

.countdown-block,
.flash-deal-countdown .cd-block {
    background: var(--sf-glass-strong);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    color: var(--sf-primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.3rem 0.5rem;
    border-radius: var(--sf-radius-sm);
    min-width: 32px;
    text-align: center;
    border: 1px solid var(--sf-border);
    box-shadow: var(--sf-shadow-sm);
}

.flash-deal-countdown .cd-sep {
    color: var(--sf-text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}


/* ============================================================
   CATEGORY CARDS (Bento)
   ============================================================ */
.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--sf-radius-xl);
    border: 1px solid var(--sf-border-light);
    background: var(--sf-card-bg);
    transition: all var(--sf-transition-spring);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sf-gradient-card);
    pointer-events: none;
}

.category-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: var(--sf-shadow-lg), var(--sf-shadow-glow);
    color: var(--sf-primary);
    transform: translateY(-4px) scale(1.02);
}

.category-card i {
    font-size: 2.2rem;
    color: var(--sf-primary);
    margin-bottom: 0.7rem;
    display: block;
}

.category-modern-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-lg);
    text-align: center;
    box-shadow: var(--sf-shadow-sm);
    padding: 1.5rem 1.15rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all var(--sf-transition-spring);
}

.category-modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 15%, rgba(108, 92, 231, 0.06), transparent 50%);
    pointer-events: none;
}

.category-modern-card:hover {
    border-color: var(--sf-primary-light);
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-3px);
    color: var(--sf-text);
}

.category-modern-card .category-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--sf-radius-xl);
    margin: 0 auto 0.75rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 206, 0.1));
    transition: transform var(--sf-transition-spring), background var(--sf-transition);
    font-size: 1.4rem;
    color: var(--sf-primary);
}

.category-modern-card:hover .category-icon-wrap {
    transform: translateY(-4px) scale(1.08);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(0, 206, 206, 0.15));
}

.category-modern-card .category-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--sf-primary);
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: gap var(--sf-transition);
}

.category-modern-card:hover .category-cta { gap: 0.5rem; }


/* ============================================================
   HOME — Marketplace mobile (Shopee / Lazada–style density)
   ============================================================ */
.home-categories-bento {
    --sf-bento-cols: 4;
}

@media (max-width: 991.98px) {
    .home-categories-bento {
        --sf-bento-cols: 2;
    }

    .home-categories-bento .bento-card-md {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .home-categories-bento {
        gap: 8px;
        padding: 0.25rem 0;
    }
}

/* Home product rows: always two columns below md — same card look as desktop */
@media (max-width: 767.98px) {
    .home-product-grid.row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .home-product-grid > [class*="col"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

/* ============================================================
   MOBILE HOME — QuickDealz-style cards (< lg only in DOM)
   ============================================================ */
@media (max-width: 991.98px) {
    .home-mqdz-flash-wrap {
        background: linear-gradient(180deg, #faf6f1 0%, #fff 48%);
        border-radius: var(--sf-radius-lg);
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        margin-left: -0.35rem;
        margin-right: -0.35rem;
    }
}

/* Mobile product grid: hidden on desktop, 2-col CSS grid on mobile */
.home-mqdz-grid {
    display: none !important;
}

@media (max-width: 991.98px) {
    .home-mqdz-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
}

.home-mqdz-ticker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-pill);
    padding: 0.35rem 0.65rem;
    margin: 0.35rem 0 0.5rem;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sf-primary);
}

.home-mqdz-ticker__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sf-primary);
    flex-shrink: 0;
    animation: mqdz-pulse 1.2s ease-in-out infinite;
}

@keyframes mqdz-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.home-mqdz-ticker__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-mqdz-ticker__marquee {
    display: flex;
    width: max-content;
    animation: mqdz-ticker-scroll 22s linear infinite;
}

.home-mqdz-ticker__marquee span {
    padding-right: 2.5rem;
    white-space: nowrap;
}

@keyframes mqdz-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 2-col marketplace product grid (matches homepage mobile) — use with _product-card-mobile-qdz */
.sf-mobile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

@media (min-width: 992px) {
    .sf-mobile-product-grid {
        display: none !important;
    }
}

.mqdz-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mqdz-card__media {
    position: relative;
    aspect-ratio: 1;
    background: #f4f4f5;
    overflow: hidden;
}

.mqdz-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mqdz-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mqdz-card__discount {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    line-height: 1.2;
}

.mqdz-card__discount--sm {
    font-size: 0.62rem;
    padding: 0.15rem 0.35rem;
}

.mqdz-card__new {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: #22c55e;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
}

.mqdz-card__media:has(.mqdz-card__discount) .mqdz-card__new {
    top: 36px;
}

.mqdz-card__wish {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-text-secondary);
    font-size: 0.95rem;
    padding: 0;
}

.mqdz-card__wish:hover {
    color: var(--sf-danger, #ef4444);
    background: #fff;
}

.mqdz-card__body {
    padding: 0.55rem 0.6rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.mqdz-card__title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sf-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}

.mqdz-card__title:hover {
    color: var(--sf-primary);
}

.mqdz-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.mqdz-card__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    min-width: 0;
}

.mqdz-card__price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--sf-primary, #2563eb);
    letter-spacing: -0.02em;
}

.mqdz-card__was {
    font-size: 0.65rem;
    color: var(--sf-text-muted);
    text-decoration: line-through;
}

.mqdz-card__rating-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--sf-primary, #2563eb);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}

.mqdz-card__rating-pill i {
    font-size: 0.55rem;
}

.mqdz-card__progress {
    height: 5px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-top: 0.15rem;
}

.mqdz-card__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb7185, var(--sf-orange, #f97316));
}

.mqdz-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.15rem;
}

.mqdz-card__sold {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--sf-text-muted);
}

.mqdz-card__cart {
    width: 100%;
    margin-top: 0.35rem;
    border: none;
    border-radius: 10px;
    background: var(--sf-gradient-primary, linear-gradient(135deg, #4f46e5, #6366f1));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.mqdz-card__cart:hover {
    filter: brightness(1.05);
    color: #fff;
}

.mqdz-card__cart:disabled {
    opacity: 0.75;
}


/* ============================================================
   TRUST BANNER
   ============================================================ */
.trust-banner {
    padding: 0.75rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    box-shadow: var(--sf-shadow-sm);
    transition: all var(--sf-transition);
}

.trust-item:hover {
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-2px);
}

.trust-item i,
.trust-item .trust-icon {
    font-size: 1.2rem;
    color: var(--sf-primary);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 206, 206, 0.08));
    border-radius: var(--sf-radius-md);
}


/* ============================================================
   SHOP PAGE / FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-xl);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--sf-header-height) + 20px);
}

.filter-sidebar h6 {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--sf-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--sf-radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    border: 1px solid var(--sf-border);
    color: var(--sf-text-secondary);
    cursor: pointer;
    transition: all var(--sf-transition-fast);
}

.active-filter-pill:hover {
    background: rgba(108, 92, 231, 0.08);
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

.active-filter-pill .remove-filter {
    font-size: 0.7rem;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity var(--sf-transition-fast);
}

.active-filter-pill:hover .remove-filter { opacity: 1; }

/* View Toggle */
.view-toggle .btn {
    border: 1px solid var(--sf-border);
    background: var(--sf-glass);
    color: var(--sf-text-secondary);
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
    border-radius: var(--sf-radius-md);
    transition: all var(--sf-transition-fast);
}

.view-toggle .btn.active {
    background: var(--sf-gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.25);
}


/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-gallery-main {
    border-radius: var(--sf-radius-2xl);
    overflow: hidden;
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border-light);
    aspect-ratio: 1;
    position: relative;
    cursor: zoom-in;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-gallery-main:hover img { transform: scale(1.5); }

.product-gallery-main .zoom-lens {
    display: none;
    position: absolute;
    width: 150px; height: 150px;
    border: 2px solid var(--sf-primary);
    background: rgba(108, 92, 231, 0.1);
    pointer-events: none;
    z-index: 2;
    border-radius: var(--sf-radius-sm);
}

.zoom-container {
    overflow: hidden;
    cursor: crosshair;
    border-radius: var(--sf-radius-2xl);
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar { display: none; }

.product-gallery-thumbs img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--sf-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover {
    border-color: var(--sf-primary);
    opacity: 1;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.2);
}

/* Variant options */
.variant-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border: 2px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sf-text-secondary);
    background: var(--sf-card-bg);
    cursor: pointer;
    transition: all var(--sf-transition);
    min-width: 48px;
}

.variant-opt:hover {
    border-color: var(--sf-primary-light);
    color: var(--sf-primary);
}

.variant-opt.active,
.variant-opt.selected {
    border-color: var(--sf-primary);
    background: rgba(108, 92, 231, 0.06);
    color: var(--sf-primary);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
}

/* Trust badges on product detail */
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    font-size: 0.82rem;
    color: var(--sf-text-secondary);
    transition: all var(--sf-transition-fast);
}

.trust-badge-item:hover {
    box-shadow: var(--sf-shadow-sm);
}

.trust-badge-item i {
    color: var(--sf-success);
    font-size: 1rem;
}

/* Sticky add-to-cart bar */
.sticky-add-to-cart {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--sf-glass-strong);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    border-top: 1px solid var(--sf-border);
    padding: 0.75rem 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    box-shadow: 0 -4px 30px rgba(108, 92, 231, 0.08);
}

.sticky-add-to-cart.visible { transform: translateY(0); }

.sticky-add-to-cart .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


/* ============================================================
   CART
   ============================================================ */
.cart-item,
.cart-item-row {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--sf-border-light);
    align-items: center;
    transition: all var(--sf-transition);
}

.cart-item:hover,
.cart-item-row:hover {
    background: rgba(108, 92, 231, 0.02);
}

.cart-item img,
.cart-product-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: var(--sf-radius-xl);
    border: 1px solid var(--sf-border-light);
    flex-shrink: 0;
}

.cart-item .cart-item-info { flex: 1; min-width: 0; }

.cart-item .cart-item-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--sf-text);
}

.cart-item .cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sf-primary);
}

.cart-item .cart-item-remove {
    color: var(--sf-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--sf-radius-sm);
    transition: all var(--sf-transition-fast);
}

.cart-item .cart-item-remove:hover {
    color: var(--sf-danger);
    background: rgba(225, 112, 85, 0.08);
}

/* Order Summary Card */
.order-summary-card {
    position: sticky;
    top: calc(var(--sf-header-height) + 20px);
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-2xl);
    padding: 1.75rem;
    box-shadow: var(--sf-shadow-md);
}


/* ============================================================
   QUANTITY CONTROLS
   ============================================================ */
.qty-control,
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
    overflow: hidden;
    background: var(--sf-bg);
    box-shadow: var(--sf-shadow-sm);
}

.qty-control .btn,
.qty-stepper .btn {
    border: none;
    border-radius: 0;
    padding: 0.35rem 0.75rem;
    color: var(--sf-text);
    background: transparent;
    font-size: 0.88rem;
    transition: all var(--sf-transition-fast);
    cursor: pointer;
    font-weight: 600;
}

.qty-control .btn:hover,
.qty-stepper .btn:hover {
    background: rgba(108, 92, 231, 0.08);
    color: var(--sf-primary);
}

.qty-control .qty-input,
.qty-stepper .qty-input {
    width: 44px;
    text-align: center;
    border: none;
    padding: 0.35rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--sf-text);
    background: transparent;
}

.qty-control .qty-input:focus,
.qty-stepper .qty-input:focus { outline: none; }


/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    position: relative;
}

.checkout-progress .step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--sf-text-muted);
    font-weight: 500;
    position: relative;
}

/* Circle styles apply only to the number badge — not .checkout-step-indicator (flex cell) or it becomes a flat ellipse */
.checkout-progress .step-item .step-number,
.checkout-step-indicator .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-bg);
    color: var(--sf-text-muted);
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
    border: 2px solid var(--sf-border);
    transition: all var(--sf-transition);
}

.checkout-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.checkout-progress .step-item.active .step-number {
    background: var(--sf-gradient-primary);
    color: #fff;
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.checkout-progress .step-item.completed .step-number {
    background: var(--sf-success);
    color: #fff;
    border-color: var(--sf-success);
}

.checkout-progress .step-item.active { color: var(--sf-text); }
.checkout-progress .step-item.completed { color: var(--sf-success); }

.checkout-progress .step-line {
    width: 52px;
    height: 2px;
    background: var(--sf-border);
    margin: 0 0.5rem;
    flex-shrink: 0;
    border-radius: 1px;
    transition: background var(--sf-transition);
}

.checkout-progress .step-line.completed {
    background: var(--sf-gradient-cool);
}

.checkout-step {
    padding: 1.75rem;
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-xl);
    background: var(--sf-card-bg);
    margin-bottom: 1rem;
    transition: box-shadow var(--sf-transition);
    position: relative;
}

.checkout-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sf-gradient-card);
    pointer-events: none;
    border-radius: inherit;
}

.checkout-step:hover { box-shadow: var(--sf-shadow-sm); }

.checkout-step h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--sf-border-light);
    position: relative;
}

/* Payment Options */
.payment-option {
    border: 2px solid var(--sf-border);
    border-radius: var(--sf-radius-xl);
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: all var(--sf-transition);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--sf-card-bg);
    position: relative;
}

.payment-option:hover {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--sf-shadow-sm);
}

.payment-option.selected {
    border-color: var(--sf-primary);
    background: rgba(108, 92, 231, 0.04);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1), var(--sf-shadow-md);
}

.payment-option .payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sf-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all var(--sf-transition);
}

.payment-option.selected .payment-radio {
    border-color: var(--sf-primary);
}

.payment-option.selected .payment-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--sf-gradient-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--sf-radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    border: 1px solid var(--sf-border);
    color: var(--sf-success);
}

/* Modern Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.form-control,
.form-select {
    border-radius: var(--sf-radius-md);
    border: 1px solid var(--sf-border);
    padding: 0.65rem 0.9rem;
    transition: all var(--sf-transition);
}

.form-label {
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--sf-text);
}


/* ============================================================
   FOOTER
   ============================================================ */
.storefront-footer {
    background: var(--sf-dark);
    color: rgba(255, 255, 255, 0.7);
}

.storefront-footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--sf-transition);
}

.storefront-footer a:hover {
    color: #fff;
}

.storefront-footer h5,
.storefront-footer h6 { color: #fff; }

/* Floating back to top — stacked above #chatbotWidget (see _chatbot.blade.php offsets) */
.sf-back-to-top {
    --sf-chat-fab-size: 60px;
    --sf-chat-fab-bottom: 24px;
    --sf-chat-fab-right: 24px;
    --sf-chat-fab-gap: 12px;
    position: fixed;
    right: var(--sf-chat-fab-right);
    bottom: calc(
        var(--sf-chat-fab-bottom) + var(--sf-chat-fab-size) + var(--sf-chat-fab-gap) +
        env(safe-area-inset-bottom, 0px)
    );
    z-index: 100000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--sf-primary), #4f46e5);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    transition:
        opacity 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
        transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
        visibility 0.35s;
}

.sf-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sf-back-to-top:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.5);
}

.sf-back-to-top.is-visible:hover {
    transform: translateY(-2px) scale(1.04);
}

@media (min-width: 992px) {
    .sf-back-to-top {
        /* Same stack as mobile; aligns with chat FAB */
        right: var(--sf-chat-fab-right);
        bottom: calc(
            var(--sf-chat-fab-bottom) + var(--sf-chat-fab-size) + var(--sf-chat-fab-gap) +
            env(safe-area-inset-bottom, 0px)
        );
    }
}

.footer-mid {
    background: var(--sf-dark-lighter);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom {
    padding: 1rem 0;
    font-size: 0.78rem;
    text-align: center;
    opacity: 0.5;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-gradient {
    background: var(--sf-gradient-cool);
    border: none;
    color: #fff;
    border-radius: var(--sf-radius-pill);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
    transition: all var(--sf-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.btn-primary-gradient:hover {
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.35);
    transform: translateY(-2px);
    color: #fff;
}

.btn-glass {
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--sf-text);
    border-radius: var(--sf-radius-pill);
    padding: 0.55rem 1.25rem;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all var(--sf-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.btn-glass:hover {
    background: var(--sf-glass-strong);
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-1px);
}

/* Readable glass buttons on dark / warm hero banners */
.btn-glass.btn-glass--on-dark,
.hero-bento .btn-glass.btn-glass--on-dark {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-glass.btn-glass--on-dark:hover,
.hero-bento .btn-glass.btn-glass--on-dark:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-glass.btn-glass--on-warm {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glass.btn-glass--on-warm:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff !important;
}

.page-builder-newsletter-input {
    background: #fff !important;
    color: var(--sf-text) !important;
}

.page-builder-newsletter-input::placeholder {
    color: var(--sf-text-muted);
}

.btn-modern {
    border: none;
    color: #fff;
    border-radius: var(--sf-radius-pill);
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    font-size: 0.88rem;
    background: var(--sf-gradient-primary);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
    transition: all var(--sf-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.35);
    opacity: 0.92;
}

.btn-modern.btn-modern-orange {
    background: var(--sf-gradient-warm);
}

.btn-modern.btn-modern-orange:hover { opacity: 0.9; }

.btn-modern.btn-modern-dark {
    background: var(--sf-dark);
    box-shadow: 0 4px 15px rgba(45, 52, 54, 0.25);
}

.btn-modern.btn-modern-dark:hover {
    background: var(--sf-dark-lighter);
}


/* ============================================================
   QUICK CHIPS / FILTER TAGS
   ============================================================ */
.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sf-text-secondary);
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    cursor: pointer;
    transition: all var(--sf-transition);
    text-decoration: none;
    white-space: nowrap;
}

.quick-chip:hover {
    background: rgba(108, 92, 231, 0.06);
    border-color: rgba(108, 92, 231, 0.2);
    color: var(--sf-primary);
}

.quick-chip.active {
    background: var(--sf-gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.25);
}


/* ============================================================
   STAR RATING
   ============================================================ */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating input { display: none; }

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--sf-border);
    transition: color 0.15s, transform 0.15s;
}

.star-rating label:hover { transform: scale(1.15); }

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--sf-warning);
}

.stars-inline { color: var(--sf-warning); font-size: 0.85rem; }
.stars-inline .bi-star { color: var(--sf-border); }


/* ============================================================
   ORDER TRACKING TIMELINE
   ============================================================ */
.tracking-timeline {
    position: relative;
    padding-left: 2rem;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sf-border);
    border-radius: 1px;
}

.tracking-step {
    position: relative;
    padding-bottom: 1.75rem;
}

.tracking-step::before {
    content: '';
    position: absolute;
    left: -1.65rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sf-border);
    border: 3px solid var(--sf-bg);
    transition: all var(--sf-transition);
}

.tracking-step.active::before {
    background: var(--sf-primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

.tracking-step.completed::before {
    background: var(--sf-success);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.15);
}


/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toast-notification {
    background: var(--sf-glass-strong);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
    border-radius: var(--sf-radius-xl);
    box-shadow: var(--sf-shadow-lift);
    padding: 1rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 300px;
    max-width: 420px;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid var(--sf-success);
}

.toast-notification.toast-error { border-left-color: var(--sf-danger); }
.toast-notification.toast-warning { border-left-color: var(--sf-warning); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-notification.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(50px) scale(0.95); }
}


/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(108, 92, 231, 0.04) 0%,
        rgba(108, 92, 231, 0.08) 40%,
        rgba(108, 92, 231, 0.04) 80%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.6s ease infinite;
    border-radius: var(--sf-radius-md);
}

.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: var(--sf-radius-sm); }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-title { height: 22px; width: 60%; margin-bottom: 14px; border-radius: var(--sf-radius-sm); }
.skeleton-image { aspect-ratio: 1; width: 100%; border-radius: var(--sf-radius-xl); }
.skeleton-btn { height: 40px; width: 120px; border-radius: var(--sf-radius-pill); }
.skeleton-avatar { width: 42px; height: 42px; border-radius: 50%; }

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.pulse-subtle { animation: pulseSub 2.5s ease-in-out infinite; }

@keyframes pulseSub {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Infinite scroll */
.infinite-scroll-trigger {
    height: 1px;
    width: 100%;
}

.infinite-scroll-loader {
    text-align: center;
    padding: 2.5rem;
    color: var(--sf-text-muted);
}


/* ============================================================
   TOM SELECT POLISH
   ============================================================ */
.ts-wrapper.form-select,
.ts-wrapper.single .ts-control {
    border-radius: var(--sf-radius-md) !important;
    min-height: 40px;
}

.ts-dropdown {
    border-radius: var(--sf-radius-lg);
    border: 1px solid var(--sf-border);
    overflow: hidden;
    box-shadow: var(--sf-shadow-lg);
}

.ts-dropdown .option.active {
    background: rgba(108, 92, 231, 0.08);
    color: var(--sf-text);
}


/* ============================================================
   CART DRAWER (Off-canvas)
   ============================================================ */
.offcanvas.cart-drawer,
.cart-drawer {
    max-width: 440px;
    width: 100%;
}

.cart-drawer .offcanvas-header {
    background: var(--sf-gradient-primary);
    color: #fff;
    padding: 1.15rem 1.35rem;
}

.cart-drawer .offcanvas-header .btn-close { filter: invert(1); }

.cart-drawer-footer {
    padding: 1.15rem 1.35rem;
    border-top: 1px solid var(--sf-border-light);
    background: var(--sf-bg);
}

.cart-drawer-footer .cart-total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sf-primary);
}


/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 310px;
    background: var(--sf-card-bg);
    z-index: 1101;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-radius: 0 var(--sf-radius-2xl) var(--sf-radius-2xl) 0;
    box-shadow: var(--sf-shadow-lift);
}

.mobile-menu-drawer.open { transform: translateX(0); }

.mobile-menu-drawer .drawer-header {
    background: var(--sf-gradient-primary);
    color: #fff;
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0 var(--sf-radius-2xl) 0 0;
}

.mobile-menu-drawer .drawer-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.35rem;
    color: var(--sf-text);
    border-bottom: 1px solid var(--sf-border-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--sf-transition-fast);
    text-decoration: none;
}

.mobile-menu-drawer .drawer-link:hover {
    background: rgba(108, 92, 231, 0.04);
    color: var(--sf-primary);
}

.mobile-menu-drawer .drawer-link i {
    width: 20px;
    text-align: center;
    color: var(--sf-primary-light);
}


/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* ≤ 1200px */
@media (max-width: 1200px) {
    :root {
        --sf-bento-cols: 3;
        --sf-bento-gap: 14px;
    }

    .container { max-width: 1100px; }

    .hero-bento .hero-content h1 { font-size: 2.6rem; }
}

/* ≤ 991px */
@media (max-width: 991px) {
    :root {
        --sf-bento-cols: 2;
    }

    .header-search-cat { display: none; }
    .header-search {
        max-width: 100%;
        margin: 0;
    }

    .header-action-link .header-action-text {
        display: none;
    }

    .header-action-link {
        padding: 0.45rem 0.55rem;
        min-height: auto;
    }

    .header-account-toggle.dropdown-toggle::after {
        display: none;
    }

    .hero-bento { min-height: 220px; }
    .hero-bento .hero-content h1 { font-size: 1.8rem; }

    .hero-3d-section { min-height: 220px; }
    .hero-3d-content h1 { font-size: 2.2rem; }

    .bento-card-lg {
        grid-column: span 2;
        grid-row: span 1;
    }

    .product-card.list-view .product-image,
    .product-list-view .product-card .product-image {
        width: 180px;
        height: 160px;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
}

/* ≤ 767px */
@media (max-width: 767px) {
    :root {
        --sf-bento-cols: 2;
        --sf-bento-gap: 12px;
    }

    .container { padding: 0 16px; }

    .top-accent { display: none; }
    .top-bar { display: none !important; }

    .main-header,
    .storefront-navbar {
        position: sticky;
        top: 0;
        z-index: 1070;
        background: #fff;
    }

    .header-inner { flex-wrap: wrap; gap: 0.35rem; min-height: auto !important; padding: 0.45rem 0 !important; }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 0.15rem;
    }

    .header-search-form {
        height: 36px;
    }

    .header-search-input {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .header-search-btn {
        padding: 0 0.65rem;
        font-size: 0.8rem;
    }

    .header-logo a { font-size: 1.15rem; }
    .header-logo img { max-height: 30px; }

    .category-pills { padding: 0.5rem 0; }

    .hero-bento { min-height: 280px; margin: 1rem 0; border-radius: var(--sf-radius-xl); }
    .hero-bento .hero-content { padding: 2rem 1.5rem; }
    .hero-bento .hero-content h1 { font-size: 1.75rem; }
    .hero-bento .hero-content p { font-size: 0.92rem; }

    .hero-3d-section { min-height: 280px; border-radius: var(--sf-radius-xl); }
    .hero-3d-content h1 { font-size: 1.7rem; }
    .hero-3d-content p { font-size: 0.92rem; }

    .hero-section { padding: 2rem 0; border-radius: var(--sf-radius-xl); }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .lead { font-size: 0.95rem; }

    .hero-slider-section .carousel-item,
    .hero-slider-section .hero-content { min-height: 48vh; }
    .hero-slider-section h1 { font-size: 1.5rem; }

    .section-header h2 { font-size: 1.3rem; }

    .bento-card { padding: 1rem; border-radius: var(--sf-radius-xl); }
    .bento-card-md { grid-column: span 2; }
    .bento-card-lg { grid-column: span 2; }

    .product-card { border-radius: var(--sf-radius-lg); }
    .product-card .product-actions { opacity: 1; transform: translateY(0); }
    .product-card .product-info { padding: 0.6rem; }

    .product-overlay {
        position: static;
        opacity: 1;
        background: transparent;
        padding: 0.4rem 0.65rem 0.65rem;
        justify-content: flex-end;
    }

    .product-card.list-view,
    .product-list-view .product-card { flex-direction: column; }

    .product-card.list-view .product-image,
    .product-list-view .product-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        border-radius: var(--sf-radius-xl) var(--sf-radius-xl) 0 0;
    }

    .cart-item,
    .cart-item-row { align-items: flex-start; gap: 0.75rem; }

    .cart-item img,
    .cart-product-img { width: 68px; height: 68px; }

    .checkout-progress .step-label { display: none; }

    .sticky-add-to-cart.visible { padding: 0.5rem 0; }

    .flash-deal-card .deal-info { padding: 0.75rem; }

    .search-autocomplete-dropdown {
        max-height: 280px;
        border-radius: var(--sf-radius-lg);
    }

    .search-ac-item { padding: 0.55rem 0.65rem; }
    .search-ac-thumb { width: 38px; height: 38px; }

    .section-head-mobile {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    /* Home section titles: title + subtitle left, "See all" pill right (centered) */
    .home-section-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 0.65rem;
        row-gap: 0.2rem;
        align-items: center;
    }

    .home-section-head .home-section-head-text {
        display: contents;
    }

    .home-section-head h2.modern-section-title {
        grid-column: 1;
        grid-row: 1;
        margin: 0 !important;
        align-self: end;
        font-size: 1.05rem !important;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .home-section-head .home-section-sub {
        grid-column: 1;
        grid-row: 2;
        margin: 0 !important;
        align-self: start;
        font-size: 0.74rem !important;
        line-height: 1.35;
        color: var(--sf-text-muted);
        max-width: 100%;
    }

    .home-section-head .home-see-all {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: center;
        justify-self: end;
        flex-shrink: 0;
        padding: 0.42rem 0.85rem 0.42rem 0.95rem;
        font-size: 0.72rem;
        box-shadow: 0 3px 12px rgba(79, 70, 229, 0.32);
    }

    .home-section-head .home-see-all:active {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
    }

    .home-section-head .home-see-all i {
        font-size: 0.95rem;
    }

    #homeQuickNav {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap !important;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }
    #homeQuickNav::-webkit-scrollbar { display: none; }

    .category-card { padding: 1rem 0.75rem; }
    .category-modern-card { padding: 1rem 0.85rem; }

    .product-card .card-img-top { height: 140px !important; }
    .home-product-grid .product-card .card-img-top { height: auto !important; }

    .tab-content { padding: 1rem !important; }

    .product-gallery-main {
        aspect-ratio: auto;
        max-height: 360px;
        border-radius: var(--sf-radius-xl);
    }
    .product-gallery-thumbs img { width: 54px; height: 54px; }

    .order-summary-card {
        position: static;
        margin-top: 1rem;
    }

    .mobile-full-btn { width: 100%; }
    .mobile-stack {
        flex-direction: column;
        align-items: stretch !important;
    }

    .toast-container { right: 12px; left: 12px; }
    .toast-notification { min-width: auto; max-width: 100%; }
}

/* ≤ 480px */
@media (max-width: 480px) {
    :root {
        --sf-bento-cols: 1;
        --sf-bento-gap: 10px;
    }

    .container { padding: 0 12px; }

    .header-actions { gap: 0.1rem; }
    .header-action-link { padding: 0.3rem 0.45rem; }

    .hero-bento .hero-content h1 { font-size: 1.35rem; }
    .hero-bento .hero-content { padding: 1.25rem; }
    .hero-3d-content h1 { font-size: 1.35rem; }

    .bento-card-md,
    .bento-card-lg,
    .bento-card-wide { grid-column: span 1; }

    .flash-deal-countdown .cd-block {
        font-size: 0.72rem;
        padding: 0.2rem 0.35rem;
        min-width: 26px;
    }

    .product-card .product-info { padding: 0.45rem 0.5rem; }
    .product-card .product-title { font-size: 0.75rem; }
    .product-card .product-price { font-size: 0.82rem; }

    .checkout-step { padding: 1rem; }

    .cart-item img,
    .cart-product-img { width: 56px; height: 56px; }

    .toast-notification {
        min-width: auto;
        max-width: 100%;
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }

    .product-gallery-thumbs img { width: 48px; height: 48px; }

    .category-modern-card .category-icon-wrap { width: 50px; height: 50px; }

    .checkout-progress { flex-wrap: wrap; gap: 0.25rem; justify-content: flex-start; }
    .checkout-progress .step-line { width: 24px; }
}


/* ============================================================
   HOME — QuickDealz-inspired layout & components
   ============================================================ */
.home-qdz {
    padding-top: 1rem;
}

.home-qdz-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 992px) {
    .home-qdz-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 1.5rem;
    }
}

.home-qdz-sidebar-inner {
    position: sticky;
    top: calc(var(--sf-header-height) + 12px);
    background: #fff;
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-xl);
    box-shadow: var(--sf-shadow-sm);
    padding: 1rem 0.85rem;
}

.home-qdz-side-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sf-text-muted);
    padding: 0 0.5rem 0.65rem;
    border-bottom: 1px solid var(--sf-border-light);
    margin-bottom: 0.5rem;
}

.home-qdz-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: min(58vh, 520px);
    overflow-y: auto;
    padding-right: 0.15rem;
}

.home-qdz-cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    border-radius: var(--sf-radius-md);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--sf-text-secondary);
    text-decoration: none;
    transition: background var(--sf-transition-fast), color var(--sf-transition-fast);
}

.home-qdz-cat-link i {
    font-size: 1rem;
    color: var(--sf-primary);
    opacity: 0.85;
}

.home-qdz-cat-link:hover {
    background: rgba(108, 92, 231, 0.08);
    color: var(--sf-primary);
}

.home-qdz-cat-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-weight: 600;
}

.home-qdz-cat-link--accent {
    color: var(--sf-orange);
}

.home-qdz-cat-link--accent i {
    color: var(--sf-orange);
}

.home-qdz-cat-count {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    background: var(--sf-bg);
    padding: 0.1rem 0.4rem;
    border-radius: var(--sf-radius-pill);
}

.home-qdz-pro-box {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: var(--sf-radius-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(0, 206, 206, 0.06));
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.home-qdz-pro-title {
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.home-qdz-pro-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    font-weight: 600;
}

.home-qdz-pro-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.home-qdz-mobile-cats {
    margin-bottom: 0.1rem;
    overflow: hidden;
}

.home-qdz-mobile-cats-scroll {
    padding: 0.2rem 0;
}

.hero-bento--qdz {
    min-height: 320px;
    border-radius: var(--sf-radius-2xl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.hero-bento--qdz #hero-3d-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.35;
}

.hero-bento--qdz-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bento--qdz-media .carousel-item {
    opacity: 0.45 !important;
}

.hero-bento--qdz-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(30, 41, 59, 0.35) 100%);
    pointer-events: none;
}

.hero-bento--qdz-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: left;
    max-width: 560px;
    margin: 0;
    padding: 2.25rem 1.75rem;
    align-self: center;
}

.hero-bento--qdz-content h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 0.65rem;
    text-transform: none;
}

.hero-bento--qdz-content p {
    font-size: 0.98rem;
    opacity: 0.88;
    line-height: 1.55;
    margin-bottom: 1.35rem;
    max-width: 440px;
}

.hero-bento--qdz-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.9rem;
    border-radius: var(--sf-radius-pill);
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(147, 197, 253, 0.45);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hero-bento--qdz-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.home-flash-head .flash-deal-countdown .cd-block {
    background: var(--sf-bg);
    color: var(--sf-text);
    border: 1px solid var(--sf-border-light);
}

/* ── Flash Sale Hero Banner ── */
.flash-hero-banner {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 45%, #f97316 100%);
    border-radius: var(--sf-radius-xl);
    padding: 0.85rem 1rem;
    position: relative;
    overflow: hidden;
}

.flash-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.flash-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.flash-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.flash-hero-left-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.flash-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    color: #dc2626;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--sf-radius-pill);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100%;
}

.flash-hero-badge-text {
    text-transform: uppercase;
}

.flash-hero-microcopy {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.02em;
    line-height: 1.35;
    max-width: 36rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.flash-hero-badge i {
    font-size: 0.85rem;
    animation: flashPulse 1.5s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.flash-hero-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.flash-timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
}

.flash-timer-num {
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    min-width: 34px;
    text-align: center;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
}

.flash-timer-label {
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
    margin-top: 1px;
}

.flash-timer-sep {
    color: rgba(255,255,255,0.7);
    font-weight: 800;
    font-size: 1rem;
    margin: 0 -0.05rem;
    padding-bottom: 12px;
}

.flash-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: var(--sf-radius-pill);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.flash-hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    color: #dc2626;
}

.flash-hero-cta i {
    font-size: 0.7rem;
    transition: transform 0.15s ease;
}

.flash-hero-cta:hover i {
    transform: translateX(2px);
}

@media (max-width: 480px) {
    .flash-hero-banner {
        padding: 0.7rem 0.75rem;
        border-radius: var(--sf-radius-lg);
    }

    .flash-hero-left {
        gap: 0.5rem;
    }

    .flash-hero-badge {
        font-size: 0.62rem;
        padding: 0.28rem 0.55rem;
    }

    .flash-timer-num {
        font-size: 0.85rem;
        min-width: 30px;
        padding: 0.15rem 0.35rem;
    }

    .flash-timer-label {
        font-size: 0.48rem;
    }

    .flash-hero-cta {
        font-size: 0.68rem;
        padding: 0.35rem 0.65rem;
    }
}

.deal-progress-mini {
    margin-top: 0.35rem;
}

.deal-progress-mini-bar {
    height: 5px;
    border-radius: 99px;
    background: var(--sf-border-light);
    overflow: hidden;
}

.deal-progress-mini-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb7185, var(--sf-orange));
    transition: width 0.4s ease;
}

.deal-progress-mini-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    margin-top: 0.25rem;
}

/* Section heading + marketplace-style "See all" */
.home-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.home-section-head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.home-section-sub {
    margin-top: 0.2rem;
    line-height: 1.35;
}

.home-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 1rem 0.5rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: linear-gradient(135deg, var(--sf-primary, #4f46e5) 0%, #6366f1 100%);
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.38);
    border: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-see-all:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(79, 70, 229, 0.48);
}

.home-see-all i {
    font-size: 1.05rem;
    opacity: 0.95;
}

.home-see-all:focus-visible {
    outline: 2px solid var(--sf-primary, #4f46e5);
    outline-offset: 3px;
}

/* Trending bento: spotlight + stacked right column */
.home-trending-bento {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

.home-tb-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

@media (min-width: 768px) {
    .home-trending-bento {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 1rem;
        align-items: stretch;
    }

    .home-tb-large {
        grid-row: 1 / -1;
        display: flex;
        flex-direction: column;
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    }

    .home-tb-large .home-tb-img {
        flex: 1 1 auto;
        min-height: 260px;
        height: auto;
    }

    .home-tb-compact {
        flex: 1 1 0;
        min-height: 112px;
    }
}

.home-tb-large {
    border-radius: var(--sf-radius-lg);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-tb-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.home-tb-large .home-tb-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.home-tb-large-body {
    padding: 1rem 1.1rem 1.15rem !important;
}

.home-tb-large-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.35rem 0 0.25rem;
    color: var(--sf-text);
}

.home-tb-large-meta {
    font-size: 0.8rem;
    color: var(--sf-text-muted);
    margin-bottom: 0.75rem;
}

.home-tb-pill-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: #0f172a;
    border-radius: 9999px;
    align-self: flex-start;
}

.home-tb-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
}

.home-tb-badge--spotlight {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #9a3412;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.home-tb-badge--hot {
    background: #fef08a;
    color: #713f12;
}

.home-tb-badge--trending {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}

.home-tb-promo {
    border-radius: var(--sf-radius-lg);
    background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
    min-height: 148px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-tb-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%);
    pointer-events: none;
}

.home-tb-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.42);
    color: #fff !important;
}

.home-tb-promo-body {
    position: relative;
    z-index: 1;
    padding: 1rem 1.1rem !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-height: 148px;
}

.home-tb-promo-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    color: #fff;
}

.home-tb-promo-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0.15rem 0 0;
    color: #fff;
}

.home-tb-promo-copy {
    font-size: 0.8rem;
    opacity: 0.92;
    margin: 0 0 auto;
    max-width: 16rem;
    line-height: 1.4;
    color: #fff;
}

.home-tb-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.35rem 0.85rem 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: #fff;
    color: #1d4ed8 !important;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.home-tb-promo-cta i {
    font-size: 0.95rem;
}

.home-tb-compact {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--sf-radius-md);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    min-height: 96px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-tb-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.home-tb-compact-media {
    width: 34%;
    min-width: 100px;
    max-width: 132px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--sf-bg);
}

.home-tb-compact-main {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.home-tb-compact-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sf-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-tb-compact-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--sf-primary, #4f46e5);
    margin-top: 0.15rem;
}

/* ── Trust strip (compact horizontal) ── */
.home-trust-section {
    padding: 0.65rem 0;
}

.home-trust-strip {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0;
}

.home-trust-strip::-webkit-scrollbar { display: none; }

.home-trust-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    border-radius: var(--sf-radius-pill);
    background: #fff;
    border: 1px solid var(--sf-border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sf-text);
    transition: box-shadow 0.2s, transform 0.2s;
}

.home-trust-chip:hover {
    box-shadow: var(--sf-shadow-sm);
    transform: translateY(-1px);
}

.home-trust-chip i {
    font-size: 1rem;
    color: var(--sf-primary);
}

@media (min-width: 768px) {
    .home-trust-strip {
        justify-content: center;
    }
}

/* ── Shopee-style category icon grid (mobile) ── */
.home-cat-grid-mobile {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.2rem 0.15rem;
    padding: 0.4rem 0 0.25rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.home-cat-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    padding: 0.25rem 0.1rem;
    border-radius: var(--sf-radius-md);
    transition: background 0.15s;
    min-width: 0;
    overflow: hidden;
}

.home-cat-icon-item:hover {
    background: rgba(108, 92, 231, 0.05);
}

.home-cat-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 206, 206, 0.08));
    font-size: 1.05rem;
    color: var(--sf-primary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.home-cat-icon-item:hover .home-cat-icon-circle {
    transform: scale(1.08);
}

.home-cat-icon-circle--deal {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.18), rgba(225, 112, 85, 0.12));
    color: var(--sf-accent-pink);
}

.home-cat-icon-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--sf-text-secondary);
    text-align: center;
    line-height: 1.15;
    max-width: 64px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 380px) {
    .home-cat-grid-mobile {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-cat-icon-circle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .home-cat-icon-label {
        font-size: 0.58rem;
    }
}

/* ── Newsletter card (redesigned) ── */
.home-nl-section {
    padding: 1.5rem 0 1rem;
}

.home-nl-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    border-radius: var(--sf-radius-xl);
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.home-nl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.4), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 206, 206, 0.2), transparent 50%);
    pointer-events: none;
}

.home-nl-deco {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    position: relative;
}

.home-nl-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    position: relative;
}

.home-nl-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.home-nl-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
    position: relative;
    border-radius: var(--sf-radius-pill);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-nl-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0 0 1.15rem;
}

.home-nl-input-wrap i {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.home-nl-input-wrap input {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
    padding: 0.75rem 0.5rem;
    width: 100%;
    outline: none;
}

.home-nl-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.home-nl-form button {
    flex-shrink: 0;
    border: none;
    background: #fff;
    color: #4338ca;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: 0 var(--sf-radius-pill) var(--sf-radius-pill) 0;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.home-nl-form button:hover {
    background: #e0e7ff;
    color: #312e81;
}

@media (max-width: 767.98px) {
    .home-nl-card {
        padding: 1.5rem 1.15rem;
        border-radius: var(--sf-radius-lg);
    }

    .home-nl-title {
        font-size: 1.1rem;
    }

    .home-nl-sub {
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }

    .home-nl-form {
        flex-direction: column;
        border-radius: var(--sf-radius-lg);
        gap: 0;
    }

    .home-nl-input-wrap {
        padding: 0 1rem;
    }

    .home-nl-input-wrap input {
        padding: 0.65rem 0.35rem;
    }

    .home-nl-form button {
        border-radius: 0 0 var(--sf-radius-lg) var(--sf-radius-lg);
        padding: 0.7rem 1rem;
    }

    .home-nl-deco {
        font-size: 1.5rem;
    }
}

.category-pills--draggable {
    cursor: grab;
    user-select: none;
}

.category-pills--draggable:active {
    cursor: grabbing;
}

/* ── Mobile overrides for QuickDealz home ── */
@media (max-width: 767.98px) {
    .home-qdz {
        padding-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .home-qdz .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
    }

    .home-qdz-layout {
        gap: 0;
        width: 100%;
    }

    .home-qdz-main {
        width: 100%;
        min-width: 0;
    }

    .home-qdz-main > section,
    .home-qdz-main > .home-qdz-hero-wrap,
    .home-qdz-main > .home-qdz-mobile-cats {
        margin-bottom: 0;
    }

    .home-qdz-main > section.py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .home-qdz-main > section.py-4 {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    .hero-bento--qdz {
        min-height: 150px;
        border-radius: var(--sf-radius-lg);
    }

    .hero-bento--qdz-content {
        padding: 0.85rem 0.75rem;
    }

    .hero-bento--qdz-content h1 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .hero-bento--qdz-content p {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
        line-height: 1.35;
    }

    .hero-bento--qdz-badge {
        font-size: 0.62rem;
        padding: 0.18rem 0.55rem;
        margin-bottom: 0.45rem;
    }

    .hero-bento--qdz-cta {
        gap: 0.45rem;
    }

    .hero-bento--qdz-cta .btn-primary-gradient,
    .hero-bento--qdz-cta .btn-glass {
        font-size: 0.74rem;
        padding: 0.4rem 0.9rem;
    }

    .home-qdz-mobile-cats-scroll {
        padding: 0.15rem 0;
    }

    .home-qdz-mobile-cats-scroll .category-pill {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .home-flash-head .card-body {
        padding: 0.5rem 0.65rem !important;
    }

    .home-flash-head h2 {
        font-size: 0.95rem !important;
    }

    .flash-hero-banner {
        border-radius: var(--sf-radius-lg);
    }

    .home-trending-bento {
        gap: 0.5rem;
    }

    .home-tb-stack {
        gap: 0.5rem;
    }

    .home-tb-promo {
        min-height: 120px;
    }

    .home-tb-promo-body {
        min-height: 0;
        padding: 0.85rem 0.95rem !important;
    }

    .home-tb-large .home-tb-img {
        height: 140px;
    }

    .home-tb-large .card-body {
        padding: 0.75rem !important;
    }

    .home-tb-large .card-body h3 {
        font-size: 0.95rem;
    }

    .home-tb-promo {
        min-height: 110px;
    }

    .home-tb-promo-title {
        font-size: 0.95rem;
    }

    .home-tb-compact {
        min-height: 88px;
    }

    .home-tb-compact-media {
        min-width: 88px;
        max-width: 108px;
    }

    .home-tb-compact-title {
        font-size: 0.78rem;
    }

    .home-tb-compact-price {
        font-size: 0.82rem;
    }

    .section-head-mobile {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.35rem;
    }

    .home-trust-section {
        padding: 0.15rem 0;
    }

    .home-trust-chip {
        padding: 0.3rem 0.55rem;
        font-size: 0.65rem;
    }

    .home-trust-chip i {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .hero-bento--qdz {
        min-height: 160px;
        border-radius: var(--sf-radius-md);
    }

    .hero-bento--qdz-content {
        padding: 0.85rem 0.75rem;
    }

    .hero-bento--qdz-content h1 {
        font-size: 1.1rem;
    }

    .hero-bento--qdz-content p {
        font-size: 0.72rem;
        margin-bottom: 0.6rem;
    }

    .hero-bento--qdz-cta .btn-primary-gradient,
    .hero-bento--qdz-cta .btn-glass {
        font-size: 0.68rem;
        padding: 0.35rem 0.75rem;
    }

    .sf-back-to-top {
        --sf-chat-fab-size: 48px;
        --sf-chat-fab-bottom: calc(56px + 12px + env(safe-area-inset-bottom, 0px));
        --sf-chat-fab-right: 16px;
        --sf-chat-fab-gap: 10px;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .top-accent,
    .top-bar,
    .main-header,
    .category-bar,
    .category-pills,
    .storefront-category-nav,
    .sf-back-to-top,
    .storefront-footer,
    .sticky-add-to-cart,
    .toast-container,
    .offcanvas,
    .mobile-menu-overlay,
    .mobile-menu-drawer { display: none !important; }

    body { background: #fff; }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .bento-card {
        break-inside: avoid;
        box-shadow: none;
    }
}


/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--sf-bg); }
::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.35);
}


/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary-custom { color: var(--sf-primary) !important; }
.text-secondary-custom { color: var(--sf-secondary) !important; }
.text-accent-pink { color: var(--sf-accent-pink) !important; }
.text-success-custom { color: var(--sf-success) !important; }
.bg-sf-dark { background: var(--sf-dark) !important; }
.bg-sf-dark-lighter { background: var(--sf-dark-lighter) !important; }
.bg-primary-gradient { background: var(--sf-gradient-primary) !important; }
.border-primary-custom { border-color: var(--sf-primary) !important; }

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gap-grid { gap: 1.25rem; }
.gap-bento { gap: var(--sf-bento-gap); }

.hover-shadow { transition: box-shadow var(--sf-transition); }
.hover-shadow:hover { box-shadow: var(--sf-shadow-md); }

.hover-lift { transition: transform var(--sf-transition-spring), box-shadow var(--sf-transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--sf-shadow-lg); }

.glass-bg {
    background: var(--sf-glass);
    backdrop-filter: var(--sf-blur);
    -webkit-backdrop-filter: var(--sf-blur);
}

.rounded-bento { border-radius: var(--sf-radius-2xl); }
.rounded-xl { border-radius: var(--sf-radius-xl); }


/* ============================================================
   CUSTOM PAGINATION
   ============================================================ */
.sf-pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.sf-pagination {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.sf-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: var(--sf-radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sf-text-secondary);
    background: #fff;
    border: 1.5px solid var(--sf-border-light);
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    user-select: none;
}

.sf-page-link:hover {
    background: rgba(108, 92, 231, 0.07);
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

.sf-page-item.active .sf-page-link {
    background: var(--sf-gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.35);
}

.sf-page-item.disabled .sf-page-link {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.sf-page-prev,
.sf-page-next {
    font-size: 0.95rem;
}

.sf-page-dots .sf-page-link {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
    color: var(--sf-text-muted);
}

.sf-pagination-info {
    font-size: 0.8rem;
    color: var(--sf-text-muted);
    margin: 0;
}

.sf-pagination-info strong {
    color: var(--sf-text-secondary);
    font-weight: 700;
}

@media (max-width: 767px) {
    .sf-pagination-wrap {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }

    .sf-pagination {
        gap: 0.2rem;
        flex-wrap: nowrap;
    }

    .sf-page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 0.4rem;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .sf-page-prev,
    .sf-page-next {
        font-size: 0.82rem;
        min-width: 30px;
        height: 32px;
    }

    .sf-pagination-info {
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .sf-page-link {
        min-width: 28px;
        height: 28px;
        padding: 0 0.3rem;
        font-size: 0.72rem;
        border-radius: 6px;
    }

    .sf-page-prev,
    .sf-page-next {
        min-width: 26px;
        height: 28px;
    }
}


/* ============================================================
   CUSTOMER ACCOUNT (dashboard + sidebar)
   ============================================================ */
.sf-account-page {
    background: linear-gradient(180deg, var(--sf-bg-warm) 0%, var(--sf-bg) 28%, var(--sf-bg) 100%);
    min-height: 50vh;
}

.sf-account-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider: '›';
    font-weight: 500;
}

.sf-account-breadcrumb .breadcrumb-item a {
    color: var(--sf-text-secondary);
}

.sf-account-breadcrumb .breadcrumb-item.active {
    color: var(--sf-text-muted);
}

.sf-account-sidebar {
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-xl);
    box-shadow: var(--sf-shadow-sm);
    overflow: hidden;
    position: sticky;
    top: calc(var(--sf-header-height, 64px) + 1rem);
}

.sf-account-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.1rem;
    background: var(--sf-gradient-card);
    border-bottom: 1px solid var(--sf-border-light);
}

.sf-account-user-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--sf-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: var(--sf-gradient-primary);
    flex-shrink: 0;
    box-shadow: var(--sf-shadow-glow);
}

.sf-account-user-meta {
    min-width: 0;
    flex: 1;
}

.sf-account-user-name {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    color: var(--sf-text);
    line-height: 1.25;
}

.sf-account-user-email {
    font-size: 0.78rem;
    color: var(--sf-text-muted);
    margin-top: 0.15rem;
}

.sf-account-nav {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sf-account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--sf-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sf-text-secondary);
    text-decoration: none;
    transition: background var(--sf-transition-fast), color var(--sf-transition-fast);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sf-account-nav-link:hover {
    background: var(--sf-bg);
    color: var(--sf-text);
}

.sf-account-nav-link.is-active {
    background: rgba(108, 92, 231, 0.12);
    color: var(--sf-primary-dark);
}

.sf-account-nav-ic {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sf-radius-sm);
    background: rgba(108, 92, 231, 0.08);
    color: var(--sf-primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sf-account-nav-link.is-active .sf-account-nav-ic {
    background: rgba(108, 92, 231, 0.2);
    color: var(--sf-primary-dark);
}

.sf-account-logout-form {
    padding: 0 0.5rem 0.5rem;
    margin-top: -0.15rem;
}

.sf-account-logout-btn {
    color: #c0392b !important;
}

.sf-account-logout-btn:hover {
    background: rgba(192, 57, 43, 0.08) !important;
}

.sf-account-logout-btn .sf-account-nav-ic {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

.sf-account-main {
    min-width: 0;
}

.sf-account-main-header {
    border-bottom: 1px solid var(--sf-border-light);
    padding-bottom: 1rem;
}

.sf-account-main-title {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--sf-text);
    margin: 0 0 0.35rem;
}

.sf-account-main-lead {
    font-size: 0.92rem;
}

.sf-account-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-lg);
    box-shadow: var(--sf-shadow-sm);
    height: 100%;
    transition: box-shadow var(--sf-transition-fast), transform var(--sf-transition-fast);
}

.sf-account-stat:hover {
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-1px);
}

.sf-account-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--sf-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sf-account-stat-icon--primary {
    background: rgba(108, 92, 231, 0.12);
    color: var(--sf-primary);
}

.sf-account-stat-icon--amber {
    background: rgba(253, 203, 110, 0.35);
    color: #b45309;
}

.sf-account-stat-icon--rose {
    background: rgba(253, 121, 168, 0.18);
    color: #db2777;
}

.sf-account-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--sf-text);
}

.sf-account-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-account-panel {
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-xl);
    box-shadow: var(--sf-shadow-sm);
    overflow: hidden;
}

.sf-account-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--sf-border-light);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,248,252,0.95));
}

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

.sf-account-panel-action {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sf-primary);
    text-decoration: none;
}

.sf-account-panel-action:hover {
    color: var(--sf-primary-dark);
    text-decoration: underline;
}

.sf-account-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sf-border-light);
    transition: background var(--sf-transition-fast);
}

.sf-account-order-row:last-child {
    border-bottom: none;
}

.sf-account-order-row:hover {
    background: var(--sf-bg);
}

.sf-account-order-main {
    min-width: 0;
}

.sf-account-order-num {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--sf-text);
    letter-spacing: -0.01em;
}

.sf-account-order-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--sf-text-muted);
    margin-top: 0.2rem;
}

.sf-account-order-side {
    text-align: right;
    flex-shrink: 0;
}

.sf-account-order-total {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--sf-text);
}

.sf-account-order-badge {
    margin-top: 0.35rem;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.35em 0.65em;
}

.sf-account-empty {
    padding: 2.5rem 1.5rem;
}

.sf-account-empty-icon {
    font-size: 2.5rem;
    color: var(--sf-border);
    margin-bottom: 0.5rem;
}

.sf-account-empty-cta {
    background: var(--sf-gradient-primary);
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: var(--sf-radius-pill);
}

.sf-account-empty-cta:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

/* Subpages: order cards */
.sf-account-order-card {
    border: 1px solid var(--sf-border-light) !important;
    border-radius: var(--sf-radius-lg) !important;
    padding: 1.1rem 1.15rem !important;
    margin-bottom: 0.85rem !important;
    background: var(--sf-card-bg);
    box-shadow: var(--sf-shadow-sm);
}

.sf-account-order-card:last-of-type {
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .sf-account-sidebar {
        position: static;
    }
}

/* My Store — product rows: long titles must not cover the action button (flex + min-w-0) */
.store-product-row {
    min-width: 0;
}

.store-product-row-body {
    min-width: 0;
    overflow: hidden;
}

.store-product-row-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.35;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--sf-text);
}

.store-product-row-title--search {
    -webkit-line-clamp: 2;
    font-size: 0.8125rem;
}

.store-product-row-meta {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--sf-text-muted);
}


/* ============================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    /*
     * Mobile bottom nav: pin to layout viewport bottom only. Visual-viewport JS offsets
     * often mis-fire on iOS Safari and create a gap above the browser chrome (“floating”).
     * Safe area padding handles the home indicator; main gets padding so grids don’t end under the bar.
     */
    #main-content {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 20px);
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        z-index: 1060;
        background: #fff;
        border-top: 1px solid rgba(0,0,0,0.06);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-bottom-nav__inner {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        justify-items: stretch;
        height: 58px;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        column-gap: 0.15rem;
    }

    /* Affiliate store: Categories tab hidden — 4 items, full-width equal columns */
    .mobile-bottom-nav--affiliate .mobile-bottom-nav__inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: none;
        column-gap: 0;
        padding: 0 0.35rem;
    }

    .mobile-bottom-nav--affiliate .mobile-bottom-nav__item {
        max-width: none;
        width: 100%;
    }

    /* ── Single nav item ── */
    .mobile-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #94a3b8;
        font-size: 0.6rem;
        font-weight: 600;
        position: relative;
        cursor: pointer;
        border: none;
        background: none;
        padding: 4px 0 2px;
        -webkit-tap-highlight-color: transparent;
        outline: none;
        line-height: 1;
        transition: color 0.2s ease;
    }

    .mobile-bottom-nav__item .mnav-icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 28px;
        border-radius: 99px;
        transition: background 0.25s ease, transform 0.2s ease;
    }

    .mobile-bottom-nav__item i {
        font-size: 1.2rem;
        line-height: 1;
        transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    }

    .mobile-bottom-nav__item span.mnav-label {
        white-space: nowrap;
        transition: opacity 0.15s ease;
    }

    /* Tap feedback */
    .mobile-bottom-nav__item:active .mnav-icon-wrap {
        transform: scale(0.88);
    }

    /* ── Active state — pill highlight ── */
    .mobile-bottom-nav__item.active {
        color: var(--sf-primary);
    }

    .mobile-bottom-nav__item.active .mnav-icon-wrap {
        background: rgba(108, 92, 231, 0.12);
    }

    .mobile-bottom-nav__item.active i {
        transform: scale(1.05);
    }

    /* ── Deals special color ── */
    .mobile-bottom-nav__item--deals.active {
        color: #ef4444;
    }

    .mobile-bottom-nav__item--deals.active .mnav-icon-wrap {
        background: rgba(239, 68, 68, 0.1);
    }

    /* ── Cart badge ── */
    .mobile-bottom-nav__item .mnav-badge {
        position: absolute;
        top: 2px;
        left: 50%;
        margin-left: 5px;
        background: linear-gradient(135deg, #ef4444, #f97316);
        color: #fff;
        font-size: 0.5rem;
        font-weight: 800;
        min-width: 16px;
        height: 16px;
        border-radius: 99px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        line-height: 1;
        border: 2px solid #fff;
        box-shadow: 0 2px 6px rgba(239,68,68,0.35);
    }

    @keyframes mnavBadgePop {
        0% { transform: scale(0.5); }
        60% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    .mobile-bottom-nav__item .mnav-badge.pop {
        animation: mnavBadgePop 0.35s ease;
    }

    /* ── Push footer above the bottom nav ── */
    .storefront-footer {
        margin-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    /* ── Float chatbot + back-to-top above the nav ── */
    #chatbotWidget {
        bottom: calc(58px + 10px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .sf-back-to-top {
        bottom: calc(58px + 78px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
