/**
 * TOSERBASH - Ultra Modern Theme CSS
 * Single Color Palette with Consistent Dark/Light Mode
 * Primary Color: #0EA5E9 (Sky Blue) - Modern, Clean, Professional
 */

/* =====================================================
   CSS VARIABLES - UNIFIED COLOR SYSTEM
   ===================================================== */
:root {
    /* Primary Colors - Sky Blue Theme */
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #38BDF8;
    --primary-bg: rgba(14, 165, 233, 0.12);
    --primary-bg-hover: rgba(14, 165, 233, 0.18);
    --primary-hover: #0284C7;

    /* Status Colors */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.12);
    --info: #06B6D4;
    --info-bg: rgba(6, 182, 212, 0.12);

    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);

    /* Header & Nav */
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: #e2e8f0;

    /* Bottom Nav - Modern Floating Style */
    --bottom-nav-bg: rgba(255, 255, 255, 0.95);
    --bottom-nav-border: rgba(255, 255, 255, 0.1);
    --bottom-nav-icon-bg: transparent;
    --bottom-nav-text: #64748b;
    --bottom-nav-icon-color: #64748b;

    /* Input */
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus: #0EA5E9;
    --input-placeholder: #94a3b8;

    /* Button Text */
    --btn-text-light: #ffffff;
    --btn-text-dark: #0f172a;

    /* Primary Light (for icon backgrounds) */
    --primary-light: rgba(14, 165, 233, 0.1);
}

.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.95);
    --bg-elevated: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    --border-light: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    --primary-hover: #38BDF8;

    --header-bg: rgba(15, 23, 42, 0.92);
    --header-border: rgba(255, 255, 255, 0.08);

    /* Bottom Nav - Modern Floating Style */
    --bottom-nav-bg: rgba(30, 41, 59, 0.98);
    --bottom-nav-border: rgba(255, 255, 255, 0.08);
    --bottom-nav-icon-bg: transparent;
    --bottom-nav-text: #94a3b8;
    --bottom-nav-icon-color: #94a3b8;

    --input-bg: #1e293b;
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: #0EA5E9;
    --input-placeholder: #64748b;

    --btn-text-light: #ffffff;
    --btn-text-dark: #0f172a;

    /* Primary Light (for icon backgrounds) */
    --primary-light: rgba(14, 165, 233, 0.2);
}

/* =====================================================
   BASE STYLES
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: var(--btn-text-light);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

@media (min-width: 640px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

p { color: var(--text-secondary); line-height: 1.7; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--primary-light); }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: 5rem 0; } }

/* =====================================================
   HEADER & SCROLL EFFECT
   ===================================================== */
#header {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border) !important;
    transition: all 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#header .absolute {
    background: var(--header-bg) !important;
}

#header .border-b {
    border-color: var(--header-border) !important;
}

/* =====================================================
   HEADER BUTTONS
   ===================================================== */
.header-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-primary);
}

/* Icon color inside header buttons */
.header-btn i, .header-btn svg {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.header-btn:hover i, .header-btn:hover svg {
    color: var(--text-primary);
}

@media (min-width: 768px) { .header-btn { width: 44px; height: 44px; } }

/* =====================================================
   NAVIGATION LINKS
   ===================================================== */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-bg) !important;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; border-radius: 10px; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 16px; }

/* Primary Button - White text for readability on blue background */
.btn-primary {
    background: var(--primary) !important;
    color: var(--btn-text-light) !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: var(--btn-text-light) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Icon inside primary button - always white */
.btn-primary i, .btn-primary svg {
    color: var(--btn-text-light) !important;
}

/* Outline Button - Dark text for contrast */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-medium);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Icon inside outline button */
.btn-outline i, .btn-outline svg {
    color: var(--text-primary);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Icon inside ghost button */
.btn-ghost i, .btn-ghost svg {
    color: var(--text-secondary);
}

.btn-ghost:hover i, .btn-ghost:hover svg {
    color: var(--text-primary);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-medium);
}

.btn-secondary i, .btn-secondary svg {
    color: var(--text-primary);
}

