/* Product Page Styles */


/* Subpage Hero Section */
.subpage-hero-section {
    position: relative;
    width: 100%;
    height: 280px;
    background-image: url('/image/product_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.subpage-hero-section .inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.subpage-hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.subpage-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 48px;
    margin-bottom: 0px;
    color: white;
    font-style: Italic;
    font-size: 80px;
    letter-spacing: 0%;

}

.subpage-subtitle {
    font-family: 'Inter', sans-serif;
    color: white;
    margin: 0;
    font-weight: 900;
    font-style: Italic;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
}

/* Product List Section */
.product-list-section {
    width: 100%;
    padding: 120px 0 250px 0;
    background: white;
}

.product-list-section .inner {
    max-width: 1440px;
    padding: 0 20px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    margin-bottom: 20px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .product-image {
    border-color: #2b8d8f;
    box-shadow: 0 4px 12px rgba(43, 141, 143, 0.2);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-title {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    text-align: center;
    margin: 0;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Product Popup */
.product-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-popup {
    width: 700px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-popup-overlay.active .product-popup {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #2b8d8f;
    color: white;
}

.popup-title {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 0;
    color: white;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.popup-content::-webkit-scrollbar {
    display: none;
}

.popup-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.popup-category-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-link {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: white;
    background: #C4C4C4;
    border: none;
    border-radius: 25px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-link:hover {
    background: #b0b0b0;
}

.category-link.active {
    background: #FF4800;
    color: white;
}

.category-link.active:hover {
    background: #e63e00;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.popup-thumbnail {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #d9d9d9;
    padding: 20px;
}

.popup-thumbnail img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.popup-additional-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.popup-additional-images img {
    width: 100%;
    /* aspect-ratio: 1 / 1; */
    object-fit: cover;
    border: 1px solid #d9d9d9;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.popup-additional-images img:hover {
    border-color: #2b8d8f;
}

.popup-specs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    flex: 0 0 200px;
}

.spec-value {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #666;
    text-align: right;
    flex: 1;
}

.spec-value-multi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.spec-value-line {
    display: block;
}

@media (max-width: 768px) {
    .subpage-hero-section .inner {
        justify-content: center;
    }
    /* Subpage Hero Section Mobile */
    .subpage-hero-section {
        height: 230px;
    }

    .subpage-title {
        text-align: center;
        font-size: 36px;
    }

    .subpage-subtitle {
        font-size: 18px;
    }

    /* Product List Section Mobile */
    .product-list-section {
        padding: 60px 0;
    }

    .product-grid {
        gap: 25px;
        margin-top: 30px;
    }

    .product-image {
        margin-bottom: 15px;
    }

    .product-title {
        font-size: 16px;
    }

    /* Product Popup Mobile */
    .product-popup {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-close {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    .popup-content {
        padding: 20px 15px;
        max-height: calc(90vh - 70px);
    }

    .popup-category-nav {
        gap: 10px;
        margin-bottom: 20px;
    }

    .category-link {
        font-size: 14px;
        padding: 8px 16px;
    }

    .popup-thumbnail {
        margin-bottom: 20px;
        padding: 15px;
    }

    .popup-thumbnail img {
        max-height: 250px;
    }

    .popup-additional-images {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .spec-label {
        flex: none;
        font-size: 14px;
    }
    
    .spec-value {
        text-align: left;
        flex: none;
        font-size: 14px;
    }
}
