/* ═══════════════════════════════════════════════════════════
   TAMILANDA — Premium eCommerce Design System
   Modern, Responsive, Production-Ready CSS
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
    /* Primary Palette */
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --primary-lighter: #334155;
    --primary-50: #f8fafc;
    
    /* Accent (Golden Amber) */
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: rgba(245, 158, 11, 0.1);
    --accent-glow: rgba(245, 158, 11, 0.35);
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    
    /* Surfaces */
    --bg-body: #f1f5f9;
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --white: #ffffff;
    
    /* Borders */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Layout */
    --navbar-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;
}
    

/* ─── Profile & Dashboard ─────────────────────────────────── */
.profile-page-bg {
    background: var(--bg-body);
    min-height: 80vh;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-user-card {
    background: var(--bg-surface);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
}

.profile-user-card .avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.profile-user-card .greeting {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    line-height: 1;
}

.profile-user-card .name {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 800;
}

.profile-menu-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.profile-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.profile-menu-item.active {
    background: var(--primary-50) !important;
    color: var(--primary-color) !important;
}

.profile-menu-item .menu-icon {
    width: 24px;
    margin-right: 0.75rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
}

.profile-menu-item.active .menu-icon {
    color: var(--primary-color);
}

.profile-menu-item .chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-light);
}

.profile-main-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    height: 100%;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-card .label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .profile-sidebar {
        margin-bottom: 2rem;
    }
}


/* ─── Base Reset ─────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

a { text-decoration: none; transition: color var(--transition-fast); }

.text-accent { color: var(--accent-color) !important; }
.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.ls-tight { letter-spacing: -0.04em; }
.tracking-widest { letter-spacing: 0.2em; }

/* ─── Section Titles ─────────────────────────────────────── */
.section-title { margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 3px;
    margin-top: 12px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-medium);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition-fast);
    border-radius: inherit;
}

.btn:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-color);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 14px var(--accent-glow);
    font-weight: 700;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: var(--primary-color);
}

.btn-outline-accent {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-accent:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.shadow-glow { box-shadow: var(--shadow-glow); }

/* ─── Glassmorphism Navbar ───────────────────────────────── */
.navbar-custom {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
    transition: all var(--transition-medium);
    z-index: 1030;
    min-height: var(--navbar-height);
}

.navbar-custom.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

/* ─── Modern Mobile Navigation (Corner Dropdown) ─────────── */
@media (max-width: 991.98px) {
    /* Re-position collapse as a corner panel, not full-screen */
    .navbar-collapse {
        position: fixed;
        top: calc(var(--navbar-height) + 8px);
        left: 12px;
        right: auto;
        width: 250px;
        max-height: calc(100dvh - var(--navbar-height) - 40px);
        overflow-y: auto;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
        z-index: 2000;
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95) translateY(-10px);
        transform-origin: top left;
        transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16,1,0.3,1), visibility 0.2s;
        display: block !important; 
    }

    .navbar-collapse.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) translateY(0) !important;
    }

    .navbar-nav {
        text-align: left;
        gap: 0;
        margin: 0 !important;
        width: 100%;
        flex-direction: column !important;
    }

    .navbar-nav .nav-item { opacity: 1; transform: none; }

    .navbar-nav .nav-link {
        font-size: 0.88rem;
        font-weight: 600;
        color: rgba(255,255,255,0.85) !important;
        padding: 10px 14px !important;
        border-radius: 10px;
        letter-spacing: 0;
        transition: background 0.2s, color 0.2s;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(255,255,255,0.08);
        color: var(--accent-color) !important;
    }

    /* Language toggle inside dropdown */
    .lang-toggle.d-lg-none {
        display: flex !important;
        gap: 6px;
        padding: 8px 14px;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 6px;
    }

    /* Nav close btn — hidden, closing is done by clicking outside */
    .mobile-menu-close { display: none !important; }

    .nav-search {
        width: 100% !important;
        margin: 0 0 8px !important;
        padding: 0 2px;
    }
    .nav-search input {
        height: 38px !important;
        font-size: 0.82rem !important;
        background: rgba(255,255,255,0.08) !important;
        border-color: rgba(255,255,255,0.1) !important;
    }
}

