:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-glow: rgba(79, 70, 229, 0.25);
    --secondary: #0f172a;
    --accent: #06b6d4;
    --accent-warm: #f59e0b;
    --success: #10b981;
    --danger: #f43f5e;
    
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-card: rgba(255, 255, 255, 0.7);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 20px 35px -8px rgba(79, 70, 229, 0.2), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --transition-snappy: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Standard Control Heights for Pixel-Perfect Inline Alignment */
    --control-h-sm: 34px;
    --control-h-md: 42px;
    --control-h-lg: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   Storefront Top Utility Bar (Tenant, Currency, Language, Auth)
   ========================================================================== */
.store-utility-bar {
    background: #0f172a;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
    position: relative;
    z-index: 1010;
    font-size: 0.8125rem;
    line-height: 1;
}

.utility-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.utility-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.utility-store-switcher {
    display: inline-flex;
    align-items: center;
}

.utility-select {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0 0.5rem;
    height: 26px;
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition-snappy);
}

.utility-select:focus,
.utility-select:hover {
    border-color: #6366f1;
    background: #252f48;
}

.utility-divider {
    width: 1px;
    height: 14px;
    background: #334155;
    display: inline-block;
}

.utility-promo {
    color: #cbd5e1;
    font-size: 0.775rem;
    font-weight: 500;
}

.utility-control-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.utility-control-label {
    color: #64748b;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.utility-account-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.utility-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
}

.utility-link:hover {
    color: #ffffff;
}

.utility-link.utility-logout {
    color: #f87171;
}

.utility-link.utility-logout:hover {
    color: #ef4444;
}

.utility-admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #4f46e5;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.725rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.utility-admin-pill:hover {
    background: #4338ca;
    color: #ffffff;
}

.utility-vendor-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #059669;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.725rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.utility-vendor-pill:hover {
    background: #047857;
    color: #ffffff;
}

@media (max-width: 900px) {
    .utility-promo,
    .utility-divider {
        display: none;
    }
    .utility-container {
        height: auto;
        padding: 0.35rem 1rem;
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* ==========================================================================
   Navigation Bar (Desktop & Mobile Responsive - Unified 42px Alignment)
   ========================================================================== */
.main-navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0;
    transition: var(--transition-snappy);
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    height: 100%;
}

.brand-logo {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.brand-accent {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* Nav Links - Desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.35rem 0;
    transition: var(--transition-snappy);
}

.nav-link:hover {
    color: var(--primary);
}

/* Storefront Modern Dropdown & Mega Menu */
.store-dropdown {
    position: relative;
}

.store-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-main);
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0.35rem 0;
    transition: var(--transition-snappy);
}

.store-dropdown-trigger:hover,
.store-dropdown:hover .store-dropdown-trigger {
    color: var(--primary);
}

.store-dropdown:hover .dropdown-chevron,
.store-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.store-mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -20px;
    width: 860px;
    max-width: min(94vw, 920px);
    max-height: min(74vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 1.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 1050;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.store-mega-menu::-webkit-scrollbar {
    width: 6px;
}
.store-mega-menu::-webkit-scrollbar-track {
    background: transparent;
}
.store-mega-menu::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}
.store-mega-menu::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.store-dropdown:hover .store-mega-menu,
.store-dropdown.open .store-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.mega-category-col {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-snappy);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.mega-category-col:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mega-category-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    margin-bottom: 0.2rem;
    transition: var(--transition-snappy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-category-title:hover {
    color: var(--primary);
}

.cat-icon {
    font-size: 1.05rem;
}

.mega-cat-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mega-subcategories {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-sub-link {
    font-size: 0.8rem;
    color: #475569;
    text-decoration: none;
    padding: 0.15rem 0;
    transition: var(--transition-snappy);
}

.mega-sub-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.mega-menu-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.mega-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-snappy);
}

.mega-footer-link:hover {
    gap: 0.6rem;
}

/* Trending & Deals Pills */
.trending-nav-link,
.deals-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.trending-flame,
.deals-sparkle {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

/* Modern Header Search Bar - Unified 42px Height */
.header-search-wrap {
    flex: 1;
    max-width: 340px;
    height: 42px;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-full);
    height: 42px;
    width: 100%;
    padding: 0 0.85rem;
    gap: 0.5rem;
    box-sizing: border-box;
    transition: var(--transition-snappy);
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.header-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-main);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.header-search-input::placeholder {
    color: #94a3b8;
}

