@charset "UTF-8";

/* ==========================================================================
   화천(HWACHEON) Products 상품 목록 페이지
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff !important;
    color: #111111;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    width: 100%;
    overflow-x: hidden;
    padding-top: 4.5rem;
    box-sizing: border-box;
}

.max-layout-width {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-section-padding {
    padding: 5rem 0 8rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. 서브 히어로 배너
   ────────────────────────────────────────────────────────────────────────── */
.sub-hero-banner {
    width: 100%;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 5rem 2rem 4.5rem;
    text-align: center;
    box-sizing: border-box;
}

.banner-inner {
    max-width: 800px;
    margin: 0 auto;
}

.sub-category-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #888888;
    display: block;
    margin-bottom: 0.8rem;
}

.sub-page-title {
    font-family: 'Jost', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111111;
    margin: 0 0 1rem 0;
}

.sub-page-desc {
    font-size: 0.98rem;
    color: #666666;
    margin: 0;
    word-break: keep-all;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. 카테고리 탭 버튼
   ────────────────────────────────────────────────────────────────────────── */
.category-tab-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
}

.tab-btn {
    padding: 0.65rem 1.6rem;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    border-color: #111111;
    color: #111111;
}

.tab-btn.active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. 3열 그리드 카드 (상세 페이지 비율 일치: 4/5 비율)
   ────────────────────────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.hide {
    display: none;
}

/* ★ 상세 페이지 갤러리와 동일한 4:5 비율로 일치 */
.prod-thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.2rem;
    border-radius: 6px;
}

.prod-img-box {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0 !important;
    box-sizing: border-box;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .prod-img-box img {
    transform: scale(1.06);
}

.prod-caption-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.prod-text {
    flex: 1;
}

.prod-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    line-height: 1.35;
}

.prod-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prod-title a:hover {
    color: #666666;
}

.prod-desc {
    font-size: 0.88rem;
    color: #777777;
    margin: 0;
    line-height: 1.45;
    word-break: keep-all;
}

.prod-price-badge span {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    white-space: nowrap;
}

.reveal-element {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .sub-page-title {
        font-size: 2.1rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .category-tab-wrapper {
        flex-wrap: wrap;
    }
}