/* Success Button */
.btn-success {
    background: var(--success) !important;
    color: var(--btn-text-light) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: var(--success) !important;
    filter: brightness(0.9);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-success i, .btn-success svg {
    color: var(--btn-text-light) !important;
}

/* Danger Button */
.btn-danger {
    background: var(--error) !important;
    color: var(--btn-text-light) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--error) !important;
    filter: brightness(0.9);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger i, .btn-danger svg {
    color: var(--btn-text-light) !important;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.2s;
}

.card:hover { border-color: var(--border-medium); }

.card-body { padding: 1rem; }
@media (min-width: 768px) { .card-body { padding: 1.25rem; } }

.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-input::placeholder { color: var(--input-placeholder); }
.form-input.error { border-color: var(--error); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-error { font-size: 0.8125rem; color: var(--error); margin-top: 0.5rem; }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-secondary { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error { background: var(--error-bg); color: var(--error); }

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.animate-bounce-subtle { animation: badge-bounce 0.3s ease-in-out; }

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.alert-success { border-color: rgba(16, 185, 129, 0.3); background: var(--success-bg); }
.alert-error { border-color: rgba(239, 68, 68, 0.3); background: var(--error-bg); }
.alert-info { border-color: rgba(6, 182, 212, 0.3); background: var(--info-bg); }
.alert-warning { border-color: rgba(245, 158, 11, 0.3); background: var(--warning-bg); }

/* =====================================================
   THEME TOGGLE
   ===================================================== */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-primary);
}

/* Icon inside theme toggle */
.theme-toggle i, .theme-toggle svg {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.theme-toggle:hover i, .theme-toggle:hover svg {
    color: var(--text-primary);
}

/* =====================================================
   ICONS
   ===================================================== */
i[class*="fa-"], i[class*="fas"], i[class*="far"], i[class*="fal"], i[class*="fab"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

i.w-3, i.w-3.h-3 { width: 0.75rem; height: 0.75rem; min-width: 0.75rem; min-height: 0.75rem; }
i.w-4, i.w-4.h-4 { width: 1rem; height: 1rem; min-width: 1rem; min-height: 1rem; }
i.w-5, i.w-5.h-5 { width: 1.25rem; height: 1.25rem; min-width: 1.25rem; min-height: 1.25rem; }
i.w-6, i.w-6.h-6 { width: 1.5rem; height: 1.5rem; min-width: 1.5rem; min-height: 1.5rem; }
i.w-7, i.w-7.h-7 { width: 1.75rem; height: 1.75rem; min-width: 1.75rem; min-height: 1.75rem; }
i.w-8, i.w-8.h-8 { width: 2rem; height: 2rem; min-width: 2rem; min-height: 2rem; }

/* Icon Colors */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-error { color: var(--error) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* Icon inside colored elements - ensure visibility */
.bg-primary i, .bg-primary svg,
.btn-primary i, .btn-primary svg,
.bg-success i, .bg-success svg,
.btn-success i, .btn-success svg,
.bg-error i, .bg-error svg,
.btn-danger i, .btn-danger svg,
.bg-warning i, .bg-warning svg,
.bg-info i, .bg-info svg {
    color: var(--btn-text-light) !important;
}

/* =====================================================
   HEADER USER DROPDOWN
   ===================================================== */
#userMenuContainer { position: relative; }
#userMenuContainer > #userDropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
}
#userDropdown { width: 18rem; z-index: 100 !important; transform-origin: top right; }
#userDropdown .card { background: var(--bg-card); border-color: var(--border-medium); }
#userDropdown.opacity-0 { opacity: 0 !important; }
#userDropdown.invisible { visibility: hidden !important; }
#userMenuToggle { cursor: pointer; position: relative; z-index: 101; }
#userMenuToggle:hover { background: var(--bg-secondary) !important; }
#userMenuToggle.active { background: var(--primary-bg) !important; }

/* =====================================================
   MOBILE BOTTOM NAVIGATION - MODERN REDESIGN
   ===================================================== */
#mobileBottomNav {
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: transparent !important;
    border: none !important;
}

/* Floating Container with Glass Effect */
#mobileBottomNav .flex.items-center.justify-around {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    background: var(--bottom-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    height: 72px;
    padding: 0 8px;
    z-index: 100;
}

/* Dark mode specific shadow */
.dark #mobileBottomNav .flex.items-center.justify-around {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 10px 20px -5px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Nav Item Container */
#mobileBottomNav .mobile-nav-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 72px;
}