@media (max-width: 991.98px) {
    body.mobile-menu-active { overflow: initial !important; }
}

/* Desktop Nav Link Colors */
.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-brand {
    font-weight: 800;
    color: var(--white) !important;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-width: 180px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    display: block;
}

.btn-profile-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-pill) !important;
    color: white !important;
    padding: 6px 16px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all var(--transition-medium);
}

.btn-profile-section:active, 
.btn-profile-section:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: none !important;
}

.profile-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: none !important;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    line-height: 1;
    pointer-events: none;
}

.cart-badge.pulse {
    animation: badge-pulse 0.6s ease;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Navbar Search */
.nav-search {
    position: relative;
    width: 280px;
}

.nav-search input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 8px 16px 8px 38px;
    color: white;
    font-size: 0.85rem;
    width: 100%;
    transition: all var(--transition-medium);
}

.nav-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.nav-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.nav-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-light);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.search-dropdown.active { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--bg-light);
    color: inherit;
}

.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-light);
}

.search-result-item .result-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-item .result-info .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.lang-toggle a {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.lang-toggle a.active-lang {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero-parallax {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(15, 23, 42, 0.88) 100%),
                url('../images/hero_banner_v2.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-parallax::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.hero-parallax::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--white);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Search */
.hero-search {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 5px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(245, 158, 11, 0.08);
    transition: box-shadow var(--transition-medium);
}

.hero-search:focus-within {
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(245, 158, 11, 0.15);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
}

.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--text-muted); }

.hero-search .btn {
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ─── Trust Badges ───────────────────────────────────────── */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.trust-badge .badge-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trust-badge h6 { margin: 0; font-size: 0.85rem; font-weight: 700; }
.trust-badge p { margin: 0; font-size: 0.75rem; color: var(--text-muted); }

/* Redundant Profile CSS removed to fix header line issues */

@media (max-width: 575px) {
    .navbar-custom .dropdown-menu {
        width: 250px !important;
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        margin-top: 10px !important;
    }
}

/* ─── Product Cards ──────────────────────────────────────── */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.4s var(--ease-spring);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.product-card .card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-card .card-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.product-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.product-card .badge-discount {
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}

.product-card .badge-new {
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}

.product-card .badge-oos {
    background: var(--text-muted);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}

.product-card .quick-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-medium);
}

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

.quick-actions .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.quick-actions .action-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.product-card .card-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card .card-partner {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-card .card-pricing {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card .price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.product-card .price-original {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card .price-off {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
}

.product-card .btn-add-cart {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
}

.product-card .btn-add-cart:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.product-card .btn-add-cart:disabled {
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Ecosystem Feature Cards ────────────────────────────── */
.ecosystem-card {
    transition: all 0.4s var(--ease-spring) !important;
    border: 1px solid var(--border-light) !important;
}

.ecosystem-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--accent-color) !important;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-hover);
    transition: all var(--transition-medium);
}

.ecosystem-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

/* ─── Category Cards ─────────────────────────────────────── */
.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.category-card.active {
    border-color: var(--primary-color);
    background: var(--primary-50);
}

/* ─── Shop Page (Filter Sidebar + Grid) ──────────────────── */
@media (min-width: 992px) {
    .shop-sidebar {
        position: sticky;
        top: calc(var(--navbar-height) + 20px);
        max-height: calc(100vh - var(--navbar-height) - 40px);
        overflow-y: auto;
        padding-right: 4px;
    }
    
    /* Custom Scrollbar for Sidebar */
    .shop-sidebar::-webkit-scrollbar { width: 4px; }
    .shop-sidebar::-webkit-scrollbar-track { background: transparent; }
    .shop-sidebar::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 10px; }
}

.filter-section {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 16px;
}

.filter-section h6 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.filter-option:hover { color: var(--primary-color); }

.filter-option .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sort-select {
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 10px 36px 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ─── Modern Mobile Offcanvas Navigation ─── */
.shop-sidebar-offcanvas,
.service-sidebar-offcanvas {
    width: 320px !important;
    border-right: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-2xl) !important;
}

.brand-category-offcanvas {
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-lg) !important;
}

