/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    min-height: 100vh;
    padding-bottom: 120px; /* 하단 배너 공간 확보 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 네비게이션 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c2c2c;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #212529;
    background: rgba(0,0,0,0.05);
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 상단 배너 */
.top-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s, z-index 0s 1s;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s, z-index 0s;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #2c2c2c;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #212529;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 특징 섹션 */
.features {
    padding: 4rem 0;
    background: white;
}

.features h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #212529;
    font-weight: 700;
}

.features-layout {
    display: grid;
    grid-template-columns:  1fr;
    gap: 2rem;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 사이드 배너 */
.side-banner {
    position: sticky;
    top: 20px;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.side-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.side-banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s, z-index 0s 1s;
}

.side-banner-slide.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s, z-index 0s;
}

.side-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #dee2e6;
}

.feature-icon {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #667eea;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* 이용 방법 섹션 */
.how-it-works {
    padding: 4rem 0;
    background: #f8f9fa;
}

.how-it-works h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #212529;
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h4 {
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 600;
}

.step p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 랜딩페이지 상품 섹션 */
.products-showcase {
    padding: 4rem 0;
    background: white;
}

.products-showcase h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #212529;
    font-weight: 700;
}

.products-showcase .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.products-showcase .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.products-showcase .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #dee2e6;
}

.products-showcase .product-image-wrapper {
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.products-showcase .product-icon {
    font-size: 2rem;
    color: #667eea;
}

.products-showcase .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.products-showcase .product-info {
    padding: 1.5rem;
}

.products-showcase .product-info h4 {
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 600;
    font-size: 1.1rem;
}

.products-showcase .product-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.products-showcase .product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.products-showcase .product-stock {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.products-showcase .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.products-showcase .no-products,
.products-showcase .error {
    text-align: center;
    color: #6c757d;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* 하단 배너 */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.bottom-banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s, z-index 0s 1s;
}

.bottom-banner-slide.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s, z-index 0s;
}

.bottom-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 푸터 */
.footer {
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    color: #764ba2;
}

/* 인증 폼 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.auth-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e9ecef;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #212529;
    font-weight: 700;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    color: #6c757d;
    font-size: 0.85rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #764ba2;
}

/* 마이페이지 */
.mypage-container {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.mypage-container h2 {
    margin-bottom: 2rem;
    color: #212529;
    font-weight: 700;
}

.mypage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mypage-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.mypage-card h3 {
    margin-bottom: 1rem;
    color: #212529;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.point-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.order-item, .history-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.order-item:last-child, .history-item:last-child {
    border-bottom: none;
}

.order-item p, .history-item p {
    margin-bottom: 0.25rem;
    color: #495057;
}

.order-item strong, .history-item strong {
    color: #212529;
}

/* 포인트 충전 */
.charge-container {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.charge-container h2 {
    margin-bottom: 2rem;
    color: #212529;
    font-weight: 700;
}

.charge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.charge-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.charge-card h3 {
    margin-bottom: 1rem;
    color: #212529;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.charge-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.payment-method input {
    cursor: pointer;
}

.bank-details {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.bank-details p {
    margin-bottom: 0.25rem;
    color: #495057;
}

/* 상품 목록 */
.products-container {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.products-container h2 {
    margin-bottom: 2rem;
    color: #212529;
    font-weight: 700;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.current-points {
    font-size: 1.2rem;
    color: #495057;
}

.current-points span:last-child {
    font-weight: bold;
    color: #667eea;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
    font-weight: 700;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 600;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.product-stock {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
}

.close:hover {
    color: #212529;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #212529;
    font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .top-banner {
        height: 150px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-layout {
        grid-template-columns: 1fr;
    }
    
    .side-banner {
        position: static;
        height: 250px;
        margin-top: 2rem;
    }
    
    .feature-grid,
    .steps,
    .mypage-grid,
    .charge-grid,
    .products-grid,
    .products-showcase .products-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .bottom-banner {
        height: 80px;
    }
}

.page-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1920px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.center-content {
    flex: 1;
    max-width: 1200px;
    min-width: 0;
}

/* 좌우 윙 배너 */
.wing-container {
    position: sticky;
    top: 40px;
    width: 280px;
    height: 600px;
    z-index: 100;
    display: none;
}
@media (min-width: 1400px) {
    .wing-container {
        display: block;
    }
}



.wing-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.wing-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s, z-index 0s 1s;
}

.wing-slide.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s, z-index 0s;
}

.wing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
