/* --- Product Action Hub (Lite & Modern) --- */
.product__action-hub-lite {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    width: 100%;
}

.hub-warranty-badge-lite {
    display: inline-flex;
    align-items: center;
    color: #334155;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.share-btn-lite {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.share-btn-lite:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.share-btn-lite.fb:hover { color: #1877f2; border-color: #1877f2; }
.share-btn-lite.x-tw:hover { color: #000; border-color: #000; }
.share-btn-lite.wa:hover { color: #25d366; border-color: #25d366; }

/* Floating Actions on Image */
.product-floating-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.floating-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-action-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: #f97316;
}

.floating-action-btn.add-to-wishlist[aria-pressed="true"],
.floating-action-btn.add-to-wishlist.active,
.floating-action-btn.add-to-wishlist.wished {
    background: #fff;
    color: #e11d48;
}

@media (max-width: 576px) {
    .product__details-thumb .product__details-nav-thumb,
    .product__details-thumb #pd-main-img,
    .product__details-thumb #qm-main-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
    }
    .product-floating-actions {
        top: 10px;
        right: 10px;
    }
    .floating-action-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* --- Creative Details & Reviews Section --- */
.product-details-creative-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.creative-tabs-nav {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 35px;
    padding-bottom: 5px;
    position: sticky;
    top: 70px; /* Ajusté pour ne pas être caché par le header collant s'il existe */
    background: #fff;
    z-index: 100;
}

.creative-tab-link {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.creative-tab-link.active {
    color: #111827;
}

.creative-tab-link::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 3px;
    background: #f97316;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.creative-tab-link.active::after {
    width: 100%;
}

.details-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .details-content-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.description-narrative h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.description-narrative p {
    line-height: 1.8;
    color: #4b5563;
}

.description-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.specs-modern-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    height: fit-content;
    border: 1px solid #f1f5f9;
}

.specs-header {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 20px 25px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.specs-grid {
    padding: 10px 0;
}

.spec-card-item {
    padding: 15px 25px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s ease;
}

.spec-card-item:last-child {
    border-bottom: none;
}

.spec-card-item:hover {
    background: #f8fafc;
}

.spec-label-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.spec-dot {
    width: 6px;
    height: 6px;
    background: #f97316;
    border-radius: 50%;
    flex-shrink: 0;
}

.spec-label {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-unit {
    font-weight: 700;
    color: #64748b;
    margin-left: 4px;
    text-transform: none;
}

.spec-value {
    color: #4b5563;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
    padding-left: 14px;
}

/* Reviews Styling */
.review-summary-box {
    background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid #f3f4f6;
    margin-bottom: 40px;
}

.big-rating {
    font-size: 4rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.stars-row {
    margin: 15px 0;
    color: #f59e0b;
    font-size: 1.25rem;
}

.review-card-modern {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f3f4f6;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.review-header-modern {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6b7280;
}

.reviewer-name {
    font-weight: 600;
    color: #111827;
}

.review-date-modern {
    font-size: 0.875rem;
    color: #9ca3af;
}

.review-text-modern {
    color: #4b5563;
    line-height: 1.6;
}

.verified-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.creative-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.creative-tab-pane.active {
    display: block;
}

.product-desc-html ul, .product-desc-html ol {
    padding-left: 20px;
    margin-bottom: 20px;
}
.product-desc-html li {
    margin-bottom: 8px;
    list-style: initial;
}
.badge-modern {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.badge-modern.promo { background: #fee2e2; color: #dc2626; }
.badge-modern.shipping { background: #f0fdf4; color: #16a34a; }

.product__price-modern { margin-top: 5px; }
.price-main-modern { color: #111827; }
.price-main-modern .h2 { font-size: 24px !important; }
.ms-auto-sm { margin-left: auto; }
@media (max-width: 576px) { .ms-auto-sm { margin-left: 0; width: 100%; border-left: none !important; padding-left: 0 !important; margin-top: 10px; } }
.text-orange { color: #f97316; }
.bg-orange { background-color: #f97316; }
.bg-soft-success { background-color: #f0fdf4; }
.bg-soft-danger { background-color: #fef2f2; }

.option-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    display: block;
    transition: all 0.2s;
}
.option-thumb img { width: 100%; height: 100%; object-fit: cover; }
.option-thumb.active { border-color: #3b82f6; }
.option-thumb:hover { border-color: #94a3b8; }

/* Styles spécifiques pour le bloc variations sur mobile (discrétion créative) */
@media (max-width: 767px) {
    .product__variations-modern.d-flex.d-md-none {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        background-color: #fafbfc;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #f1f5f9;
        gap: 1.25rem !important; /* Réduction du gap entre groupes */
    }

    .product__variations-modern.d-flex.d-md-none .variation-header-modern {
        margin-bottom: 6px !important;
    }

    .product__variations-modern.d-flex.d-md-none .variation-name-modern {
        font-size: 0.65rem;
        color: #94a3b8;
    }

    .product__variations-modern.d-flex.d-md-none .variation-line-modern {
        opacity: 0.5;
    }

    .product__variations-modern.d-flex.d-md-none .variation-label-modern {
        padding: 4px 10px;
        min-width: 34px;
        min-height: 34px;
        font-size: 0.7rem;
        border-radius: 8px;
    }

    /* Style du lien Guide des Tailles plus discret sur mobile */
    .product__variations-modern.d-flex.d-md-none .size-guide-link-modern {
        font-size: 0.65rem;
        color: #cbd5e1;
        background: #fff;
        padding: 2px 8px;
        border-radius: 20px;
        border: 1px solid #f1f5f9;
        box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }

    /* Permettre le défilement horizontal des options si trop nombreuses */
    .product__variations-modern.d-flex.d-md-none .d-flex.flex-wrap.gap-2 {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 8px !important;
    }

    .product__variations-modern.d-flex.d-md-none .d-flex.flex-wrap.gap-2::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    /* Empêcher les options de rétrécir dans le conteneur scrollable */
    .product__variations-modern.d-flex.d-md-none .variation-label-modern {
        flex-shrink: 0;
    }
}

/* Style "lite" et esthétique pour les variations - Nouveau design minimaliste */
.product__variations-modern {
    width: 100%;
    align-items: flex-start;
}

.product__variations-modern .variation-group-modern {
    margin-bottom: 0.5rem;
}

.variation-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.variation-name-modern {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

.variation-line-modern {
    height: 1px;
    background: #f1f5f9;
    flex-grow: 1;
}

.size-guide-link-modern {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: all 0.2s;
    margin-left: auto;
}

.size-guide-link-modern:hover {
    color: #3b82f6;
}

.variation-label-modern {
    cursor: pointer;
    padding: 6px 12px;
    border: 1.5px solid #f1f5f9;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748b;
    background-color: #f8fafc;
    transition: all 0.2s ease-in-out;
    min-width: 38px;
    min-height: 38px;
    position: relative;
    user-select: none;
}

.variation-label-modern:hover:not(.out-of-stock) {
    border-color: #cbd5e1;
    color: #334155;
    background-color: #fff;
    transform: translateY(-1px);
}

.btn-check:checked + .variation-label-modern {
    border-color: #3b82f6;
    background-color: #fff;
    color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12);
}

/* Petit indicateur de sélection supplémentaire */
.btn-check:checked + .variation-label-modern::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border: 2px solid #fff;
    border-radius: 50%;
}

.variation-label-modern.out-of-stock {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: transparent;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
}

.variation-label-modern.out-of-stock::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 1px;
    background: #94a3b8;
    transform: rotate(-15deg);
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-check:checked + .variation-label-modern .color-dot {
    transform: scale(1.1);
}

.quantity-modern .cart-plus-minus {
    width: 120px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
}
.add-to-cart-modern {
    background: #111827;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}
.add-to-cart-modern:hover { background: #1f2937; transform: scale(1.02); }

.size-guide-link { font-size: 0.8rem; color: #3b82f6; text-decoration: none; }
.size-guide-link:hover { text-decoration: underline; }

@media (min-width: 576px) {
    .border-start-sm { border-left: 1px solid #e5e7eb; }
}

/* Variations: neutraliser le fond quand sélectionnées (Bootstrap .btn-check + .btn) */
.product__options .btn-check:checked + .btn,
.product__options .btn.active,
.product__options .btn:active,
.product__options .show > .btn,
.product__options .btn:focus {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* Conserver un repère visuel discret via la bordure quand sélectionnée */
.product__options .btn-check:checked + .btn,
.product__options .btn.active {
    border-color: #9ca3af !important; /* gris doux */
}

/* Focus accessible: anneau léger sans remplissage */
.product__options .btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .25) !important; /* bleu translucide */
    background: transparent !important;
}

/* Tech specs lite */
.tech-specs-lite {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.tech-specs-lite__header {
    padding: 12px 16px;
    font-weight: 600;
    color: #111827;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.tech-specs-lite__list {
    margin: 0;
    padding: 0;
}

.tech-specs-lite__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.tech-specs-lite__item:last-child {
    border-bottom: none;
}

.tech-specs-lite__term {
    margin: 0;
    font-weight: 500;
    color: #374151;
}

.tech-specs-lite__desc {
    margin: 0;
    color: #111827;
}

.tech-specs-lite__desc .unit {
    color: #6b7280;
    margin-left: 4px;
}

@media (max-width: 575.98px) {
    .tech-specs-lite__item {
        display: block;
    }

    .tech-specs-lite__term {
        margin-bottom: 2px;
    }
}

/* Galerie produit responsive - Bureau et Mobile */
.product__details-nav {
    flex-direction: column;
    align-items: flex-start !important;
}

#modalThumbs {
    flex-direction: row !important;
    overflow-x: auto;
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 0;
    gap: 10px;
    scrollbar-width: none; /* Firefox */
    border-bottom: none;
}

#modalThumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

#modalThumbs .nav-item {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}

#modalThumbs .nav-link {
    padding: 0 !important;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0 !important;
}

#modalThumbs .nav-link.active {
    border-color: #10b981 !important;
}

#modalThumbs .nav-link img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    background: #fff;
}

@media (min-width: 576px) {
    #modalThumbs .nav-link img {
        width: 85px !important;
        height: 85px !important;
    }
}

.product__details-thumb {
    margin-left: 0 !important;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
}

    .product__details-nav-thumb img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: contain;
        background: #fff;
    }

    .product__details-nav-thumb {
        width: 100%;
    }

    /* Cacher les actions sous l'image sur mobile pour nettoyer */
    @media (max-width: 575.98px) {
        .product__details-thumb .pd__share,
        .product__details-thumb .product__details-action {
            display: none !important;
        }
    }

/* Largeur réduite du bloc spécifications techniques */
.product__details-specs {
    max-width: 50%;
}

@media (max-width: 767.98px) {
    .product__details-specs {
        max-width: 100%;
    }
}

/* Forcer les photos des descriptions à s'afficher en 600x600 sans déformation */
.desc-photo-600 {
    width: 600px;
    height: 600px;
    object-fit: cover;
    /* Empêche les débordements sur mobiles/tablettes tout en gardant le ratio d'affichage carré */
    max-width: 100%;
}

/* Taille fixe de l'image principale du bloc product__details-thumb: 400x400 */
.product__details-thumb .product__details-nav-thumb {
    width: 400px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.product__details-thumb #pd-main-img,
.product__details-thumb #qm-main-img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Infos clés sous le prix */
.pd__meta {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px 16px;
    margin: 14px 0 8px
}

.pd__meta .lbl {
    color: #6b7280;
    min-width: 120px
}

.pd__meta .val a {
    color: #111827;
    text-decoration: none
}

.pd__meta .val a:hover {
    text-decoration: underline
}

.pd__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 18px
}

.pd__badge {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151
}

.pd__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
    margin: 12px 0
}

.pd__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151
}

.pd__share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px
}

.pd__share a {
    color: #6b7280
}

/* Résumé des avis */
.rating-summary {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 10px 0 18px
}

.rating-summary .avg {
    font-size: 40px;
    font-weight: 700;
    line-height: 1
}

.rating-bars {
    flex: 1
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0
}

.rating-row .bar {
    flex: 1;
    background: #f3f4f6;
    height: 8px;
    border-radius: 6px;
    overflow: hidden
}

.rating-row .bar > span {
    display: block;
    height: 100%;
    background: #f59e0b
}

.rating-row .star-label {
    width: 42px;
    text-align: right;
    color: #6b7280
}

.product-desc-html p {
    margin: 0 0 10px;
    line-height: 1.7;
    text-align: inherit;
}

.product-desc-html ul {
    margin: 8px 0 12px 18px
}

.product-desc-html h4, .product-desc-html h5 {
    margin-top: 14px
}

.product-desc-html img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 6px;
}

.product-desc-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.product-desc-html table th,
.product-desc-html table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
}

/* Sticky action bar mobile */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #ffffffc7;
    backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid #e5e7eb;
    padding: 10px 14px;
    transition: bottom .25s ease-in-out;
    z-index: 1030
}

.sticky-cta.visible {
    bottom: 0
}

.sticky-cta .price {
    font-weight: 700;
    font-size: 18px
}

.sticky-cta .btn {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px
}

@media (min-width: 992px) {
    .sticky-cta {
        display: none
    }
}

@media (max-width: 575.98px) {
    .pd__meta {
        grid-template-columns:1fr
    }
}

/* Olive theme (scoped) */
.pd-olive-theme {
    --olive: #6b8e23;
    --olive-600: #5e7f1f;
    --olive-700: #4f6b1a;
    --olive-50: #f4f8ea;
    --olive-100: #e7f0cf;
    --olive-200: #10b981
}

/* Correction du zoom Magnific Popup trop collé aux bords */
.mfp-wrap {
    overflow: visible !important;
}

.mfp-container {
    padding: 20px !important;
}

.mfp-content {
    padding: 0 !important;
    vertical-align: middle;
}

.mfp-figure {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #fff;
    border-radius: 8px;
    position: relative;
    margin: 0 auto;
    overflow: visible !important;
}

img.mfp-img {
    padding: 0 !important;
    max-height: calc(100vh - 120px) !important;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    margin: 0 auto;
}

.mfp-bottom-bar {
    margin-top: 0 !important;
    padding: 15px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    box-sizing: border-box;
}

.mfp-title {
    color: #111827 !important;
    font-weight: 600;
    line-height: 1.4 !important;
    padding-right: 40px;
}

.mfp-counter {
    color: #6b7280 !important;
    font-size: 13px;
    top: 15px !important;
    right: 15px !important;
}

.mfp-close {
    color: #fff !important;
    background: #111827 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 50% !important;
    top: 5px !important;
    right: 5px !important;
    opacity: 1 !important;
    padding: 0 !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    cursor: pointer !important;
    z-index: 1046 !important;
}

.mfp-close:hover {
    transform: scale(1.1);
}

/* Zoom animation for Magnific Popup */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
  opacity: 0;
  backface-visibility: hidden;
  /* ideally, transition speed should match zoom duration */
  transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}
.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
  opacity: 0;
}

.mfp-arrow {
    opacity: 1 !important;
    margin: 0 !important;
    top: 50% !important;
    margin-top: -55px !important;
}

.mfp-arrow-left { left: 10px !important; }
.mfp-arrow-right { right: 10px !important; }

@media (max-width: 767px) {
    .mfp-container {
        padding: 10px !important;
    }
    .mfp-close {
        top: 5px !important;
        right: 5px !important;
        background: #111827 !important;
        color: #fff !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    img.mfp-img {
        max-height: calc(100vh - 100px) !important;
    }
}

.pd-olive-theme .product__price .new {
    color: var(--olive)
}

.pd-olive-theme .t-y-btn {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff
}

.pd-olive-theme .t-y-btn:hover {
    background: var(--olive-700);
    border-color: var(--olive-700)
}

.pd-olive-theme #modalThumbs .nav-link.active {
    border-color: var(--olive);
    box-shadow: 0 0 0 2px rgba(107, 142, 35, .2)
}

.pd-olive-theme .pd__badge {
    background: var(--olive-50);
    border-color: var(--olive-200);
    color: #2f3d0f
}

.pd-olive-theme .pd__trust {
    border-top-color: var(--olive-100);
    border-bottom-color: var(--olive-100)
}

.pd-olive-theme .sticky-cta .btn {
    background: var(--olive)
}

.pd-olive-theme .sticky-cta .btn:hover {
    background: var(--olive-700)
}

.badge-olive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--olive-50);
    color: #2f3d0f;
    border: 1px solid var(--olive-200);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 15px
}

.badge-olive i {
    color: var(--olive-600)
}

.pd__promotion-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border: 1px dashed #feb2b2;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.pd__promotion-banner:hover {
    border-style: solid;
    background: linear-gradient(135deg, #fff0f0 0%, #ffe5e5 100%);
    transform: translateY(-1px);
}
.pd__promotion-banner i.fa-gift {
    font-size: 1.5rem;
    color: #e53e3e;
    animation: gift-bounce 2s infinite;
}
@keyframes gift-bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}
.pd__promotion-title {
    font-size: 15px;
    font-weight: 700;
    color: #c53030;
    margin: 0;
}
.pd__promotion-text {
    font-size: 14px;
    color: #742a2a;
    margin: 0;
}
.pd__promotion-badge {
    background: #e53e3e;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Topline au-dessus du titre */
.pd__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px
}

.pd__topline .shop-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--olive-50);
    border: 1px solid var(--olive-200);
    color: #2f3d0f;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 15px
}

.pd__topline .offer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    color: #8a4b00;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 15px
}

.pd__topline .shop-pill i, .pd__topline .offer-pill i {
    opacity: .9
}
