/* ==========================================================================
   CaseHub.pk — Production Design System & Unified Stylesheet
   Architecture: Mobile-First, Vanilla CSS, Zero Framework Conflicts
   Target Viewports: 320px (iPhone SE) to 1440px+ Desktop
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* ======================================================================
       CaseHub.pk Brand Palette: Deep Plum + Tangerine Orange
       ====================================================================== */
    --brand-plum: #35134F;
    --brand-plum-hover: #260C39;
    --brand-orange: #FF7A00;
    --orange-hover: #D95F00;

    --text-dark: #17131A;
    --text-muted: #756B73;

    --bg-main: #FFFDF9;
    --bg-soft: #FFF4E8;
    --bg-card: #FFFFFF;

    --border-light: #EADFD5;

    --success: #2E9B62;
    --danger: #D94444;

    /* Semantic Mappings for Design System Tokens */
    --color-primary: #FF7A00;
    --color-primary-hover: #D95F00;
    --color-primary-light: #FFF4E8;
    --color-primary-dark: #35134F;

    --color-navy: #35134F;
    --color-navy-light: #4A1B6D;
    --color-navy-dark: #240C36;

    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #FFFDF9;
    --color-bg-tertiary: #FFF4E8;
    --color-bg-card: #FFFFFF;

    --color-text-primary: #17131A;
    --color-text-secondary: #756B73;
    --color-text-muted: #8E848C;
    --color-text-inverse: #FFFFFF;
    --color-text-link: #35134F;

    --color-success: #2E9B62;
    --color-success-light: #EAF7F0;
    --color-error: #D94444;
    --color-error-light: #FDE8E8;
    --color-warning: #FF7A00;
    --color-warning-light: #FFF4E8;
    --color-info: #35134F;
    --color-info-light: #F5EDFA;

    --color-discount: #D94444;
    --color-discount-bg: #FFF4E8;
    --color-discount-border: #FFD4AA;

    --color-border: #EADFD5;
    --color-border-light: #F5ECE3;
    --color-border-focus: #FF7A00;

    /* Restrained Shadows */
    --shadow-xs: 0 1px 2px rgba(17, 34, 61, 0.04);
    --shadow-sm: 0 1px 3px rgba(17, 34, 61, 0.06), 0 1px 2px rgba(17, 34, 61, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(17, 34, 61, 0.06), 0 2px 4px -1px rgba(17, 34, 61, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(17, 34, 61, 0.08), 0 4px 6px -2px rgba(17, 34, 61, 0.04);
    --shadow-card: 0 1px 3px rgba(17, 34, 61, 0.06), 0 0 0 1px rgba(17, 34, 61, 0.04);
    --shadow-card-hover: 0 8px 20px rgba(17, 34, 61, 0.1), 0 0 0 1px rgba(23, 101, 245, 0.15);

    /* Typography Scale */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.8125rem;
    /* 13px */
    --text-base: 0.875rem;
    /* 14px */
    --text-md: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */

    /* Radii */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* Layout Constraints */
    --container-max: 1240px;
    --header-height: 60px;
    --bottom-nav-height: 58px;
    --sidebar-width: 260px;
}

/* --------------------------------------------------------------------------
   2. Base Resets & Global Foundations
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-text-link);
    text-decoration: none;
    transition: color 150ms ease;
}

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

:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Accessibility Skip Links
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 1rem;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Layout Grid & Containers (Mobile-First)
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 24px;
    }
}

.section {
    padding-block: var(--space-6);
}

@media (min-width: 1024px) {
    .section {
        padding-block: var(--space-8);
    }
}

/* Spacing Utilities */
.py-1 { padding-block: var(--space-1); }
.py-2 { padding-block: var(--space-2); }
.py-3 { padding-block: var(--space-3); }
.py-4 { padding-block: var(--space-4); }
.py-5 { padding-block: var(--space-5); }
.py-6 { padding-block: var(--space-6); }
.py-8 { padding-block: var(--space-8); }

.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }

.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }


/* Responsive Product Grid: iPhone SE (320px) Safe */
.ch-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 339px) {
    .ch-product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 640px) {
    .ch-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .ch-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

/* --------------------------------------------------------------------------
   4. Top Trust Strip & Header Navigation
   -------------------------------------------------------------------------- */
.trust-strip {
    display: none;
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-xs);
    font-weight: 500;
    padding-block: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
    .trust-strip {
        display: block;
    }
}

.trust-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.trust-strip-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}



.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 12px;
}

.header-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(23, 101, 245, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(23, 101, 245, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-decoration: none;
    transition: all 150ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-phone-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.header-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-navy);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 150ms ease;
    white-space: nowrap;
}

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

/* Brand Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-navy);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span.logo-highlight {
    color: var(--color-primary);
}

.logo-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-navy));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Search Bar (Responsive) */
.search-bar {
    flex: 1;
    min-width: 0;
    max-width: 540px;
    position: relative;
}

.search-bar form {
    width: 100%;
}

.search-bar input {
    width: 100%;
    height: 40px;
    padding: 8px 16px 8px 38px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    transition: all 150ms ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(23, 101, 245, 0.12);
}

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

.search-bar-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 150ms ease;
}

.header-action-btn:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Category Strip */
.desktop-nav {
    display: none;
    background: var(--color-navy);
}

.desktop-nav-inner {
    display: flex;
    align-items: center;
    height: 42px;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav-inner::-webkit-scrollbar {
    display: none;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: all 150ms ease;
    height: 100%;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

/* Mobile Bottom Navigation (Persistent & Accessible) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    height: var(--bottom-nav-height);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.bottom-nav a {
    flex: 1 1 0;
    width: 20%;
    max-width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748B;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease;
    min-width: 0;
    min-height: 44px;
    text-align: center;
}

.bottom-nav a.active {
    color: #1877F2;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }
}

.storefront-body {
    padding-bottom: calc(var(--bottom-nav-height) + 28px);
}

@media (min-width: 1024px) {
    .storefront-body {
        padding-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   5. Reusable Product Cards (.ch-product-card)
   -------------------------------------------------------------------------- */
.ch-product-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
    position: relative;
    padding: 6px;
}

.ch-product-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-color: #CBD5E1;
    transform: translateY(-2px);
}

.ch-product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #F3F4F6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.ch-product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ch-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 250ms ease;
}

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

.ch-badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: #FF3B30;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.ch-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    transition: all 150ms ease;
    padding: 0;
}

.ch-wishlist-btn:hover,
.ch-wishlist-btn.active {
    color: #FF3B30;
    border-color: #FF3B30;
}

.ch-product-body {
    padding: 8px 4px 4px 4px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ch-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.ch-product-title a {
    color: inherit;
    text-decoration: none;
}

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

.ch-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.ch-price-current {
    font-size: 15px;
    font-weight: 800;
    color: #FF3B30;
    font-variant-numeric: tabular-nums;
}

.ch-price-original {
    font-size: 12px;
    color: #9CA3AF;
    text-decoration: line-through;
}

.ch-product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    margin-bottom: 8px;
}

.ch-star-icon {
    color: #F59E0B;
    font-size: 12px;
    line-height: 1;
}

.ch-rating-score {
    font-weight: 700;
    color: #111827;
}

.ch-rating-count {
    color: #6B7280;
}

.ch-product-actions {
    display: none;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}

@media (min-width: 768px) {
    .ch-product-actions {
        display: flex;
    }
}

.ch-btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 32px;
    padding: 4px 8px;
    background: #F3F4F6;
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    transition: all 150ms ease;
}

.ch-btn-view:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.ch-btn-quickadd {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--color-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 150ms ease;
    padding: 0;
    flex-shrink: 0;
}

.ch-btn-quickadd:hover {
    background: var(--color-primary-hover);
}

.ch-product-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-price-savings {
    font-size: 10.5px;
    font-weight: 700;
    color: #16A34A;
    background: #DCFCE7;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.2;
    display: inline-block;
}

.ch-quickadd-text {
    font-size: 12px;
    font-weight: 700;
    margin-left: 2px;
}

