/* PRODUCT DETAIL PAGE */
.product-detail {
    margin-top: 98px;
    padding-top: 40px;
}

.product-detail .breadcrumb {
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--gray);
}

.product-detail .breadcrumb a {
    color: var(--gold);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* IMAGE GALLERY */
.product-gallery {
    position: sticky;
    top: 110px;
}

.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--light-gray);
}

.gallery-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-thumb {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--gold);
}

/* PRODUCT INFO */
.product-detail-info {
    padding-top: 10px;
}

.product-detail-info .product-category {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-detail-info h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.product-detail-price .old-price {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-stock {
    font-size: 0.82rem;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 20px;
}

.product-stock.low {
    color: #e65100;
}

.product-desc {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

/* VARIANTS */
.variant-section {
    margin-bottom: 22px;
}

.variant-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-btn {
    padding: 8px 18px;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 0.82rem;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    font-family: var(--font-body);
}

.variant-btn:hover,
.variant-btn.selected {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

/* COLOR SWATCHES */
.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    outline: 2px solid transparent;
}

.color-swatch:hover,
.color-swatch.selected {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* QUANTITY + ADD TO CART */
.qty-add-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-control button {
    width: 38px;
    height: 44px;
    border: none;
    background: var(--light-gray);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--gold);
    color: var(--white);
}

.qty-control input {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
}

.btn-add-cart {
    flex: 1;
    min-width: 160px;
}

.btn-whatsapp-product {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 0;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
}

.btn-whatsapp-product:hover {
    color: #1da851;
}

.btn-whatsapp-product i {
    font-size: 1.1rem;
}

.product-meta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.82rem;
    color: var(--gray);
}

.product-meta span {
    margin-right: 20px;
}

.product-meta strong {
    color: var(--dark);
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
    }

    .gallery-main img {
        height: 400px;
    }

    .product-detail-info {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding-top: 20px;
    }

    .gallery-main img {
        height: 280px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .gallery-thumb img {
        height: 62px;
    }

    .product-detail-info h1 {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    .qty-add-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .qty-control {
        align-self: flex-start;
    }

    .btn-add-cart {
        justify-content: center;
    }

    .variant-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .product-desc {
        font-size: 0.85rem;
    }
}