/* ========================================
   김치광장 - 메인 페이지 전용 CSS (index.css)
   ======================================== */


/* ========================================
   메인 상품 목록 섹션 (이번주 입고상품)
   ======================================== */

.section-product-main {
    padding: 60px 0;
}

/* 섹션 타이틀 (좌측 정렬) */
.main-section-title {
    margin-bottom: 30px;
}

.main-section-title .txt01 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.main-section-title .txt02 {
    font-size: 22px;
    font-weight: 700;
    color: #292829;
    display: block;
}

/* 더보기 버튼 */
.btn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 30px auto 0;
    padding: 12px 32px;
    border: 1px solid #cccccc;
    font-size: 14px;
    color: #555555;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-more:hover {
    background: #292829;
    color: white;
    border-color: #292829;
}

/* 페이지 표시 (1/2) */
.btn-more .page-info {
    font-size: 12px;
    color: #888888;
}

.btn-more:hover .page-info {
    color: #cccccc;
}


/* ========================================
   중간 광고 배너
   ======================================== */

.section-banner {
    padding: 0;
    overflow: hidden;
}

.section-banner img {
    width: 100%;
    display: block;
    max-height: 520px;
    object-fit: cover;
}


/* ========================================
   유튜브 영상 섹션
   ======================================== */

.section-video {
    padding: 80px 0;
    text-align: center;
    background: #f8f8f8;
}

.section-video .main-section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-video .video-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* 유튜브 반응형 래퍼 */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    max-width: 860px;
    margin: 0 auto;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ========================================
   갤러리 섹션 (매일 신선한 김치)
   ======================================== */

.section-gallery {
    padding: 60px 0;
}

/* 3열 갤러리 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* 갤러리 아이템 */
.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 갤러리 텍스트 오버레이 */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    color: white;
}

.gallery-caption .caption-txt {
    font-size: 15px;
    font-weight: 500;
    color: white;
}

/* 더보기 링크 */
.gallery-more {
    text-align: center;
    margin-top: 24px;
}

.gallery-more a {
    font-size: 14px;
    color: #555555;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 2px;
}

.gallery-more a:hover {
    color: #6b1210;
    border-color: #6b1210;
}


/* ========================================
   반응형
   ======================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    .section-product-main {
        padding: 40px 0;
    }

    .special-slide-list .product-card {
        flex: 0 0 calc(33.333% - 14px); /* 3열 기준 */
    }

    .section-video {
        padding: 60px 0;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .section-product-main {
        padding: 32px 0;
    }

    .main-section-title .txt02 {
        font-size: 18px;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* 모바일에서 1열 */
        gap: 12px;
    }

    /* 모바일 갤러리: 가로 스크롤 슬라이드 */
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 80vw;
        scroll-snap-align: start;
        aspect-ratio: 3 / 4;
    }

    .special-slide-list .product-card {
        flex: 0 0 calc(50% - 10px); /* 모바일 2열 */
    }

    .section-video {
        padding: 40px 0;
    }

    .section-video .video-desc {
        font-size: 13px;
    }

    .section-banner img {
        max-height: 300px;
    }

    .slide-btn {
        display: none; /* 모바일에서 버튼 숨김, 스와이프로 대체 */
    }
}