@media (min-width: 1024px) {
    .ch-product-card {
        padding: 10px;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        border: 1px solid #E5E7EB;
    }

    .ch-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px -4px rgba(24, 119, 242, 0.14), 0 0 0 1px rgba(24, 119, 242, 0.15);
        border-color: #1877F2;
    }

    .ch-product-body {
        padding: 10px 4px 4px 4px;
    }

    .ch-product-title {
        font-size: 14px;
        font-weight: 700;
        min-height: 2.8em;
    }

    .ch-price-current {
        font-size: 16px;
    }

    .ch-btn-view {
        min-height: 36px;
        font-size: 12px;
        border-radius: 8px;
    }

    .ch-btn-quickadd {
        width: auto;
        min-width: 68px;
        height: 36px;
        padding: 0 12px;
        gap: 5px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
    }
}

@media (max-width: 767px) {
    .trust-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

/* --------------------------------------------------------------------------
   6. Hero Banner & Interactive Phone Quick Finder
   -------------------------------------------------------------------------- */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy) 0%, #152A4A 60%, var(--color-navy-light) 100%);
    border-radius: var(--radius-xl);
    padding: 24px 18px;
    color: white;
}

@media (min-width: 768px) {
    .hero-banner {
        padding: 40px 32px;
    }
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 580px;
}

/* Phone Finder Form Wrapper */
.phone-finder-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 640px) {
    .phone-finder-box {
        flex-direction: row;
        align-items: flex-end;
        gap: 12px;
        padding: 16px;
    }
}

.finder-field {
    flex: 1;
    min-width: 0;
}

.finder-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.finder-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-navy);
    background: var(--color-bg-secondary);
}

.finder-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #FFFFFF;
}

.finder-btn {
    width: 100%;
    min-height: 42px;
    padding: 8px 18px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 150ms ease;
    white-space: nowrap;
}

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

@media (min-width: 640px) {
    .finder-btn {
        width: auto;
    }
}

/* --------------------------------------------------------------------------
   7. Category Tiles & Brand Grids
   -------------------------------------------------------------------------- */
.category-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 480px) {
    .category-section-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 768px) {
    .category-section-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .category-section-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 14px;
    }
}

.ch-cat-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 12px 10px 14px;
    transition: all 200ms ease;
}

.ch-cat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(23, 101, 245, 0.08);
    transform: translateY(-3px);
}

.ch-cat-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 8px;
}

.ch-cat-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 250ms ease;
}

.ch-cat-card:hover .ch-cat-img {
    transform: scale(1.08);
}

.ch-cat-icon-fallback {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
    margin-bottom: 2px;
}

.ch-cat-count {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Brand Grid */
.ch-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 480px) {
    .ch-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .ch-brand-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }
}

.ch-brand-tile {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    transition: all 150ms ease;
}

.ch-brand-tile:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(23, 101, 245, 0.08);
    transform: translateY(-2px);
}

.ch-brand-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    overflow: hidden;
    padding: 3px;
}

.ch-brand-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--color-navy);
    line-height: 1.2;
}

.ch-brand-count {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* Dual Mid-Page Promotional Banners */
.promo-banner-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .promo-banner-split {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.promo-card {
    min-height: 230px;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.promo-card-content {
    max-width: 400px;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.promo-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93C5FD;
    display: inline-block;
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.4);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.promo-title {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.promo-text {
    font-size: 0.85rem;
    color: #E2E8F0;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   PhoneKart Mobile Blueprint Components
   -------------------------------------------------------------------------- */

/* Screen 01: 8-Circle Category Shortcuts (Enlarged & Transparent) */
.ch-cat-circle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 10px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .ch-cat-circle-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 18px 14px;
    }
}

.ch-cat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    gap: 6px;
    transition: transform 180ms ease;
}

.ch-cat-circle-item:hover {
    transform: translateY(-2px);
}

.ch-cat-circle-thumb {
    width: clamp(68px, 19vw, 84px);
    height: clamp(68px, 19vw, 84px);
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), filter 200ms ease;
}

.ch-cat-circle-item:hover .ch-cat-circle-thumb {
    transform: scale(1.1);
}

.ch-cat-circle-thumb img {
    height: 100%;
    width: auto;
    max-width: 122%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(53, 19, 79, 0.1));
}

@media (min-width: 1024px) {
    .ch-cat-circle-thumb {
        width: 88px;
        height: 88px;
        padding: 0;
    }
}

.ch-cat-circle-label {
    font-size: 12px;
    font-weight: 700;
    color: #35134F;
    line-height: 1.25;
    transition: color 150ms ease;
}

.ch-cat-circle-item:hover .ch-cat-circle-label {
    color: #FF7A00;
}

.ch-cat-circle-label {
    font-size: 11px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    text-align: center;
}

@media (min-width: 1024px) {
    .ch-cat-circle-label {
        font-size: 13px;
        font-weight: 700;
    }
}

/* Screen 01: Flash Deals Header with Timer */
.flash-deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.flash-deals-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.flash-deals-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timer-box {
    background: #FF3B30;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
    line-height: 1.4;
    font-family: var(--font-mono);
}

.timer-colon {
    font-weight: 800;
    color: #FF3B30;
}

/* Screen 01 & 07: Horizontal Brand Strip & Brand Tiles */
.phonekart-brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: start;
}

@media (max-width: 375px) {
    .phonekart-brand-grid {
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .phonekart-brand-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .phonekart-brand-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 18px;
    }
}

.phonekart-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 6px;
    min-width: 0;
}

.phonekart-brand-box {
    width: 56px;
    height: 56px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin: 0 auto;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

@media (max-width: 375px) {
    .phonekart-brand-box {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        padding: 5px;
    }
}

@media (min-width: 768px) {
    .phonekart-brand-box {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 1024px) {
    .phonekart-brand-box {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        padding: 8px;
    }
}

.phonekart-brand-item:hover .phonekart-brand-box {
    background: #FFFFFF;
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.12);
}

.phonekart-brand-label {
    font-size: 11px;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .phonekart-brand-label {
        font-size: 12px;
        font-weight: 700;
    }
}

/* ==========================================================================
   Flash Deals Component (Responsive Mobile & Desktop)
   ========================================================================== */
.flash-deals-section {
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .flash-deals-section {
        margin-bottom: 32px;
    }
}

.flash-deals-card {
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 100%);
    border: 1.5px solid #FEE2E2;
    border-radius: 16px;
    padding: 14px 12px;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.05);
}

@media (min-width: 768px) {
    .flash-deals-card {
        border-radius: 20px;
        padding: 22px 20px;
    }
}

.fd-header {
    margin-bottom: 12px;
}

.fd-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fd-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fd-fire {
    font-size: 1.25rem;
    line-height: 1;
}

.fd-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.fd-badge {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fd-view-all {
    color: #DC2626;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 4px 10px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 20px;
    transition: background 150ms ease;
    flex-shrink: 0;
}

.fd-view-all:hover {
    background: rgba(220, 38, 38, 0.15);
}

.fd-arrow {
    font-weight: 800;
    transition: transform 150ms ease;
}

.fd-view-all:hover .fd-arrow {
    transform: translateX(2px);
}

.fd-timer-row {
    display: flex;
    align-items: center;
}

.fd-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    border: 1px solid #FECACA;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.06);
}

.fd-timer-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin-right: 2px;
}

.timer-box {
    background: #111827;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.timer-seconds {
    background: #DC2626;
}

.timer-colon {
    font-weight: 900;
    color: #111827;
    font-size: 12px;
}

@media (min-width: 768px) {
    .fd-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
    }

    .fd-top-row {
        margin-bottom: 0;
        gap: 14px;
    }

    .fd-title {
        font-size: 1.35rem;
    }

    .fd-timer-row {
        margin-left: 14px;
    }

    .fd-view-all {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* Screen 02: Modern Circular Transparent Categories Grid (Matching Screenshot) */
.phonekart-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
}

@media (min-width: 480px) {
    .phonekart-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 16px;
    }
}

@media (min-width: 768px) {
    .phonekart-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px 20px;
    }
}

@media (min-width: 1024px) {
    .phonekart-cat-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 32px 24px;
    }
}

