/* =========================
   PRODUIT CSS - AWARD WINNING
   ========================= */

/* BODY LAYOUT - ENSURES FOOTER AT BOTTOM */
/* Critical: Override scene.css height:auto which prevents footer from sticking */
body.single-product,
body.woocommerce-page,
body.post-type-product {
    height: auto !important;
    min-height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Force main wrapper to grow and push footer down */
body.single-product main.pdp-container,
body.woocommerce-page main.pdp-container,
body.post-type-product main.pdp-container {
    flex: 1 0 auto !important;
}

/* HEADER PDU - FOND OPAQUE POUR SCROLL (Harmonisé avec Boutique) */
/* ATMOSPHERE OVERRIDE FOR PDP */
#dragon-bg {
    display: none !important;
    /* On désactive le dragon ici */
}

.hero-fog {
    opacity: 0.9 !important;
    filter: brightness(1.6) contrast(1.2) blur(1px) !important;
    background:
        radial-gradient(circle at 50% 50%, rgba(242, 239, 233, 0.15) 0%, transparent 70%),
        url("../hero/images/fog.webp") center center / cover no-repeat !important;
    mix-blend-mode: lighten !important;
}

#top-nav {
    position: fixed;
    top: 0;
    /* Plus de décalage vertical car le bandeau est sur le côté */
    transition: top 0.3s ease;
    background: rgba(10, 9, 8, 0.2);
    /* Plus léger */
    backdrop-filter: blur(30px) saturate(1.5) brightness(0.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(0.8);
    border-bottom: 1px solid rgba(212, 165, 116, 0.05);
    height: 90px;
    z-index: 1000;
}

body.has-announcement-bar #top-nav {
    top: 0;
    /* Plus de décalage car le bandeau est vertical */
}

@media (max-width: 768px) {
    #top-nav {
        top: 0 !important;
        background: linear-gradient(to bottom, rgba(10, 9, 8, 1) 0%, rgba(10, 9, 8, 0.6) 80%, rgba(10, 9, 8, 0) 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
        height: auto;
        padding-bottom: 20px;
    }

    body.has-announcement-bar #top-nav {
        top: 0 !important;
        /* Plus de décalage car le bandeau est vertical */
    }
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-icons {
    display: flex;
    gap: 40px;
    /* Plus d'espace entre les icônes */
    align-items: center;
}

.quantity,
.product-price-hidden {
    display: none !important;
}

/* PDP Layout */
.pdp-container {
    position: relative;
    max-width: 1300px;
    margin: 140px auto 80px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    z-index: 50;
    /* Au-dessus du brouillard */
    flex: 1 0 auto;
    /* Ensures it grows to push footer down */
    width: 100%;
    box-sizing: border-box;
}

/* Image Section */
.pdp-visuals {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdp-main-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    background: rgba(242, 239, 233, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 93, 82, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.pdp-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* IMPORTANT : NE COUPE PAS LA TÊTE */
    transition: transform 0.5s ease;
}

.pdp-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pdp-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 1px solid transparent;
    border-radius: 2px;
}

.pdp-gallery img:hover {
    opacity: 1;
    border-color: var(--jade);
}

/* Info Section */
.pdp-info {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.pdp-category {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--jade);
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

.pdp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-size: 64px;
    font-weight: 300;
    line-height: 1.05;
    margin: 32px 0 40px 0;
    color: var(--ivory);
    letter-spacing: -0.01em;
}

.pdp-price,
.price,
.quantity {
    display: none !important;
}

.product-status {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--gold-subtle);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 48px;
    padding: 10px 20px;
    background: rgba(212, 165, 116, 0.03);
    border: 1px solid rgba(212, 165, 116, 0.2);
    display: inline-block;
}

.pdp-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 48px;
    color: var(--warm-gray);
    opacity: 0.9;
}

/* CTA & WOOCOMMERCE ADD TO CART */
.pdp-actions {
    margin: 48px 0 64px;
}

/* Formulaire Cart WooCommerce */
form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

/* CTA - STYLE HAUTE COUTURE */
.single_add_to_cart_button,
.pdp-cta {
    width: 100% !important;
    padding: 24px !important;
    background: transparent !important;
    border: 1px solid rgba(212, 165, 116, 0.5) !important;
    color: var(--ivory) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5em !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1) !important;
    display: block !important;
    text-align: center !important;
    position: relative;
    overflow: hidden;
}

.single_add_to_cart_button:hover {
    background: var(--ivory) !important;
    color: var(--ebony) !important;
    border-color: var(--ivory) !important;
}

.pdp-cta.disabled {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    cursor: not-allowed !important;
    letter-spacing: 0.4em !important;
}

/* Variations (Tailles/Couleurs) */
.variations {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.variations td {
    padding: 10px 0;
    vertical-align: middle;
}

.variations label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--jade);
    margin-right: 20px;
}

.variations select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ivory);
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
    width: 100%;
    outline: none;
    cursor: pointer;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.variations select:focus {
    border-color: var(--gold-subtle);
}

.reset_variations {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gold-subtle);
    margin-left: 10px;
    text-decoration: none;
}

/* Quantity input hide for luxury feel (optional) or style it */
.quantity {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
}

.quantity input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ivory);
    padding: 10px;
    width: 60px;
    text-align: center;
}

/* ANIMATIONS AWARD STYLE */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdp-info>* {
    animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pdp-category {
    animation-delay: 0.1s;
}

.pdp-title {
    animation-delay: 0.2s;
}

.product-status {
    animation-delay: 0.3s;
}

.pdp-description {
    animation-delay: 0.4s;
}

.pdp-actions {
    animation-delay: 0.5s;
}

.pdp-details {
    animation-delay: 0.6s;
}

/* COMPOSANTS DÉTAILS - HARMONISÉS */
.pdp-details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-header {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.detail-header h4 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--ivory);
}

.detail-header span {
    color: var(--jade);
}

.detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--warm-gray);
}

.detail-item.active .detail-content {
    max-height: 500px;
    padding-bottom: 32px;
}

@media (max-width: 1024px) {
    .pdp-container {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 100px;
        padding: 0 20px;
    }

    .pdp-info {
        position: static;
    }

    .pdp-title {
        font-size: 42px;
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    .pdp-container {
        margin-top: 80px;
        margin-bottom: 40px;
    }

    .pdp-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}