/* Nav Item Active State */
#mobileBottomNav .mobile-nav-item.active {
    background: var(--primary-bg);
}

#mobileBottomNav .mobile-nav-item.active .mobile-nav-icon {
    background: transparent;
}

/* Icon Container - Pill Shape */
#mobileBottomNav .mobile-nav-icon {
    position: relative;
    width: 48px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

/* Icon styling */
#mobileBottomNav .mobile-nav-icon i,
#mobileBottomNav .mobile-nav-icon svg {
    color: var(--bottom-nav-icon-color) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    width: 20px;
    height: 20px;
}

/* Active Icon styling */
#mobileBottomNav .mobile-nav-item.active .mobile-nav-icon i,
#mobileBottomNav .mobile-nav-item.active .mobile-nav-icon svg {
    color: var(--primary) !important;
    transform: scale(1.1);
}

/* Label styling */
#mobileBottomNav .mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--bottom-nav-text);
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* Active Label */
#mobileBottomNav .mobile-nav-item.active .mobile-nav-label {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Press/Tap effect */
#mobileBottomNav .mobile-nav-item:active .mobile-nav-icon {
    transform: scale(0.92);
}

#mobileBottomNav .mobile-nav-item:active .mobile-nav-icon i,
#mobileBottomNav .mobile-nav-item:active .mobile-nav-icon svg {
    transform: scale(0.9);
}

/* Hover effect for desktop-like devices */
@media (hover: hover) {
    #mobileBottomNav .mobile-nav-item:hover .mobile-nav-icon {
        background: var(--bg-secondary);
    }

    #mobileBottomNav .mobile-nav-item:hover .mobile-nav-icon i,
    #mobileBottomNav .mobile-nav-item:hover .mobile-nav-icon svg {
        color: var(--primary) !important;
    }

    #mobileBottomNav .mobile-nav-item:hover .mobile-nav-label {
        color: var(--primary) !important;
    }
}

/* Badge Styling - Floating Style */
#mobileBottomNav .rounded-full,
#mobileBottomNav #bottomCartBadge,
#mobileBottomNav #bottomWishlistBadge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    animation: badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Cart Badge */
#mobileBottomNav #bottomCartBadge {
    background: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4) !important;
}

/* Wishlist Badge */
#mobileBottomNav #bottomWishlistBadge {
    background: var(--error) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
}

/* Pink Badge Override */
#mobileBottomNav .bg-pink-500 {
    background: var(--error) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
}

/* Badge Pop Animation */
@keyframes badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Safe area bottom */
.safe-area-bottom {
    padding-bottom: max(env(safe-area-inset-bottom), 0.5rem);
}

/* Home indicator spacing for iPhone */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #mobileBottomNav .flex.items-center.justify-around {
        bottom: max(20px, calc(16px + env(safe-area-inset-bottom)));
    }
}

/* Hide scrollbar on mobile */
@media (max-width: 639px) {
    body { padding-bottom: 100px; }
}

/* Subtle gradient overlay on nav for depth */
#mobileBottomNav::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 99;
}

/* =====================================================
   HEADER BADGES (Cart, Wishlist)
   ===================================================== */
#cartBadge, #wishlistBadge, #bottomCartBadge, #bottomWishlistBadge {
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
}

#cartBadge, #bottomCartBadge {
    background: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4) !important;
    color: white !important;
}

#wishlistBadge, #bottomWishlistBadge {
    background: var(--error) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
    color: white !important;
}

