/* ===================================
   Needway Nutrition — Design Tokens
   All colors, fonts, spacing, shadows
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    /* ── Brand Colors (Warm Amber — sofisticado, menos cansativo) ── */
    --primary: #E8723A;
    --primary-hover: #C95F2E;
    --primary-light: rgba(232, 114, 58, 0.12);
    --primary-glow: rgba(232, 114, 58, 0.35);

    /* ── Backgrounds ── */
    --bg-main: #000000;
    --bg-dark: #1A1A1A;
    --bg-darker: #0D0D0D;
    --bg-surface: #F5F5F5;
    --bg-surface-alt: #EBEBEB;
    --bg-card-dark: #111111;
    --bg-card-light: #FFFFFF;

    /* ── Text ── */
    --text-light: #F5F5F5;
    --text-dark: #1A1A1A;
    --text-muted: #999999;
    --text-muted-dark: #666666;

    /* ── Accent ── */
    --accent-gold: #F0AD4E;
    --accent-gold-hover: #D99A3E;

    /* ── Semantic ── */
    --success: #2ECC71;
    --success-bg: rgba(46, 204, 113, 0.12);
    --danger: #E74C3C;
    --danger-bg: rgba(231, 76, 60, 0.12);
    --warning: #F39C12;
    --info: #3498DB;

    /* ── Gradients ── */
    --gradient-btn: linear-gradient(135deg, #E8723A 0%, #C95F2E 100%);
    --gradient-btn-hover: linear-gradient(135deg, #C95F2E 0%, #E8723A 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1A1A1A 50%, #0D0D0D 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    --gradient-gold: linear-gradient(135deg, #F0AD4E 0%, #E8723A 100%);

    /* ── Glass ── */
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;

    /* ── Typography ── */
    --font-heading: 'Oswald', 'Impact', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.25rem;
    /* 20px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-2xl: 2rem;
    /* 32px */
    --fs-3xl: 2.5rem;
    /* 40px */
    --fs-4xl: 3rem;
    /* 48px */
    --fs-5xl: 3.75rem;
    /* 60px */

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ── Spacing ── */
    --space-xs: 0.25rem;
    /* 4px */
    --space-sm: 0.5rem;
    /* 8px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 6rem;
    /* 96px */

    /* ── Border Radius (cantos retos) ── */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --radius-2xl: 0px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(232, 114, 58, 0.25);
    --shadow-gold: 0 0 15px rgba(240, 173, 78, 0.2);

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* ── Z-index layers ── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-tooltip: 600;

    /* ── Layout ── */
    --container-max: 1320px;
    --container-sm: 960px;
    --header-height: 110px;
    --topbar-height: 40px;
    --nav-height: 50px;
    --sidebar-width: 280px;
}

/* ══════════════════════════════════
   TEMA CLARO (Light Mode)
   ══════════════════════════════════ */
body.theme-light {
    --bg-main: #F5F5F5;
    --bg-dark: #FFFFFF;
    --bg-darker: #EBEBEB;
    --bg-card-dark: #FFFFFF;
    --bg-card-light: #FFFFFF;
    --bg-surface: #F5F5F5;
    --bg-surface-alt: #EBEBEB;

    --text-light: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --text-muted-dark: #999999;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);

    --gradient-hero: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 50%, #EBEBEB 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 245, 245, 0.9) 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.12);

    --primary-light: rgba(232, 114, 58, 0.08);
    --success-bg: rgba(46, 204, 113, 0.08);
    --danger-bg: rgba(231, 76, 60, 0.08);
}

/* Ajustes específicos do light mode */
body.theme-light .header,
body.theme-light .nav,
body.theme-light .footer {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Topbar SEMPRE escura — texto visível no light mode */
body.theme-light .topbar {
    background: #1A1A1A;
    color: #F5F5F5;
}

body.theme-light .topbar__item {
    color: #F5F5F5;
}

body.theme-light .topbar__item strong {
    color: #F0AD4E;
}

body.theme-light .topbar__item .icon {
    color: #E8723A;
}

body.theme-light .product-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}