/* ========================================
   Derma AF Cosmetics - Professional Theme
   White / Golden / Dark Blue Color Scheme
   With Dark Mode Support
   ======================================== */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
    /* === Brand Colors - Golden Luxury === */
    --gold-50: #fefce8;
    --gold-100: #fef9c3;
    --gold-200: #fef08a;
    --gold-300: #fde047;
    --gold-400: #facc15;
    --gold-500: #d4af37; /* Primary Gold */
    --gold-600: #c9a961;
    --gold-700: #a68b47;
    --gold-800: #8a7339;
    --gold-900: #6b5a2e;
    
    /* === Brand Colors - Dark Blue === */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1a365d; /* Primary Dark Blue */
    --blue-950: #172554;
    
    /* === Neutral Colors === */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* === Semantic Colors === */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* === Light Theme (Default) === */
    --primary: var(--gold-500);
    --primary-hover: var(--gold-600);
    --primary-light: var(--gold-100);
    --primary-dark: var(--gold-700);
    
    --secondary: var(--blue-900);
    --secondary-hover: var(--blue-800);
    --secondary-light: var(--blue-100);
    
    --accent: var(--gold-400);
    --accent-glow: rgba(212, 175, 55, 0.4);
    
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --bg-elevated: var(--white);
    
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --text-inverse: var(--white);
    
    --border-color: var(--gray-200);
    --border-light: var(--gray-100);
    
    --card-bg: var(--white);
    --card-border: var(--gray-200);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --input-bg: var(--white);
    --input-border: var(--gray-300);
    --input-focus: var(--gold-500);
    
    --header-bg: #1a365d;
    --header-text: var(--white);
    
    --footer-bg: var(--blue-900);
    --footer-text: var(--gray-200);
    
    /* === Solid Colors (No Gradients) === */
    --gradient-gold: #d4af37;
    --gradient-blue: #1a365d;
    --gradient-luxury: #d4af37;
    --gradient-card: #ffffff;
    --gradient-shine: transparent;
    
    /* === Shadows === */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 4px 14px 0 rgba(212, 175, 55, 0.39);
    --shadow-gold-lg: 0 10px 30px 0 rgba(212, 175, 55, 0.4);
    --shadow-blue: 0 4px 14px 0 rgba(26, 54, 93, 0.3);
    
    /* === Spacing === */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* === Border Radius === */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* === Transitions === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* === Z-Index Scale === */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ========================================
   Dark Theme Variables
   ======================================== */
.theme-dark,
[data-theme="dark"] {
    --primary: var(--gold-400);
    --primary-hover: var(--gold-300);
    --primary-light: rgba(212, 175, 55, 0.2);
    --primary-dark: var(--gold-600);
    
    --secondary: var(--blue-400);
    --secondary-hover: var(--blue-300);
    --secondary-light: rgba(59, 130, 246, 0.2);
    
    --accent: var(--gold-300);
    --accent-glow: rgba(212, 175, 55, 0.5);
    
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --bg-tertiary: var(--gray-700);
    --bg-elevated: var(--gray-800);
    
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-500);
    --text-inverse: var(--gray-900);
    
    --border-color: var(--gray-700);
    --border-light: var(--gray-800);
    
    --card-bg: var(--gray-800);
    --card-border: var(--gray-700);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    --input-bg: var(--gray-800);
    --input-border: var(--gray-600);
    --input-focus: var(--gold-400);
    
    --header-bg: #1a365d;
    --header-text: var(--gold-400);
    
    --footer-bg: var(--gray-900);
    --footer-text: var(--gray-400);
    
    --gradient-card: #1f2937;
    --gradient-shine: transparent;
    
    --shadow-gold: 0 4px 14px 0 rgba(212, 175, 55, 0.25);
    --shadow-gold-lg: 0 10px 30px 0 rgba(212, 175, 55, 0.3);
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* ========================================
   Header / Navigation
   ======================================== */
.main-header,
.header,
.navbar {
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.nav-brand-name,
.brand-name,
.site-title {
    color: var(--gold-400) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-400) !important;
    background: rgba(212, 175, 55, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========================================
   Cards - Professional Hover Effects
   ======================================== */
.card,
.product-card,
.feature-card,
.dashboard-card,
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-base);
}