.search-submit-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-snappy);
}

.header-search-form:focus-within .search-submit-btn,
.search-submit-btn:hover {
    color: var(--primary);
}

/* Authenticated Admin Quick Chip */
.admin-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: #eef2ff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #c7d2fe;
    transition: var(--transition-snappy);
}

.admin-chip-link:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.mobile-nav-only {
    display: none;
}

/* Nav Actions Right - Strict 42px Horizontal Inline Alignment */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 42px;
    flex-shrink: 0;
}

.nav-wishlist-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.15rem;
    border-radius: var(--radius-full);
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-snappy);
}

.nav-wishlist-btn:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
    transform: translateY(-1px);
}

.wishlist-label {
    font-weight: 700;
}

.wishlist-badge {
    background: #e11d48;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-cart-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1.35rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    box-sizing: border-box;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition-snappy);
}

.nav-cart-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.cart-label {
    font-weight: 700;
}

.cart-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Fallback aliases */
.wishlist-pill-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-main);
    padding: 0 1rem;
    border-radius: var(--radius-full);
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    box-sizing: border-box;
    transition: var(--transition-snappy);
}
.wishlist-pill-btn:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
    transform: translateY(-1px);
}
.cart-pill-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff;
    padding: 0 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-sizing: border-box;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition-snappy);
}
.cart-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}
.cart-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
}
    transform: translateY(-1px);
}

/* Mobile Hamburger Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-snappy);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
}

.mobile-nav-backdrop.active {
    display: block;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    flex: 1;
    width: 100%;
}

/* ==========================================================================
   Buttons & Micro-interactions
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-snappy);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-outline {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Hero Section (Modern Glassmorphic Gradient)
   ========================================================================== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #09090b 0%, #1e1b4b 45%, #312e81 100%);
    border-radius: var(--radius-xl);
    padding: 5rem 3.5rem;
    color: #ffffff;
    margin-bottom: 3.5rem;
    box-shadow: 0 24px 48px -12px rgba(30, 27, 75, 0.45);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.1) 60%, transparent 80%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    color: #e0e7ff;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #c7d2fe;
    line-height: 1.6;
    margin-bottom: 2.25rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Category Carousel & Badges
   ========================================================================== */
.category-carousel-section {
    margin-bottom: 3.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.section-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-snappy);
}

.view-all-link:hover {
    gap: 0.5rem;
}

.category-pills {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-pill-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-full);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-snappy);
}

.category-pill-card:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

/* ==========================================================================
   Product Grid & Premium Modern Cards
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.1), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
    z-index: 2;
}

.stock-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stock-pill.stock-in {
    background: rgba(16, 185, 129, 0.92);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.stock-pill.stock-low {
    background: rgba(245, 158, 11, 0.95);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.stock-pill.stock-out {
    background: rgba(100, 116, 139, 0.92);
    color: #ffffff;
}

.card-wishlist-form {
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin: 0;
    z-index: 3;
}

.card-wishlist-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-wishlist-btn:hover {
    background: #ffffff;
    color: #e11d48;
    border-color: #fecdd3;
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.product-details {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    min-height: 1.3rem;
}

.product-brand {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #4f46e5;
    background: #eef2ff;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

.product-rating .star-icon {
    color: #f59e0b;
    font-size: 0.85rem;
}

.product-rating .rating-score {
    font-weight: 700;
    color: #1e293b;
}

.product-rating .rating-count {
    color: #94a3b8;
    font-size: 0.75rem;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.15rem 0 0.4rem;
    height: 2.75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.product-short-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 0 0.65rem;
}

.product-submeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

.product-sku {
    color: #64748b;
    font-weight: 500;
}

.product-ship-badge {
    color: #10b981;
    font-weight: 600;
    font-size: 0.72rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1.1;
    white-space: nowrap;
}

.old-price {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: line-through;
    white-space: nowrap;
}

.product-add-form {
    margin: 0;
    flex-shrink: 0;
}

.btn-product-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-product-cart:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 5px 14px rgba(79, 70, 229, 0.35);
}

.btn-product-cart.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ==========================================================================
   Catalog Filter Bar
   ========================================================================== */
.catalog-header-banner {
    margin-bottom: 2rem;
}

.catalog-header-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-main);
}

.catalog-header-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.filter-bar {
    background: var(--bg-surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.search-filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 220px;
}

.category-select {
    min-width: 180px;
}

.clear-filters {
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-snappy);
}

