/* ================================================================
   GRAINY GOLD — Product Detail Page Styles
   ================================================================ */

/* ===== Product Detail Section ===== */
.product-detail {
    padding: calc(var(--nav-height) + 48px) 0 clamp(60px, 10vw, 120px);
    background: var(--off-white);
    min-height: 80vh;
}

.product-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 40px;
    transition: color 0.3s, gap 0.3s var(--ease-out-expo);
}

.product-back:hover {
    color: var(--crimson);
    gap: 12px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

/* ===== Product Image ===== */
.product-detail-image {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
}

.product-detail-img-wrapper {
    border-radius: 24px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.product-detail-img-wrapper img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.product-detail-badge {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-dark);
    padding: 6px 16px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 100px;
    background: rgba(201, 168, 76, 0.08);
}

/* ===== Product Info ===== */
.product-detail-info .section-label {
    margin-bottom: 12px;
}

.product-detail-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.product-detail-english {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 24px;
    font-weight: 400;
}

.product-detail-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-500);
    margin-bottom: 36px;
}

/* ===== Product Meta ===== */
.product-detail-meta {
    display: flex;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 36px;
}

.product-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail-meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

.product-detail-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* ===== Nutrition Grid ===== */
.product-detail-nutrition {
    margin-bottom: 36px;
}

.product-detail-nutrition h3,
.product-detail-highlights h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.product-detail-nutrition h3 span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-400);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nutrition-item {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.nutrition-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.nutrition-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crimson);
    line-height: 1;
}

.nutrition-label {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

/* ===== Highlights ===== */
.product-detail-highlights {
    margin-bottom: 40px;
}

.product-detail-highlights ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-detail-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.product-detail-highlights li::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 7px;
}

/* ===== Other Products Section ===== */
.other-products {
    padding: clamp(60px, 10vw, 120px) 0;
    background: var(--white);
}

.other-products .section-label {
    margin-bottom: 12px;
}

.other-products .section-title {
    margin-bottom: 40px;
}

.other-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.other-product-card {
    display: block;
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s;
}

.other-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border-color: rgba(200, 16, 46, 0.15);
}

.other-product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.other-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.other-product-card:hover .other-product-img img {
    transform: scale(1.06);
}

.other-product-info {
    padding: 18px 20px;
}

.other-product-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.other-product-info p {
    font-size: 0.82rem;
    color: var(--gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail-image {
        position: static;
    }

    .product-detail-meta {
        flex-wrap: wrap;
        gap: 20px;
    }

    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .other-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .product-detail-meta {
        gap: 16px;
    }

    .product-detail-meta-item {
        min-width: calc(50% - 16px);
    }
}
