/* ============================================
   🍲 제품 상세 페이지 CSS v3.2.0
   ============================================ */

/* 전체 글씨 크기 확대 */
:root {
    --base-font-size: 20px !important;  /* 18px → 20px */
    --heading-font-size: 40px !important;  /* 32px → 40px */
    --subheading-font-size: 28px !important;  /* 24px → 28px */
}

body {
    font-size: var(--base-font-size) !important;
}

/* 제품 그리드 레이아웃 개선 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 50px;
    margin: 60px 0;
}

/* 제품 카드 확대 */
.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 65px rgba(45, 80, 22, 0.3);
}

/* 제품 이미지 확대 */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;  /* 300px → 400px */
    overflow: hidden;
}

.product-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image-photo {
    transform: scale(1.15);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 제품 정보 영역 */
.product-info {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-number {
    font-size: 1rem;
    color: #999;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-name {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 20px;
    font-weight: 800;
}

.product-composition {
    font-size: 1.1rem;
    color: #666;
    line-height: 2;
    margin-bottom: 25px;
    flex: 1;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-retail {
    font-size: 2rem;
    color: #2d5016;
    font-weight: 900;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 제품 상세 모달 확대 */
.product-modal-content {
    max-width: 1200px;  /* 1000px → 1200px */
    width: 95%;
}

.product-modal-image {
    width: 100%;
    height: 600px;  /* 500px → 600px */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.product-modal-info h2 {
    font-size: 3rem;  /* 2.5rem → 3rem */
    margin-bottom: 30px;
}

.product-modal-description {
    font-size: 1.3rem;  /* 1.1rem → 1.3rem */
    line-height: 2.2;
}

/* 제품 상세 설명 */
.product-detail-section {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.product-detail-section h3 {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 25px;
    font-weight: 800;
}

.product-detail-section p {
    font-size: 1.2rem;
    line-height: 2;
    color: #555;
}

.product-ingredients {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ingredient-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #2d5016;
}

.ingredient-item strong {
    display: block;
    font-size: 1.3rem;
    color: #2d5016;
    margin-bottom: 8px;
}

/* 영양 정보 테이블 */
.nutrition-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
}

.nutrition-table th,
.nutrition-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
}

.nutrition-table th {
    background: #2d5016;
    color: white;
    font-weight: 700;
}

/* 구매 혜택 강조 */
.benefit-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    :root {
        --base-font-size: 18px !important;
        --heading-font-size: 32px !important;
        --subheading-font-size: 24px !important;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-image-wrapper {
        height: 300px;
    }

    .product-info {
        padding: 25px;
    }

    .product-name {
        font-size: 1.6rem;
    }

    .price-retail {
        font-size: 1.6rem;
    }

    .add-to-cart-btn {
        font-size: 1.1rem;
        padding: 15px;
    }

    .product-modal-image {
        height: 350px;
    }

    .product-modal-info h2 {
        font-size: 2rem;
    }

    .product-ingredients {
        grid-template-columns: 1fr;
    }
}

/* 인쇄 최적화 */
@media print {
    .product-card,
    .product-modal {
        break-inside: avoid;
    }
}
