@charset "utf-8";

/* =======================================================================
   Korea1700 Design System Tokens — _variables.css
   v2.0 (B-1 Track: 2026-07-02)
   =======================================================================
   [원칙]
   1. 이 파일은 모든 CSS 파일보다 먼저 로드됩니다 (head.sub.php Layer 1).
   2. 모든 색상·간격·타이포·그림자·z-index 값은 이 파일에서만 정의합니다.
   3. 개별 CSS 파일에서 하드코딩 금지 — 반드시 var(--토큰명) 사용.
   4. Primary Color 확정: #2563eb (파란색) — 2026-07-02 최종 확정.
   ======================================================================= */

:root {

    /* ===================================================================
       1. Primary Brand Colors
       =================================================================== */
    --primary-color:     #2563eb;   /* Korea1700 메인 파란색 (확정) */
    --primary-dark:      #1e40af;   /* 호버·포커스 시 어두운 파란색 */
    --primary-light:     #3b82f6;   /* 밝은 파란색 (그라데이션 끝) */
    --primary-xlight:    #dbeafe;   /* 연한 파란색 배경 (배지·태그) */

    /* ===================================================================
       2. Accent Colors
       =================================================================== */
    --accent-color:      #f97316;   /* 주황색 강조 (CTA 버튼 등) */
    --accent-dark:       #ea580c;   /* 주황색 호버 */
    --accent-light:      #fed7aa;   /* 연한 주황 배경 */

    /* ===================================================================
       3. Status / Semantic Colors
       =================================================================== */
    --color-success:     #16a34a;   /* 성공 (초록) */
    --color-success-bg:  #dcfce7;
    --color-warning:     #d97706;   /* 경고 (황색) */
    --color-warning-bg:  #fef3c7;
    --color-danger:      #dc2626;   /* 위험·오류 (빨강) */
    --color-danger-bg:   #fee2e2;
    --color-info:        #0284c7;   /* 정보 (하늘) */
    --color-info-bg:     #e0f2fe;

    /* ===================================================================
       4. Price / E-commerce Colors
       =================================================================== */
    --color-price:       #dc2626;   /* 판매가 (빨강 강조) */
    --color-discount:    #dc2626;   /* 할인율 */
    --color-original:    #94a3b8;   /* 정가 (취소선) */
    --color-new-badge:   #2563eb;   /* NEW 배지 */
    --color-best-badge:  #f97316;   /* BEST 배지 */
    --color-sale-badge:  #dc2626;   /* SALE 배지 */

    /* ===================================================================
       5. Neutral Gray Scale
       =================================================================== */
    --gray-50:           #f8fafc;   /* 가장 밝은 배경 */
    --gray-100:          #f1f5f9;
    --gray-200:          #e2e8f0;   /* 구분선·테두리 */
    --gray-300:          #cbd5e1;
    --gray-400:          #94a3b8;   /* placeholder 텍스트 */
    --gray-500:          #64748b;   /* 부제목·설명 */
    --gray-600:          #475569;
    --gray-700:          #334155;
    --gray-800:          #1e293b;   /* 본문 텍스트 */
    --gray-900:          #0f172a;   /* 최어두운 텍스트 */

    /* ===================================================================
       6. Background Colors
       =================================================================== */
    --bg-main:           #ffffff;
    --bg-section:        var(--gray-50);    /* 섹션 배경 (#f8fafc) */
    --bg-card:           #ffffff;
    --bg-hover:          var(--gray-100);   /* 호버 배경 (#f1f5f9) */
    --bg-dark:           #1f2937;           /* 다크 배경 (푸터 등) */
    --bg-overlay:        rgba(0, 0, 0, 0.5); /* 모달 오버레이 */

    /* ===================================================================
       7. Text Colors
       =================================================================== */
    --text-primary:      var(--gray-800);   /* 본문 (#1e293b) */
    --text-secondary:    var(--gray-500);   /* 보조 (#64748b) */
    --text-muted:        var(--gray-400);   /* 흐린 (#94a3b8) */
    --text-white:        #ffffff;
    --text-link:         var(--primary-color);
    --text-link-hover:   var(--primary-dark);

    /* ===================================================================
       8. Border Colors
       =================================================================== */
    --border-color:      var(--gray-200);   /* 기본 테두리 (#e2e8f0) */
    --border-light:      var(--gray-100);   /* 연한 테두리 */
    --border-focus:      var(--primary-color);
    --border-dark:       var(--gray-300);

    /* ===================================================================
       9. Shadow Tokens
       =================================================================== */
    --shadow-sm:         0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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-card:       none;                                   /* 카드 기본 (보더리스) */
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06);         /* 카드 호버 */
    --shadow-modal:      0 12px 40px rgba(0, 0, 0, 0.15);        /* 모달 */
    --shadow-header:     0 1px 0 var(--gray-200);                /* 헤더 (하단 1px 라인) */
    --shadow-primary:    0 4px 14px rgba(37, 99, 235, 0.3);      /* 파란 버튼 */

    /* ===================================================================
       10. Layout & Spacing (0.25rem = 4px 단위 배수)
       =================================================================== */
    --max-width:         90rem;      /* 1440px */
    --container-width:   1280px;     /* 전역 가로폭 표준 (1280px) */
    --content-width:     1280px;
    --container-padding: 1.5rem;

    --spacing-2xs:  0.25rem;    /*  4px */
    --spacing-xs:   0.5rem;     /*  8px */
    --spacing-sm:   0.75rem;    /* 12px */
    --spacing-md:   1rem;       /* 16px */
    --spacing-lg:   1.5rem;     /* 24px */
    --spacing-xl:   2rem;       /* 32px */
    --spacing-2xl:  3rem;       /* 48px */
    --spacing-3xl:  4rem;       /* 64px */

    /* ===================================================================
       11. Typography
       =================================================================== */
    --font-family:   'Pretendard', -apple-system, BlinkMacSystemFont,
                     'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --font-size-2xs: 0.69rem;  /* 11px */
    --font-size-xs:  0.75rem;    /* 12px */
    --font-size-sm:  0.88rem;   /* 14px */
    --font-size-base:1rem;       /* 16px */
    --font-size-md:  1.12rem;   /* 18px */
    --font-size-lg:  1.25rem;    /* 20px */
    --font-size-xl:  1.5rem;     /* 24px */
    --font-size-2xl: 2rem;       /* 32px */
    --font-size-3xl: 2.5rem;     /* 40px */

    --font-weight-normal:  400;
    --font-weight-medium:  500;
    --font-weight-semibold:600;
    --font-weight-bold:    700;

    --line-height-tight:   1.25;
    --line-height-base:    1.6;
    --line-height-loose:   1.8;

    /* ===================================================================
       12. Border Radius
       =================================================================== */
    --radius-xs:    0.12rem;   /*  2px */
    --radius-sm:    0.25rem;    /*  4px */
    --radius-md:    0.38rem;   /*  6px */
    --radius-lg:    0.5rem;     /*  8px */
    --radius-xl:    0.75rem;    /* 12px */
    --radius-2xl:   1rem;       /* 16px */
    --radius-full:  9999px;     /* 완전 둥글 (알약형) */

    /* ===================================================================
       13. Transitions
       =================================================================== */
    --transition:       all 0.3s ease;
    --transition-fast:  all 0.15s ease;
    --transition-slow:  all 0.5s ease;
    --transition-color: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;

    /* ===================================================================
       14. Z-Index Layers
       =================================================================== */
    --z-base:       1;
    --z-dropdown:   100;
    --z-sticky:     200;
    --z-header:     300;
    --z-overlay:    400;
    --z-modal:      500;
    --z-toast:      600;
    --z-tooltip:    700;

    /* ===================================================================
       15. Layout — Header / Sidebar (페이지별 오버라이드 가능)
       =================================================================== */
    --header-height-pc:  70px;
    --header-height-mo:  56px;
    --gnb-height:        44px;
    --sidebar-width:     240px;

    /* ===================================================================
       16. Breakpoints (참고용 주석 — CSS 변수로 미디어쿼리 미지원)
       =================================================================== */
    /* 
       --bp-mobile:   320px
       --bp-tablet:   768px
       --bp-desktop:  1024px
       --bp-wide:     1280px
       --bp-max:      1440px
    */
}