.phonekart-cat-card {
    background: transparent;
    border: none;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.phonekart-cat-card:hover {
    transform: translateY(-4px);
}

.phonekart-cat-media {
    background: transparent;
    width: 100%;
    max-width: 170px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: visible;
    margin-bottom: 10px;
    position: relative;
}

.phonekart-cat-media img {
    height: 100%;
    width: auto;
    max-width: 122%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(53, 19, 79, 0.08));
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), filter 250ms ease;
}

.phonekart-cat-card:hover .phonekart-cat-media img {
    transform: scale(1.08);
    filter: drop-shadow(0 10px 22px rgba(255, 122, 0, 0.22));
}

.phonekart-cat-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #35134F;
    text-align: center;
    line-height: 1.3;
    transition: color 150ms ease;
    margin-top: 2px;
}

.phonekart-cat-card:hover .phonekart-cat-title {
    color: #FF7A00;
}

/* Screen 03: Toolbar (Sort & Filter) */
.phonekart-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.phonekart-tool-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
    transition: all 150ms ease;
}

.phonekart-tool-btn:hover {
    border-color: #1877F2;
    color: #1877F2;
}

/* Screen 07 & 08: Clean List Rows */
.phonekart-list {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.phonekart-list-row {
    background: #FFFFFF;
    border-bottom: 1px solid #F3F4F6;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    transition: background 150ms ease, color 150ms ease;
}

.phonekart-list-row:last-child {
    border-bottom: none;
}

.phonekart-list-row:hover {
    background: #F9FAFB;
    color: #1877F2;
}

/* Screen 10: Stepper Progress */
.phonekart-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
}

.stepper-step.active {
    color: #1877F2;
}

.stepper-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.stepper-step.active .stepper-num {
    background: #1877F2;
    color: #FFFFFF;
}

.stepper-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: #E5E7EB;
}

/* Screen 14: Customer Support Card */
.support-wa-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.support-contact-list {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.support-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #F3F4F6;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.support-contact-row:last-child {
    border-bottom: none;
}

/* Sticky Mobile Purchase Bar */
.mobile-sticky-buy-bar {
    position: fixed;
    bottom: var(--bottom-nav-height, 58px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 250;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.sticky-buy-info {
    display: flex;
    flex-direction: column;
}

.sticky-buy-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
}

.sticky-buy-stock {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-success);
}

/* --------------------------------------------------------------------------
   8. Assurance / Trust Features
   -------------------------------------------------------------------------- */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px 16px;
}

@media (min-width: 640px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 24px 20px;
    }
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.trust-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. Buttons, Forms & Core Utilities
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 150ms ease;
    min-height: 42px;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: white;
}

.btn-navy {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}

.btn-navy:hover {
    background: var(--color-navy-light);
    color: white;
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary-light);
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-sm {
    min-height: 34px;
    padding: 4px 10px;
    font-size: var(--text-sm);
}

.btn-lg {
    min-height: 48px;
    padding: 12px 24px;
    font-size: var(--text-md);
}

.btn-block {
    width: 100%;
}

.form-control,
.form-input,
.form-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--color-text-primary);
    font-size: var(--text-base);
}

.form-control:focus,
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 101, 245, 0.12);
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: 16px;
}

.alert-success {
    background: var(--color-success-light);
    color: #0E5630;
    border: 1px solid #C4E7D4;
}

.alert-error {
    background: var(--color-error-light);
    color: #8C1D18;
    border: 1px solid #F9CBC6;
}

/* --------------------------------------------------------------------------
   10. Catalog Layout & Sidebar
   -------------------------------------------------------------------------- */
.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .catalog-layout {
        grid-template-columns: 240px 1fr;
        gap: 28px;
    }
}

.catalog-sidebar {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    height: fit-content;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.85);
    padding-top: var(--space-8);
    padding-bottom: var(--space-6);
    margin-top: var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: color 150ms ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   CASEHUB ADMIN PANEL SYSTEM — Enterprise-Grade Responsive Control Center
   ========================================================================== */

/* Body Override for Admin */
.admin-body {
    background-color: #F8FAFC;
    color: #0F172A;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Master Layout Grid */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #F8FAFC;
    position: relative;
}

/* --------------------------------------------------------------------------
   Admin Sidebar Navigation
   -------------------------------------------------------------------------- */
.admin-sidebar {
    width: 260px;
    background-color: #0B1727;
    color: #F8FAFC;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 50;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar-header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    text-decoration: none;
}

.admin-sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1765F5 0%, #0E50CA 100%);
    color: #FFFFFF;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 10px rgba(23, 101, 245, 0.4);
    flex-shrink: 0;
}

.admin-sidebar-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-sidebar-logo .logo-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.admin-sidebar-logo .logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.admin-nav-section-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
    padding: 0 12px;
    margin-bottom: 6px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 150ms ease;
}

.admin-nav-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.06);
}

.admin-nav-link.active {
    color: #FFFFFF;
    background-color: #1765F5;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(23, 101, 245, 0.35);
}

.admin-nav-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.admin-nav-link.active .admin-nav-icon,
.admin-nav-link:hover .admin-nav-icon {
    opacity: 1;
}

.admin-sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.admin-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 150ms ease;
}

.admin-footer-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.06);
}

.admin-logout-form {
    margin: 0;
}

.admin-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: #EF4444;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 150ms ease;
    text-align: left;
}

.admin-logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Mobile Backdrop */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 45;
}

/* --------------------------------------------------------------------------
   Admin Main & Topbar
   -------------------------------------------------------------------------- */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    height: 64px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-sidebar-toggle-btn {
    display: none;
    /* hidden on desktop >= 1024px */
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    cursor: pointer;
    transition: all 150ms ease;
}

.admin-sidebar-toggle-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.admin-page-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.01em;
    margin: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-topbar-store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    background-color: #F1F5F9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 150ms ease;
}

.admin-topbar-store-link:hover {
    background-color: #E2E8F0;
    color: #0F172A;
}

.admin-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
}

.admin-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1765F5, #0E50CA);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.admin-user-name {
    font-size: 0.825rem;
    font-weight: 700;
    color: #0F172A;
}

.admin-user-role {
    font-size: 0.675rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-alerts-container {
    padding: 16px 28px 0 28px;
}

.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.admin-alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.admin-alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.admin-content {
    flex: 1;
    padding: 24px 28px 48px 28px;
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Admin Dashboard Specific Elements
   -------------------------------------------------------------------------- */
.admin-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.admin-welcome-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px 0;
}

.admin-welcome-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
}

.admin-welcome-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 150ms ease, box-shadow 150ms ease;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border-color: #CBD5E1;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
}

.stat-card-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-revenue {
    background: #EFF6FF;
    color: #1765F5;
}

.icon-orders {
    background: #F0FDF4;
    color: #16A34A;
}

.icon-products {
    background: #FAF5FF;
    color: #9333EA;
}

.icon-alert-safe {
    background: #F0FDF4;
    color: #16A34A;
}

.icon-alert-danger {
    background: #FEF2F2;
    color: #DC2626;
}

.stat-card-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-card-change {
    font-size: 0.8rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-success {
    background-color: #16A34A;
}

.dot-warning {
    background-color: #D97706;
}

.dot-danger {
    background-color: #DC2626;
}

.dot-info {
    background-color: #1765F5;
}

/* Quick Action Pills */
.admin-quick-links-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}

.quick-links-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.quick-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 150ms ease;
    border: 1px solid transparent;
}

.quick-link-pill:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #CBD5E1;
}

/* Cards & Tables */
.card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-action {
    font-size: 0.825rem;
    font-weight: 700;
    color: #1765F5;
    text-decoration: none;
    transition: color 150ms ease;
}

.card-header-action:hover {
    color: #0E50CA;
    text-decoration: underline;
}

.card-body {
    padding: 24px;
}

