/*
 * Design Tokens
 * Color, Typography, Spacing, Layout, Transitions
 */

:root {
    /* ========================================
       COLORS
       ======================================== */
    /* Primary */
    --color-primary: #f9e56c;
    --color-primary-rgb: 249, 229, 108;
    --color-primary-dark: #1a1c17;
    --color-primary-hover: #ffffff;

    /* Accent */
    --color-accent-1: #0d2f44;
    --color-accent-2: #525252;

    /* Text */
    --color-text: #000000;
    --color-text-rgb: 0, 0, 0;
    --color-body: #222222;
    --color-body-rgb: 34, 34, 34;
    --color-muted: #8a8a8a;

    /* Background */
    --color-bg: #ffffff;
    --color-bg-rgb: 255, 255, 255;
    --color-bg-secondary: #f5f5f5;
    --color-bg-secondary-rgb: 245, 245, 245;

    /* Border */
    --color-border: #dadee1;
    --color-border-rgb: 218, 222, 225;
    --color-border-line: #d9dede;

    /* Status */
    --color-success: #2e9e7b;
    --color-success-bg: #d5ece5;
    --color-error: #de2a2a;
    --color-error-bg: #fdf0f0;

    /* Product specific */
    --color-price: #000000;
    --color-price-sale: #a0a2a6;
    --color-sold-out: #6f717b;
    --color-in-stock: #2e9e7b;
    --color-label-bg: #d4553a;

    /* Icon */
    --color-icon: #212e3b;

    /* Gradient overlay for banner cards */
    --gradient-overlay: linear-gradient(90deg, #0B2B3F 9.42%, rgba(11, 43, 63, 0) 75.33%);

    /* ========================================
       TYPOGRAPHY
       ======================================== */
    /* Font families */
    --font-heading: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    --font-accent: "Helvetica Neue", Arial, sans-serif;

    /* Body */
    --font-size-base: 18px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-extra-bold: 700;
    --line-height-base: 1.55556;
    --letter-spacing-base: -0.01em;

    /* Heading scale (desktop) - adjusted for Japanese */
    --font-size-h1: 70px;
    --font-size-h2: 42px;
    --font-size-h3: 38px;
    --font-size-h4: 32px;
    --font-size-h5: 26px;
    --font-size-h6: 22px;
    --line-height-heading: 1.1;
    --letter-spacing-heading: -0.04em;

    /* Small text */
    --font-size-xxs: 12px;
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-lg: 70px;

    /* Sub-heading */
    --font-size-sub: 14px;
    --font-weight-sub: 500;
    --letter-spacing-sub: 0.02em;
    --text-transform-sub: uppercase;

    /* Menu */
    --font-size-menu: 16px;
    --font-weight-menu: 600;
    --letter-spacing-menu: -0.01em;
    --text-transform-menu: capitalize;

    /* ========================================
       SPACING
       ======================================== */
    /* Section spacing (desktop) */
    --section-margin-top: 110px;
    --section-margin-bottom: 150px;
    --section-margin-tablet: 60px;
    --section-margin-mobile: 40px;

    /* Component spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 30px;
    --spacing-lg: 60px;
    --spacing-xl: 80px;

    /* Container distance (gutter) */
    --container-distance: 15px;

    /* ========================================
       LAYOUT
       ======================================== */
    --container-max-width: 1560px;
    --container-fluid-max: 1800px;
    --grid-columns: 20;
    --grid-gap: 0px;

    /* ========================================
       BUTTONS
       ======================================== */
    --btn-height: 54px;
    --btn-height-md: 50px;
    --btn-height-sm: 36px;
    --btn-radius: 50px;
    --btn-padding-left: 30px;
    --btn-padding-right: 12px;
    --btn-font-size: 16px;
    --btn-font-weight: 600;
    --btn-text-transform: capitalize;

    /* ========================================
       BORDERS
       ======================================== */
    --border-radius: 0px;
    --border-radius-reduced: 20px;
    --border-radius-card: 0px;

    /* ========================================
       FORMS
       ======================================== */
    --input-height: 40px;
    --input-border-radius: 4px;

    /* ========================================
       TRANSITIONS
       ======================================== */
    --transition-default: 0.4s all;
    --transition-fast: 0.2s all;
    --aos-duration: 500ms;

    /* ========================================
       Z-INDEX
       ======================================== */
    --z-header: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-tooltip: 400;
}

/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */

/* Tablet & below (max-width: 999px) */
@media (max-width: 999px) {
    :root {
        --section-margin-top: var(--section-margin-tablet);
        --section-margin-bottom: var(--section-margin-tablet);
    }
}

/* Mobile (max-width: 740px) */
@media (max-width: 740px) {
    :root {
        --font-size-h1: 40px;
        --font-size-h2: 32px;
        --font-size-h3: 32px;
        --font-size-h4: 26px;
        --font-size-h5: 22px;
        --font-size-h6: 18px;
        --font-size-lg: 40px;
        --font-size-sm: 14px;
        --section-margin-top: var(--section-margin-mobile);
        --section-margin-bottom: var(--section-margin-mobile);
    }
}