@media (max-width: 991px) {
    .shop-sidebar, .service-sidebar {
        padding: 20px !important;
        height: 100%;
        overflow-y: auto;
    }
    .filter-section {
        box-shadow: none !important;
        border-radius: var(--radius-md) !important;
        margin-bottom: 12px !important;
    }
    .category-pills-wrapper {
        padding: 10px !important;
        overflow-x: hidden !important;
        flex-wrap: wrap !important;
    }
}

/* ─── Product Detail Page ────────────────────────────────── */
.product-gallery-main {
    height: 480px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.product-gallery-main img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

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

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15);
}

.thumb-item:hover:not(.active) { border-color: var(--accent-color); }
.thumb-item img, .thumb-item video { width: 100%; height: 100%; object-fit: cover; }

.price-tag {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.discount-badge {
    background: var(--danger);
    color: var(--white);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ─── Cart Page ──────────────────────────────────────────── */
.cart-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.cart-item:hover { background: var(--bg-light); }
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

.qty-stepper button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-stepper button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-stepper input {
    width: 44px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--white);
    -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-summary {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ─── Checkout ───────────────────────────────────────────── */
.checkout-step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.payment-option {
    display: block;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.payment-option:hover { background: var(--bg-light); }

.payment-option:last-of-type { border-bottom: none; }

/* ─── Auth Pages (Login/Register) ────────────────────────── */
.auth-wrapper { min-height: 100vh; display: flex; }

.auth-brand {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    bottom: -80px;
    right: -50px;
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--bg-surface);
}

.auth-form-inner {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.form-control-app {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-medium);
    color: var(--text-primary);
}

.form-control-app:focus {
    background: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-light);
    outline: none;
}

/* ─── Toast Notifications ────────────────────────────────── */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 16px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: toast-in 0.4s var(--ease-spring);
    max-width: 360px;
    min-width: 280px;
}

.toast-msg.toast-success { border-left: 4px solid var(--success); }
.toast-msg.toast-error { border-left: 4px solid var(--danger); }
.toast-msg.toast-info { border-left: 4px solid var(--info); }

.toast-msg .toast-icon { font-size: 1.1rem; }
.toast-msg.toast-success .toast-icon { color: var(--success); }
.toast-msg.toast-error .toast-icon { color: var(--danger); }
.toast-msg.toast-info .toast-icon { color: var(--info); }

.toast-msg.toast-out {
    animation: toast-out 0.3s var(--ease-out) forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ─── Footer ─────────────────────────────────────────────── */
footer.site-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    border-top: 3px solid var(--accent-color);
}

footer.site-footer h5,
footer.site-footer h6 {
    color: var(--white);
    font-weight: 700;
}

footer.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

footer.site-footer a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all var(--transition-medium) !important;
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    padding-left: 0 !important;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-medium);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-color);
    color: var(--primary-color);
}

/* ─── Profile / Dashboard ────────────────────────────────── */
.profile-page-bg { background-color: var(--bg-body) !important; }

.profile-sidebar { position: sticky; top: calc(var(--navbar-height) + 20px); z-index: 10; }

.profile-user-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.profile-user-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
}

.profile-user-card .greeting { font-size: 0.72rem; color: var(--text-muted); }
.profile-user-card .name { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin: 0; }

.profile-menu-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: var(--bg-light); color: var(--text-primary); }

.profile-menu-item.active {
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
    background: rgba(15, 23, 42, 0.02);
    color: var(--text-primary);
}

.profile-menu-item i.menu-icon { width: 22px; color: var(--text-muted); margin-right: 14px; font-size: 1.05rem; }
.profile-menu-item.active i.menu-icon { color: var(--primary-color); }
.profile-menu-item i.chevron { margin-left: auto; color: #d1d5db; font-size: 0.75rem; }

.profile-content-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    padding: 24px;
    margin-bottom: 16px;
}

.profile-content-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-stat-box {
    text-align: center;
    padding: 18px 10px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
}

.profile-stat-box:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.profile-stat-box h3 { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--text-primary); }
.profile-stat-box p { margin: 5px 0 0; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ─── Order Tracking Stepper ─────────────────────────────── */
.order-card {
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light) !important;
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 24px;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 3px solid #e5e7eb;
    width: 100%;
    top: 15px;
    left: -50%;
    z-index: 0;
}