.clear-filters:hover {
    background: #fff1f2;
}

/* ==========================================================================
   Product Details Page
   ========================================================================== */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.main-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.detail-main-img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.detail-pricing-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.detail-current-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.save-badge {
    background: #ecfdf5;
    color: #059669;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    border: 1px solid #a7f3d0;
}

.stock-status-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.stock-status-pill.in-stock {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.stock-status-pill.out-of-stock {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.tier-table-wrap {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tier-table th {
    background: #f8fafc;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1.5px solid var(--border-color);
}

.tier-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Cart & Checkout Layouts
   ========================================================================== */
.cart-layout-grid, .checkout-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
}

.cart-item-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-snappy);
}

.cart-item-card:hover {
    box-shadow: var(--shadow-card);
}

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #f8fafc;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cart-item-sku {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.cart-item-unit-price {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
}

.qty-input {
    width: 60px;
    padding: 0.45rem;
    text-align: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-line-total {
    text-align: right;
    min-width: 100px;
}

.line-total-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.35rem;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #be123c;
    text-decoration: underline;
}

.order-summary-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.order-summary-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin: 0.85rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-line.total-line {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.summary-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1.25rem 0;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

.form-control, .search-input, .category-select, .coupon-input {
    width: 100%;
    padding: 0.8rem 1.15rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--text-main);
    transition: var(--transition-snappy);
    outline: none;
}

.form-control:focus, .search-input:focus, .category-select:focus, .coupon-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    color: #f1f5f9;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-block;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    text-align: center;
    color: #64748b;
}

/* ==========================================================================
   Mobile & Responsive Enhancements (Tablets & Phones)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
    .cart-layout-grid, .checkout-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-navbar {
        padding: 0.75rem 0;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    /* Off-canvas mobile navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 1001;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-nav-only {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .desktop-nav-actions {
        display: none;
    }

    .hero-banner {
        padding: 3rem 1.75rem;
        margin-bottom: 2.5rem;
        border-radius: var(--radius-lg);
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-details {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.96rem;
        height: 2.6rem;
    }

    .product-short-desc {
        font-size: 0.8rem;
        height: 2.3rem;
    }

    .current-price {
        font-size: 1.15rem;
    }

    .cart-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-line-total {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 1.35rem;
    }

    .currency-select-custom {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .cart-pill-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.85rem;
    }

    .hero-banner {
        padding: 2.25rem 1.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Executive Admin Sub-Navigation & Command Hub
   ========================================================================== */
.admin-subnav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 60px;
    z-index: 990;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.admin-subnav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-subnav-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.admin-subnav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition-snappy);
}

.admin-subnav-brand:hover,
.admin-subnav-brand.active {
    background: rgba(79, 70, 229, 0.3);
    color: #a5b4fc;
}

.admin-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: admin-pulse 2s infinite;
}

@keyframes admin-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.admin-nav-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Dropdowns */
.admin-dropdown {
    position: relative;
}

.admin-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-snappy);
}

.admin-dropdown-btn:hover,
.admin-dropdown-btn.active,
.admin-dropdown:hover .admin-dropdown-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-icon {
    font-size: 0.95rem;
}

.dropdown-chevron {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.admin-dropdown:hover .dropdown-chevron,
.admin-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.admin-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 1050;
}

.dropdown-menu-wide {
    min-width: 290px;
}

.admin-dropdown:hover .admin-dropdown-menu,
.admin-dropdown.open .admin-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 0.35rem 0.6rem 0.25rem;
}

.admin-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-snappy);
}

.admin-dropdown-item:hover {
    background: rgba(79, 70, 229, 0.2);
}

.admin-dropdown-item .item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
}

.admin-dropdown-item:hover .item-title {
    color: #a5b4fc;
}

.admin-dropdown-item .item-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-top: 1px;
}

.admin-subnav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-settings-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
}

.admin-settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-add-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
}

/* Operations Command Hub Cards */
.admin-command-hub-section {
    margin-top: 2rem;
}

.command-hub-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.command-hub-title-row h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.command-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-snappy);
    display: flex;
    flex-direction: column;
}

.command-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: #cbd5e1;
}

.command-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.command-card-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--secondary);
}

.command-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: #eef2ff;
    color: var(--primary);
}

.command-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.command-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: var(--transition-snappy);
}

.command-link-item:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateX(3px);
}

.command-link-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.command-link-item:hover .command-link-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Stat Trend Badges */
.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    margin-top: 0.35rem;
    width: fit-content;
}