.card-body>.admin-table-wrapper {
    margin-top: 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.admin-table th {
    background-color: #F8FAFC;
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    vertical-align: middle;
}

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

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

/* Order Table Styles */
.order-ref-link {
    font-weight: 800;
    color: #1765F5;
    font-family: var(--font-mono, monospace);
    text-decoration: none;
    font-size: 0.875rem;
}

.order-ref-link:hover {
    text-decoration: underline;
}

.customer-cell-primary {
    font-weight: 700;
    color: #0F172A;
}

.customer-cell-secondary {
    font-size: 0.775rem;
    color: #64748B;
    font-family: var(--font-mono, monospace);
}

.price-strong {
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.price-strikethrough {
    font-size: 0.75rem;
    color: #94A3B8;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.date-text {
    font-size: 0.8rem;
    color: #64748B;
    white-space: nowrap;
}

/* Product Table Styles */
.product-thumb-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.product-thumb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name-link a {
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
}

.product-name-link a:hover {
    color: #1765F5;
}

.sku-code {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    padding: 2px 6px;
    background: #F1F5F9;
    border-radius: 4px;
    color: #475569;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 700;
    line-height: 1.2;
}

.stock-pill-ok {
    background: #ECFDF5;
    color: #065F46;
}

.stock-pill-low {
    background: #FEF2F2;
    color: #991B1B;
}

/* Badges */
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.badge-confirmed {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.badge-dispatched {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.badge-delivered {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.badge-cancelled {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Empty state cells */
.empty-table-cell {
    text-align: center;
    padding: 48px 24px !important;
    color: #64748B;
}

.empty-state-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #94A3B8;
}

/* Button variants for admin */
.btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
}

.btn-outline {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    text-decoration: none;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-outline:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
}

/* --------------------------------------------------------------------------
   Admin Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    .admin-sidebar.mobile-open~.admin-sidebar-backdrop,
    .admin-sidebar-backdrop.active {
        display: block;
    }

    .admin-sidebar-toggle-btn {
        display: inline-flex;
    }

    .admin-topbar {
        padding: 0 16px;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-alerts-container {
        padding: 12px 16px 0 16px;
    }
}

@media (max-width: 640px) {
    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 14px 16px;
    }

    .card-footer {
        padding: 12px 16px;
    }

    .admin-topbar-store-link span,
    .admin-user-info {
        display: none;
    }

    .admin-user-badge {
        padding: 2px;
        background: transparent;
        border: none;
    }

    .admin-welcome-actions {
        width: 100%;
    }

    .admin-welcome-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   SnapBuy Structure Admin UI Design System (CaseHub Blue Theme #1877F2)
   ========================================================================== */
:root {
    --casehub-primary: #1877F2;
    --casehub-primary-hover: #0E65D9;
    --casehub-primary-soft: rgba(24, 119, 242, 0.08);
    --snapbuy-bg: #F4F6FB;
    --snapbuy-sidebar-bg: #FFFFFF;
    --snapbuy-card-bg: #FFFFFF;
    --snapbuy-border: #E5E7EB;
    --snapbuy-border-light: #F1F5F9;
}

body.snapbuy-structure {
    background-color: var(--snapbuy-bg);
    color: #1F2937;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

.snapbuy-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Clean White Sidebar (Matching Screenshot) --- */
.snapbuy-sidebar {
    width: 260px;
    background-color: var(--snapbuy-sidebar-bg) !important;
    color: #4B5563;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--snapbuy-border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.snapbuy-sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--snapbuy-border-light);
}

.snapbuy-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
}

.snapbuy-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1877F2 0%, #3B82F6 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.snapbuy-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.snapbuy-logo-text .logo-dot {
    color: #1877F2;
}

.snapbuy-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.snapbuy-badge-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 9999px;
    background: #EBF3FF;
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.snapbuy-toggle-icon-btn {
    background: transparent;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Search Box with Ctrl+K */
.snapbuy-search-wrap {
    padding: 14px 18px 8px 18px;
}

.snapbuy-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 12px;
    color: #94A3B8;
    transition: all 0.2s ease;
}

.snapbuy-search-box:focus-within {
    border-color: #1877F2;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.snapbuy-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8rem;
    color: #1E293B;
    width: 100%;
}

.snapbuy-search-box kbd {
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94A3B8;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 1px 5px;
    white-space: nowrap;
}

/* Sidebar Nav Links */
.snapbuy-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    scrollbar-width: thin;
}

.snapbuy-nav-section-title {
    font-size: 0.675rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    padding: 14px 10px 6px 10px;
}

.snapbuy-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.snapbuy-menu-item {
    margin-bottom: 2px;
}

.snapbuy-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #4B5563;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.snapbuy-nav-link:hover {
    background-color: #F3F4F6;
    color: #111827;
}

/* Active Menu Item (Filled with CaseHub Primary Blue #1877F2) */
.snapbuy-nav-link.active {
    background: #1877F2 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.snapbuy-nav-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.snapbuy-nav-link.active .snapbuy-nav-icon {
    opacity: 1;
}

.snapbuy-badge {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.snapbuy-badge.badge-warning {
    background-color: #F59E0B;
    color: #FFFFFF;
}

/* Sidebar Footer */
.snapbuy-sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--snapbuy-border-light);
    background: #FAFAFA;
}

.snapbuy-footer-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--snapbuy-border);
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.snapbuy-footer-btn:hover {
    background: #EBF3FF;
    border-color: #1877F2;
    color: #1877F2;
}

.snapbuy-storefront-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4B5563;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.snapbuy-storefront-link:hover {
    color: #1877F2;
    background: #F3F4F6;
}

.snapbuy-logout-btn {
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.snapbuy-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* --- Clean Topbar (Matching Screenshot) --- */
.snapbuy-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.snapbuy-topbar {
    height: 72px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--snapbuy-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.snapbuy-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.snapbuy-welcome-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.snapbuy-welcome-subtitle {
    font-size: 0.8rem;
    color: #10B981;
    font-weight: 600;
    display: block;
}

.snapbuy-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.snapbuy-pill-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #374151;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.snapbuy-pill-select:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.snapbuy-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.15s ease;
}

.snapbuy-icon-btn:hover {
    background: #F1F5F9;
    color: #111827;
}

.snapbuy-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid #EADFD5;
    background: #FFFFFF;
    color: #35134F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(53, 19, 79, 0.05);
    flex-shrink: 0;
}

.snapbuy-toggle-btn:hover {
    background: #FFF4E8;
    border-color: #FF7A00;
    color: #FF7A00;
}

.snapbuy-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.snapbuy-icon-btn-wrap {
    position: relative;
}

.snapbuy-notif-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

.snapbuy-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
}

.snapbuy-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877F2 0%, #3B82F6 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
}

.snapbuy-user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.snapbuy-user-details .user-name {
    font-size: 0.825rem;
    font-weight: 700;
    color: #111827;
}

.snapbuy-user-details .user-role {
    font-size: 0.65rem;
    font-weight: 700;
    color: #1877F2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Alerts & Content --- */
.snapbuy-alerts-container {
    padding: 16px 28px 0 28px;
}

.snapbuy-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.snapbuy-alert.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.snapbuy-alert.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.snapbuy-content {
    flex: 1;
    padding: 24px 28px;
    box-sizing: border-box;
}

.snapbuy-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--snapbuy-border);
    background: #FFFFFF;
    text-align: right;
    font-size: 0.8rem;
    color: #94A3B8;
}

/* ==========================================================================
   SNAPBUY EXACT MULTI-COLUMN GRID ARCHITECTURE
   ========================================================================== */

/* Row 1: 4 Quick Cards in 1 Row (4 columns) */
.snapbuy-grid-4col {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 24px !important;
}

/* Row 2: Trend Chart (68%) + Order Status (32%) in 1 Row */
.snapbuy-grid-2col-trend {
    display: grid !important;
    grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
    align-items: stretch !important;
}

