/* Styles pour la pop-up d'image */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 0 100px;
}

.popup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-container.show {
    opacity: 1;
    visibility: visible;
}

.popup-container.show .popup {
    transform: scale(1);
}

.popup img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.close-popup {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Support pour Safari */
@supports not (backdrop-filter: blur(8px)) {
    .popup-container {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Styles généraux pour la page produit */
.bf-product-fullpage {
    background-color: #fefbf3;
    box-shadow: 5px 5px 10px 0px #f7e9cf;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    height: auto;
    min-height: 600px;
}

.bf-product-image-full {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
}

.bf-product-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.bf-product-details-full {
    flex: 1;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #fefbf3;
    box-sizing: border-box;
    height: 100%;
    border-radius: 0;
}

.bf-product-description {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #7D6256;
}

/* Section des couleurs mise en ligne sous le texte */
.bf-product-colors {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.bf-product-colors h3 {
    margin-bottom: 10px;
}

.bf-color-swatches {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bf-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bf-color-swatch:hover {
    transform: scale(1.1);
}

.bf-color-swatch.active {
    border: 2px solid #4B3D33;
    transform: scale(1.1);
}

#bf-selected-color {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

/* Bords arrondis et effets pour le CTA */
.bf-cta-button {
    background-color: #42362d;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
    margin-bottom: 15px;
    align-self: center;
}

.bf-cta-button:hover {
    background-color: #42362d;
    transform: scale(1.05);
    color: white;
}

/* Styles pour les vignettes miniatures */
.bf-product-thumbnails {
    text-align: center;
    margin-bottom: 25px;
}

.bf-thumbnails-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bf-thumbnail.small-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    filter: brightness(0.95);
    transition: all 0.3s ease;
}

.bf-thumbnail.small-thumbnail:hover {
    transform: scale(1.1);
    filter: brightness(1);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .bf-product-fullpage {
        flex-direction: column;
        height: auto;
        width: 100%;
        border-radius: 0;
    }

    .bf-product-image-full, .bf-product-details-full {
        width: 100%;
        height: auto;
    }

    .bf-product-details-full {
        text-align: center;
    }

    .bf-cta-button {
        align-self: center;
        margin-top: 20px;
    }

    .bf-product-title {
        font-size: 2em;
    }

    .bf-product-description {
        font-size: 1.1em;
    }
}

@media (min-width: 768px) {
    .bf-product-image-full {
        border-radius: 20px 0 0 20px;
    }

    .bf-product-details-full {
        border-radius: 0 20px 20px 0;
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Style du guide des tailles */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.size-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Style du prix et statut de stock */
.bf-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background-color: #e8f5e9;
    border-radius: 10px;
    margin: 0;
    border: 1px solid #4caf50;
    color: #2e7d32;
    font-size: 0.9em;
}

.bf-stock-status i {
    color: #4caf50;
    font-size: 0.9em;
}

/* Style du prix et livraison */
.price-container {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    position: relative;
}

.price {
    position: relative;
    padding: 10px 25px;
    border-style: dashed;
    border-width: 5px;
    border-color: #efd7ac;
    border-radius: 25px;
    background: #fbefda;
    display: inline-block;
    font-size: 1.6em;
    font-weight: 800;
    color: #a4916d;
}

.prime-delivery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8f2e6;
    border: 2px dashed #d1cbbf;
    border-radius: 12px;
    color: #968c77;
    font-size: 0.8em;
    font-weight: 400;
    width: fit-content;
    margin: auto;
}

.prime-delivery i {
    color: #968c77;
    font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .price-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Style des flèches de navigation */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #42362d;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10000;
}

.nav-arrow.prev {
    left: -60px;
}

.nav-arrow.next {
    right: -60px;
}

.nav-arrow:hover {
    background: #42362d;
    color: white;
    transform: translateY(-50%) scale(1.05);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .popup-container {
        padding: 0 40px;
    }

    .popup {
        max-width: 100%;
        margin: 0;
    }

    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .nav-arrow.prev {
        left: -45px;
    }
    
    .nav-arrow.next {
        right: -45px;
    }
}

/* Conteneur pour Prime */
.prime-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 25px;
}

/* Style pour le symbole € */
.price::after {
    content: " €";
    font-size: 0.9em;
    margin-left: 2px;
}