.stat-trend.up {
    background: #ecfdf5;
    color: #059669;
}

.stat-trend.neutral {
    background: #f1f5f9;
    color: #475569;
}

/* Chart Granularity Switcher */
.chart-filter-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: var(--radius-sm);
    gap: 2px;
}

.chart-filter-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-snappy);
}

.chart-filter-btn.active,
.chart-filter-btn:hover {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .admin-subnav-left {
        gap: 0.5rem;
    }
    .admin-subnav-brand {
        display: none;
    }
}

    @media (max-width: 600px) {
        .admin-dropdown-menu {
            position: fixed;
            top: auto;
            bottom: 0;
            left: 0;
            right: 0;
            min-width: 100%;
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
            max-height: 70vh;
            overflow-y: auto;
        }
    }
}

/* ==========================================================================
   Admin Portal Core Layout & Metric Cards System
   ========================================================================== */
.admin-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-header-row h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.admin-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* Executive Metric Cards (Grid & Cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #4f46e5;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(2) {
    border-top-color: #06b6d4;
}

.stat-card:nth-child(3) {
    border-top-color: #10b981;
}

.stat-card:nth-child(4) {
    border-top-color: #8b5cf6;
}

.stat-card:nth-child(5) {
    border-top-color: #f59e0b;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -6px rgba(79, 70, 229, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    border-color: #c7d2fe;
}

.stat-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.stat-badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    width: fit-content;
    margin-top: 0.4rem;
}

/* Section Cards */
.admin-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.04);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-snappy);
}

/* Admin Data Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
}

.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.admin-table td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.status-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-processing {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status-complete,
.status-paid,
.status-delivered {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Logout Button Link */
.logout-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-snappy);
    cursor: pointer;
}

.logout-btn-link:hover {
    color: #ef4444;
    background: #fef2f2;
}

.user-avatar-mini {
    font-size: 0.95rem;
    line-height: 1;
}

/* ==========================================================================
   nopCommerce-Style Persistent Management Top Bar
   ========================================================================== */
.nop-admin-bar {
    background: #090d16;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1001;
    line-height: 1;
}

.nop-admin-bar-admin {
    border-top: 2px solid #6366f1;
}

.nop-admin-bar-vendor {
    border-top: 2px solid #10b981;
}

.nop-admin-bar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nop-admin-bar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.nop-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.75rem;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-snappy);
}

.nop-admin-btn-primary {
    background: #4f46e5;
    color: #ffffff;
}

.nop-admin-btn-primary:hover {
    background: #4338ca;
    color: #ffffff;
}

.nop-admin-btn-vendor {
    background: #059669;
    color: #ffffff;
}

.nop-admin-btn-vendor:hover {
    background: #047857;
    color: #ffffff;
}

.nop-admin-bar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
}

.nop-admin-shortcuts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nop-admin-shortcut-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    transition: var(--transition-snappy);
}

.nop-admin-shortcut-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nop-admin-bar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nop-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.nop-admin-badge-vendor {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.nop-admin-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
}

.nop-admin-user {
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
}

.nop-admin-logout {
    color: #f87171;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition-snappy);
}

.nop-admin-logout:hover {
    color: #ffffff;
    background: #dc2626;
}

/* ==========================================================================
   Customer Account Floating Dropdown
   ========================================================================== */
.account-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.account-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.account-dropdown-trigger:hover,
.account-dropdown-wrap.open .account-dropdown-trigger {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #4f46e5;
}

.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
    animation: dropdownFade 0.15s ease-out;
}

.account-dropdown-wrap.open .account-dropdown-menu {
    display: block;
}

.account-dropdown-header {
    padding: 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.account-header-email {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

.account-header-role {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.35rem 0;
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-snappy);
}

.account-dropdown-item:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.account-dropdown-item-admin {
    color: #4338ca;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.06);
}

.account-dropdown-item-admin:hover {
    background: #e0e7ff;
    color: #3730a3;
}

.account-dropdown-item-vendor {
    color: #047857;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.06);
}

.account-dropdown-item-vendor:hover {
    background: #d1fae5;
    color: #065f46;
}

.account-dropdown-item-logout {
    color: #ef4444;
    font-weight: 600;
}

.account-dropdown-item-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-console-badge {
    font-size: 0.7rem;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

/* ==========================================================================
   nopCommerce-Style Dual-Panel Auth & Form Enhancements
   ========================================================================== */
.nop-auth-container {
    max-width: 1040px;
    margin: 2.5rem auto 4rem;
    padding: 0 1rem;
}

.customer-blocks {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 860px) {
    .customer-blocks {
        grid-template-columns: 1fr;
    }
}

.new-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.new-wrapper .title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.new-wrapper .text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.new-wrapper .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.new-wrapper .benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.new-wrapper .benefits-list li span.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.returning-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

.returning-wrapper .title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.returning-wrapper .subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 44px;
}

.password-eye-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.password-eye-toggle:hover {
    color: #4f46e5;
}

.form-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.5rem;
    font-size: 0.875rem;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #334155;
    font-weight: 500;
}