/* Row 3: 8 Metric Cards (4 columns x 2 rows) */
.snapbuy-grid-4col {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.snapbuy-grid-5col {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

/* Row 4, 5, 6: 3 Cards in 1 Row (33.3% each) */
.snapbuy-grid-3col {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
    align-items: stretch !important;
}

/* Row 7: Full width recent orders table */
.snapbuy-grid-1col {
    width: 100% !important;
    margin-bottom: 24px !important;
}

/* Fallback flex grid support */
.snapbuy-dashboard .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 24px;
}
.snapbuy-dashboard .col-lg-8 {
    flex: 0 0 68%;
    max-width: 68%;
    padding: 0 10px;
    box-sizing: border-box;
}
.snapbuy-dashboard .col-lg-4 {
    flex: 0 0 32%;
    max-width: 32%;
    padding: 0 10px;
    box-sizing: border-box;
}
.snapbuy-dashboard .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
    .snapbuy-grid-5col {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .snapbuy-grid-2col-trend {
        grid-template-columns: 1fr !important;
    }
    .snapbuy-grid-3col {
        grid-template-columns: 1fr !important;
    }
    .snapbuy-grid-4col {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .snapbuy-dashboard .col-lg-8,
    .snapbuy-dashboard .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .snapbuy-grid-4col,
    .snapbuy-grid-5col {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   SNAPBUY CARDS & COMPONENT STYLING
   ========================================================================== */

/* --- Top 4 Quick KPI Cards --- */
.quick-stat-card {
    background: #FFFFFF;
    border: 1px solid #EAEFF4;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quick-stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-title {
    font-size: 0.775rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 2px;
}

.quick-stat-number {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
}

/* Soft Color Utilities */
.bg-blue-soft { background: rgba(24, 119, 242, 0.1) !important; }
.text-blue { color: #1877F2 !important; }
.bg-casehub-blue { background: #1877F2 !important; }
.text-casehub-blue { color: #1877F2 !important; }
.bg-green-soft { background: rgba(16, 185, 129, 0.1) !important; }
.text-green { color: #10B981 !important; }
.bg-green { background: #10B981 !important; }
.bg-amber-soft { background: rgba(245, 158, 11, 0.1) !important; }
.text-amber { color: #F59E0B !important; }
.bg-amber { background: #F59E0B !important; }
.bg-red-soft { background: rgba(239, 68, 68, 0.1) !important; }
.text-red { color: #EF4444 !important; }
.bg-red { background: #EF4444 !important; }
.bg-purple-soft { background: rgba(139, 92, 246, 0.1) !important; }
.text-purple { color: #8B5CF6 !important; }
.bg-purple { background: #8B5CF6 !important; }
.bg-cyan-soft { background: rgba(6, 182, 212, 0.1) !important; }
.text-cyan { color: #0891B2 !important; }
.bg-casehub-cyan { background: #0891B2 !important; }
.bg-pink-soft { background: rgba(236, 72, 153, 0.1) !important; }
.text-pink { color: #EC4899 !important; }

/* --- Base Card Structure --- */
.snapbuy-card {
    background: #FFFFFF;
    border: 1px solid #EAEFF4;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.snapbuy-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.snapbuy-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snapbuy-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

.snapbuy-card-subtitle {
    font-size: 0.725rem;
    color: #94A3B8;
    display: block;
    margin-top: 2px;
}

.snapbuy-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.snapbuy-chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 600;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* --- ApexCharts Containers --- */
.apex-chart-container {
    width: 100%;
    min-height: 250px;
}

/* --- Order Status List --- */
.snapbuy-status-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-around;
}

.status-list-item {
    display: flex;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px solid #F8FAFC;
    font-size: 0.825rem;
}

.status-list-item:last-child {
    border-bottom: none;
}

.status-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.status-name {
    font-weight: 600;
    color: #334155;
    flex: 1;
}

.status-count {
    font-weight: 700;
    color: #0F172A;
    font-size: 0.85rem;
}

/* --- Row 3: 10 Metric Cards Grid --- */
.metric-card {
    background: #FFFFFF;
    border: 1px solid #EAEFF4;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-trend-pill {
    font-size: 0.65rem;
    font-weight: 800;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 7px;
    border-radius: 9999px;
}

.metric-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.metric-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.01em;
}

/* --- Row 4: Analytics Cards --- */
.brand-bars-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.brand-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.775rem;
}

.brand-bar-label {
    width: 75px;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
    text-align: right;
}

.brand-bar-track {
    flex: 1;
    height: 8px;
    background: #F1F5F9;
    border-radius: 9999px;
    overflow: hidden;
}

.brand-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.brand-bar-count {
    width: 28px;
    font-weight: 700;
    color: #0F172A;
    text-align: right;
    font-size: 0.75rem;
}

.card-tab-pills {
    display: flex;
    gap: 6px;
}

.tab-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    background: #F1F5F9;
    color: #64748B;
    text-decoration: none;
}

.tab-pill.active {
    background: #1877F2;
    color: #FFFFFF;
}

.ranked-product-list {
    display: flex;
    flex-direction: column;
}

.ranked-product-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #F8FAFC;
    gap: 10px;
}

.ranked-product-item:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #F1F5F9;
    color: #64748B;
    font-size: 0.725rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-badge.rank-1 {
    background: #EBF3FF;
    color: #1877F2;
}

.product-thumb-sm {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.ranked-product-info {
    flex: 1;
    min-width: 0;
}

.ranked-product-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.ranked-product-meta {
    font-size: 0.7rem;
    color: #94A3B8;
}

.ranked-product-sales {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0F172A;
    text-align: right;
    white-space: nowrap;
}

/* --- Row 5: Operational Cards --- */
.commerce-mode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F8FAFC;
}

.commerce-mode-item:last-child {
    border-bottom: none;
}

.commerce-mode-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.commerce-mode-details {
    flex: 1;
}

.commerce-mode-name {
    font-size: 0.825rem;
    font-weight: 700;
    color: #1E293B;
    display: block;
}

.commerce-mode-sub {
    font-size: 0.725rem;
    color: #64748B;
}

.commerce-mode-percent {
    font-size: 0.775rem;
    font-weight: 800;
    color: #0F172A;
}

.inventory-meter-track {
    height: 8px;
    background: #F1F5F9;
    border-radius: 9999px;
    display: flex;
    overflow: hidden;
    margin: 16px 0;
}

.inventory-meter-seg {
    height: 100%;
}

.inventory-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 6px 0;
}

.inventory-footer-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Platform Usage */
.platform-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 600;
    margin: 8px 0 14px;
}

.platform-pills-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto;
}

.platform-pill-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
}

/* --- Row 6: Performance Cards --- */
.top-customer-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F8FAFC;
    gap: 12px;
}

.top-customer-item:last-child {
    border-bottom: none;
}

.customer-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EBF3FF;
    color: #1877F2;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-meta-info {
    flex: 1;
    min-width: 0;
}

.customer-name-bold {
    font-size: 0.825rem;
    font-weight: 700;
    color: #111827;
    display: block;
}

.customer-phone-muted {
    font-size: 0.725rem;
    color: #94A3B8;
}

.heart-badge-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #EC4899;
    background: rgba(236, 72, 153, 0.1);
    padding: 2px 8px;
    border-radius: 9999px;
}

.store-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Row 7: Recent Orders Table --- */
.snapbuy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.snapbuy-table th {
    background: #F8FAFC;
    color: #64748B;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    border-bottom: 1px solid #E5E7EB;
    border-top: none;
}

.snapbuy-table td {
    padding: 12px 18px;
    font-size: 0.85rem;
    color: #374151;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.snapbuy-table tbody tr:hover td {
    background: #F8FAFC;
}

.order-id-link {
    font-weight: 700;
    color: #1877F2;
    text-decoration: none;
    font-family: var(--font-mono, monospace);
}

.order-id-link:hover {
    text-decoration: underline;
}

.customer-cell {
    display: flex;
    flex-direction: column;
}

.customer-name-text {
    font-weight: 700;
    color: #111827;
}

.customer-phone-sub {
    font-size: 0.725rem;
    color: #94A3B8;
}

.mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #F1F5F9;
    color: #475569;
}

.mode-pill.pill-ecommerce {
    background: #EBF3FF;
    color: #1877F2;
}

.payment-method-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 700;
    text-align: center;
}

.status-pill.pill-delivered {
    background: #DCFCE7;
    color: #15803D;
}

.status-pill.pill-cancelled {
    background: #FEE2E2;
    color: #B91C1C;
}

.status-pill.pill-confirmed,
.status-pill.pill-dispatched {
    background: #EBF3FF;
    color: #1877F2;
}

.status-pill.pill-pending {
    background: #FEF3C7;
    color: #B45309;
}

.view-all-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1877F2;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .snapbuy-ten-metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .snapbuy-quick-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    .snapbuy-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .snapbuy-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    .snapbuy-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 90;
    }

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

    .snapbuy-topbar {
        padding: 0 16px;
    }

    .snapbuy-content {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .snapbuy-ten-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .snapbuy-quick-stats-row {
        grid-template-columns: 1fr;
    }
}

/* --- Shared Admin Views & Modals (CaseHub Theme) --- */
.mazer-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.mazer-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.mazer-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
}

.mazer-card {
    background: #FFFFFF;
    border: 1px solid var(--snapbuy-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.mazer-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--snapbuy-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mazer-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.mazer-card-body {
    padding: 20px;
}

.mazer-btn-primary,
.snapbuy-btn-primary {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
}

.mazer-btn-primary:hover,
.snapbuy-btn-primary:hover {
    background: #0E65D9 !important;
    border-color: #0E65D9 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.mazer-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mazer-filter-pill .badge {
    background: #E2E8F0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mazer-filter-pill:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

.mazer-filter-pill.active {
    background: #35134F;
    border-color: #35134F;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(53, 19, 79, 0.22);
}

.mazer-filter-pill.active .badge {
    background: #FF7A00;
    color: #FFFFFF;
    font-weight: 800;
}

.mazer-search-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    color: #64748B;
    transition: all 0.2s ease;
}

.mazer-search-box:focus-within {
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.mazer-search-input {
    border: none;
    outline: none;
    font-size: 0.85rem;
    background: transparent;
    color: #0F172A;
    width: 200px;
    font-weight: 500;
}

.mazer-clear-search {
    text-decoration: none;
    color: #94A3B8;
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.mazer-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.mazer-modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.mazer-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    transition: color 0.15s ease;
}

.mazer-modal-close:hover {
    color: #D94444;
}


.mazer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mazer-table th {
    background: #F8FAFC;
    color: #64748B;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    border-bottom: 1px solid #E5E7EB;
}

.mazer-table td {
    padding: 12px 18px;
    font-size: 0.85rem;
    color: #374151;
    border-bottom: 1px solid var(--snapbuy-border-light);
    vertical-align: middle;
}

.mazer-table tbody tr:hover td {
    background: #F8FAFC;
}

/* Media Library */
.media-dropzone-box {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    background: #F8FAFC;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-dropzone-box:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.03);
}

.dropzone-icon {
    color: #1877F2;
    margin-bottom: 10px;
}

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.media-card {
    background: #FFFFFF;
    border: 1px solid var(--snapbuy-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.media-card-thumb {
    height: 140px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.media-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card-thumb:hover img {
    transform: scale(1.05);
}

.media-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(17, 24, 39, 0.7);
    color: #FFFFFF;
    backdrop-filter: blur(4px);
}

.media-card-meta {
    padding: 10px 12px;
    flex: 1;
}

.media-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card-info {
    font-size: 0.7rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.media-card-actions {
    padding: 8px 12px;
    background: #F8FAFC;
    border-top: 1px solid var(--snapbuy-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-copy-url {
    background: transparent;
    border: none;
    color: #1877F2;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-copy-url:hover {
    background: #EBF3FF;
}

.btn-copy-url.copied {
    color: #15803D;
    background: #DCFCE7;
}

.btn-delete-media {
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Modals */
.mazer-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mazer-modal-content {
    background: #FFFFFF;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.mazer-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
}

.mazer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.mazer-avatar.avatar-admin {
    background: #EBF3FF;
    color: #1877F2;
}

.mazer-avatar.avatar-user {
    background: #F1F5F9;
    color: #475569;
}

.badge-emerald {
    background: #EBF3FF;
    color: #1877F2;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-status-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    transition: all 0.15s ease;
}

.badge-status-btn.active {
    background: #DCFCE7;
    color: #15803D;
}

.badge-status-btn.active .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
}

.badge-status-btn.inactive {
    background: #FEE2E2;
    color: #B91C1C;
}

.badge-status-btn.inactive .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #DC2626;
}

/* ==========================================================================
   CaseHub.pk Deep Plum & Tangerine Orange Master Brand Theme
   ========================================================================== */

/* Overall Page Background: Warm White */
body, .storefront-body {
    background-color: var(--bg-main) !important;
    color: var(--text-dark) !important;
}

/* 1. Header: White background, Deep Plum logo and text */
.site-header {
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.site-header .logo,
.site-header .header-action-link,
.site-header button,
.site-header #mobile-menu-trigger,
.site-header .header-phone-btn span,
.site-header a {
    color: var(--brand-plum) !important;
}

.site-header .logo span.logo-highlight {
    color: var(--brand-orange) !important;
}

.header-phone-btn {
    background: var(--bg-soft) !important;
    color: var(--brand-plum) !important;
    border: 1px solid var(--border-light) !important;
}

.header-phone-btn:hover {
    background: var(--brand-plum) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-plum) !important;
}

.header-phone-btn:hover span {
    color: #FFFFFF !important;
}

.search-bar input {
    background: var(--bg-soft) !important;
    border: 1.5px solid var(--border-light) !important;
    color: var(--text-dark) !important;
}

.search-bar input:focus {
    border-color: var(--brand-orange) !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15) !important;
}

/* Desktop Category Navigation Strip */
.desktop-nav {
    background-color: var(--brand-plum) !important;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    background-color: rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
}

/* 2. Primary Buttons: Tangerine #FF7A00 with white text, Hover: Dark Orange #D95F00 */
.btn-primary,
.finder-btn,
.ch-btn-quickadd,
a.btn-primary,
button.btn-primary,
.btn-cta,
.btn-checkout {
    background-color: var(--brand-orange) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28) !important;
    transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease !important;
}

.btn-primary:hover,
.finder-btn:hover,
.ch-btn-quickadd:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.btn-cta:hover,
.btn-checkout:hover {
    background-color: var(--orange-hover) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(217, 95, 0, 0.35) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-soft) !important;
    color: var(--brand-plum) !important;
    border: 1px solid var(--border-light) !important;
}

.btn-secondary:hover {
    background-color: #FFFFFF !important;
    border-color: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
}

/* 3. Hero Section & Highlight Badges */
.hero-banner,
.phonekart-hero-banner {
    background: linear-gradient(135deg, var(--brand-plum) 0%, #250C38 60%, #461B67 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 30px rgba(53, 19, 79, 0.22) !important;
}

.hero-pill,
.hero-highlight,
.highlight-pill {
    background: rgba(255, 122, 0, 0.18) !important;
    border: 1px solid rgba(255, 122, 0, 0.4) !important;
    color: var(--brand-orange) !important;
}

/* 4. Product Cards: White background with soft beige border */
.ch-product-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 1px 3px rgba(53, 19, 79, 0.04) !important;
}

.ch-product-card:hover {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 8px 24px rgba(53, 19, 79, 0.1) !important;
}

.ch-cat-card,
.phonekart-cat-card,
.ch-brand-tile,
.phonekart-brand-box {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
}

.ch-cat-card:hover,
.phonekart-cat-card:hover,
.ch-brand-tile:hover {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.12) !important;
}

/* 5. Prices: Deep Plum */
.ch-price-current,
.price-current,
.product-price,
.cart-item-price,
.summary-price,
.order-total-price {
    color: var(--brand-plum) !important;
    font-weight: 800 !important;
}

/* 6. Sale Badges: Tangerine #FF7A00 ya Coral #D94444 */
.ch-badge-sale,
.badge-sale,
.sale-tag,
.discount-badge {
    background-color: var(--brand-orange) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
}

/* Cart Counter */
.cart-count {
    background-color: var(--brand-orange) !important;
    color: #FFFFFF !important;
}

/* 7. Footer: Deep Plum background with white text */
.site-footer {
    background-color: var(--brand-plum) !important;
    color: #FFFFFF !important;
}

.site-footer h3,
.site-footer h4,
.site-footer p {
    color: #FFFFFF !important;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer .footer-links a:hover {
    color: var(--brand-orange) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Trust Strip */
.trust-strip {
    background-color: var(--brand-plum) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Bottom Navigation */
.bottom-nav {
    background: rgba(255, 253, 249, 0.98) !important;
    border-top: 1px solid var(--border-light) !important;
}

.bottom-nav a.active {
    color: var(--brand-orange) !important;
}

/* 8. Product Card: View Details Button Styling (Distinct from Add to Cart) */
.ch-btn-view {
    background-color: var(--bg-soft) !important;
    color: var(--brand-plum) !important;
    border: 1.5px solid var(--border-light) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 150ms ease !important;
}

.ch-btn-view:hover {
    background-color: var(--brand-plum) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-plum) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(53, 19, 79, 0.2) !important;
}

/* ==========================================================================
   9. CaseHub Admin Panel Deep Plum & Tangerine Master Scheme
   ========================================================================== */

/* Admin Body & Layout */
.admin-body,
.snapbuy-structure,
.snapbuy-layout,
.admin-layout {
    background-color: var(--bg-main) !important;
}

/* Admin Sidebar */
.snapbuy-sidebar,
.admin-sidebar {
    background-color: #FFFFFF !important;
    border-right: 1px solid var(--border-light) !important;
}

.snapbuy-sidebar-header,
.admin-sidebar-header {
    border-bottom: 1px solid var(--border-light) !important;
}

.snapbuy-badge-pill {
    background: var(--bg-soft) !important;
    color: var(--brand-plum) !important;
    border: 1px solid var(--border-light) !important;
    font-weight: 800 !important;
}

.snapbuy-search-box {
    background: var(--bg-soft) !important;
    border: 1px solid var(--border-light) !important;
}

.snapbuy-search-box:focus-within {
    border-color: var(--brand-orange) !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15) !important;
}

/* Admin Navigation Links */
.snapbuy-nav-link,
.admin-nav-link {
    color: #4B5563 !important;
    font-weight: 600 !important;
    transition: all 150ms ease !important;
}

.snapbuy-nav-link:hover,
.admin-nav-link:hover {
    background-color: var(--bg-soft) !important;
    color: var(--brand-plum) !important;
}

.snapbuy-nav-link.active,
.admin-nav-link.active {
    background: var(--brand-plum) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(53, 19, 79, 0.3) !important;
}

.snapbuy-nav-link.active .snapbuy-nav-icon,
.admin-nav-link.active .admin-nav-icon,
.snapbuy-nav-link.active svg,
.admin-nav-link.active svg {
    color: var(--brand-orange) !important;
    opacity: 1 !important;
}

.snapbuy-badge.badge-warning {
    background-color: var(--brand-orange) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
}

/* Sidebar Accordion Submenu */
.snapbuy-menu-item.has-submenu {
    position: relative;
}

.snapbuy-submenu-toggle {
    width: 100%;
    border: none !important;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    outline: none;
}

.snapbuy-submenu-toggle:hover {
    background-color: var(--bg-soft) !important;
    color: var(--brand-plum) !important;
}

.snapbuy-submenu-toggle .submenu-arrow {
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: auto;
}

.snapbuy-menu-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg) !important;
}

.snapbuy-submenu-list {
    list-style: none;
    padding: 4px 0 6px 36px !important;
    margin: 0 !important;
    display: none !important;
    flex-direction: column;
    gap: 3px;
}

.snapbuy-menu-item.has-submenu.open .snapbuy-submenu-list {
    display: flex !important;
}

.snapbuy-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 150ms ease;
}

.snapbuy-sublink:hover {
    color: var(--brand-orange) !important;
    background-color: #FFF4E8 !important;
    padding-left: 14px;
}

.snapbuy-sublink.active {
    color: var(--brand-orange) !important;
    background-color: #FFF4E8 !important;
    font-weight: 700 !important;
}

/* Admin Topbar */
.snapbuy-topbar,
.admin-topbar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.snapbuy-welcome-title {
    color: var(--brand-plum) !important;
}

.snapbuy-welcome-subtitle {
    color: var(--brand-orange) !important;
}

.snapbuy-user-details .user-role {
    color: var(--brand-orange) !important;
}

.snapbuy-avatar,
.admin-avatar {
    background: linear-gradient(135deg, var(--brand-plum) 0%, var(--brand-orange) 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(53, 19, 79, 0.25) !important;
}

/* Admin Cards & KPI Metrics */
.snapbuy-card,
.quick-stat-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 1px 3px rgba(53, 19, 79, 0.03) !important;
}

.snapbuy-card-header {
    border-bottom: 1px solid var(--border-light) !important;
}

.snapbuy-card-title {
    color: var(--brand-plum) !important;
}

.snapbuy-pill-select {
    border: 1px solid var(--border-light) !important;
    background: var(--bg-soft) !important;
    color: var(--text-dark) !important;
}

.snapbuy-pill-select:hover {
    border-color: var(--brand-orange) !important;
    background: #FFFFFF !important;
}

.snapbuy-footer {
    border-top: 1px solid var(--border-light) !important;
    background: #FFFFFF !important;
}

/* Admin Utility Colors (Replacing Old Blue with Deep Plum & Tangerine) */
.bg-blue-soft,
.bg-casehub-blue-soft {
    background: rgba(255, 122, 0, 0.12) !important;
}

.text-blue,
.text-casehub-blue {
    color: var(--brand-orange) !important;
}

.bg-casehub-blue {
    background: var(--brand-plum) !important;
}

.snapbuy-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid var(--border-light) !important;
    background: #FFFFFF !important;
    color: var(--brand-plum) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 150ms ease;
    box-shadow: 0 1px 3px rgba(53, 19, 79, 0.05);
}

.snapbuy-toggle-btn:hover {
    background: var(--bg-soft) !important;
    border-color: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
}

/* ==========================================================================
   Google-Like Live Search Predictive Dropdown
   ========================================================================== */
.js-live-search-container {
    position: relative;
}

.ch-search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #E5E7EB;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: #4B5563;
    cursor: pointer;
    padding: 0;
    transition: background 150ms ease, color 150ms ease;
    z-index: 10;
}

.ch-search-clear-btn:hover {
    background: #FF7A00;
    color: #FFFFFF;
}

.ch-search-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 122, 0, 0.2);
    border-top-color: #FF7A00;
    border-radius: 50%;
    animation: chSearchSpin 0.6s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes chSearchSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.ch-live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: min(520px, 80vh);
    background: #FFFFFF;
    border: 1.5px solid #FF7A00;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(53, 19, 79, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 9999;
    animation: chDropdownSlideDown 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chDropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ch-live-search-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #756B73;
    padding: 10px 14px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFDF9;
    border-top: 1px solid #F4ECE5;
}

