/* ================================================================
   HeroDrop - ColiSwift Design System for Dashboard
   Extracted & Unified from ColiSwift (coliswift.com)
   Palette: Violet #7612e8 | Accent #fc5207 | Background #fbfafc
   Fonts: Inter / Changa / IBM Plex Mono
================================================================ */

:root {
    --cs-violet-50: #f6f1ff;
    --cs-violet-100: #e8dafd;
    --cs-violet-200: #d0b4fb;
    --cs-violet-300: #b184f7;
    --cs-violet-400: #9249f1;
    --cs-violet-500: #7612e8;
    --cs-violet-600: #630dc6;
    --cs-violet-700: #4f0a9e;

    --cs-orange-500: #fc5207;
    --cs-orange-600: #db4200;

    --sw-ink: #0f0a1f;
    --sw-ink-2: #2a2340;
    --sw-ink-3: #6b6579;
    --sw-ink-4: #9a94a8;
    --sw-line: #ece8f1;
    --sw-line-2: #f1eef4;
    --sw-line-strong: #d4cfdb;
    --sw-warm: #fafafb;
    --sw-surface: #ffffff;
    --sw-bg: #fbfafc;

    --brand-primary: var(--cs-violet-500);
    --brand-primary-hover: var(--cs-violet-600);
    --brand-accent: var(--cs-orange-500);

    --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-ar: 'Changa', 'Cairo', system-ui, sans-serif;

    --cs-shadow-card: 0 1px 3px rgba(15, 10, 31, 0.05), 0 1px 2px rgba(15, 10, 31, 0.03);
    --cs-shadow-hover: 0 8px 24px -4px rgba(118, 18, 232, 0.12), 0 2px 6px -1px rgba(15, 10, 31, 0.04);
}

/* Page body background */
body {
    background-color: var(--sw-bg) !important;
    color: var(--sw-ink-2);
}

.dashboard-main {
    background-color: var(--sw-bg);
}

/* ── 1. Taager Style KPI Stat Cards ───────────────────────────── */
.tg-card {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 1px 2px rgba(16, 24, 40, 0.02);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -2px rgba(16, 24, 40, 0.08);
    border-color: #e2e5eb;
}

.tg-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.tg-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-card-info-icon {
    font-size: 13px;
    color: #94a3b8;
    opacity: 0.8;
    display: inline-flex;
    flex-shrink: 0;
}

.tg-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
}

.tg-card-value {
    font-size: clamp(18px, 1.4vw + 8px, 22px);
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
}

.tg-card-sub {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 3px;
}

/* Taager Clean Icons Without Background Box */
.tg-badge-icon {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 26px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.tg-badge-blue {
    color: #3b82f6 !important;
}

.tg-badge-purple {
    color: #8b5cf6 !important;
}

.tg-badge-green {
    color: #10b981 !important;
}

.tg-badge-amber {
    color: #f59e0b !important;
}

.tg-badge-orange {
    color: #f97316 !important;
}

.tg-badge-red {
    color: #ef4444 !important;
}

.tg-badge-teal {
    color: #14b8a6 !important;
}

/* ── 1. ColiSwift KPI Stat Cards ──────────────────────────────── */
.cs-kpi-card {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--cs-shadow-card);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cs-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cs-shadow-hover);
    border-color: var(--cs-violet-200);
}

.cs-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-kpi-icon.violet {
    background: #f4edfe;
    color: var(--cs-violet-500);
}

.cs-kpi-icon.green {
    background: #eaf8f0;
    color: #12a150;
}

.cs-kpi-icon.blue {
    background: #eaf1fe;
    color: #2f6feb;
}

.cs-kpi-icon.amber {
    background: #fef5e7;
    color: #d97706;
}

.cs-kpi-icon.orange {
    background: #fff0e8;
    color: var(--cs-orange-500);
}

.cs-kpi-icon.red {
    background: #fdeeee;
    color: #e11d48;
}

.cs-kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sw-ink-3);
    margin-bottom: 6px;
    line-height: 1.3;
}

.cs-kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--sw-ink);
    letter-spacing: -0.5px;
    margin: 0;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.cs-kpi-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--sw-ink-4);
    margin-top: 4px;
}

/* ── 2. ColiSwift Financial Cards ─────────────────────────────── */
.cs-fin-card {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--cs-shadow-card);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    height: 100%;
}

.cs-fin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cs-shadow-hover);
}

.cs-fin-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--sw-ink-3);
    margin-bottom: 8px;
    display: block;
}

.cs-fin-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--sw-ink);
    letter-spacing: -0.5px;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.cs-fin-amount .currency {
    font-size: 12px;
    font-weight: 600;
    color: var(--sw-ink-3);
    font-family: var(--font-inter);
}

/* ── 3. ColiSwift SwiftTable ──────────────────────────────────── */
.swift-table-wrap {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--cs-shadow-card);
}

.swift-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sw-line);
    background: var(--sw-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.swift-table-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--sw-ink);
    margin: 0;
    letter-spacing: -0.2px;
}

.swift-table-action {
    color: var(--cs-violet-500);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.swift-table-action:hover {
    color: var(--cs-violet-600);
}

.swift-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--sw-ink);
}

.swift-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--sw-ink-3);
    background: var(--sw-warm);
    border-bottom: 1px solid var(--sw-line);
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.swift-table tbody tr {
    background: var(--sw-surface);
    transition: background 0.15s ease;
}

.swift-table tbody tr:hover {
    background: #faf8fd;
}

.swift-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--sw-line-2);
    vertical-align: middle;
    font-size: 13px;
}

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

/* ColiSwift Status Badges */
.cs-status {
    white-space: nowrap;
    border-radius: 999px;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    line-height: 1;
}

.cs-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ── 4. ColiSwift Order Number & Typography ───────────────────── */
.cs-order-num {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--cs-violet-500);
    text-decoration: none;
    font-size: 13px;
}

.cs-order-num:hover {
    color: var(--cs-violet-600);
    text-decoration: underline;
}

.cs-phone {
    font-family: var(--font-mono);
    color: var(--sw-ink-4);
    font-size: 11.5px;
    direction: ltr !important;
    display: block;
}

.cs-price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── 5. ColiSwift Modern Chart Cards ──────────────────────────── */
.cs-chart-card {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--cs-shadow-card);
    height: 100%;
}

/* ── 6. Subtle Animations (ColiSwift .rise) ────────────────────── */
@keyframes cs-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-rise {
    animation: cs-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── 7. ColiSwift Unified Sidebar (Both FR & AR) ──────────────── */
.sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid var(--sw-line) !important;
    box-shadow: 1px 0 3px rgba(15, 10, 31, 0.02) !important;
}

.sidebar-logo {
    height: 72px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--sw-line) !important;
    border-right: none !important;
    display: flex !important;
    align-items: center !important;
}

.sidebar-menu-area {
    padding: 14px 12px !important;
    border-right: none !important;
}

.sidebar-menu-group-title {
    color: var(--cs-violet-500) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 12px 14px 6px !important;
    margin: 4px 0 2px !important;
}

.sidebar-menu>li>a {
    color: var(--sw-ink-2) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin-bottom: 2px !important;
    transition: all 0.18s ease !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
}

.sidebar-menu>li>a .menu-icon {
    font-size: 19px !important;
    margin-right: 10px !important;
    color: var(--sw-ink-3) !important;
    transition: color 0.18s ease !important;
}

.sidebar-menu>li>a:hover {
    background: #faf8fd !important;
    color: var(--cs-violet-500) !important;
}

.sidebar-menu>li>a:hover .menu-icon {
    color: var(--cs-violet-500) !important;
}