.form-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #4f46e5;
    cursor: pointer;
}

/* Structured Registration Fieldsets */
.form-fieldset {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-fieldset-legend {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

/* Admin Sticky Form Action Header */
.admin-sticky-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 65px;
    z-index: 20;
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05);
}

.admin-sticky-action-bar .action-title-group h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.admin-sticky-action-bar .action-title-group p {
    font-size: 0.825rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.admin-action-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   UNIFIED EXECUTIVE ADMIN DESIGN SYSTEM (Eliminates Duplicate Nav & Inline CSS)
   ========================================================================== */

/* 1. Master Executive Admin Header */
.admin-master-header {
    background: #0f172a;
    border-bottom: 2px solid #4f46e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.35);
}

.admin-master-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-master-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-master-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.admin-brand-accent {
    color: #818cf8;
}

.admin-brand-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-master-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.admin-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.admin-menu-link:hover,
.admin-menu-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-menu-dropdown {
    position: relative;
}

.admin-menu-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-menu-dropdown-btn:hover,
.admin-menu-dropdown-btn.active,
.admin-menu-dropdown.open .admin-menu-dropdown-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-chevron {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.admin-menu-dropdown.open .admin-chevron {
    transform: rotate(180deg);
}

.admin-menu-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.admin-menu-dropdown.open .admin-menu-dropdown-panel,
.admin-menu-dropdown:hover .admin-menu-dropdown-panel {
    display: block;
    animation: adminDropdownFade 0.15s ease-out;
}

.admin-menu-dropdown-panel.panel-wide {
    min-width: 320px;
}

.admin-panel-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.4rem 0.75rem 0.25rem;
}

.admin-panel-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.admin-panel-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.admin-panel-item .item-head {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
}

.admin-panel-item:hover .item-head {
    color: #818cf8;
}

.admin-panel-item .item-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1px;
}

.admin-master-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-nav-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    transition: all 0.15s ease;
}

.admin-nav-tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #475569;
    color: #ffffff;
}

.admin-currency-select {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.admin-currency-select:hover,
.admin-currency-select:focus {
    border-color: #6366f1;
}

/* User Account Dropdown in Master Header */
.admin-user-dropdown-wrap {
    position: relative;
}

.admin-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    color: #f1f5f9;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #475569;
}

.admin-user-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.admin-user-dropdown-wrap.open .admin-user-menu-panel,
.admin-user-dropdown-wrap:hover .admin-user-menu-panel {
    display: block;
    animation: adminDropdownFade 0.15s ease-out;
}

.admin-user-panel-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 0.35rem;
}

.admin-user-panel-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-panel-role {
    font-size: 0.72rem;
    color: #818cf8;
    font-weight: 600;
}

.admin-user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.825rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.admin-user-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.admin-user-menu-item.logout-item {
    color: #f87171;
    margin-top: 0.25rem;
    border-top: 1px solid #334155;
    padding-top: 0.5rem;
}

.admin-user-menu-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

@keyframes adminDropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. Operational Attention Funnel Bar ("Action Required Today") */
.admin-attention-funnel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.attention-funnel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.attention-funnel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.08);
}

.attention-card-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attention-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.attention-info .attention-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
}

.attention-info .attention-desc {
    font-size: 0.825rem;
    font-weight: 700;
    color: #1e293b;
}

.attention-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