.ch-live-search-header:first-child {
    border-top: none;
    padding-top: 12px;
}

.ch-live-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 14px 12px;
}

.ch-live-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    background: #FFF4E8;
    color: #35134F;
    border: 1px solid #EADFD5;
    text-decoration: none;
    cursor: pointer;
    transition: all 150ms ease;
    user-select: none;
}

.ch-live-search-chip:hover,
.ch-live-search-chip.is-selected {
    background: #FF7A00;
    color: #FFFFFF;
    border-color: #FF7A00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.25);
}

.ch-live-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid #F8F5F2;
    transition: background 150ms ease, transform 150ms ease;
    cursor: pointer;
}

.ch-live-product-item:last-child {
    border-bottom: none;
}

.ch-live-product-item:hover,
.ch-live-product-item.is-selected {
    background: #FFF4E8;
}

.ch-live-product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #EADFD5;
    padding: 2px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(53, 19, 79, 0.04);
}

.ch-live-product-info {
    flex: 1;
    min-width: 0;
}

.ch-live-product-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #17131A;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-live-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 12px;
    flex-wrap: wrap;
}

.ch-live-product-price {
    font-weight: 800;
    color: #35134F;
    font-size: 13px;
}

.ch-live-product-old-price {
    font-size: 11px;
    color: #9CA3AF;
    text-decoration: line-through;
}

