﻿@charset "utf-8";

body {
    min-height: 100%;
}

.product-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: 'Nanum Gothic', sans-serif;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

    .category-tabs a {
        padding: 10px 20px;
        border: 1px solid #00498c;
        border-radius: 20px;
        background: white;
        color: #00498c;
        font-weight: bold;
        transition: 0.3s ease;
        text-decoration: none;
    }

        .category-tabs a.selected {
            background: #00498c;
            color: white;
        }

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.product-card {
    border: 1px solid #cfdae5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s ease;
    text-align: center;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .product-card img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        background: #f9f9f9;
    }

    .product-card .title {
        padding: 16px 12px;
        font-size: 17px;
        font-weight: bold;
        color: #00498c;
    }

.product-detail {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.product-images {
    flex: 1 1 400px;
    max-width: 600px;
}

    .product-images img {
        width: 100%;
        max-height: 500px;
        object-fit: contain;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
    }

.product-info {
    flex: 1 1 300px;
    line-height: 2.0em;
}

.product-intro {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Nanum Gothic', sans-serif;
}

    .product-intro h2 {
        font-size: 28px;
        color: #00498c;
        margin-bottom: 10px;
    }

    .product-intro p {
        font-size: 16px;
        color: #555;
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
}