.stepper-item:first-child::before { content: none; }

.stepper-item .step-counter {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    margin-bottom: 8px;
    font-size: 13px;
    transition: all var(--transition-medium);
}

.stepper-item.completed .step-counter {
    background: var(--primary-color);
    color: var(--white);
}

.stepper-item.completed .step-name {
    color: var(--text-primary);
    font-weight: 700;
}

.stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
    top: 15px;
    left: 50%;
    z-index: 1;
}

.stepper-item:last-child.completed::after { content: none; }

.step-name {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ─── Empty States ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h5 { font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* ─── Skeleton Loading ───────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

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

/* ─── Animations ─────────────────────────────────────────── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s var(--ease-out);
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

.product-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}
.product-card-hover { transition: all var(--transition-medium); }

.transition-up {
    transition: all var(--transition-medium);
}
.transition-up:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge.bg-accent {
    background-color: var(--accent-light) !important;
    color: var(--accent-hover) !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-weight: 700;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-parallax {
        min-height: 55vh;
        background-attachment: scroll;
    }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    
    .product-card .card-img-wrap { height: 180px; }
}

@media (max-width: 767.98px) {
    .hero-parallax { min-height: 50vh; }
    
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 8px;
    }
    
    .hero-search input { padding: 12px 16px; }
    .hero-search .btn { width: 100%; border-radius: var(--radius-md) !important; }
    
    .auth-form-container { padding: 2rem; }
    
    .product-card .card-img-wrap { height: 160px; padding: 16px; }
    .product-card .card-info { padding: 12px; }
    .product-card .card-title { font-size: 0.82rem; }
    .product-card .price-current { font-size: 1rem; }
    
    .profile-sidebar { position: static; }
    
    .profile-content-card { padding: 16px; }
    .profile-content-title { font-size: 1rem; }
    
    /* Mobile card table */
    .mobile-card-table thead { display: none; }
    
    .mobile-card-table tbody tr {
        display: block;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        padding: 14px;
        background: var(--white);
    }
    
    .mobile-card-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 6px 0;
        text-align: right;
    }
    
    .mobile-card-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-card-table tbody td:last-child {
        justify-content: flex-end;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed var(--border-light) !important;
    }
    
    .mobile-card-table tbody td:last-child::before { display: none; }
    
    /* Mobile stepper */
    .step-name { font-size: 0.55rem; }
    .stepper-item .step-counter { width: 26px; height: 26px; font-size: 10px; }
    .stepper-item::before { top: 12px; }
    .stepper-item.completed::after { top: 12px; }
}

@media (max-width: 575.98px) {
    .product-card .card-img-wrap { height: 140px; padding: 12px; }
    .product-card .btn-add-cart { padding: 8px; font-size: 0.78rem; }
    
    .cart-item-img { width: 60px; height: 60px; }
}

/* ─── Utility Classes ────────────────────────────────────── */
.rounded-4 { border-radius: var(--radius-xl) !important; }
.rounded-5 { border-radius: var(--radius-2xl) !important; }
.rounded-top-4 { border-top-left-radius: var(--radius-xl) !important; border-top-right-radius: var(--radius-xl) !important; }
.rounded-bottom-4 { border-bottom-left-radius: var(--radius-xl) !important; border-bottom-right-radius: var(--radius-xl) !important; }

.fw-800 { font-weight: 800 !important; }

/* Print styles */
@media print {
    .navbar-custom, footer.site-footer, .back-to-top { display: none !important; }
    body { background: white !important; }
}

/* ═══════════════════════════════════════════════════════════
   BRAND-FIRST SHOPPING EXPERIENCE
   ═══════════════════════════════════════════════════════════ */

/* ─── Brand Cards (Homepage Showcase) ────────────────────── */
.brand-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    filter: blur(60px);
}

.brand-card:hover .brand-card-glow {
    opacity: 0.06;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.brand-card-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    background: var(--bg-light);
    border: 3px solid var(--border-light);
    transition: all var(--transition-medium);
}

.brand-card:hover .brand-card-logo {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    transform: scale(1.05);
}

