/* ===================================================
   PRODUCTO INTERIOR — css/producto-interior.css
   Página individual de producto
   =================================================== */

/* ---- Product Detail Section ---- */
.product-detail-section {
    padding: 60px 0 50px;
    background-color: var(--bg-white);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ---- Gallery ---- */
.product-gallery {
    display: flex;
    gap: 16px;
}

.gallery-thumbs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 82px;
    flex-shrink: 0;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 82px;
    flex-shrink: 0;
}

.gallery-thumb {
    width: 82px;
    height: 82px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f7f7f7;
    transition: border-color 0.25s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.gallery-thumb:hover {
    transform: scale(1.04);
}

.gallery-thumb.active {
    border-color: var(--primary-green);
}

.gallery-thumb-nav {
    width: 82px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f1e3;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumb-nav:hover {
    background: var(--primary-green);
    color: #fff;
}

.gallery-main {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f7f7;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}

.gallery-main img.fading {
    opacity: 0;
}

/* ---- Product Info ---- */
.product-info {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.product-info .p-category {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 900;
    color: #111;
    line-height: 1.25;
    margin-bottom: 14px;
}

.product-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 22px;
}

.product-price {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 28px;
}

.btn-contact-product {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-red);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    border-radius: 50px;
    padding: 14px 32px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    width: fit-content;
    margin-bottom: 28px;
    border: none;
    cursor: pointer;
}

.btn-contact-product:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.35);
}

.btn-contact-product img {
    width: 20px;
    height: 20px;
}

.product-meta {
    font-size: 14px;
    color: #777;
}

.product-meta strong {
    color: #333;
    font-weight: 700;
}

/* ---- Related Products Section ---- */
.related-section {
    padding: 60px 0 50px;
    background-color: var(--bg-white);
}

.related-title {
    font-size: 36px;
    font-weight: 900;
    font-style: italic;
    color: #111;
    margin-bottom: 36px;
}

.related-title span {
    color: var(--primary-green);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Reuse .p-card styles from productos.css — just override grid cols here */

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .product-detail-layout {
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-info h1 {
        font-size: 26px;
    }

    .product-price {
        font-size: 28px;
    }

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

@media (max-width: 480px) {
    .gallery-thumbs {
        width: 64px;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }

    .gallery-thumb-nav {
        width: 64px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .related-title {
        font-size: 26px;
    }
}
