/* 메인 페이지 스타일 */

/* 배너 슬라이더 */
.banner-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.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-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.banner-dot.active {
    background-color: #fff;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.banner-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* 기본 배너 */
.default-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #fff;
    color: #667eea;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s;
}

.banner-btn:hover {
    transform: translateY(-3px);
}

/* 섹션 */
.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.section-link {
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s;
}

.section-link:hover {
    color: #0056b3;
}

/* 상품 그리드 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,20,10,0.15);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgb(59 146 100 / 0.5);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.product-body {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 38px;
}

.product-author {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
}

.product-discount-price {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 5px;
}

/* 카테고리 섹션 */
.category-section {
    background-color: #f8f9fa;
    padding: 40px 20px;
    margin-bottom: 60px;
}

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

.category-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* 공지사항 팝업 */
.notice-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.notice-popup-overlay.active {
    display: flex;
}

.notice-popup {
    background-color: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.notice-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.notice-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.notice-popup-content {
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

.notice-popup-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.notice-popup-body {
    padding: 25px;
}

.notice-popup-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.notice-popup-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.notice-popup-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-popup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.notice-popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.notice-popup-btn {
    padding: 8px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notice-popup-btn:hover {
    background-color: #0056b3;
}

.notice-popup-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.notice-popup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notice-popup-dot.active {
    background-color: #007bff;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-slider {
        height: 350px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .banner-slider {
        height: 250px;
    }
    
    .default-banner {
        padding: 60px 20px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .banner-arrow.prev {
        left: 10px;
    }
    
    .banner-arrow.next {
        right: 10px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .product-img {
        height: 180px;
    }
    
    .notice-popup {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .notice-popup-image {
        max-height: 250px;
    }
    
    .notice-popup-title {
        font-size: 18px;
    }
    
    .notice-popup-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-slider {
        height: 200px;
    }
    
    .product-img {
        height: 200px;
    }
}


/* 공지사항 팝업 표시 제어 */
.notice-popup {
    display: none;
}

.notice-popup.active {
    display: block;
}

/* 숨김 클래스 */
.hidden {
    display: none !important;
}

/* 텍스트 정렬 */
.text-center {
    text-align: center;
}

/* 강조 텍스트 */
.text-highlight {
    color: #ea4c89;
}

/* 전체 너비 노란색 배경 컨테이너 */
.container-full-yellow {
    max-width: 100%;
    background: #fff3d1;
}
