/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 헤더 */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100px;
}

.logo img {
    width: 200px;
    height: 80px;
    object-fit: contain;
}

/* 헤더 오른쪽 (로그인/회원가입/장바구니) */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.welcome-message {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.header-link {
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
}

.header-link:hover {
    color: #d4a574;
}

.header-divider {
    color: #ddd;
    font-size: 14px;
}

/* 메인 네비게이션 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 60px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.nav-menu > li > a:hover {
    color: #d4a574;
}

/* 서브메뉴 - PC용 hover 방식 */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    margin-top: 10px;
    z-index: 1001;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* PC에서 hover 시 표시 */
@media (min-width: 769px) {
    .has-submenu:hover .submenu {
        opacity: 1;
        visibility: visible;
    }
}

.submenu li {
    padding: 0;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.submenu li a:hover {
    background: #f8f8f8;
    color: #d4a574;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

/* 모바일 메뉴 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu > ul > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
}

.mobile-submenu {
    display: none;
    background: #f8f8f8;
    list-style: none;
}

.mobile-submenu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-submenu a {
    padding-left: 40px;
    font-weight: 400;
    font-size: 14px;
}

/* 모바일 메뉴 - 사용자 정보 */
.mobile-user-info {
    background: #f8f8f8;
    padding: 15px 20px !important;
    border-bottom: 1px solid #eee;
}

.mobile-user-info span {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.mobile-divider {
    height: 8px;
    background: #f5f5f5;
    border: none;
}

/* 메인 배너 슬라이더 */
.main-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 비율 */
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 배너 네비게이션 */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.5);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 배너 인디케이터 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* 섹션 공통 스타일 */
.section-title {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

/* 제품 섹션 */
.products-section {
    padding: 80px 0;
    background: #fafafa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.product-benefit {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discount-rate {
    background: #ff4444;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* 리뷰 섹션 */
.reviews-section {
    padding: 80px 0;
    background: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.review-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.review-content {
    padding: 20px;
}

.review-product {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.review-rating {
    margin-bottom: 10px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: #ffc107;
}

.review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.review-date {
    font-size: 12px;
    color: #999;
}

/* 브랜드 소개 */
.brand-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #333;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* 특허 섹션 */
.patent-section {
    padding: 80px 0;
    background: #fff;
}

.patent-content {
    max-width: 900px;
    margin: 0 auto;
}

.patent-description {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 50px;
}

.patent-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #d4a574;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 16px;
    color: #666;
}

.patent-images {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.patent-images img {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 시설 섹션 */
.facility-section {
    padding: 80px 0;
    background: #fafafa;
}

.facility-content {
    max-width: 900px;
    margin: 0 auto;
}

.facility-description {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 50px;
}

.facility-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 50px;
}

.facility-image {
    text-align: center;
}

.facility-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 푸터 */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 50px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.company-info {
    text-align: left;
}

.company-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.company-info p {
    font-size: 14px;
    line-height: 1.8;
    color: #999;
    margin-bottom: 5px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: left;
}

.copyright p {
    font-size: 13px;
    color: #777;
}