/* Golden Shine Effect on Cards */
.card::before,
.product-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.card:hover,
.product-card:hover,
.feature-card:hover,
.dashboard-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold-lg);
    border-color: var(--gold-400);
}

.card:hover::before,
.product-card:hover::before,
.feature-card:hover::before {
    left: 100%;
}

/* Card Image Effects */
.card-image,
.product-image,
.card img {
    transition: transform var(--transition-slow);
    overflow: hidden;
}

.card:hover .card-image img,
.card:hover .product-image img,
.product-card:hover img {
    transform: scale(1.08);
}

/* Card Content */
.card-body,
.card-content {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--primary);
}

/* ========================================
   Buttons
   ======================================== */
.btn,
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

/* Primary Button - Golden */
.btn-primary,
.cta-btn,
.submit-btn {
    background: var(--gradient-gold);
    color: var(--blue-900);
    box-shadow: var(--shadow-gold);
}

.btn-primary::before,
.cta-btn::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover,
.cta-btn:hover,
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-lg);
}

.btn-primary:hover::before,
.cta-btn:hover::before,
.submit-btn:hover::before {
    left: 100%;
}

.btn-primary:active,
.cta-btn:active,
.submit-btn:active {
    transform: translateY(-1px);
}

/* Secondary Button - Dark Blue */
.btn-secondary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-800) 100%);
}

/* Outline Buttons */
.btn-outline,
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover,
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--blue-900);
    box-shadow: var(--shadow-gold);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Success, Warning, Danger Buttons */
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: var(--gray-900);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: var(--white);
}

/* ========================================
   Form Elements
   ======================================== */
input,
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 2px solid var(--input-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Form Labels */
label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Container */
.form-container,
.auth-container,
.login-container {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

/* ========================================
   Tables
   ======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

thead {
    background: var(--gradient-blue);
    color: var(--white);
}

th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--gold-300);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

tbody tr {
    transition: all var(--transition-fast);
}

tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Alerts & Notifications
   ======================================== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideInRight 0.3s ease;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-danger,
.alert-error {
    background: var(--error-light);
    color: #991b1b;
    border-left: 4px solid var(--error);
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border-left: 4px solid var(--info);
}

/* ========================================
   Modals
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    animation: zoomIn 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    color: var(--primary);
    font-weight: 700;
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* ========================================
   Footer
   ======================================== */
footer,
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

footer h3,
footer h4,
.footer-title {
    color: var(--gold-400) !important;
    margin-bottom: var(--spacing-lg);
}

footer a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--gold-400);
}

/* ========================================
   Animations & Keyframes
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--gold-400),
                    0 0 10px var(--gold-500),
                    0 0 15px var(--gold-600);
    }
    50% {
        box-shadow: 0 0 10px var(--gold-400),
                    0 0 20px var(--gold-500),
                    0 0 30px var(--gold-600);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation Utility Classes */
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.5s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 0.5s ease forwards; }
.animate-zoom-in { animation: zoomIn 0.3s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-gold-glow { animation: goldGlow 2s ease-in-out infinite; }

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ========================================
   Hover Utilities
   ======================================== */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: var(--shadow-gold);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform var(--transition-base);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.sidebar-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: var(--spacing-xl);
}

.sidebar-header h2 {
    color: var(--gold-400);
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-base);
    border-radius: 0;
    margin: 0.25rem 0;
}

.sidebar-menu a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-400);
    padding-right: 2rem;
}

.sidebar-menu a.active {
    background: rgba(212, 175, 55, 0.2);
    border-right: 4px solid var(--gold-400);
    color: var(--gold-400);
}

/* ========================================
   Dropdown Menus
   ======================================== */
.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-sm) 0;
    animation: fadeInDown 0.2s ease;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-sm) 0;
}

/* ========================================
   Badges & Tags
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.badge-primary {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-700);
}

.theme-dark .badge-primary {
    background: rgba(212, 175, 55, 0.3);
    color: var(--gold-300);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* ========================================
   Loading States
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.theme-dark .skeleton {
    background: linear-gradient(90deg, var(--gray-700) 25%, var(--gray-600) 50%, var(--gray-700) 75%);
    background-size: 200% 100%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   Selection Colors
   ======================================== */