/* Mode terang - badge tetap jelas */
.light #cartBadge, .light #bottomCartBadge {
    background: #0284C7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.5) !important;
    color: white !important;
}

.light #wishlistBadge, .light #bottomWishlistBadge {
    background: #DC2626 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5) !important;
    color: white !important;
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.product-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--primary); }
.product-card-price { font-size: 1.125rem; font-weight: 700; color: var(--primary); }

/* =====================================================
   WISHLIST BUTTON
   ===================================================== */
.product-card-wishlist, .wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

/* Wishlist icon color */
.product-card-wishlist i, .product-card-wishlist svg,
.wishlist-btn i, .wishlist-btn svg {
    color: var(--text-secondary);
    transition: color 0.2s;
}

@media (min-width: 768px) {
    .product-card-wishlist, .wishlist-btn { width: 40px; height: 40px; }
}

.product-card:hover .product-card-wishlist,
.product-card:hover .wishlist-btn { opacity: 1; transform: translateY(0); }

.product-card-wishlist:hover, .wishlist-btn:hover {
    background: var(--error-bg);
    border-color: var(--error);
}

.product-card-wishlist:hover i, .product-card-wishlist:hover svg,
.wishlist-btn:hover i, .wishlist-btn:hover svg {
    color: var(--error);
}

.product-card-wishlist.active, .wishlist-btn.active {
    color: var(--error);
    opacity: 1;
    transform: translateY(0);
}

.product-card-wishlist.active i, .product-card-wishlist.active svg,
.wishlist-btn.active i, .wishlist-btn.active svg {
    color: var(--error);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination-btn.active { background: var(--primary); border-color: var(--primary); color: var(--btn-text-light); }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Pagination icon */
.pagination-btn i, .pagination-btn svg {
    color: var(--text-secondary);
}

.pagination-btn:hover i, .pagination-btn:hover svg {
    color: var(--primary);
}

.pagination-btn.active i, .pagination-btn.active svg {
    color: var(--btn-text-light);
}

/* =====================================================
   ORDER SUMMARY
   ===================================================== */
.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.order-summary-row:last-child { border-bottom: none; padding-top: 1rem; margin-top: 0.5rem; }
.order-summary-total { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }

/* =====================================================
   QUANTITY SELECTOR
   ===================================================== */
.quantity-selector { display: flex; align-items: center; gap: 0.5rem; }

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

/* Quantity button icon */
.quantity-btn i, .quantity-btn svg {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.quantity-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
}

.quantity-btn:hover i, .quantity-btn:hover svg {
    color: var(--primary);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* =====================================================
   MODALS
   ===================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal.active { opacity: 1; visibility: visible; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-title { font-size: 1.125rem; font-weight: 700; }

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

/* Modal close icon */
.modal-close i, .modal-close svg {
    color: var(--text-secondary);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-close:hover i, .modal-close:hover svg {
    color: var(--text-primary);
}

.modal-body { padding: 1.25rem; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

/* =====================================================
   SEARCH MODAL
   ===================================================== */
#searchModal #searchContent {
    background: var(--bg-card) !important;
    border-color: var(--border-medium) !important;
}

#searchInput { color: var(--text-primary) !important; }
#searchBackdrop { background: rgba(0, 0, 0, 0.5); }

/* Search Results Styling */
#searchResults {
    color: var(--text-secondary) !important;
}

#searchResults a,
#searchResults > div {
    border-bottom: 1px solid var(--border-light) !important;
}

#searchResults a:hover {
    background: var(--bg-secondary);
}

#searchResults i {
    color: var(--text-muted);
}

#searchResults p {
    color: var(--text-secondary);
}

/* Product name and price in search results */
#searchResults .font-medium.truncate,
#searchResults .product-name,
#searchResults .search-result-name {
    color: var(--text-primary) !important;
}

#searchResults .text-sm,
#searchResults .product-price,
#searchResults .search-result-price {
    color: var(--primary) !important;
}

#searchResults .search-result-item {
    border-bottom: 1px solid var(--border-light) !important;
}

#searchResults .search-result-item img {
    background: var(--bg-secondary) !important;
}