.brand-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.brand-card-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-placeholder span {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
}

.brand-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.brand-card-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.brand-card-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.brand-card-stats span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.brand-card-action {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-hover);
    transition: all var(--transition-fast);
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: var(--accent-light);
}

.brand-card:hover .brand-card-action {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* ─── How It Works Section ───────────────────────────────── */
.how-it-works-step {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-medium);
    position: relative;
}

.how-it-works-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--accent-light);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto;
    transition: all var(--transition-medium);
}

.how-it-works-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ─── Brand Store Hero Banner ────────────────────────────── */
.brand-store-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}

.brand-store-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.brand-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
}

.brand-hero-logo {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.brand-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-hero-placeholder span {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

/* ─── Category Filter Pills (Brand Store) ────────────────── */
.brand-category-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    position: sticky;
    top: var(--navbar-height);
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.category-pills-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

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

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
}

.category-pill:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--primary-color);
    font-weight: 700;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.category-pill .pill-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}

.category-pill.active .pill-count {
    background: rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.category-pill:hover .pill-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* ─── Brand Category Cards (Inside Brand Store) ──────────── */
.brand-category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px 16px;
    text-align: center;
    transition: all 0.4s var(--ease-spring);
    cursor: pointer;
    height: 100%;
}

.brand-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.brand-cat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.brand-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.brand-category-card:hover .brand-cat-icon {
    transform: scale(1.1) rotate(3deg);
}

/* ─── Brand Contact CTA ─────────────────────────────────── */
.brand-contact-cta {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 30px;
    transition: all var(--transition-medium);
}

.brand-contact-cta:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

/* ─── Brand Pages Mobile Responsive ─────────────────────── */
@media (max-width: 991.98px) {
    .brand-hero-logo {
        width: 70px;
        height: 70px;
    }
    
    .category-pills-wrapper {
        padding: 2px 0;
    }
    
    .category-pill {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
}

@media (max-width: 767.98px) {
    .brand-store-hero {
        padding: 30px 0 25px;
    }
    
    .brand-hero-logo {
        width: 60px;
        height: 60px;
    }
    
    .brand-card-logo {
        width: 80px;
        height: 80px;
    }
    
    .brand-card {
        padding: 20px 14px;
    }
    
    .brand-card-name {
        font-size: 0.9rem;
    }
    
    .brand-card-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .brand-card-stats span {
        font-size: 0.68rem;
    }
    
    .brand-contact-cta {
        padding: 20px;
    }
    
    .how-it-works-step {
        padding: 24px 16px;
    }
    
    .step-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .brand-card-logo {
        width: 65px;
        height: 65px;
    }
    
    .brand-card-tagline {
        display: none;
    }
    
    .brand-card-action {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .category-pill {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .category-pill i {
        display: none;
    }
}

/* ─── Detailed Orders ────────────────────────────────────── */
.order-items-list {
    background: #fff;
}

.order-item-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.order-item-row:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
}

.order-item-row:hover {
    background: #fdfdfd;
}

.hover-primary:hover {
    color: var(--accent-hover) !important;
}

.order-item-img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Tracking Stepper Customizations */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #e2e8f0;
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 1;
}

.stepper-item:first-child::before {
    content: none;
}

.stepper-item .step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.stepper-item.completed .step-counter {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stepper-item.completed::before {
    border-color: var(--success);
}

.stepper-item .step-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stepper-item.completed .step-name {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    /* Existing mobile media query content... */
    .order-item-img-wrap {
        width: 60px;
        height: 60px;
    }
}

/* ─── Professional Vertical Stepper ──────────────────────── */
.vertical-stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px;
}

.vertical-stepper::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.vertical-stepper .stepper-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 0;
}

.vertical-stepper .stepper-item::before {
    display: none;
}

.vertical-stepper .step-counter {
    margin-bottom: 0;
    z-index: 2;
    flex-shrink: 0;
}

.vertical-stepper .step-name {
    text-align: left;
    font-size: 0.9rem;
    color: #475569;
}

.vertical-stepper .stepper-item.completed .step-name {
    font-weight: 800;
    color: var(--text-primary);
}

/* Glassmorphism Detail Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.order-detail-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