::selection {
    background: var(--primary);
    color: var(--blue-900);
}

/* ========================================
   Hero Section - Matching About Page Theme
   ======================================== */
.hero-section,
.hero,
.about-hero {
    background: linear-gradient(135deg, #0a0f1a 0%, #0d1829 25%, #0f2847 50%, #1a365d 75%, #0d1829 100%);
    color: var(--white);
    padding: 120px 0 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before,
.hero::before,
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 70% 50% at 15% 25%, rgba(192, 206, 221, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 75%, rgba(147, 173, 207, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 30% 80%, rgba(26, 54, 93, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Hero Content Container */
.hero-section .container,
.hero .container,
.about-hero .container,
.hero-container,
.hero-content {
    position: relative;
    z-index: 20;
}

.hero-title,
.about-hero h1 {
    font-family: 'Thuluth', 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 35px;
    letter-spacing: 1px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #fff8dc 0%, #ffd700 25%, #ffec8b 50%, #ffd700 75%, #fff8dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 15px rgba(255, 215, 0, 0.5));
    color: transparent;
    text-shadow: none;
}

.hero-title::after,
.about-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 10%,
        #ffd700 30%, 
        #ffffff 50%, 
        #ffd700 70%,
        rgba(255, 255, 255, 0.5) 90%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero-subtitle,
.about-hero p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.2);
}

/* ========================================
   Page Header - Unified Dark Blue Theme
   ======================================== */
.page-header,
.watches-hero {
    background: linear-gradient(135deg, #0a0f1a 0%, #0d1829 25%, #0f2847 50%, #1a365d 75%, #0d1829 100%) !important;
    color: #ffffff !important;
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before,
.watches-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 70% 50% at 15% 25%, rgba(192, 206, 221, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 75%, rgba(147, 173, 207, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 30% 80%, rgba(26, 54, 93, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.page-header .container,
.watches-hero .container,
.page-header > *,
.watches-hero > * {
    position: relative;
    z-index: 2;
}

.page-header h1,
.watches-hero h1 {
    font-family: 'Thuluth', 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #fff8dc 0%, #ffd700 25%, #ffec8b 50%, #ffd700 75%, #fff8dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 15px rgba(255, 215, 0, 0.5));
    color: transparent !important;
    text-shadow: none !important;
}

.page-header h1::after,
.watches-hero h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 10%,
        #ffd700 30%, 
        #ffffff 50%, 
        #ffd700 70%,
        rgba(255, 255, 255, 0.5) 90%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-header p,
.page-header .page-subtitle,
.watches-hero p {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    color: #ffffff !important;
    margin-bottom: 0;
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    -webkit-text-fill-color: #ffffff !important;
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    overflow: hidden;
}

.theme-toggle::before {
    content: '☀️';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: opacity var(--transition-fast);
}

.theme-toggle::after {
    content: '🌙';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: opacity var(--transition-fast);
}

.theme-toggle-slider {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.theme-dark .theme-toggle-slider,
[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(30px);
}

/* ========================================
   Price Display
   ======================================== */
.price,
.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.price-old,
.original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.price-sale,
.sale-price {
    color: var(--error);
    font-weight: 700;
}

/* ========================================
   Product Grid
   ======================================== */
.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gold { color: var(--gold-500) !important; }
.text-blue { color: var(--blue-900) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--error) !important; }

.bg-gold { background-color: var(--gold-500) !important; }
.bg-blue { background-color: var(--blue-900) !important; }
.bg-card { background-color: var(--card-bg) !important; }

.border-gold { border-color: var(--gold-500) !important; }
.border-blue { border-color: var(--blue-900) !important; }

.shadow-gold { box-shadow: var(--shadow-gold) !important; }
.shadow-gold-lg { box-shadow: var(--shadow-gold-lg) !important; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
    }
    
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--spacing-md);
    }
    
    .card:hover,
    .product-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .products-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .theme-toggle,
    .sidebar,
    .main-header {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