/* Search result empty/loading states */
#searchResults .p-8 {
    color: var(--text-muted) !important;
}

#searchResults .p-8 i {
    color: var(--text-muted) !important;
}

#searchResults .p-8 p {
    color: var(--text-secondary) !important;
}

/* Search icon in input */
#searchInput::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* =====================================================
   PRODUCT GRID & CARDS (Pages Products)
   ===================================================== */

/* Product Card Container */
.product-card,
[class*="grid"] > div[class*="rounded"] {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

/* Product Image Container */
.product-card .aspect-square,
[class*="grid"] > div .aspect-square {
    background: var(--bg-secondary) !important;
}

/* Product Title */
.product-card h3,
.product-card-title,
[class*="grid"] > div h3,
[class*="grid"] > div .line-clamp-2 {
    color: var(--text-primary) !important;
}

.product-card h3 a:hover,
[class*="grid"] > div h3 a:hover {
    color: var(--primary) !important;
}

/* Product Category Label */
.product-card .text-zinc-500,
.product-card .text-xs.uppercase,
[class*="grid"] > div .text-zinc-500,
.product-category-label {
    color: var(--text-muted) !important;
}

/* Product Price */
.product-card .text-primary,
.product-card .font-bold.text-primary,
.product-card-price,
[class*="grid"] > div .text-primary,
.product-price {
    color: var(--primary) !important;
}

/* Product Compare Price (Strikethrough) */
.product-card .line-through,
.product-compare-price,
[class*="grid"] > div .line-through {
    color: var(--text-muted) !important;
}

/* Product Type Badge */
.product-card .bg-zinc-100,
.product-type-badge,
.product-card .rounded-full.bg-zinc-100 {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
}

/* Wishlist Button on Product Card */
.product-card .top-2.right-2,
.wishlist-overlay-btn,
[class*="grid"] > div .absolute.top-2.right-2 {
    background: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
}

/* Quick Add Button on Product Card */
.product-card .absolute.bottom-2.right-2,
.quick-add-btn,
[class*="grid"] > div .absolute.bottom-2.right-2 {
    background: var(--primary) !important;
}

/* Product Card Hover Effects */
.product-card:hover,
[class*="grid"] > div:hover {
    border-color: var(--primary) !important;
}

/* Product Grid Spacing */
.products-grid,
.grid.grid-cols-2,
.grid.grid-cols-3,
.grid.grid-cols-4 {
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-grid,
    .sm\:grid-cols-2 {
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .products-grid,
    .lg\:grid-cols-3 {
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .products-grid,
    .xl\:grid-cols-4 {
        gap: 1.5rem;
    }
}

/* =====================================================
   MOBILE NAVIGATION SIDEBAR
   ===================================================== */
#mobileNav #mobileNavPanel {
    background: var(--bg-card) !important;
    border-color: var(--border-medium) !important;
}

#mobileNav a:hover { background: var(--bg-secondary); }

/* Mobile nav icons */
#mobileNav i, #mobileNav svg {
    color: var(--text-secondary);
}

/* =====================================================
   SITE FOOTER
   ===================================================== */
.site-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
}

/* Footer Divider Gradient */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
}

/* Footer Main Background */
.site-footer {
    background: var(--bg-secondary);
}

/* Footer Brand Section */
.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.footer-logo i {
    color: white;
    font-size: 1.25rem;
}

.footer-brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Footer Social Buttons */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-btn i {
    font-size: 1rem;
}

.footer-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer Section */
.footer-section {
    display: flex;
    flex-direction: column;
}