.ch-live-product-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 122, 0, 0.12);
    color: #FF7A00;
}

.ch-live-product-stock {
    font-size: 11px;
    font-weight: 700;
    color: #2E9B62;
    margin-left: auto;
}

.ch-live-search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FFFDF9;
    border-top: 1.5px solid #F4ECE5;
    font-size: 13px;
    font-weight: 800;
    color: #FF7A00;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
    cursor: pointer;
}

.ch-live-search-footer:hover,
.ch-live-search-footer.is-selected {
    background: #FFF4E8;
    color: #D95F00;
}

.ch-live-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: #756B73;
    font-size: 13px;
}

.ch-duo-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 150ms ease;
}

.ch-live-search-chip:hover .ch-duo-icon,
.ch-live-search-chip.is-selected .ch-duo-icon {
    transform: scale(1.12);
}

.ch-live-search-chip:hover .ch-duo-icon path,
.ch-live-search-chip.is-selected .ch-duo-icon path,
.ch-live-search-chip:hover .ch-duo-icon circle,
.ch-live-search-chip.is-selected .ch-duo-icon circle,
.ch-live-search-chip:hover .ch-duo-icon rect,
.ch-live-search-chip.is-selected .ch-duo-icon rect,
.ch-live-search-chip:hover .ch-duo-icon line,
.ch-live-search-chip.is-selected .ch-duo-icon line {
    stroke: #FFFFFF !important;
}