/* ColiSwift Sleek Violet Pill for Active Sidebar Item (Universal) */
.sidebar .active>a,
.sidebar li.active>a,
.sidebar-menu li.active>a {
    background: #f4edfe !important;
    color: #7612e8 !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.sidebar .active>a .menu-icon,
.sidebar li.active>a .menu-icon,
.sidebar-menu li.active>a .menu-icon {
    color: #7612e8 !important;
}

/* Submenu items */
.sidebar-submenu {
    padding-left: 36px !important;
    padding-right: 12px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.sidebar-submenu li a {
    color: var(--sw-ink-3) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
}

.sidebar-submenu li a:hover {
    color: var(--cs-violet-500) !important;
    background: #faf8fd !important;
}

.sidebar-submenu li.active a,
.sidebar-submenu li.active-page a {
    background: #f4edfe !important;
    color: #7612e8 !important;
    font-weight: 700 !important;
}

.sidebar-submenu li a i.circle-icon {
    color: var(--cs-violet-300) !important;
    font-size: 8px !important;
    margin-right: 8px !important;
}

.sidebar-submenu li.active a i.circle-icon,
.sidebar-submenu li.active-page a i.circle-icon {
    color: #7612e8 !important;
}

.sidebar .badge {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 2px 7px !important;
}


/* ================================================================
   HeroDrop - ColiSwift Obsidian Night Mode (data-theme="dark")
   ColiSwift Dark Palette:
   - Deep Obsidian Background: #07060b
   - Surface / Card: #13101b
   - Surface Hover: #181424
   - Table Header: #100d17
   - Line / Border: rgba(255, 255, 255, 0.08)
   - Line Subtle: rgba(255, 255, 255, 0.05)
   - Ink Primary: #ffffff
   - Ink Secondary: #cfc9da
   - Ink Muted: #8a8398
   - Ink Subtle: #6b6579
   - Brand Violet Accent: #9249f1 / #b98cf8
================================================================ */

/* ── 0. Theme Toggle Button & Sun/Moon Display ───────────────── */
/* ================================================================
   Silky Smooth Theme Transitions (No Aggressive Flash)
   ================================================================ */
html,
body,
.dashboard-main,
.dashboard-main-body,
.card,
.sidebar,
.navbar-header,
.basic-data-table,
.hd-product-card,
.cat-pill-tab,
.form-control,
.navbar-search-input,
.product-search-input,
.view-mode-pill-group,
.header-wallet-pill,
.sidebar-menu-area,
.dropdown-menu,
.swift-table,
.breadcrumb {
    transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.25s ease,
        box-shadow 0.35s ease !important;
}

.theme-toggle-btn {
    background-color: #f1eef6 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #4b5563 !important;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.3s ease,
        border-color 0.3s ease !important;
}

.theme-toggle-btn:hover {
    background-color: #e5e0ee !important;
    color: var(--cs-violet-500) !important;
}

.theme-toggle-btn:active {
    transform: scale(0.88) rotate(35deg) !important;
}

.theme-toggle-btn iconify-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease !important;
}

/* Clean Theme Toggle — Kill conflicting remixicon pseudo-elements */
[data-theme-toggle]::after,
[data-theme-toggle]::before,
.theme-toggle-btn::after,
.theme-toggle-btn::before {
    display: none !important;
    content: none !important;
}

/* Light mode (default) */
.theme-toggle-btn .theme-sun-icon {
    display: none !important;
}

.theme-toggle-btn .theme-moon-icon {
    display: inline-flex !important;
    color: #475569 !important;
}

/* Dark mode */
[data-theme="dark"] .theme-toggle-btn {
    background-color: #1a1626 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: #241f33 !important;
    border-color: rgba(146, 73, 241, 0.4) !important;
}

[data-theme="dark"] .theme-toggle-btn .theme-moon-icon {
    display: none !important;
}

[data-theme="dark"] .theme-toggle-btn .theme-sun-icon {
    display: inline-flex !important;
    color: #fbbf24 !important;
}

/* ── 1. Dark Mode Variables ───────────────────────────────────── */
[data-theme="dark"] {
    --sw-bg: #07060b;
    --sw-surface: #13101b;
    --sw-warm: #100d17;
    --sw-line: rgba(255, 255, 255, 0.08);
    --sw-line-2: rgba(255, 255, 255, 0.05);
    --sw-line-strong: rgba(255, 255, 255, 0.16);
    --sw-ink: #ffffff;
    --sw-ink-2: #cfc9da;
    --sw-ink-3: #8a8398;
    --sw-ink-4: #6b6579;

    --cs-violet-50: rgba(118, 18, 232, 0.18);
    --cs-violet-100: rgba(118, 18, 232, 0.28);
    --cs-violet-200: #9249f1;
    --cs-violet-300: #a86bf5;
    --cs-violet-400: #b98cf8;
    --cs-violet-500: #9249f1;
    --cs-violet-600: #a86bf5;

    --brand-primary: #9249f1;
    --brand-primary-hover: #a86bf5;

    --cs-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --cs-shadow-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(146, 73, 241, 0.35);
}

/* ── 2. Dark Backgrounds and Layout ───────────────────────────── */
[data-theme="dark"],
[data-theme="dark"] body {
    background-color: #07060b !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .dashboard-main {
    background-color: #07060b !important;
}

[data-theme="dark"] .dashboard-main-body {
    background-color: transparent !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

/* ── 3. Taager & ColiSwift KPI Cards in Dark Mode ─────────────── */
[data-theme="dark"] .tg-card {
    background: #13101b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .tg-card:hover {
    background: #171322 !important;
    border-color: rgba(146, 73, 241, 0.4) !important;
    box-shadow: 0 8px 22px -2px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(146, 73, 241, 0.35) !important;
}

[data-theme="dark"] .tg-card-label {
    color: #8a8398 !important;
}

[data-theme="dark"] .tg-card-info-icon {
    color: #6b6579 !important;
}

[data-theme="dark"] .tg-card-value {
    color: #ffffff;
}

[data-theme="dark"] .tg-card-sub {
    color: #6b6579;
}

[data-theme="dark"] .cs-kpi-card,
[data-theme="dark"] .cs-fin-card,
[data-theme="dark"] .cs-chart-card,
[data-theme="dark"] .card {
    background: #13101b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .cs-fin-card:hover,
[data-theme="dark"] .cs-chart-card:hover {
    border-color: rgba(146, 73, 241, 0.3) !important;
}

[data-theme="dark"] .cs-fin-label {
    color: #8a8398 !important;
}

[data-theme="dark"] .cs-fin-amount {
    color: #ffffff !important;
}

[data-theme="dark"] .cs-fin-amount .currency {
    color: #8a8398 !important;
}

[data-theme="dark"] .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .text-secondary-light {
    color: #8a8398 !important;
}

[data-theme="dark"] .text-dark {
    color: #ffffff !important;
}

/* ── 4. ColiSwift Dark Sidebar ────────────────────────────────── */
[data-theme="dark"] .sidebar {
    background-color: #0d0a14 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.3) !important;
}

html[lang="ar"][data-theme="dark"] .sidebar {
    border-right: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .sidebar-logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .sidebar-logo img.light-logo {
    display: none !important;
}

[data-theme="dark"] .sidebar-logo img.dark-logo {
    display: inline-block !important;
}

[data-theme="dark"] .sidebar-menu-group-title {
    color: #b98cf8 !important;
}

[data-theme="dark"] .sidebar-menu>li>a {
    color: #cfc9da !important;
}

[data-theme="dark"] .sidebar-menu>li>a .menu-icon {
    color: #8a8398 !important;
}

[data-theme="dark"] .sidebar-menu>li>a:hover {
    background: rgba(118, 18, 232, 0.15) !important;
    color: #b98cf8 !important;
}

[data-theme="dark"] .sidebar-menu>li>a:hover .menu-icon {
    color: #b98cf8 !important;
}

[data-theme="dark"] .sidebar .active>a,
[data-theme="dark"] .sidebar li.active>a,
[data-theme="dark"] .sidebar-menu li.active>a {
    background: rgba(118, 18, 232, 0.25) !important;
    color: #b98cf8 !important;
}

[data-theme="dark"] .sidebar .active>a .menu-icon,
[data-theme="dark"] .sidebar li.active>a .menu-icon,
[data-theme="dark"] .sidebar-menu li.active>a .menu-icon {
    color: #b98cf8 !important;
}

[data-theme="dark"] .sidebar-submenu li a {
    color: #8a8398 !important;
}

[data-theme="dark"] .sidebar-submenu li a:hover {
    background: rgba(118, 18, 232, 0.12) !important;
    color: #b98cf8 !important;
}

[data-theme="dark"] .sidebar-submenu li.active a,
[data-theme="dark"] .sidebar-submenu li.active-page a {
    background: rgba(118, 18, 232, 0.25) !important;
    color: #b98cf8 !important;
}

/* ── 5. Dark Navbar & Search ──────────────────────────────────── */
[data-theme="dark"] .navbar-header {
    background-color: #0d0a14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .sidebar-toggle,
[data-theme="dark"] .sidebar-mobile-toggle {
    color: #cfc9da !important;
}

[data-theme="dark"] .sidebar-toggle:hover,
[data-theme="dark"] .sidebar-mobile-toggle:hover {
    color: #b98cf8 !important;
}

[data-theme="dark"] .navbar-search-input {
    background-color: #14101e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .navbar-search-input:focus {
    border-color: #9249f1 !important;
    background-color: #181324 !important;
    box-shadow: 0 0 0 3px rgba(146, 73, 241, 0.2) !important;
}

[data-theme="dark"] .navbar-search-input::placeholder {
    color: #6b6579 !important;
}

[data-theme="dark"] .navbar-search-icon-wrap {
    color: #8a8398 !important;
}

[data-theme="dark"] #search-suggestions {
    background-color: #13101b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] #search-suggestions .bg-neutral-50 {
    background-color: #100d17 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] #search-suggestions kbd {
    background-color: #1c1726 !important;
    color: #cfc9da !important;
}

/* Language switch pill in dark */
[data-theme="dark"] .lang-switch-pill {
    background: #171322 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .lang-btn {
    color: #8a8398 !important;
}

[data-theme="dark"] .lang-btn:hover {
    color: #b98cf8 !important;
}

[data-theme="dark"] .lang-btn.active {
    background: #7612e8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(118, 18, 232, 0.5) !important;
}

/* User & Notif Circle Buttons */
[data-theme="dark"] .navbar-header .w-40-px:not(.theme-toggle-btn) {
    background-color: #171322 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .navbar-header .w-40-px:not(.theme-toggle-btn):hover {
    background-color: #201a30 !important;
    color: #b98cf8 !important;
}

/* ── 6. SwiftTable in Dark Mode ───────────────────────────────── */
[data-theme="dark"] .swift-table-wrap {
    background: #13101b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .swift-table-header {
    background: #13101b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .swift-table-title {
    color: #ffffff !important;
}

[data-theme="dark"] .swift-table-action {
    color: #b98cf8 !important;
}

[data-theme="dark"] .swift-table-action:hover {
    color: #d0b4fb !important;
}

[data-theme="dark"] .swift-table {
    color: #cfc9da !important;
}

[data-theme="dark"] .swift-table thead th {
    background: #100d17 !important;
    color: #8a8398 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .swift-table tbody tr {
    background: #13101b !important;
}

[data-theme="dark"] .swift-table tbody tr:hover {
    background: #181424 !important;
}

[data-theme="dark"] .swift-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .cs-order-num {
    color: #b98cf8 !important;
}

[data-theme="dark"] .cs-order-num:hover {
    color: #d0b4fb !important;
}

/* ── 7. Dropdowns, Forms & Footer in Dark Mode ────────────────── */
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control {
    background-color: #171322 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-control:focus {
    border-color: #9249f1 !important;
    box-shadow: 0 0 0 3px rgba(146, 73, 241, 0.2) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #13101b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .dropdown-item {
    color: #cfc9da !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #181424 !important;
    color: #b98cf8 !important;
}

[data-theme="dark"] .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] footer,
[data-theme="dark"] .footer,
[data-theme="dark"] .dashboard-footer {
    background-color: #07060b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #8a8398 !important;
}

[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .breadcrumb-item a {
    color: #8a8398 !important;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-neutral-100 {
    background-color: #1c1726 !important;
}

[data-theme="dark"] .bg-neutral-50 {
    background-color: #100d17 !important;
}

/* ── 8. RTL Dark Mode Adjustments ─────────────────────────────── */
html[lang="ar"][data-theme="dark"] .sidebar-logo,
html[lang="ar"][data-theme="dark"] .sidebar-menu-area {
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: none !important;
}

html[lang="ar"][data-theme="dark"] .sidebar-menu-group-title {
    color: #b98cf8 !important;
}

html[lang="ar"][data-theme="dark"] .navbar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ── 9. Status Badges in Dark Mode ────────────────────────────── */
[data-theme="dark"] .bg-success-focus {
    background-color: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .bg-info-focus {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .bg-warning-focus {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .bg-danger-focus {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
}

[data-theme="dark"] .bg-lilac-focus,
[data-theme="dark"] .bg-primary-focus {
    background-color: rgba(118, 18, 232, 0.22) !important;
    color: #b98cf8 !important;
}

/* ================================================================
   HeroDrop - Universal ColiSwift UI System for All Pages
   Transforms all Cards, Tables, Buttons, Forms & DataTables
================================================================ */

/* ── 10. Universal Cards ──────────────────────────────────────── */
.card,
.basic-data-table {
    background: #ffffff;
    border: 1px solid var(--sw-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--cs-shadow-card) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--sw-line) !important;
    padding: 16px 20px !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

.card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--sw-ink) !important;
    letter-spacing: -0.2px;
}

.card-body {
    padding: 20px !important;
}

.card-footer {
    background: #ffffff !important;
    border-top: 1px solid var(--sw-line) !important;
    padding: 14px 20px !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

/* ── 11. Universal Tables (ColiSwift Table Styling) ───────────── */
.table,
.bordered-table,
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    font-size: 13px !important;
    color: var(--sw-ink) !important;
    border-color: var(--sw-line) !important;
}

.table thead th,
table.dataTable thead th {
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: var(--sw-ink-3) !important;
    background: #fafafb !important;
    border-bottom: 1px solid var(--sw-line) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 12px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.table tbody td,
table.dataTable tbody td {
    padding: 13px 16px !important;
    border-bottom: 1px solid var(--sw-line-2) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    font-size: 13px !important;
}

.table tbody tr,
table.dataTable tbody tr {
    background: #ffffff !important;
    transition: background 0.15s ease !important;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
    background: #faf8fd !important;
}

.table-responsive {
    border-radius: 12px;
}

/* ── 12. Universal Buttons (ColiSwift Violet & Clean UI) ──────── */
.btn-primary,
.btn-primary-600,
.btn-main {
    background-color: #7612e8 !important;
    border-color: #7612e8 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(118, 18, 232, 0.25) !important;
}

.btn-primary:hover,
.btn-primary-600:hover,
.btn-main:hover {
    background-color: #630dc6 !important;
    border-color: #630dc6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(118, 18, 232, 0.35) !important;
}

.btn-outline-primary,
.btn-outline-primary-600 {
    color: #7612e8 !important;
    border-color: #7612e8 !important;
    border-radius: 10px !important;
    background: transparent !important;
    font-weight: 600 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary-600:hover {
    background-color: #7612e8 !important;
    color: #ffffff !important;
}

.btn-outline-info {
    border-color: var(--sw-line) !important;
    color: var(--sw-ink-2) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

.btn-outline-info:hover {
    background-color: #f4edfe !important;
    border-color: #7612e8 !important;
    color: #7612e8 !important;
}

.btn-outline-warning {
    border-radius: 10px !important;
}

.btn-success,
.btn-success-600 {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    border-radius: 10px !important;
}

.btn-danger,
.btn-danger-600 {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    border-radius: 10px !important;
}

/* ── 13. Universal Forms & Filters ────────────────────────────── */
.form-control,
.form-select {
    border-radius: 10px !important;
    border: 1px solid var(--sw-line) !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    color: var(--sw-ink) !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #9249f1 !important;
    box-shadow: 0 0 0 3px rgba(118, 18, 232, 0.15) !important;
    background-color: #ffffff !important;
}

.form-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--sw-ink-3) !important;
    margin-bottom: 6px !important;
}

.surface-card {
    background: #fafafb !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: 12px !important;
}

/* ── 14. DataTables UI Controls ───────────────────────────────── */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #7612e8 !important;
    color: #ffffff !important;
    border: 1px solid #7612e8 !important;
    border-radius: 8px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px !important;
    border: 1px solid var(--sw-line) !important;
    padding: 6px 12px !important;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px !important;
    border: 1px solid var(--sw-line) !important;
    padding: 4px 8px !important;
}

/* ── 15. Dark Mode Overrides for Universal Components ─────────── */
[data-theme="dark"] .card,
[data-theme="dark"] .basic-data-table {
    background: #13101b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
    background: #13101b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] table.dataTable thead th {
    background: #100d17 !important;
    color: #8a8398 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .table tbody tr,
[data-theme="dark"] table.dataTable tbody tr {
    background: #13101b !important;
}

[data-theme="dark"] .table tbody tr:hover,
[data-theme="dark"] table.dataTable tbody tr:hover {
    background: #181424 !important;
}

[data-theme="dark"] .table tbody td,
[data-theme="dark"] table.dataTable tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .surface-card {
    background: #100d17 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .btn-outline-info {
    background: #181424 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .btn-outline-info:hover {
    background: rgba(118, 18, 232, 0.25) !important;
    border-color: #9249f1 !important;
    color: #b98cf8 !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #8a8398 !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-theme="dark"] .dataTables_wrapper .dataTables_length select {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dataTables_wrapper .dataTables_info {
    color: #8a8398 !important;
}


/* ================================================================
   16. COLISWIFT PRODUCT CARDS (Exact match to main website style)
   ================================================================ */
.cs-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.cs-product-card {
    background: #ffffff;
    border: 1px solid rgba(22, 19, 29, 0.08);
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(22, 14, 48, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.cs-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(118, 18, 232, 0.35) !important;
    box-shadow: 0 16px 36px -10px rgba(118, 18, 232, 0.16) !important;
}

.cs-product-card .product-image-box {
    aspect-ratio: 1/1;
    position: relative;
    background: #fdfdfd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(22, 19, 29, 0.06);
}

.cs-product-card .product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

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

.cs-product-card .product-badges-float {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

[dir="rtl"] .cs-product-card .product-badges-float {
    right: auto;
    left: 10px;
}

.cs-product-card .cs-pill {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cs-product-card .cs-pill.stock-active {
    background: #10b981;
    color: #ffffff;
}

.cs-product-card .cs-pill.stock-inactive {
    background: #ef4444;
    color: #ffffff;
}

.cs-product-card .cs-pill.cat-pill {
    background: rgba(118, 18, 232, 0.1);
    color: #7612e8;
    border: 1px solid rgba(118, 18, 232, 0.2);
}

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

.cs-product-card .cs-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #16131d;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.cs-product-card .cs-product-cat {
    font-size: 0.75rem;
    color: #7c778a;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.cs-product-card .cs-product-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(22, 19, 29, 0.06);
}

.cs-product-card .cs-product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #7612e8;
    line-height: 1;
}

.cs-product-card .cs-product-price small {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7c778a;
}

.cs-product-card .cs-sku-tag {
    font-size: 0.72rem;
    font-weight: 600;
    background: #f4f3f7;
    padding: 2px 7px;
    border-radius: 6px;
    color: #6b6579;
}

/* Dark mode overrides for product card */
[data-theme="dark"] .cs-product-card {
    background: #13101b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .cs-product-card:hover {
    border-color: rgba(146, 73, 241, 0.45) !important;
    box-shadow: 0 16px 36px -10px rgba(118, 18, 232, 0.3) !important;
}

[data-theme="dark"] .cs-product-card .product-image-box {
    background: #0d0b14 !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .cs-product-card .cs-product-title {
    color: #ffffff !important;
}

[data-theme="dark"] .cs-product-card .cs-product-cat {
    color: #8a8398 !important;
}

[data-theme="dark"] .cs-product-card .cs-product-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .cs-product-card .cs-product-price {
    color: #b98cf8 !important;
}

[data-theme="dark"] .cs-product-card .cs-product-price small {
    color: #8a8398 !important;
}

[data-theme="dark"] .cs-product-card .cs-sku-tag {
    background: #1d182b !important;
    color: #cfc9da !important;
}

[data-theme="dark"] .cs-product-card .cs-pill.cat-pill {
    background: rgba(118, 18, 232, 0.25) !important;
    color: #b184f7 !important;
    border-color: rgba(118, 18, 232, 0.4) !important;
}


/* ── Pill Badges (ColiSwift Style from Main Website) ─────────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    padding: 3px 9px;
    text-decoration: none;
}

.pill-violet {
    background: rgba(118, 18, 232, 0.12) !important;
    color: #7612e8 !important;
    border: 1px solid rgba(118, 18, 232, 0.28) !important;
}

.pill-orange {
    background: rgba(252, 82, 7, 0.12) !important;
    color: #fc5207 !important;
    border: 1px solid rgba(252, 82, 7, 0.28) !important;
}

.pill-green {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
}

[data-theme="dark"] .pill-violet {
    background: rgba(118, 18, 232, 0.28) !important;
    color: #b98cf8 !important;
    border-color: rgba(146, 73, 241, 0.45) !important;
}

[data-theme="dark"] .pill-orange {
    background: rgba(252, 82, 7, 0.25) !important;
    color: #ff8447 !important;
    border-color: rgba(252, 82, 7, 0.45) !important;
}

[data-theme="dark"] .pill-green {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
}


/* RTL arrow flipper */
[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
    display: inline-block;
}


/* ================================================================
   17. HERO DROP ULTRA-CLEAN PRODUCT CARD (Rebuilt from Scratch)
   ================================================================ */
.hd-product-card {
    background: #ffffff;
    border: 1px solid rgba(22, 19, 29, 0.09);
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.05);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.hd-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(118, 18, 232, 0.38) !important;
    box-shadow: 0 20px 38px -10px rgba(118, 18, 232, 0.16) !important;
}

/* 1:1 Image Area */
.hd-card-image-wrap {
    aspect-ratio: 1/1;
    position: relative;
    background: #fafafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(22, 19, 29, 0.06);
}

.hd-card-image-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hd-card-image-wrap {
    aspect-ratio: 1/1;
    position: relative;
    background: #fafafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(22, 19, 29, 0.06);
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
}

.hd-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hd-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-placeholder-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    opacity: 0.6;
}

/* Discrete Minimalist Stock Tag */
.hd-stock-indicator {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hd-stock-indicator.in-stock {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hd-stock-indicator.in-stock {
    background: rgba(19, 16, 27, 0.92) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
}

.hd-stock-indicator.out-of-stock {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hd-stock-indicator.out-of-stock {
    background: rgba(19, 16, 27, 0.92) !important;
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

.hd-stock-indicator.in-stock .hd-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.hd-stock-indicator.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.hd-stock-indicator.out-of-stock .hd-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

/* Body Content */
.hd-card-body {
    padding: 12px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Clean Editorial Text for Dropshipping & En gros (NOT BADGES) */
.hd-card-type-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.hd-type-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #7612e8;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.01em;
}

.hd-type-text.wholesale {
    color: #ea580c;
}

.hd-type-sep {
    font-size: 0.55rem;
    color: #cbd5e1;
}

/* SKU Line */
.hd-card-sku {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hd-card-sku strong {
    color: #475569;
    font-weight: 700;
}

/* Title */
.hd-card-title,
h6.hd-card-title,
.hd-card-title a {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.hd-card-title {
    margin-bottom: 8px !important;
    color: #0f172a !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.3em !important;
}

.hd-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.hd-card-title a:hover {
    color: #7612e8 !important;
}

/* Footer Section */
.hd-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(22, 19, 29, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Price Display */
.hd-price-block {
    display: flex;
    flex-direction: column;
}

.hd-price-label {
    font-size: 0.60rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 2px;
}

.hd-price-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}

.hd-amount {
    font-size: 1.05rem;
    font-weight: 900;
    color: #7612e8;
    letter-spacing: -0.02em;
}

.hd-currency {
    font-size: 0.62rem;
    font-weight: 800;
    color: #94a3b8;
}

/* Action Buttons */
.hd-actions-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hd-btn-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 700;
    background: rgba(118, 18, 232, 0.08);
    color: #7612e8;
    border: 1px solid rgba(118, 18, 232, 0.22);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hd-btn-details:hover {
    background: #7612e8;
    color: #ffffff;
    border-color: #7612e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 18, 232, 0.25);
}

.hd-btn-order {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7612e8 0%, #630dc6 100%);
    color: #ffffff;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(118, 18, 232, 0.2);
}

.hd-btn-order:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(118, 18, 232, 0.35);
}

.hd-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 0.76rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hd-btn-icon.edit {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.hd-btn-icon.edit:hover {
    background: #f59e0b;
    color: #ffffff;
    transform: scale(1.08);
}

.hd-btn-icon.delete {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.hd-btn-icon.delete:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.08);
}

/* ── Dark Mode Overrides for HD Product Card ─────────────────── */
[data-theme="dark"] .hd-product-card {
    background: #13101b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .hd-product-card:hover {
    border-color: rgba(146, 73, 241, 0.45) !important;
    box-shadow: 0 20px 38px -10px rgba(118, 18, 232, 0.32) !important;
}

[data-theme="dark"] .hd-card-image-wrap {
    background: #0d0b14 !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .hd-placeholder-icon {
    color: #334155;
}

[data-theme="dark"] .hd-type-text {
    color: #b98cf8;
}

[data-theme="dark"] .hd-type-text.wholesale {
    color: #fb923c;
}

[data-theme="dark"] .hd-type-sep {
    color: #475569;
}

[data-theme="dark"] .hd-card-sku {
    color: #64748b;
}

[data-theme="dark"] .hd-card-sku strong {
    color: #cbd5e1;
}

[data-theme="dark"] .hd-card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .hd-card-title a:hover {
    color: #b98cf8 !important;
}

[data-theme="dark"] .hd-card-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .hd-price-label {
    color: #64748b;
}

[data-theme="dark"] .hd-amount {
    color: #b98cf8 !important;
}

[data-theme="dark"] .hd-currency {
    color: #64748b;
}

[data-theme="dark"] .hd-btn-details {
    background: rgba(118, 18, 232, 0.22);
    border-color: rgba(146, 73, 241, 0.4);
    color: #cfc9da;
}

[data-theme="dark"] .hd-btn-details:hover {
    background: #7612e8;
    color: #ffffff;
    border-color: #7612e8;
}

/* ── Category Filter Bar (ColiSwift Modern Category Pills Above Cards) ── */
.category-filter-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(22, 19, 29, 0.06);
}

[data-theme="dark"] .category-filter-bar {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.category-scroll-container {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 2px 8px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.category-scroll-container:active,
.category-scroll-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Category Navigation Arrow Buttons */
.cat-nav-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(22, 19, 29, 0.12);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    z-index: 2;
    padding: 0;
}

.cat-nav-btn:hover:not(:disabled) {
    background: #7612e8;
    color: #ffffff;
    border-color: #7612e8;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(118, 18, 232, 0.35);
}

.cat-nav-btn:disabled,
.cat-nav-btn.is-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

[data-theme="dark"] .cat-nav-btn {
    background: #181424;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cat-nav-btn:hover:not(:disabled) {
    background: #7612e8;
    color: #ffffff;
    border-color: #7612e8;
}

/* Direction aware icon orientations */
[dir="rtl"] .cat-nav-icon-prev { transform: rotate(0deg); }
[dir="rtl"] .cat-nav-icon-next { transform: rotate(0deg); }
[dir="ltr"] .cat-nav-icon-prev { transform: rotate(180deg); }
[dir="ltr"] .cat-nav-icon-next { transform: rotate(180deg); }

.cat-pill-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid rgba(22, 19, 29, 0.08);
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    user-select: none;
}

.cat-pill-tab:hover {
    background: rgba(118, 18, 232, 0.08);
    color: #7612e8;
    border-color: rgba(118, 18, 232, 0.3);
    transform: translateY(-1px);
}

.cat-pill-tab.active {
    background: #7612e8 !important;
    color: #ffffff !important;
    border-color: #7612e8 !important;
    box-shadow: 0 4px 14px rgba(118, 18, 232, 0.35);
}

.cat-pill-tab .count-badge {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.cat-pill-tab.active .count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

[data-theme="dark"] .cat-pill-tab {
    background: #181424;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cat-pill-tab:hover {
    background: rgba(118, 18, 232, 0.2);
    color: #b98cf8;
    border-color: rgba(146, 73, 241, 0.4);
}

[data-theme="dark"] .cat-pill-tab.active {
    background: #7612e8 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .cat-pill-tab .count-badge {
    background: rgba(255, 255, 255, 0.12);
}

/* ================================================================
   HeroDrop Products Page — Header & Search Controls
   ================================================================ */
.product-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-search-wrap {
    position: relative;
    width: 240px;
    transition: width 0.25s ease;
}

.product-search-wrap:focus-within {
    width: 280px;
}

.product-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 3;
    transition: color 0.2s ease;
}

.product-search-input {
    height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(22, 19, 29, 0.12) !important;
    background: #f8fafc !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

/* LTR layout for search */
html[dir="ltr"] .product-search-icon,
body:not([dir="rtl"]) .product-search-icon {
    left: 14px;
}

html[dir="ltr"] .product-search-input,
body:not([dir="rtl"]) .product-search-input {
    padding-left: 42px !important;
    padding-right: 16px !important;
}

/* RTL layout for search (Arabic) */
html[dir="rtl"] .product-search-icon,
html[lang="ar"] .product-search-icon {
    right: 14px !important;
    left: auto !important;
}

html[dir="rtl"] .product-search-input,
html[lang="ar"] .product-search-input {
    padding-right: 44px !important;
    padding-left: 16px !important;
    text-align: right !important;
    direction: rtl !important;
}

.product-search-input:focus {
    background: #ffffff !important;
    border-color: #7612e8 !important;
    box-shadow: 0 0 0 3px rgba(118, 18, 232, 0.15) !important;
}

.product-search-wrap:focus-within .product-search-icon {
    color: #7612e8 !important;
}

/* Dark mode for search */
[data-theme="dark"] .product-search-input {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .product-search-input:focus {
    background: #1c172a !important;
    border-color: #9249f1 !important;
    box-shadow: 0 0 0 3px rgba(118, 18, 232, 0.3) !important;
}

[data-theme="dark"] .product-search-icon {
    color: #64748b;
}

/* View mode toggle pill */
.view-mode-pill-group {
    height: 40px !important;
    padding: 3px !important;
    background: #eef2f6 !important;
    border: 1px solid rgba(22, 19, 29, 0.12) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.view-mode-pill-group .view-toggle-btn {
    height: 32px !important;
    width: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    color: #334155 !important;
    background: transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.view-mode-pill-group .view-toggle-btn iconify-icon {
    font-size: 1.15rem !important;
    color: #334155 !important;
    transition: color 0.2s ease !important;
}

.view-mode-pill-group .view-toggle-btn:hover {
    background: rgba(118, 18, 232, 0.1) !important;
    color: #7612e8 !important;
}

.view-mode-pill-group .view-toggle-btn:hover iconify-icon {
    color: #7612e8 !important;
}

.view-mode-pill-group .view-toggle-btn.active {
    background: #7612e8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(118, 18, 232, 0.4) !important;
}

.view-mode-pill-group .view-toggle-btn.active iconify-icon {
    color: #ffffff !important;
}

[data-theme="dark"] .view-mode-pill-group {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .view-mode-pill-group .view-toggle-btn {
    color: #94a3b8 !important;
}

[data-theme="dark"] .view-mode-pill-group .view-toggle-btn iconify-icon {
    color: #94a3b8 !important;
}

[data-theme="dark"] .view-mode-pill-group .view-toggle-btn:hover {
    background: rgba(118, 18, 232, 0.25) !important;
    color: #c084fc !important;
}

[data-theme="dark"] .view-mode-pill-group .view-toggle-btn:hover iconify-icon {
    color: #c084fc !important;
}

[data-theme="dark"] .view-mode-pill-group .view-toggle-btn.active {
    background: #7612e8 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .view-mode-pill-group .view-toggle-btn.active iconify-icon {
    color: #ffffff !important;
}

/* Add product button */
.btn-add-product {
    height: 40px;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #7612e8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    box-shadow: 0 4px 14px rgba(118, 18, 232, 0.3) !important;
    transition: all 0.22s ease !important;
    text-decoration: none !important;
}

.btn-add-product:hover {
    background: #630dc6 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(118, 18, 232, 0.4) !important;
    color: #ffffff !important;
}

/* ================================================================
   HeroDrop Products Show Details Page
   ================================================================ */
.gallery-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    padding: 3px;
    background: #ffffff;
    border: 2px solid rgba(22, 19, 29, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.gallery-thumb:hover {
    border-color: #7612e8;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: #7612e8;
    box-shadow: 0 4px 12px rgba(118, 18, 232, 0.3);
}

[data-theme="dark"] .gallery-thumb {
    background: #171322;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gallery-thumb.active {
    border-color: #9249f1;
    box-shadow: 0 4px 12px rgba(118, 18, 232, 0.4);
}

/* Rich Description Rendering */
.product-description-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #334155;
}

.product-description-content p {
    margin-bottom: 12px;
}

.product-description-content ul,
.product-description-content ol {
    margin-bottom: 14px;
    padding-inline-start: 22px;
}

.product-description-content li {
    margin-bottom: 8px;
}

.product-description-content strong {
    color: #0f172a;
    font-weight: 700;
}

[data-theme="dark"] .product-description-content {
    color: #cbd5e1;
}

[data-theme="dark"] .product-description-content strong {
    color: #ffffff;
}

/* ================================================================
   HeroDrop Modern Top Navbar Header & Controls
   ================================================================ */
.navbar-header {
    height: 64px !important;
    padding: 0 24px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(22, 19, 29, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

.navbar-header .row {
    width: 100% !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
}

[data-theme="dark"] .navbar-header {
    background: #0d0a14 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Navbar Search Input */
.navbar-search {
    position: relative !important;
    width: 290px !important;
    transition: width 0.25s ease !important;
}

.navbar-search:focus-within {
    width: 340px !important;
}

.navbar-search-input,
.navbar-search input {
    width: 100% !important;
    height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(22, 19, 29, 0.12) !important;
    background: #f8fafc !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
}

.navbar-search-input:focus,
.navbar-search input:focus {
    background: #ffffff !important;
    border-color: #7612e8 !important;
    box-shadow: 0 0 0 3px rgba(118, 18, 232, 0.15) !important;
}

.navbar-search-icon-wrap {
    pointer-events: none !important;
    z-index: 3 !important;
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}

.navbar-search:focus-within .navbar-search-icon-wrap {
    color: #7612e8 !important;
}

/* LTR layout for navbar search */
html[dir="ltr"] .navbar-search-icon-wrap,
body:not([dir="rtl"]) .navbar-search-icon-wrap {
    left: 18px !important;
    right: auto !important;
}

html[dir="ltr"] .navbar-search-input,
body:not([dir="rtl"]) .navbar-search-input,
html[dir="ltr"] .navbar-search input,
body:not([dir="rtl"]) .navbar-search input {
    padding-left: 54px !important;
    padding-right: 18px !important;
    text-align: left !important;
}

/* RTL layout for navbar search (Arabic) */
html[dir="rtl"] .navbar-search-icon-wrap,
html[lang="ar"] .navbar-search-icon-wrap {
    right: 18px !important;
    left: auto !important;
}

html[dir="rtl"] .navbar-search-input,
html[lang="ar"] .navbar-search-input,
html[dir="rtl"] .navbar-search input,
html[lang="ar"] .navbar-search input {
    padding-right: 54px !important;
    padding-left: 18px !important;
    text-align: right !important;
    direction: rtl !important;
}

[data-theme="dark"] .navbar-search-input {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .navbar-search-input:focus {
    background: #1c172a !important;
    border-color: #9249f1 !important;
    box-shadow: 0 0 0 3px rgba(118, 18, 232, 0.3) !important;
}

/* Lang switch pill base styling */
.lang-switch-pill {
    height: 38px !important;
    padding: 3px !important;
    background: #f1f5f9 !important;
    border: 1px solid rgba(22, 19, 29, 0.08) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
}

.lang-switch-pill .lang-btn {
    height: 30px !important;
    padding: 0 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.lang-switch-pill .lang-btn:hover {
    color: #7612e8 !important;
}

.lang-switch-pill .lang-btn.active {
    background: #7612e8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(118, 18, 232, 0.35) !important;
}

/* Theme toggle button & Notification button in header */
.theme-toggle-btn,
#notification-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f8fafc !important;
    border: 1px solid rgba(22, 19, 29, 0.08) !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.theme-toggle-btn:hover,
#notification-toggle-btn:hover {
    background: rgba(118, 18, 232, 0.08) !important;
    border-color: rgba(118, 18, 232, 0.25) !important;
    color: #7612e8 !important;
    transform: translateY(-1px) !important;
}

[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] #notification-toggle-btn {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] #notification-toggle-btn:hover {
    background: rgba(118, 18, 232, 0.2) !important;
    color: #c084fc !important;
}

/* ================================================================
   HeroDrop Seller Wallet Pill Widget in Header
   ================================================================ */
.header-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 5px;
    background: rgba(118, 18, 232, 0.08);
    border: 1px solid rgba(118, 18, 232, 0.2);
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    height: 40px;
}

.header-wallet-pill:hover {
    background: rgba(118, 18, 232, 0.15);
    border-color: #7612e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 18, 232, 0.2);
}

.header-wallet-pill .wallet-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #7612e8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.header-wallet-pill .wallet-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.header-wallet-pill .wallet-amount {
    font-size: 0.85rem;
    font-weight: 800;
    color: #7612e8;
    line-height: 1;
    font-family: 'IBM Plex Mono', monospace;
}

.header-wallet-pill .wallet-amount small {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
}

[data-theme="dark"] .header-wallet-pill {
    background: rgba(118, 18, 232, 0.18);
    border-color: rgba(146, 73, 241, 0.35);
}

[data-theme="dark"] .header-wallet-pill .wallet-amount {
    color: #c084fc;
}

/* RTL layout for wallet pill */
html[dir="rtl"] .header-wallet-pill,
html[lang="ar"] .header-wallet-pill {
    padding: 3px 5px 3px 12px;
}

/* Navbar Dropdown Menus in LTR (anchored to the right edge) */
.navbar-header .navbar-dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

/* Navbar Dropdown Menus in RTL (anchored to the left edge so it opens towards the center and is 100% visible) */
html[dir="rtl"] .navbar-header .navbar-dropdown-menu,
html[lang="ar"] .navbar-header .navbar-dropdown-menu {
    left: 0 !important;
    right: auto !important;
}

/* ==========================================================================
   HD Modern Cards (Payouts & Invoices - Clean, Balanced, Non-Overloaded)
   ========================================================================== */

.hd-payout-card,
.hd-invoice-card {
    background: #ffffff;
    border: 1px solid rgba(22, 19, 29, 0.08);
    border-radius: 16px !important;
    box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hd-payout-card:hover,
.hd-invoice-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08) !important;
}

/* Card Header */
.hd-payout-card-header,
.hd-invoice-card-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(22, 19, 29, 0.06);
}

/* Status Pill (Functional, Soft colors) */
.hd-payout-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1;
}

.hd-payout-status .hd-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hd-payout-status.status-pending {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #b45309 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}
.hd-payout-status.status-pending .hd-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.hd-payout-status.status-approved {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.hd-payout-status.status-approved .hd-status-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.hd-payout-status.status-rejected {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}
.hd-payout-status.status-rejected .hd-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Card Header Date */
.hd-card-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.70rem;
    font-weight: 600;
    color: #94a3b8;
}

.hd-card-meta-date iconify-icon {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Card Body */
.hd-payout-card-body,
.hd-invoice-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

/* Invoice Reference (Clean neutral monospace, NO bulky purple box) */
.hd-invoice-ref-meta {
    min-width: 0;
}

.hd-invoice-number {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'IBM Plex Mono', monospace;
    text-decoration: none;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.hd-invoice-number:hover {
    color: #7612e8;
}

.hd-inv-icon {
    font-size: 0.95rem;
    color: #94a3b8;
}

.hd-invoice-period {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 3px;
    line-height: 1.2;
}

/* Seller Identity Row (Neutral, Subtle Avatar) */
.hd-seller-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hd-seller-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hd-seller-info {
    min-width: 0;
    flex: 1;
}

.hd-seller-name {
    font-size: 0.80rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.hd-seller-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stats Strip (Neutral & Light) */
.hd-invoice-stats-strip {
    background: #f8fafc;
    border: 1px solid rgba(22, 19, 29, 0.06);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hd-stat-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hd-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 2px;
}

.hd-stat-val {
    font-size: 0.76rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.hd-stat-sep {
    color: #e2e8f0;
    font-size: 0.8rem;
}

/* Bank & RIB Box (Payouts) */
.hd-seller-rib-box {
    background: #f8fafc;
    border: 1px solid rgba(22, 19, 29, 0.05);
    border-radius: 10px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.70rem;
}

.hd-seller-rib-box .hd-rib-icon {
    font-size: 1.05rem;
    color: #64748b;
    flex-shrink: 0;
}

.hd-seller-rib-box .hd-rib-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hd-seller-rib-box .hd-bank-name {
    font-weight: 700;
    color: #475569;
    font-size: 0.68rem;
    line-height: 1.2;
}

.hd-seller-rib-box .hd-rib-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Balance Box (Payouts) */
.hd-payout-balance-box {
    background: #f8fafc;
    border: 1px solid rgba(22, 19, 29, 0.06);
    border-radius: 10px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hd-payout-balance-box .hd-balance-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}

.hd-payout-balance-box .hd-balance-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 800;
    color: #0f172a;
}

.hd-payout-balance-box .hd-bal-amount {
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 800;
    color: #0f172a;
}

.hd-payout-balance-box .hd-bal-cur {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 700;
}

/* Card Footer */
.hd-payout-card-footer,
.hd-invoice-card-footer {
    padding: 10px 14px 12px 14px;
    margin-top: auto;
    border-top: 1px solid rgba(22, 19, 29, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hd-payout-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Net Profit Amount (Emerald Green, NOT Purple) */
.text-success-amount {
    color: #059669 !important;
}

/* Clean Neutral Action Buttons (NO Purple Overkill) */
.hd-btn-action-clean {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hd-btn-action-clean:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.hd-btn-icon-clean {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hd-btn-icon-clean:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

/* Approve / Pay Button (Clean Emerald Green) */
.hd-btn-payout-approve {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #10b981;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
    text-decoration: none;
    line-height: 1.4;
}

.hd-btn-payout-approve:hover {
    background: #059669;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Processed Badge */
.hd-processed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
}

/* ==========================================================================
   Dark Mode Overrides for HD Cards (Payouts & Invoices)
   ========================================================================== */

[data-theme="dark"] .hd-payout-card,
[data-theme="dark"] .hd-invoice-card {
    background: #13101b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .hd-payout-card:hover,
[data-theme="dark"] .hd-invoice-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .hd-payout-card-header,
[data-theme="dark"] .hd-invoice-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .hd-invoice-number {
    color: #f8fafc !important;
}

[data-theme="dark"] .hd-invoice-number:hover {
    color: #c084fc !important;
}

[data-theme="dark"] .hd-seller-avatar {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .hd-seller-name {
    color: #ffffff !important;
}

[data-theme="dark"] .hd-seller-sub {
    color: #64748b !important;
}

[data-theme="dark"] .hd-invoice-stats-strip {
    background: #0d0b14 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .hd-stat-val {
    color: #ffffff !important;
}

[data-theme="dark"] .hd-stat-sep {
    color: #334155 !important;
}

[data-theme="dark"] .hd-seller-rib-box {
    background: #0d0b14 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .hd-seller-rib-box .hd-bank-name {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .hd-seller-rib-box .hd-rib-num {
    color: #94a3b8 !important;
}

[data-theme="dark"] .hd-payout-balance-box {
    background: #0d0b14 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .hd-payout-balance-box .hd-bal-amount {
    color: #ffffff !important;
}

[data-theme="dark"] .hd-payout-card-footer,
[data-theme="dark"] .hd-invoice-card-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .text-success-amount {
    color: #34d399 !important;
}

[data-theme="dark"] .hd-btn-action-clean {
    background: #171322 !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hd-btn-action-clean:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .hd-btn-icon-clean {
    background: #171322 !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hd-btn-icon-clean:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .hd-processed-badge {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
}


/* ── Payout Note Box ─────────────────────────────────────────── */
.hd-payout-note-box {
    background: #f8fafc;
    border: 1px solid rgba(22, 19, 29, 0.07);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.68rem;
    color: #64748b;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
    margin-top: 8px;
}

.hd-payout-note-box iconify-icon {
    font-size: 0.85rem;
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Dot Separator ───────────────────────────────────────────── */
.hd-dot-sep {
    font-size: 0.55rem;
    color: #cbd5e1;
    flex-shrink: 0;
}

/* ── Dark mode: note box & dot sep ──────────────────────────── */
[data-theme="dark"] .hd-payout-note-box {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .hd-dot-sep {
    color: #334155 !important;
}


/* ── Isolated Numeric & Currency Values ───────────────────────── */
.hd-money-val,
.ltr-val,
[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    white-space: nowrap !important;
}

/* ── Settings Suite Architecture (ColiSwift Design) ────────── */
.hd-settings-card {
    background: #ffffff !important;
    border: 1px solid rgba(22, 19, 29, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden;
}

.hd-settings-card .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(22, 19, 29, 0.06) !important;
    padding: 16px 20px !important;
}

.hd-sub-tile {
    background: #f8fafc !important;
    border: 1px solid rgba(22, 19, 29, 0.06) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.hd-sub-tile:focus-within {
    border-color: rgba(118, 18, 232, 0.35) !important;
    background: #faf9fd !important;
    box-shadow: 0 0 0 3px rgba(118, 18, 232, 0.05) !important;
}

.hd-upload-tile {
    background: #f8fafc;
    border: 1.5px dashed rgba(22, 19, 29, 0.14);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hd-upload-tile:hover {
    border-color: #7612e8;
    background: #faf8fe;
}

.hd-emoji-pill {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid rgba(22, 19, 29, 0.08);
    background: #ffffff;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
    transition: all 0.15s ease;
}

.hd-emoji-pill:hover,
.hd-emoji-pill.active {
    background: #f4edfe !important;
    color: #7612e8 !important;
    border-color: rgba(118, 18, 232, 0.3) !important;
}

/* Dark Mode Overrides for Settings Suite */
[data-theme="dark"] .hd-settings-card {
    background: #1e192c !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .hd-settings-card .card-header {
    background: #1e192c !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .hd-sub-tile {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .hd-sub-tile:focus-within {
    background: #1b1629 !important;
    border-color: rgba(118, 18, 232, 0.5) !important;
}

[data-theme="dark"] .hd-upload-tile {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .hd-upload-tile:hover {
    background: #201a30 !important;
    border-color: #7612e8 !important;
}

[data-theme="dark"] .hd-emoji-pill {
    background: #171322 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .hd-emoji-pill:hover,
[data-theme="dark"] .hd-emoji-pill.active {
    background: rgba(118, 18, 232, 0.2) !important;
    color: #c49eff !important;
    border-color: rgba(118, 18, 232, 0.4) !important;
}

/* ── Universal Action Icon Buttons (Edit, View, Delete, WhatsApp, Print) ── */
.btn-action-icon,
a.w-32-px.rounded-circle,
button.w-32-px.rounded-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 0 !important;
}

.btn-action-icon iconify-icon,
a.w-32-px.rounded-circle iconify-icon,
button.w-32-px.rounded-circle iconify-icon {
    font-size: 15px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Edit / Success */
.btn-action-edit,
.bg-success-focus.text-success-main,
a.bg-success-focus,
button.bg-success-focus {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}
.btn-action-edit:hover,
a.bg-success-focus:hover,
button.bg-success-focus:hover {
    background-color: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3) !important;
}
.btn-action-edit:hover iconify-icon,
a.bg-success-focus:hover iconify-icon,
button.bg-success-focus:hover iconify-icon {
    color: #ffffff !important;
}

/* View / Info */
.btn-action-view,
.bg-info-focus.text-info-main,
a.bg-info-focus,
button.bg-info-focus {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}
.btn-action-view:hover,
a.bg-info-focus:hover,
button.bg-info-focus:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
}
.btn-action-view:hover iconify-icon,
a.bg-info-focus:hover iconify-icon,
button.bg-info-focus:hover iconify-icon {
    color: #ffffff !important;
}

/* Delete / Danger */
.btn-action-delete,
.bg-danger-focus.text-danger-main,
a.bg-danger-focus,
button.bg-danger-focus {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}
.btn-action-delete:hover,
a.bg-danger-focus:hover,
button.bg-danger-focus:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3) !important;
}
.btn-action-delete:hover iconify-icon,
a.bg-danger-focus:hover iconify-icon,
button.bg-danger-focus:hover iconify-icon {
    color: #ffffff !important;
}

/* Dark mode overrides */
[data-theme="dark"] .btn-action-edit,
[data-theme="dark"] .bg-success-focus.text-success-main,
[data-theme="dark"] a.bg-success-focus,
[data-theme="dark"] button.bg-success-focus {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}
[data-theme="dark"] .btn-action-view,
[data-theme="dark"] .bg-info-focus.text-info-main,
[data-theme="dark"] a.bg-info-focus,
[data-theme="dark"] button.bg-info-focus {
    background-color: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}
[data-theme="dark"] .btn-action-delete,
[data-theme="dark"] .bg-danger-focus.text-danger-main,
[data-theme="dark"] a.bg-danger-focus,
[data-theme="dark"] button.bg-danger-focus {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}



/* ── Navbar Search Responsive Override ── */
@media (max-width: 991px) {
    .navbar-search {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 64px !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
        padding: 12px 16px !important;
    }
    .navbar-search.mobile-search-active {
        display: flex !important;
        align-items: center !important;
    }
    .navbar-search:focus-within {
        width: 100% !important;
    }
    [data-theme="dark"] .navbar-search {
        background: #0d0a14 !important;
    }
}

/* ================================================================
   HeroDrop Catalogue 2.0 — Quick View, Badges, Wishlist, Mega-Filter
   ================================================================ */

/* Sort Select */
.product-sort-select {
    height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(22, 19, 29, 0.12) !important;
    background-color: #f8fafc !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    padding-inline-start: 14px !important;
    padding-inline-end: 28px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.product-sort-select:focus {
    border-color: #7612e8 !important;
    box-shadow: 0 0 0 3px rgba(118, 18, 232, 0.15) !important;
}

/* Price Dropdown Button */
.product-filter-btn {
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(22, 19, 29, 0.12) !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}
.product-filter-btn:hover,
.product-filter-btn.active {
    background: rgba(118, 18, 232, 0.08) !important;
    color: #7612e8 !important;
    border-color: #7612e8 !important;
}

/* Wishlist Toggle Button in Header */
.product-wishlist-toggle-btn {
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(22, 19, 29, 0.12) !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}
.product-wishlist-toggle-btn:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
}
.product-wishlist-toggle-btn.active {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}
.product-wishlist-toggle-btn.active iconify-icon {
    color: #ffffff !important;
}
.product-wishlist-toggle-btn.active .badge {
    background: #ffffff !important;
    color: #ef4444 !important;
}

/* Mega Filter Button & Dropdown */
.cat-mega-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid rgba(22, 19, 29, 0.12);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}
.cat-mega-filter-btn:hover {
    background: #7612e8;
    color: #ffffff;
    border-color: #7612e8;
}
.cat-mega-dropdown {
    width: 360px;
    max-height: 440px;
    overflow-y: auto;
    border: 1px solid rgba(22, 19, 29, 0.1);
    background: #ffffff;
    z-index: 1050;
}
.cat-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.cat-mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
}
.cat-mega-item:hover,
.cat-mega-item.active {
    background: rgba(118, 18, 232, 0.08);
    color: #7612e8;
    border-color: rgba(118, 18, 232, 0.2);
}

/* Active Filter Chips */
.active-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(118, 18, 232, 0.08);
    border: 1px solid rgba(118, 18, 232, 0.2);
    color: #7612e8;
    font-size: 0.78rem;
    font-weight: 600;
}
.filter-chip-remove {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}
.filter-chip-remove:hover {
    opacity: 1;
}

/* Badges on Card Top */
.hd-card-badge-top {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.hd-card-badge-top.winning {
    background: rgba(254, 114, 48, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.hd-card-badge-top.new {
    background: rgba(118, 18, 232, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Floating Wishlist Heart on Card */
.hd-card-wishlist-btn {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 19, 29, 0.08);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    color: #94a3b8;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.hd-card-wishlist-btn:hover {
    transform: scale(1.15);
    color: #ef4444;
    background: #ffffff;
}
.hd-card-wishlist-btn.active {
    color: #ef4444;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.hd-card-wishlist-btn.active .hd-wishlist-ic {
    animation: hdHeartPop 0.35s ease;
}
.hd-table-wishlist-btn.active .hd-wishlist-ic {
    color: #ef4444 !important;
}
@keyframes hdHeartPop {
    0% { transform: scale(0.7); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Floating Quick View button on card hover */
.hd-card-quickview-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translate(-50%, 15px);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}
.hd-product-card:hover .hd-card-quickview-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.hd-card-quickview-btn:hover {
    background: #7612e8;
    color: #ffffff;
    border-color: #7612e8;
}

/* Profit Margin Pill on Card */
.hd-profit-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Quick View Modal styling */
#quickViewModal .modal-dialog {
    max-width: 860px;
    margin: 1.75rem auto;
}
#quickViewModal .modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
    background: #ffffff;
    overflow: hidden;
}
.qv-modal-close-btn {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.qv-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}
.qv-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    height: auto !important;
    max-height: 28px !important;
    box-sizing: border-box !important;
}
.qv-badge.category {
    background: rgba(118, 18, 232, 0.08);
    color: #7612e8;
    border: 1px solid rgba(118, 18, 232, 0.2);
}
.qv-badge.winning {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.25);
}
.qv-badge.new {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.25);
}
.qv-image-box {
    aspect-ratio: 1/1;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(22, 19, 29, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qv-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: opacity 0.15s ease;
}
.qv-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 10px;
}
.qv-thumb-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(22, 19, 29, 0.1);
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.qv-thumb-btn:hover,
.qv-thumb-btn.active {
    border-color: #7612e8 !important;
    box-shadow: 0 0 0 2px rgba(118, 18, 232, 0.25);
}
.qv-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qv-profit-box {
    background: #f8fafc;
    border-color: rgba(22, 19, 29, 0.08) !important;
}

[data-theme="dark"] #quickViewModal .modal-content {
    background: #13101b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .qv-modal-close-btn {
    background: #1e192c;
    color: #94a3b8;
}
[data-theme="dark"] .qv-modal-close-btn:hover {
    background: #2a233d;
    color: #ffffff;
}
[data-theme="dark"] .qv-image-box,
[data-theme="dark"] .qv-profit-box {
    background: #0d0a14 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .qv-thumb-btn {
    background: #13101b;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dark mode adjustments */
[data-theme="dark"] .product-sort-select,
[data-theme="dark"] .product-filter-btn,
[data-theme="dark"] .product-wishlist-toggle-btn {
    background: #181424 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .cat-mega-filter-btn {
    background: #181424;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
[data-theme="dark"] .cat-mega-dropdown {
    background: #181424;
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .cat-mega-item {
    background: #13101b;
    color: #cbd5e1;
}
[data-theme="dark"] .hd-card-wishlist-btn {
    background: rgba(24, 20, 36, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    color: #64748b;
}
[data-theme="dark"] .hd-profit-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .hd-qv-main-img-wrap,
[data-theme="dark"] .hd-qv-profit-card {
    background: #13101b;
    border-color: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════
   🔥✨ Badge Filter Buttons — Top Vente / Nouveau
   ══════════════════════════════════════════════ */
.hd-badge-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid transparent;
    background: var(--neutral-100, #f5f5f5);
    color: var(--neutral-700, #444);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.hd-badge-filter-btn:hover {
    background: var(--neutral-200, #e9e9e9);
    border-color: var(--neutral-300, #ccc);
    color: var(--neutral-900, #111);
    transform: translateY(-1px);
}
/* Active state — 🔥 Top Vente */
#filterWinningBtn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #ff6b35;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}
/* Active state — ✨ Nouveau */
#filterNewBtn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}
/* Dark mode */
[data-theme="dark"] .hd-badge-filter-btn {
    background: var(--neutral-700, #333);
    color: var(--neutral-200, #ddd);
    border-color: var(--neutral-600, #555);
}
[data-theme="dark"] .hd-badge-filter-btn:hover {
    background: var(--neutral-600, #444);
}
