/* =============================================
   O'GELATO — PAGE PRODUIT
   Référence : tutto-gelato-1.html
   ============================================= */

/* --- Fil d'Ariane --- */
.breadcrumb {
    padding: 10rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--gray);
}
.breadcrumb a { color: var(--fraise); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Layout principal --- */
.product-page { padding: 2rem 2rem 4rem; }
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* --- Galerie produit --- */
.product-gallery {
    position: sticky;
    top: 7rem;
    height: fit-content;
}
.product-main-image {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    cursor: zoom-in;
    transition: all 0.3s ease;
}
.product-main-image:hover { box-shadow: var(--shadow-medium); }
.product-main-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- Badge --- */
.badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--gradient-fraise);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}
.badge.occasion { background: var(--menthe); }

/* --- Badge Bac (FC1/FC2/FC3) --- */
.badge-bac {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--gradient-turquoise);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lightbox-close:hover {
    background: var(--fraise);
    color: white;
    transform: rotate(90deg);
}

/* --- Informations produit --- */
.product-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.product-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* --- Bloc prix --- */
.product-price-box {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}
.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}
.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fraise);
}

/* --- Tableau de spécifications --- */
.product-specs-table {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}
.specs-title {
    background: var(--gradient-fraise);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}
.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
    font-weight: 500;
    color: var(--gray);
}
.spec-value {
    font-weight: 600;
    color: var(--dark);
    text-align: right;
}

/* --- Grille caractéristiques --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
}
.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--fraise);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}
.feature-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Boutons CTA --- */
.cta-buttons {
    display: flex;
    gap: 1rem;
}
.btn {
    flex: 1;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient-fraise);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.45);
}
.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid var(--dark);
}
.btn-secondary:hover {
    background: var(--dark);
    color: white;
}

/* --- Produits associés --- */
.related-products {
    padding: 4rem 2rem;
    background: white;
    margin-top: 4rem;
}
.related-products h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.related-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.related-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.related-card .image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.related-card .image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.related-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.related-card .price {
    color: var(--fraise);
    font-weight: 600;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        position: static;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-info h1 {
        font-size: 2rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   THÈMES COULEUR PAR CATÉGORIE
   ============================================= */

/* --- Thème Turquoise (Granités : fc1, fc2, fc3) --- */
body.theme-turquoise .breadcrumb a { color: var(--turquoise); }
body.theme-turquoise .badge { background: var(--gradient-turquoise); }
body.theme-turquoise .price { color: var(--turquoise); }
body.theme-turquoise .specs-title { background: var(--gradient-turquoise); }
body.theme-turquoise .feature-icon { background: var(--turquoise); }
body.theme-turquoise .btn-primary {
    background: var(--gradient-turquoise);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.35);
}
body.theme-turquoise .btn-primary:hover {
    box-shadow: 0 12px 35px rgba(0, 188, 212, 0.45);
}
body.theme-turquoise .lightbox-close:hover { background: var(--turquoise); }
body.theme-turquoise .related-card .price { color: var(--turquoise); }

/* --- Thème Vitrine (Vitrines : sublimo-7, 9, 12, 18) --- */
body.theme-vitrine .breadcrumb a { color: var(--vitrine); }
body.theme-vitrine .badge { background: var(--gradient-vitrine); }
body.theme-vitrine .price { color: var(--vitrine); }
body.theme-vitrine .specs-title { background: var(--gradient-vitrine); }
body.theme-vitrine .feature-icon { background: var(--vitrine); }
body.theme-vitrine .btn-primary {
    background: var(--gradient-vitrine);
    box-shadow: 0 8px 25px rgba(74, 136, 149, 0.35);
}
body.theme-vitrine .btn-primary:hover {
    box-shadow: 0 12px 35px rgba(74, 136, 149, 0.45);
}
body.theme-vitrine .lightbox-close:hover { background: var(--vitrine); }
body.theme-vitrine .related-card .price { color: var(--vitrine); }

/* --- Thème Caramel (Cornets : ogelato, artisano, prima) --- */
body.theme-caramel .breadcrumb a { color: var(--caramel-dark); }
body.theme-caramel .badge { background: var(--gradient-caramel); }
body.theme-caramel .price { color: var(--caramel-dark); }
body.theme-caramel .specs-title { background: var(--gradient-caramel); }
body.theme-caramel .feature-icon { background: var(--caramel); }
body.theme-caramel .btn-primary {
    background: var(--gradient-caramel);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}
body.theme-caramel .btn-primary:hover {
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.45);
}
body.theme-caramel .btn-secondary {
    color: var(--caramel-dark);
    border-color: var(--caramel);
}
body.theme-caramel .btn-secondary:hover {
    background: var(--caramel-dark);
    color: white;
}
body.theme-caramel .lightbox-close:hover { background: var(--caramel); }
body.theme-caramel .related-card .price { color: var(--caramel-dark); }

/* --- Thème Tech (Kit complet, Pièces détachées) --- */
body.theme-tech .breadcrumb a { color: var(--tech-blue); }
body.theme-tech .badge { background: var(--gradient-tech); }
body.theme-tech .price { color: var(--tech-blue); }
body.theme-tech .specs-title { background: var(--gradient-tech); }
body.theme-tech .feature-icon { background: var(--tech-accent); }
body.theme-tech .btn-primary {
    background: var(--gradient-tech);
    box-shadow: 0 8px 25px rgba(0, 172, 193, 0.35);
}
body.theme-tech .btn-primary:hover {
    box-shadow: 0 12px 35px rgba(0, 172, 193, 0.45);
}
body.theme-tech .btn-secondary {
    color: var(--tech-blue);
    border-color: var(--tech-blue);
}
body.theme-tech .btn-secondary:hover {
    background: var(--tech-blue);
    color: white;
}
body.theme-tech .lightbox-close:hover { background: var(--tech-accent); }
body.theme-tech .related-card .price { color: var(--tech-blue); }
