/* Global Design Tokens & CSS Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* =========================================
       Colors - Palette
       ========================================= */
    /* Primary (Indigo) */
    --cb-color-primary: #6366f1;
    /* Indigo 500 */
    --cb-color-primary-dark: #4f46e5;
    /* Indigo 600 */
    --cb-color-primary-light: #818cf8;
    /* Indigo 400 */

    /* Secondary (Pink) */
    --cb-color-secondary: #ec4899;
    /* Pink 500 */

    /* Accent (Purple) */
    --cb-color-accent: #8b5cf6;
    /* Purple 500 */
    --cb-color-accent-soft: #ede9fe;
    /* Purple 100 */

    /* Semantic Colors */
    --cb-color-success: #10b981;
    /* Green 500 */
    --cb-color-warning: #f59e0b;
    /* Amber 500 */
    --cb-color-error: #ef4444;
    /* Red 500 */
    --cb-color-info: #3b82f6;
    /* Blue 500 */

    /* Additional Colors */
    --cb-color-teal: #14b8a6;
    /* Teal 500 */
    --cb-color-fuchsia: #d946ef;
    /* Fuchsia 500 */

    /* Soft/Faint Variations */
    --cb-color-primary-soft: #c7d2fe;
    /* Indigo 200 */
    --cb-bg-primary-faint: #eef2ff;
    /* Indigo 50 */
    --cb-text-light: #64748b;
    /* Slate 500 - for lighter text */

    /* =========================================
       Category Colors
       ========================================= */
    --cb-cat-mobile: #3b82f6;
    /* Blue 500 */
    --cb-cat-mobile-soft: #dbeafe;
    /* Blue 100 */
    --cb-cat-laptop: #8b5cf6;
    /* Purple 500 */
    --cb-cat-smartwatch: #64748b;
    /* Slate 500 */
    --cb-cat-watch: #64748b;
    /* Alias for smartwatch */

    /* Category Glow Shadows */
    --cb-shadow-glow-mobile: 0 8px 20px rgba(59, 130, 246, 0.4);
    /* Blue glow */
    --cb-shadow-glow-laptop: 0 8px 20px rgba(139, 92, 246, 0.4);
    /* Purple glow */
    --cb-shadow-glow-watch: 0 8px 20px rgba(100, 116, 139, 0.4);
    /* Slate glow */

    /* =========================================
       Background Colors
       ========================================= */
    --cb-bg-body: #f8fafc;
    /* Slate 50 */
    --cb-bg-card: #ffffff;
    /* White */
    --cb-bg-subtle: #f1f5f9;
    /* Slate 100 */
    --cb-bg-hover: #e2e8f0;
    /* Slate 200 */

    /* Gradient Backgrounds */
    --cb-gradient-hero-bg: linear-gradient(180deg, #F0F4FF 0%, var(--cb-bg-body) 100%);
    --cb-gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --cb-gradient-success: linear-gradient(135deg, #10b981, #059669);
    --cb-gradient-cta-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --cb-gradient-primary-btn: linear-gradient(135deg, #6366f1, #4f46e5);
    --cb-gradient-glow-blue: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    --cb-gradient-text-dark: linear-gradient(135deg, #1e293b, #334155);

    /* =========================================
       Text Colors
       ========================================= */
    --cb-text-main: #1e293b;
    /* Slate 800 */
    --cb-text-cloud: #64748b;
    /* Slate 500 */
    --cb-text-muted: #94a3b8;
    /* Slate 400 */
    --cb-text-inverse: #ffffff;
    /* White */

    /* =========================================
       Border & Divider Colors
       ========================================= */
    --cb-border-light: #f1f5f9;
    /* Slate 100 */
    --cb-border-medium: #e2e8f0;
    /* Slate 200 */
    --cb-border-dark: #cbd5e1;
    /* Slate 300 */
    --cb-border-soft: #f1f5f9;
    /* Alias for border-light */

    /* =========================================
       Shadows
       ========================================= */
    --cb-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --cb-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --cb-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --cb-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --cb-shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    --cb-shadow-glow-primary: 0 6px 20px rgba(99, 102, 241, 0.5);

    /* =========================================
       Border Radius
       ========================================= */
    --cb-radius-sm: 8px;
    --cb-radius-md: 16px;
    --cb-radius-lg: 24px;
    --cb-radius-full: 50px;

    /* =========================================
       Typography
       ========================================= */
    --cb-font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Weights */
    --cb-font-weight-normal: 400;
    --cb-font-weight-medium: 500;
    --cb-font-weight-semibold: 600;
    --cb-font-weight-bold: 700;
    --cb-font-weight-extrabold: 800;

    /* Font Sizes */
    --cb-font-size-xs: 0.75rem;
    --cb-font-size-sm: 0.875rem;
    --cb-font-size-base: 1rem;
    --cb-font-size-lg: 1.125rem;
    --cb-font-size-xl: 1.25rem;
    --cb-font-size-2xl: 1.5rem;

    /* =========================================
       Spacing Scale
       ========================================= */
    --cb-space-xs: 8px;
    --cb-space-sm: 12px;
    --cb-space-md: 16px;
    --cb-space-lg: 24px;
    --cb-space-xl: 32px;
    --cb-space-2xl: 48px;

    /* Extended Spacing (used in layouts) */
    --cb-spacing-1: 4px;
    --cb-spacing-2: 8px;
    --cb-spacing-3: 12px;
    --cb-spacing-4: 16px;
    --cb-spacing-5: 20px;
    --cb-spacing-6: 24px;
    --cb-spacing-8: 32px;
    --cb-spacing-10: 40px;
    --cb-spacing-12: 48px;
    --cb-spacing-15: 60px;
    --cb-spacing-16: 64px;
    --cb-spacing-20: 80px;
    --cb-spacing-24: 96px;

    /* =========================================
       Z-Index Scale
       ========================================= */
    --cb-z-dropdown: 1000;
    --cb-z-sticky: 1020;
    --cb-z-fixed: 1030;
    --cb-z-modal-backdrop: 1040;
    --cb-z-modal: 1050;
    --cb-z-toast: 1060;
    --cb-z-tooltip: 1070;

    /* Extended Z-Index (for header components) */
    --cb-z-index-base: 1;
    --cb-z-index-dropdown: 1000;
    --cb-z-index-sticky: 1020;
    --cb-z-index-search: 1010;
    --cb-z-index-overlay: 1100;
    --cb-z-index-modal: 1200;

    /* =========================================
       Status & State Colors (for voting, etc)
       ========================================= */
    --cb-status-success-bg: #f0fdf4;
    /* Green 50 */
    --cb-status-success-icon: #16a34a;
    /* Green 600 */
    --cb-status-warning-bg: #fffbeb;
    /* Amber 50 */
    --cb-status-warning-icon: #d97706;
    /* Amber 600 */
    --cb-status-error-bg: #fef2f2;
    /* Red 50 */
    --cb-status-error-icon: #dc2626;
    /* Red 600 */

    /* =========================================
       Animation Durations
       ========================================= */
    --cb-duration-fast: 150ms;
    --cb-duration-normal: 300ms;
    --cb-duration-slow: 500ms;

    /* =========================================
       Transition Easings
       ========================================= */
    --cb-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --cb-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --cb-ease-in: cubic-bezier(0.4, 0, 1, 1);

    /* Transition Presets */
    --cb-transition-fast: all 150ms var(--cb-ease-out);
    --cb-transition-normal: all 300ms var(--cb-ease-in-out);
    --cb-transition-slow: all 500ms var(--cb-ease-in-out);
    --cb-transition-smooth: all 300ms var(--cb-ease-in-out);
    /* Alias for normal */

    /* =========================================
       Layout
       ========================================= */
    --cb-container-width: 1200px;

    /* =========================================
       Best Products Page (bp- prefix)
       ========================================= */
    --bp-primary: #6366f1;
    --bp-primary-dark: #4f46e5;
    --bp-secondary: #ec4899;
    --bp-accent: #8b5cf6;
    --bp-bg: #f8fafc;
    --bp-card-bg: #ffffff;
    --bp-text-main: #1e293b;
    --bp-text-light: #64748b;
    --bp-text-cloud: #64748b;
    --bp-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --bp-shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    --bp-radius: 16px;
    --bp-font: 'Outfit', sans-serif;
    /* =========================================
       Common Hero Section (Centralized)
       ========================================= */
    --cb-hero-bg: var(--cb-gradient-hero-bg);
    --cb-hero-padding: var(--cb-spacing-10) var(--cb-spacing-5) var(--cb-spacing-15);
    /* Reduced top padding */
}

.cb-common-hero {
    text-align: center;
    padding: var(--cb-hero-padding);
    background: var(--cb-hero-bg);
    position: relative;
    overflow: visible;
    /* Changed from hidden to prevent clipping search dropdown */
    border-bottom: 1px solid var(--cb-border-light);
}

/* Decorative Glow for Hero */
.cb-common-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.cb-hero-pill {
    display: inline-block;
    background: var(--cb-color-primary-soft);
    color: var(--cb-color-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: var(--cb-font-weight-bold);
    font-size: 0.8rem;
    margin-bottom: var(--cb-spacing-6);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.cb-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cb-text-main);
    line-height: 1.15;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.cb-hero-title span {
    display: block;
    color: var(--cb-color-primary);
}

.cb-hero-desc {
    font-size: 1.15rem;
    color: var(--cb-text-cloud);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cb-hero-title {
        font-size: 2.25rem;
    }

    .cb-common-hero {
        padding: var(--cb-spacing-15) var(--cb-spacing-4) var(--cb-spacing-10);
    }
}

/* =========================================
   Global Icon Styles
   ========================================= */
.cb-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    display: inline-block;
}