/* Footer Heading */
.footer-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-heading i {
    color: var(--primary);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links li a i {
    font-size: 0.625rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: var(--primary);
}

.footer-links li a:hover i {
    color: var(--primary);
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-contact-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.footer-contact-icon i {
    font-size: 1rem;
    color: var(--primary);
}

.footer-contact-icon-whatsapp i {
    color: #10B981;
}

.footer-contact-text {
    flex: 1;
    word-break: break-word;
}

/* Footer Newsletter */
.footer-newsletter {
    margin-top: 1.5rem;
}

.footer-newsletter-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-newsletter-heading i {
    color: var(--primary);
}

.footer-newsletter-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-input-wrapper {
    position: relative;
    flex: 1;
}

.footer-newsletter-input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.footer-newsletter-input::placeholder {
    color: var(--text-muted);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.footer-newsletter-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-newsletter-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-newsletter-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.footer-newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer-newsletter-btn i {
    font-size: 0.875rem;
}

.footer-newsletter-status {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #10B981;
    display: none;
}

.footer-newsletter-status.show {
    display: block;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
    }
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-copyright i {
    color: var(--primary);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal-links a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a i {
    font-size: 0.75rem;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-legal-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    z-index: 40;
}

.back-to-top-btn i {
    font-size: 1.25rem;
}

.back-to-top-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.5);
}

/* =====================================================
   LOADING & EMPTY STATES
   ===================================================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty-state-icon { color: var(--text-muted); opacity: 0.5; }

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }

.toast-icon { width: 24px; height: 24px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }
.toast-message { flex: 1; font-size: 0.9375rem; color: var(--text-primary); }

/* Toast Container - Bottom centered for mobile */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .toast-container {
        bottom: 24px;
        right: 24px;
        left: auto;
        margin: 0;
        max-width: none;
    }
}

/* Mobile Toast - Smaller, less intrusive */
@media (max-width: 639px) {
    .toast {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    .toast-icon { width: 20px; height: 20px; }
}

/* Custom Toast Notification System */
#customToastContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 48px);
    max-width: 360px;
    pointer-events: none;
}

@media (min-width: 640px) {
    #customToastContainer {
        top: auto;
        bottom: 24px;
        right: 24px;
        left: auto;
        transform: none;
        width: auto;
        max-width: 360px;
    }
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-notification.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

.toast-notification-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-notification.success .toast-notification-icon { background: var(--success-bg); color: var(--success); }
.toast-notification.error .toast-notification-icon { background: var(--error-bg); color: var(--error); }
.toast-notification.warning .toast-notification-icon { background: var(--warning-bg); color: var(--warning); }
.toast-notification.info .toast-notification-icon { background: var(--info-bg); color: var(--info); }

.toast-notification-content {
    flex: 1;
    min-width: 0;
}

.toast-notification-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-notification-message {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-notification-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.toast-notification-close i, .toast-notification-close svg {
    color: var(--text-muted);
}

.toast-notification-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.toast-notification-close:hover i, .toast-notification-close:hover svg {
    color: var(--text-primary);
}

/* =====================================================
   SWEETALERT2 CUSTOM STYLES
   ===================================================== */
.swal2-popup {
    background: var(--bg-card) !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-medium) !important;
}

.swal2-title { color: var(--text-primary) !important; font-weight: 600 !important; }
.swal2-html-container { color: var(--text-secondary) !important; }

.swal2-input {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
}

.swal2-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-bg) !important;
}

.swal2-confirm {
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.5rem !important;
    background: var(--primary) !important;
    color: var(--btn-text-light) !important;
}

.swal2-confirm:hover { background: var(--primary-dark) !important; }
.swal2-cancel {
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.5rem !important;
}

.swal2-backdrop-show { background: rgba(0, 0, 0, 0.6) !important; backdrop-filter: blur(4px) !important; }

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.glass-card:hover { background: var(--bg-elevated); border-color: var(--border-medium); }

/* Remove box-shadow on hover for cards and grid items - no ugly shadows */
[class*="grid"] > div:hover,
.product-card:hover,
.card:hover,
.glass-card:hover {
    box-shadow: none !important;
}

/* Only keep shadow on hover for buttons */
.btn:hover {
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3) !important;
}

.btn-success:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.btn-danger:hover,
.btn-error:hover {
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--info) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
@media (max-width: 639px) { .hide-mobile { display: none !important; } }
@media (min-width: 640px) { .sm-hidden { display: none !important; } }
@media (max-width: 767px) { .md-hidden { display: none !important; } }
@media (min-width: 768px) { .md-block { display: block; } .md-flex { display: flex; } }
@media (min-width: 1024px) { .lg-flex { display: flex; } .lg-hidden { display: none !important; } }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.3s ease; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease; }