/* Attention Card Color Variations */
.attention-funnel-card.funnel-dispatch .attention-icon-box { background: #fff7ed; color: #ea580c; }
.attention-funnel-card.funnel-dispatch .attention-badge { background: #ffedd5; color: #9a3412; }
.attention-funnel-card.funnel-dispatch:hover { border-color: #fdba74; }

.attention-funnel-card.funnel-unpaid .attention-icon-box { background: #fef2f2; color: #dc2626; }
.attention-funnel-card.funnel-unpaid .attention-badge { background: #fee2e2; color: #991b1b; }
.attention-funnel-card.funnel-unpaid:hover { border-color: #fca5a5; }

.attention-funnel-card.funnel-returns .attention-icon-box { background: #f5f3ff; color: #7c3aed; }
.attention-funnel-card.funnel-returns .attention-badge { background: #ede9fe; color: #5b21b6; }
.attention-funnel-card.funnel-returns:hover { border-color: #c4b5fd; }

.attention-funnel-card.funnel-stock .attention-icon-box { background: #fefce8; color: #ca8a04; }
.attention-funnel-card.funnel-stock .attention-badge { background: #fef9c3; color: #854d0e; }
.attention-funnel-card.funnel-stock:hover { border-color: #fde047; }

/* 3. Dashboard Clean Layout Classes (Replaces inline styles) */
.admin-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-dashboard-title-group h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.admin-dashboard-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 3px 0 0 0;
}

.admin-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-kpi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-chart-wrapper-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-chart-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-chart-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.admin-chart-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.admin-chart-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-chart-live-badge {
    font-size: 0.7rem;
    color: #4f46e5;
    font-weight: 700;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #e0e7ff;
}

.admin-chart-canvas-container {
    height: 330px;
    width: 100%;
    position: relative;
}

/* Dual Column Intelligence (Bestsellers & Low Stock) */
.admin-dual-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-bestseller-tab-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.admin-bestseller-tab-btn {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-bestseller-tab-btn.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-thumb-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-thumb-img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.admin-sku-pill {
    font-size: 0.72rem;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.admin-stock-alert-pill {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    display: inline-block;
}

/* ==========================================================================
   ENTERPRISE LEFT SIDEBAR LAYOUT SYSTEM (Admin & Vendor Portals)
   ========================================================================== */

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
}

/* --- Left Sidebar (260px) --- */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #0f172a;
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar-header {
    height: 60px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
    background: #0b1120;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
}

.admin-sidebar.collapsed .admin-sidebar-brand span:not(.admin-brand-accent) {
    display: none;
}

.admin-sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Sidebar Search Box */
.admin-sidebar-search-box {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1e293b;
    background: #0f172a;
    flex-shrink: 0;
}

.admin-sidebar-search-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.45rem 0.75rem 0.45rem 2rem;
    color: #f1f5f9;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 8px center;
}

.admin-sidebar-search-input:focus {
    border-color: #6366f1;
}

.admin-sidebar.collapsed .admin-sidebar-search-box {
    display: none;
}

/* Sidebar Navigation Scrollable Area */
.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}

/* Sidebar Tree Group */
.admin-tree-group {
    margin-bottom: 0.35rem;
}

.admin-tree-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.admin-tree-group-header:hover,
.admin-tree-group.active > .admin-tree-group-header,
.admin-tree-group.expanded > .admin-tree-group-header {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.admin-tree-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    overflow: hidden;
}

.admin-tree-chevron {
    font-size: 0.65rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.admin-tree-group.expanded .admin-tree-chevron {
    transform: rotate(90deg);
}

.admin-sidebar.collapsed .admin-tree-chevron,
.admin-sidebar.collapsed .admin-tree-title {
    display: none;
}

/* Submenu Links */
.admin-tree-sublist {
    display: none;
    padding: 0.25rem 0 0.25rem 1.75rem;
    margin: 0;
    list-style: none;
}

.admin-tree-group.expanded .admin-tree-sublist {
    display: block;
}

.admin-sidebar.collapsed .admin-tree-sublist {
    display: none !important;
}

.admin-tree-subitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.admin-tree-subitem:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.admin-tree-subitem.active {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
    font-weight: 700;
}

.admin-tree-subitem .count-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 1px 6px;
    border-radius: 9999px;
}

/* Direct link items in sidebar (like Dashboard) */
.admin-sidebar-direct-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    transition: all 0.15s ease;
}

.admin-sidebar-direct-link:hover,
.admin-sidebar-direct-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.admin-sidebar-direct-link.active {
    border-left: 3px solid #6366f1;
}

/* --- Main Wrapper (Right of Sidebar) --- */
.admin-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fafc;
}

/* Top Utility Header */
.admin-top-bar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-sidebar-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-sidebar-toggle-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.admin-breadcrumb-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-top-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-top-link-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.admin-top-currency-select {
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.admin-top-currency-select:hover,
.admin-top-currency-select:focus {
    border-color: #4f46e5;
}

/* User Account in Top Bar */
.admin-top-user-wrap {
    position: relative;
}

.admin-top-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-top-user-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.admin-top-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.admin-top-user-wrap.open .admin-top-user-dropdown,
.admin-top-user-wrap:hover .admin-top-user-dropdown {
    display: block;
    animation: adminDropdownFade 0.15s ease-out;
}

.admin-top-dropdown-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.35rem;
}

.admin-top-dropdown-header strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-top-dropdown-header span {
    font-size: 0.75rem;
    color: #6366f1;
    font-weight: 600;
}

.admin-top-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.825rem;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.admin-top-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-top-dropdown-item.logout {
    color: #dc2626;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

.admin-top-dropdown-item.logout:hover {
    background: #fef2f2;
}

/* Content Body */
.admin-content-body {
    flex: 1;
    padding: 1.5rem 2rem;
}

/* Clean Admin Shell Footer */
.admin-shell-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #64748b;
}

/* Mobile Overlay Backdrop */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1050;
    }

    .admin-sidebar.mobile-open {
        left: 0;
    }

    .admin-sidebar-backdrop.active {
        display: block;
    }

    .admin-sidebar-close-btn {
        display: block;
    }

    .admin-content-body {
        padding: 1rem;
    }
}

/* ==========================================================================
   Global Inline Form Control & Strict Anti-Zig-Zag Standardization
   ========================================================================== */
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    font-family: var(--font-family);
    box-sizing: border-box;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    background-color: #ffffff;
    transition: var(--transition-snappy);
    vertical-align: middle;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ==========================================================================
   Catalog Index Page Filters & Pagination (Strict 42px Alignment)
   ========================================================================== */
.catalog-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 0 3.5rem;
}

.catalog-header-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.catalog-header-banner h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.catalog-header-banner p {
    color: #c7d2fe;
    font-size: 1.05rem;
    margin: 0;
}

.filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.search-filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.search-filter-form .search-input {
    height: 42px;
    min-width: 260px;
    flex: 1;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    box-sizing: border-box;
    background: #ffffff;
}

.search-filter-form .category-select {
    height: 42px;
    min-width: 180px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
}

.search-filter-form .btn {
    height: 42px;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    box-sizing: border-box;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-filter-form .clear-filters {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    box-sizing: border-box;
    transition: var(--transition-snappy);
}

.search-filter-form .clear-filters:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* ==========================================================================
   Product Details Page Architecture (Catalog/Details/2)
   ========================================================================== */
.product-detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 90px;
}

.main-image-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.detail-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-wrap:hover .detail-main-img {
    transform: scale(1.03);
}

.thumbnails-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.thumb-img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    cursor: pointer;
    background: #ffffff;
    transition: var(--transition-snappy);
}

.thumb-img:hover,
.thumb-img.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-brand {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
}

.detail-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Detail Meta Row - Strict 30px Badge Height Alignment */
.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    height: 32px;
}

.detail-meta-row .meta-badge {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-sizing: border-box;
    line-height: 1;
}

.detail-meta-row .sku-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.detail-meta-row .rating-badge {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fef3c7;
}

.detail-meta-row .stars-gold {
    color: #f59e0b;
    letter-spacing: -1px;
}

.detail-meta-row .reviews-count-link {
    color: #64748b;
    text-decoration: none;
    margin-left: 0.2rem;
}

.detail-meta-row .reviews-count-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.detail-meta-row .stock-badge.in-stock {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.detail-meta-row .stock-badge.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Pricing Box */
.detail-pricing-box {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 0.25rem 0;
}

.detail-current-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.detail-old-price {
    font-size: 1.25rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.save-badge {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.detail-short-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Product Detail Action Bar (Strict 50px Height Alignment - Zero Zig-Zag)
   ========================================================================== */
.product-action-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 50px;
    margin-top: 1.25rem;
    width: 100%;
}

.quantity-stepper {
    height: 50px;
    width: 135px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    box-sizing: border-box;
}

.stepper-btn {
    width: 40px;
    height: 100%;
    background: #f8fafc;
    border: none;
    color: #334155;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
}

.stepper-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.stepper-input {
    flex: 1;
    height: 100%;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

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

.btn-action-cart {
    flex: 1;
    height: 50px;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition-snappy);
}

.btn-action-cart:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.btn-action-wishlist {
    height: 50px;
    padding: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-snappy);
    flex-shrink: 0;
}

.btn-action-wishlist:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
    transform: translateY(-1px);
}

/* ==========================================================================
   Shopping Cart Layout & Form Controls (Cart/Index)
   ========================================================================== */
.cart-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 0 3.5rem;
}

.cart-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.cart-items-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 80px 1fr 150px 130px;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.qty-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qty-form .qty-input {
    height: 36px;
    width: 60px;
    text-align: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.qty-form .btn {
    height: 36px;
    padding: 0 0.85rem;
    font-size: 0.825rem;
    font-weight: 700;
    box-sizing: border-box;
    line-height: 1;
}

.coupon-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1.25rem 0;
    width: 100%;
}

.coupon-form .coupon-input {
    flex: 1;
    height: 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-sizing: border-box;
}

.coupon-form .btn {
    height: 42px;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    box-sizing: border-box;
    line-height: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .gallery-column {
        position: static;
    }
    .cart-layout-grid {
        grid-template-columns: 1fr;
    }
    .cart-item-row {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .product-action-bar {
        flex-wrap: wrap;
        height: auto;
        gap: 0.5rem;
    }
    .quantity-stepper {
        width: 100%;
    }
    .btn-action-cart,
    .btn-action-wishlist {
        width: 100%;
    }
}

/* ==========================================================================
   Global Toast Notification Popup System
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 92vw;
}

.nsg-toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nsg-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.nsg-toast.hide {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
}

/* Toast Color Variants */
.nsg-toast.toast-success {
    border-left: 5px solid #10b981;
}

.nsg-toast.toast-success .toast-icon-wrap {
    background: #ecfdf5;
    color: #10b981;
}

.nsg-toast.toast-success .toast-progress {
    background: #10b981;
}

.nsg-toast.toast-error {
    border-left: 5px solid #ef4444;
}

.nsg-toast.toast-error .toast-icon-wrap {
    background: #fef2f2;
    color: #ef4444;
}

.nsg-toast.toast-error .toast-progress {
    background: #ef4444;
}

.nsg-toast.toast-warning {
    border-left: 5px solid #f59e0b;
}

.nsg-toast.toast-warning .toast-icon-wrap {
    background: #fffbeb;
    color: #f59e0b;
}

.nsg-toast.toast-warning .toast-progress {
    background: #f59e0b;
}

.nsg-toast.toast-info {
    border-left: 5px solid #6366f1;
}

.nsg-toast.toast-info .toast-icon-wrap {
    background: #eef2ff;
    color: #6366f1;
}

.nsg-toast.toast-info .toast-progress {
    background: #6366f1;
}

/* Toast Elements */
.toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.toast-message {
    font-size: 0.825rem;
    color: #475569;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: var(--transition-snappy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    opacity: 0.35;
    animation: toastProgressBar linear forwards;
}

@keyframes toastProgressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ==========================================================================
   Global Interactive Alert Modal
   ========================================================================== */
.alert-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: alertModalFadeIn 0.2s ease-out;
}

.alert-modal-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    padding: 2.25rem 2rem;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
    text-align: center;
    animation: alertModalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 1.25rem;
    background: #fef2f2;
    color: #ef4444;
}

.alert-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}

.alert-modal-message {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.alert-modal-actions {
    display: flex;
    justify-content: center;
}

.alert-modal-btn {
    min-width: 140px;
    height: 44px;
    border-radius: 10px;
    font-weight: 700;
}

@keyframes alertModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes alertModalPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   ASP.NET Core & HTML5 Validation Summary & Field Errors
   ========================================================================== */
.validation-summary-errors,
.validation-summary-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 5px solid #ef4444;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #991b1b;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08);
    display: block;
}

.validation-summary-valid {
    display: none !important;
}

.validation-summary-errors ul,
.validation-summary-error ul {
    margin: 0;
    padding-left: 1.25rem;
}

.validation-summary-errors li,
.validation-summary-error li {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.field-validation-error {
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.field-validation-error::before {
    content: "⚠";
    font-size: 0.85rem;
}

.field-validation-valid {
    display: none !important;
}

.input-validation-error {
    border-color: #ef4444 !important;
    background-color: #fffbfb !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* Field Shake on Invalid Submission */
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.field-shake {
    animation: fieldShake 0.4s ease-in-out;
}

/* ==========================================================================
   General Inline Alert Callout Banners
   ========================================================================== */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-left: 4px solid #6366f1;
    color: #3730a3;
}