/* ===== common.css - 공통 스타일 ===== */

/* 전역 스크롤 동작 설정 */
html {
    scroll-behavior: auto; /* 즉시 스크롤 (새로고침 시 위치 유지) */
    scrollbar-gutter: stable; /* 스크롤바 생기고 사라질 때 레이아웃 밀림 방지 */
}

body {
    font-family: 'GmarketSansBold', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-color);
    scroll-behavior: auto;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 페이지 로드 시 FOUC(Flash of Unstyled Content) 방지 */
body.page-loading {
    scroll-behavior: auto;
    opacity: 0;
}

/* 스크롤 가능한 요소에 대한 스크롤 동작 설정 */
.scrollable {
    scroll-behavior: smooth;
}

/* 폰트 로딩 상태별 스타일 */
.fonts-loaded {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Malgun Gothic', '맑은 고딕', sans-serif;
}

.fonts-fallback {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* Screen Reader Only - 접근성용 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 공통 CSS 변수 정의 */
:root {
    /* ===== 브레이크포인트 변수 ===== */
    --breakpoint-xs: 480px;
    --breakpoint-sm: 768px;
    --breakpoint-md: 1024px;
    --breakpoint-lg: 1200px;
    --breakpoint-xl: 1440px;
    
    /* ===== 터치 최적화 변수 ===== */
    --touch-target-size: 44px;
    --touch-target-spacing: 8px;
    
    /* ===== 폰트 크기 스케일 ===== */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    
    /* ===== 간격 시스템 ===== */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* ===== 기본 색상 ===== */
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #007bff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    
    /* 브랜드 색상 */
    --brand-primary: #1e3a8a; /* main.css와 통일 */
    --brand-secondary: #2c5282;
    --brand-accent: #667eea;
    --brand-light: #e3f2fd;
    
    /* 상태 색상 */
    --success-color: #28a745;
    --success-hover: #218838;
    --error-color: #dc3545;
    --error-hover: #c82333;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* 텍스트 색상 */
    --text-primary: #212529; /* main.css와 통일 */
    --text-secondary: #6c757d; /* main.css와 통일 */
    --text-muted: #6c757d;
    --text-light: #999;
    
    /* 배경 색상 */
    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f1f3f4;
    --bg-dark: #333;
    
    /* 테두리 색상 */
    --border-light: #dee2e6; /* main.css와 통일 */
    --border-medium: #dee2e6;
    --border-dark: #495057;
    
    /* 호버 색상 */
    --hover-bg: #f0f0f0;
    --hover-primary: #2c5aa0;
    
    /* 그림자 색상 */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    
    /* 그라데이션 색상 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-yellow: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* 간격 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 컨테이너 */
    --container-max-width: 1200px;
    --container-padding: 20px;
    
    /* 히어로 섹션 */
    --hero-height: 360px;
    
    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* 테두리 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Fixed Side Menu 변수들 */
    --fixed-menu-top: 300px;
    --fixed-menu-left-offset: 110px;
    --fixed-menu-width: 90px;
    --fixed-menu-gap: 15px;
    --fixed-menu-padding: 15px 10px;
    --side-menu-item-padding: 10px 5px;
    --side-menu-item-margin-top: 15px;
    --side-menu-item-icon-margin: 7px;
    --side-menu-icon-size: 35px;
    --fixed-menu-border-radius: 10px;
    --side-menu-item-border-radius: 8px;
    --fixed-menu-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    --fixed-menu-bg-color: rgba(255, 255, 255, 0.95);
    --side-menu-text-color: #333;
    --side-menu-hover-bg: #f0f0f0;
    --side-menu-hover-color: #007bff;
    --fixed-menu-z-index: 99999;
}

/* 공통 카드 이미지 CLS 방지 */
.product-card .imgwrap {
    aspect-ratio: 16/10; /* 400:250 비율 */
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
}

.product-card .imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================== */
/* 히어로 섹션 공통 스타일 */
/* ===================== */
.hero-section,
.support-hero {
    position: relative;
    height: var(--hero-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: white;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 40px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 5px;
    opacity: 0.85;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-top: 12px;
}

/* 공통 스타일 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body 스타일은 파일 상단 (line 9)에서 정의됨 */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 히어로 섹션 공통 스타일 (모든 페이지용) - 중복 제거됨 */
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 5px;
    opacity: 0.85;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-top: 12px;
}

/* 탭 시스템 공통 스타일 (모든 페이지용) */
.menu-tabs {
    background: white;
    border-bottom: 1px solid var(--border-gray);
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 40px;
    width: 100%;
}

.tab-item {
    padding: 20px 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;  /* 기본적으로 투명한 밑줄 */
    position: relative;
    flex: 1;
    text-align: center;
}

.tab-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.tab-item:hover span {
    color: var(--brand-primary);
}

/* CSS 우선순위를 높이기 위해 더 구체적인 선택자 사용 */
.tabs-container .tab-item.active,
.tabs-container .tab-item.active:hover,
.tabs-container .tab-item.active:focus,
.tabs-container .tab-item.active:visited {
    border-bottom-color: var(--brand-primary);
    border-bottom-width: 3px;
    border-bottom-style: solid;
}

.tabs-container .tab-item.active span,
.tabs-container .tab-item.active:hover span,
.tabs-container .tab-item.active:focus span,
.tabs-container .tab-item.active:visited span {
    color: var(--brand-primary);
    font-weight: 600;
}

/* 탭 콘텐츠 공통 스타일 */
.tab-content-section {
    padding: 0;
    background: var(--light-bg);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 탭 콘텐츠 내부 섹션 공통 스타일 */
.tab-content > section {
    padding: 60px 0;
    background: var(--light-bg);
}

/* 탭 콘텐츠 제목 공통 스타일 */
.tab-content h2 {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.tab-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* 반응형 디자인 - 탭 시스템 */
@media (max-width: 768px) {
    .hero-section {
        height: 350px;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        padding: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    .tabs-container {
        padding: 0 15px;
        flex-direction: row;
        gap: 0;
    }
    
    .tab-item {
        padding: 12px 10px;
        border-bottom: 2px solid transparent;
        flex: 1;
    }
    
    .tab-item span {
        font-size: 0.9rem;
    }
    
    .tab-content > section {
        padding: 30px 15px;
    }
    
    .tab-content h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-desc {
        font-size: 0.85rem;
        padding: 0;
    }
    
    .tab-content h2 {
        font-size: 1.4rem;
    }
} 

/* ===================== */
/* 공통 컨테이너         */
/* ===================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

 