.stagger > * { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* =====================================================
   TEXT COLORS - ALL ELEMENTS
   ===================================================== */
.text-zinc-100, .text-zinc-200, .text-zinc-300, .text-zinc-400, .text-zinc-500 { color: var(--text-secondary) !important; }
.text-zinc-600 { color: var(--text-secondary) !important; }
.text-zinc-700 { color: var(--text-secondary) !important; }
.text-zinc-800 { color: var(--text-primary) !important; }
.text-zinc-900 { color: var(--text-primary) !important; }
.text-white { color: var(--text-primary) !important; }

/* =====================================================
   BACKGROUND COLORS - ALL ELEMENTS
   ===================================================== */
.bg-white { background-color: var(--bg-primary) !important; }
.bg-zinc-50 { background-color: var(--bg-secondary) !important; }
.bg-zinc-100 { background-color: var(--bg-secondary) !important; }
.bg-zinc-200 { background-color: var(--bg-tertiary) !important; }
.bg-zinc-800 { background-color: var(--bg-elevated) !important; }
.bg-zinc-900 { background-color: var(--bg-primary) !important; }
.bg-\[\#18181b\] { background-color: var(--bg-secondary) !important; }
.bg-\[\#27272a\] { background-color: var(--bg-tertiary) !important; }

/* =====================================================
   BORDER COLORS - ALL ELEMENTS
   ===================================================== */
.border-zinc-200 { border-color: var(--border-light) !important; }
.border-zinc-300 { border-color: var(--border-medium) !important; }
.border-white\/5 { border-color: var(--border-light) !important; }
.border-white\/10 { border-color: var(--border-medium) !important; }
.border-white\/20 { border-color: var(--border-strong) !important; }
.dark .border-white\/5 { border-color: var(--border-light) !important; }
.dark .border-white\/10 { border-color: var(--border-medium) !important; }

/* =====================================================
   ADDITIONAL UTILITY ICON COLORS
   ===================================================== */

/* Search Results Icons */
.search-result-icon {
    color: var(--text-muted);
}

/* Dropdown Menu Icons */
.dropdown-icon {
    color: var(--text-secondary);
}

/* Dropdown hover state */
.dropdown-item:hover .dropdown-icon,
.dropdown-item:hover i,
.dropdown-item:hover svg {
    color: var(--primary);
}

/* List Item Icons */
.list-icon {
    color: var(--primary);
}

/* Step Icons */
.step-icon {
    background: var(--primary-bg);
    color: var(--primary);
}

.step-icon.completed {
    background: var(--success-bg);
    color: var(--success);
}

/* Tab Icons */
.tab-icon {
    color: var(--text-muted);
}

.tab-item.active .tab-icon,
.tab-item:hover .tab-icon {
    color: var(--primary);
}

/* Category Icons */
.category-icon {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Feature Icons */
.feature-icon {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Input Icons */
.input-icon {
    color: var(--text-muted);
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

/* Avatar Icons */
.avatar-icon {
    color: var(--text-muted);
}

/* Rating Stars */
.star-icon {
    color: var(--warning);
}

.star-icon.empty {
    color: var(--border-medium);
}

/* Status Indicators */
.status-dot {
    background: var(--success);
}

.status-dot.pending {
    background: var(--warning);
}

.status-dot.error {
    background: var(--error);
}

/* Notification Bell Icon */
.notification-icon {
    color: var(--text-secondary);
}

.notification-badge {
    background: var(--error);
    color: var(--btn-text-light);
}

/* Menu Icon (Hamburger) */
.menu-icon {
    color: var(--text-secondary);
}

.menu-icon:hover {
    color: var(--text-primary);
}

/* Close Icon */
.close-icon {
    color: var(--text-muted);
}

.close-icon:hover {
    color: var(--text-primary);
}
