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

:root {
    /* Color Tokens (User Requested Palette: #EEFABD, #A0D585, #6984A9, #263B6A) */
    --primary: #263B6A;
    --primary-hover: #1D2D50;
    --primary-light: #3A5693;
    --accent: #A0D585;
    --accent-hover: #8BC26F;
    --secondary: #6984A9;
    --highlight: #EEFABD;
    
    /* Light Theme Palette */
    --bg-main: #FAFCEF;       /* Soft, clean cream-lime tint from #EEFABD */
    --bg-surface: #EEFABD;    /* Requested pastel lime-cream for surfaces & highlights */
    --bg-card: #FFFFFF;       /* Pure white for maximum contrast and clean layouts */
    --bg-subtle: #F2F7E2;     /* Gentle contrast background for inputs & inner boxes */
    --bg-glass: rgba(255, 255, 255, 0.90);
    
    /* Text Colors */
    --text-primary: #263B6A;   /* Deep Navy Blue for readable, premium typography */
    --text-secondary: #4C6488; /* Slate Blue for subheadings and metadata */
    --text-muted: #6984A9;     /* Requested Slate Blue for muted text and icons */
    
    /* Status Colors */
    --success: #3D8526;
    --error: #D9383A;
    --info: #6984A9;
    --warning: #C78200;
    
    /* Borders & Shadows */
    --border-light: rgba(105, 132, 169, 0.25); /* #6984A9 at 25% opacity */
    --border-glow: rgba(160, 213, 133, 0.65);  /* #A0D585 glow */
    --shadow-sm: 0 2px 8px rgba(38, 59, 106, 0.06);
    --shadow-md: 0 8px 24px rgba(38, 59, 106, 0.08);
    --shadow-glow: 0 0 20px rgba(160, 213, 133, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(160, 213, 133, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(238, 250, 189, 0.6) 0%, transparent 45%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

button, input, select, textarea {
    font-family: inherit;
}

/* App Shell Layout */
main {
    flex-grow: 1;
    padding-top: 85px; /* Offset for sticky nav */
}

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

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    height: 80px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-logo i {
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(160, 213, 133, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Cart Badge */
.cart-btn {
    position: relative;
    padding: 10px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.cart-btn:hover {
    background: var(--bg-surface);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(160, 213, 133, 0.35);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #FFFFFF;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(38, 59, 106, 0.18), var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 59, 106, 0.25);
}

.btn-secondary {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

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

.btn-accent {
    background: var(--accent);
    border: 1px solid var(--accent-hover);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(160, 213, 133, 0.3);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(160, 213, 133, 0.45);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(217, 56, 58, 0.3);
    color: var(--error);
}

.btn-outline-danger:hover {
    background: rgba(217, 56, 58, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(38, 59, 106, 0.12);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(38, 59, 106, 0.04);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(105, 132, 169, 0.18);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control option {
    background-color: #FFFFFF;
    color: var(--text-primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-retail {
    background: var(--bg-surface);
    color: var(--primary);
    border: 1px solid #D5E59C;
    font-weight: 700;
}

.badge-wholesale {
    background: rgba(105, 132, 169, 0.15);
    color: var(--primary);
    border: 1px solid rgba(105, 132, 169, 0.35);
    font-weight: 700;
}

.badge-success {
    background: rgba(160, 213, 133, 0.25);
    color: var(--primary);
    border: 1px solid var(--accent);
    font-weight: 700;
}

.badge-warning {
    background: rgba(217, 144, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(217, 144, 0, 0.3);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .grid-4 { grid-template-columns: 1fr; gap: 16px; }
    .grid-3 { grid-template-columns: 1fr; gap: 16px; }
    .grid-2 { grid-template-columns: 1fr; gap: 16px; }
}

/* Toast Notification Styling */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    background: #FFFFFF;
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(38, 59, 106, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

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

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-icon {
    font-size: 18px;
    margin-top: 2px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-info .toast-icon { color: var(--info); }

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.toast-close:hover {
    color: var(--text-primary);
}

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

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

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   Responsive Sidebar System
   ========================================================================== */

.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Left Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: #FFFFFF;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-main);
}

.sidebar-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 0;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px;
}

.sidebar-menu-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-left: 12px;
}

.sidebar-item-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-item-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.sidebar-item-link:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.sidebar-item-link:hover i {
    color: var(--primary);
}

.sidebar-item-link.active {
    background: var(--bg-surface);
    color: var(--primary);
    border: 1px solid var(--accent);
    font-weight: 700;
}

.sidebar-item-link.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    margin-top: 24px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 15px;
}

/* Right Dashboard Main Area */
.dashboard-main-area {
    flex-grow: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    width: calc(100% - 280px);
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    transition: margin-left 0.3s ease, width 0.3s ease;
    padding-top: 80px;
}

/* Dashboard Topbar */
.dashboard-topbar {
    height: 80px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: var(--shadow-sm);
    gap: 16px;
    box-sizing: border-box;
    transition: left 0.3s ease;
}

.topbar-left-area {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
}

.topbar-right-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.topbar-user-badge {
    font-size: 12px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mobile-menu-trigger {
    display: none;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 18px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* Sidebar Backdrop Overlay on Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.dashboard-container {
    padding: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .dashboard-main-area {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-top: 70px !important;
    }
    
    .dashboard-topbar {
        left: 0;
        height: 70px;
        padding: 0 16px;
        gap: 12px;
    }
    
    .topbar-left-area {
        gap: 10px;
    }
    
    .topbar-right-area {
        gap: 12px;
    }
    
    .topbar-title {
        font-size: 16px;
    }
    
    .mobile-menu-trigger {
        display: block;
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .dashboard-container {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .dashboard-main-area {
        padding-top: 64px !important;
    }

    .dashboard-container {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-topbar {
        height: 64px;
        padding: 0 12px;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .topbar-left-area {
        gap: 8px;
        min-width: 0;
        flex: 1 1 0%;
    }

    .topbar-right-area {
        gap: 8px;
        flex-shrink: 0;
    }

    .topbar-title {
        font-size: 15px;
    }

    .topbar-user-badge .badge-text {
        display: none; /* Hide text on phone screens <= 600px, keep icon */
    }

    .topbar-user-badge {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .cart-btn {
        padding: 8px !important;
    }
}

@media (max-width: 450px) {
    .topbar-title {
        font-size: 14px;
    }
    
    .topbar-user-badge {
        padding: 6px 8px !important;
    }
}

/* Public Guest Navbar Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 12px 0;
    }
    
    .navbar-container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 0 16px;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .nav-actions .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .nav-links {
        width: 100%;
        order: 3;
        justify-content: center;
        gap: 24px;
        padding-top: 10px;
        border-top: 1px solid var(--border-light);
        margin-top: 4px;
    }

    main {
        padding-top: 140px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 18px;
    }
    
    .nav-actions .btn-sm {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Admin Table Column Sizing
   ========================================================================== */
.admin-table th:nth-child(1),
.admin-table td:nth-child(1) { min-width: 60px; width: 60px; } 

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) { min-width: 180px; } 

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) { min-width: 160px; } 

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) { min-width: 110px; } 

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) { min-width: 110px; white-space: nowrap; } 

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) { min-width: 120px; white-space: nowrap; } 

.admin-table th:nth-child(7),
.admin-table td:nth-child(7) { min-width: 80px; } 

.admin-table th:nth-child(8),
.admin-table td:nth-child(8) { min-width: 120px; } 

.admin-table th:nth-child(9),
.admin-table td:nth-child(9) { min-width: 180px; white-space: nowrap; } 

.dashboard-container > .container {
    max-width: 100%;
    padding: 0;
}

/* ==========================================================================
   Light Theme Global Overrides for Tables, Containers & Surface Elements
   ========================================================================== */
.admin-table th, .data-table th {
    background: var(--bg-subtle) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--border-light) !important;
    font-weight: 700 !important;
}
.admin-table td, .data-table td {
    border-bottom: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
}
.admin-table tr:hover td, .data-table tr:hover td {
    background: var(--bg-subtle) !important;
}
.stat-card, .stat-card-admin, .order-card, .product-grid-card, .summary-card, .sidebar, .detail-card, .pricing-tier-card, .data-card, .filter-card {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text-primary) !important;
}
.order-header, .results-header, .data-card-header, .sidebar-title {
    background: var(--bg-main) !important;
    border-color: var(--border-light) !important;
    color: var(--text-primary) !important;
}
.product-price-section, .product-img-wrapper, .detail-img-section, .calculator-box, .stat-icon, .stat-icon-wrapper {
    background: var(--bg-subtle) !important;
    border-color: var(--border-light) !important;
}
.qty-updater input, .qty-btn, .page-link {
    background: #FFFFFF !important;
    border-color: var(--border-light) !important;
    color: var(--text-primary) !important;
}
.qty-btn:hover:not(:disabled), .page-link:hover, .page-link.active {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}
.product-cat-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary) !important;
    border-color: var(--accent) !important;
    box-shadow: var(--shadow-sm) !important;
    font-weight: 700 !important;
}
.summary-total, .tier-price, .stat-num, .price-val {
    color: var(--text-primary) !important;
}
.price-val.wholesale, .tier-price.unlocked {
    color: var(--success) !important;
}
.category-card {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
    color: var(--text-primary) !important;
}
.category-card:hover {
    background: var(--bg-subtle) !important;
    border-color: var(--secondary) !important;
}
.category-icon {
    background: var(--bg-subtle) !important;
    border-color: var(--border-light) !important;
    color: var(--primary) !important;
}
.category-card:hover .category-icon {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}
.cta-card-buyer {
    background: linear-gradient(135deg, rgba(105, 132, 169, 0.12) 0%, rgba(238, 250, 189, 0.4) 100%) !important;
    border: 1px solid var(--secondary) !important;
}
.cta-card-seller {
    background: linear-gradient(135deg, rgba(160, 213, 133, 0.2) 0%, rgba(238, 250, 189, 0.4) 100%) !important;
    border: 1px solid var(--accent) !important;
}
.hero::before {
    background: radial-gradient(circle, rgba(160, 213, 133, 0.3) 0%, transparent 70%) !important;
}
.search-bar-hero input {
    background: #FFFFFF !important;
    border-color: var(--border-light) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md) !important;
}
.search-bar-hero input:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(105, 132, 169, 0.2) !important;
}

/* Password Toggle Wrapper & Button */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper .form-control {
    padding-right: 44px;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    border-radius: 4px;
}
.password-toggle-btn:hover {
    color: var(--primary);
    background: rgba(105, 132, 169, 0.1);
}
.password-toggle-btn:focus {
    outline: none;
    color: var(--primary);
}