.ch-live-search-chip:hover .ch-duo-icon circle,
.ch-live-search-chip.is-selected .ch-duo-icon circle,
.ch-live-search-chip:hover .ch-duo-icon rect,
.ch-live-search-chip.is-selected .ch-duo-icon rect {
    fill: rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================================================
   Admin Layout Clean-up & Profile Dropdown Styles
   ========================================================================== */
#snapbuy-sidebar-close {
    display: none;
}

@media (max-width: 1023px) {
    #snapbuy-sidebar-close {
        display: inline-flex !important;
    }
}

@media (min-width: 1024px) {
    #snapbuy-sidebar-close {
        display: none !important;
    }

    body.sidebar-collapsed .snapbuy-sidebar {
        margin-left: -260px;
        transition: margin-left 250ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.sidebar-collapsed .snapbuy-main {
        margin-left: 0;
        transition: margin-left 250ms cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Admin Profile Dropdown */
.snapbuy-profile-dropdown-wrap {
    position: relative;
}

.snapbuy-user-pill-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: #FFFFFF;
    border: 1.5px solid #EADFD5;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 150ms ease;
}

.snapbuy-user-pill-btn:hover {
    border-color: #FF7A00;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.15);
}

.snapbuy-profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: #FFFFFF;
    border: 1.5px solid #EADFD5;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(53, 19, 79, 0.14);
    padding: 8px;
    z-index: 1000;
    display: none;
    animation: chDropdownSlideDown 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.snapbuy-profile-menu.show {
    display: block;
}

.snapbuy-profile-menu-header {
    padding: 10px 12px;
    border-bottom: 1px solid #F4ECE5;
    margin-bottom: 6px;
}

.snapbuy-profile-menu-name {
    font-weight: 800;
    color: #35134F;
    font-size: 13.5px;
}

.snapbuy-profile-menu-email {
    font-size: 11.5px;
    color: #756B73;
    margin-top: 1px;
}

.snapbuy-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #17131A;
    text-decoration: none;
    transition: all 120ms ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.snapbuy-profile-menu-item:hover {
    background: #FFF4E8;
    color: #FF7A00;
}

.snapbuy-profile-menu-item.logout-item {
    color: #D94444;
}

.snapbuy-profile-menu-item.logout-item:hover {
    background: #FEE2E2;
    color: #B91C1C;
}

.snapbuy-profile-divider {
    height: 1px;
    background: #F4ECE5;
    margin: 6px 0;
}

/* Sidebar Footer Action Buttons */
.snapbuy-sidebar-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.snapbuy-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 150ms ease;
    border: 1.5px solid #EADFD5;
    background: #FFFFFF;
    color: #35134F;
}

.snapbuy-sidebar-btn:hover {
    background: #FFF4E8;
    border-color: #FF7A00;
    color: #FF7A00;
}

.snapbuy-sidebar-btn.btn-logout {
    color: #D94444;
    border-color: #FECACA;
    background: #FFF5F5;
}

.snapbuy-sidebar-btn.btn-logout:hover {
    background: #FEE2E2;
    border-color: #D94444;
    color: #B91C1C;
}

.snapbuy-topbar-storefront-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #FFF4E8;
    color: #FF7A00;
    border: 1.5px solid #EADFD5;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 150ms ease;
}

.snapbuy-topbar-storefront-btn:hover {
    background: #FF7A00;
    color: #FFFFFF;
    border-color: #FF7A00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

/* Collapsible Submenu */
.snapbuy-menu-item.has-submenu .submenu-arrow {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.snapbuy-menu-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg) !important;
}

.snapbuy-sublink:hover {
    color: #FF7A00 !important;
}

/* ==========================================================================
   Universal Utility Helpers
   ========================================================================== */
.d-none,
.hidden {
    display: none !important;
}
.d-block {
    display: block !important;
}
.d-flex {
    display: flex !important;
}
.d-inline-flex {
    display: inline-flex !important;
}
.d-inline {
    display: inline !important;
}

/* ==========================================================================
   Universal Pagination System & SVG Chevron Constraints (Fixes Giant Arrows)
   ========================================================================== */
nav[role="navigation"] svg,
.pagination svg,
svg.w-5,
svg.h-5,
.w-5,
.h-5 {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle;
}

.ch-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: #FFFFFF;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.ch-pagination-info {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}

.ch-pagination-bold {
    font-weight: 700;
    color: #0F172A;
}

.ch-pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ch-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: all 150ms ease;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1;
}

.ch-page-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

.ch-page-btn:hover:not(.disabled):not(.active) {
    background: #FFF4E8;
    color: #FF7A00;
    border-color: #FF7A00;
}

.ch-page-btn.active {
    background: #FF7A00 !important;
    color: #FFFFFF !important;
    border-color: #FF7A00 !important;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35);
    cursor: default;
}

.ch-page-btn.disabled {
    color: #CBD5E1 !important;
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.ch-page-btn.ellipsis {
    border: none;
    background: transparent;
    color: #94A3B8;
    cursor: default;
    min-width: 24px;
    padding: 0;
}

/* Fallback for native Laravel Tailwind pagination elements */
nav[role="navigation"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
nav[role="navigation"] p.text-sm {
    font-size: 13px !important;
    color: #64748B !important;
    margin: 0 !important;
}
nav[role="navigation"] .relative.z-0 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: none !important;
}
nav[role="navigation"] .relative.z-0 > a,
nav[role="navigation"] .relative.z-0 > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    line-height: 1;
}
nav[role="navigation"] .relative.z-0 > a:hover {
    background: #FFF4E8;
    color: #FF7A00;
    border-color: #FF7A00;
}
nav[role="navigation"] .relative.z-0 > span[aria-current="page"] {
    background: #FF7A00 !important;
    color: #FFFFFF !important;
    border-color: #FF7A00 !important;
}

@media (max-width: 640px) {
    .ch-pagination-nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding: 12px;
    }
    .ch-pagination-controls {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   Universal Centered Upload Dropboxes (Media Manager, CSV Bulk, Assets)
   ========================================================================== */
.media-dropzone-box {
    border: 2px dashed #CBD5E1 !important;
    border-radius: 14px !important;
    background: #F8FAFC !important;
    padding: 36px 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.media-dropzone-box:hover,
.media-dropzone-box.dragover {
    border-color: #FF7A00 !important;
    background: #FFF9F3 !important;
}

.dropzone-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.dropzone-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px auto !important;
    color: #FF7A00 !important;
}

.dropzone-icon svg {
    margin: 0 auto !important;
    display: block !important;
    width: 44px !important;
    height: 44px !important;
}

.dropzone-text {
    text-align: center !important;
    margin: 0 auto !important;
}

.dropzone-text strong {
    display: block;
    font-size: 0.975rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.dropzone-text p {
    font-size: 0.8rem;
    color: #64748B;
    margin: 0;
}

/* ==========================================================================
   Mobile Global Responsive Enhancements
   ========================================================================== */
@media (max-width: 768px) {
    /* Ensure tables can be smoothly swiped horizontally without breaking page width */
    .snapbuy-table-wrap,
    .table-responsive,
    .mazer-card-body > div[style*="overflow-x"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    /* Input font-size to prevent iOS Safari auto-zoom */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Touch targets minimum size */
    .btn,
    .mazer-btn-primary,
    .snapbuy-btn-primary,
    button[type="submit"] {
        min-height: 44px;
    }
}