/**
 * PRODUCT PAGE CUSTOM STYLES
 * Styles pour la page produit Pressero
 * Version: 1.1
 */

/* ============================================
   CUSTOM DROPDOWNS
   ============================================ */

.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.custom-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #232323;
}

.custom-dropdown-toggle:hover {
    border-color: #0066cc;
}

.custom-dropdown-toggle.active {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.custom-dropdown-arrow {
    transition: transform 0.3s ease;
    color: #666;
    font-size: 12px;
}

.custom-dropdown-toggle.active .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #232323;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-dropdown-item:hover {
    background-color: #f7f7f7;
}

.custom-dropdown-item.selected {
    background-color: #e6f2ff;
    color: #0066cc;
    font-weight: 500;
}

.custom-dropdown-item i.fa-leaf {
    color: #28a745;
}

.custom-dropdown-item .paper-info-trigger {
    margin-left: auto;
    cursor: pointer;
    transition: color 0.2s ease;
}

.custom-dropdown-item .paper-info-trigger:hover {
    color: #0066cc;
}

/* ── État DÉSACTIVÉ (posé par Pressero via .disabled) ───────────── */
/* Bloque toute interaction — plus robuste que le masquage JS       */
.custom-dropdown.disabled,
.custom-dropdown[aria-disabled="true"] {
    pointer-events: none !important;
    cursor: default !important;
}

.custom-dropdown.disabled .custom-dropdown-toggle,
.custom-dropdown[aria-disabled="true"] .custom-dropdown-toggle {
    background-color: #dfe3e6 !important;
    border-color: #c4cbd1 !important;
    color: #737d85 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;           /* évite un double-assombrissement avec opacity héritée */
}

/* Champs natifs : rendre l'indisponibilité visible sans nuire à la lecture. */
.PriceCalc_CalcParm input:disabled,
.PriceCalc_CalcParm select:disabled,
.PriceCalc_CalcParm textarea:disabled,
.PriceCalc_Quantity input:disabled,
.PriceCalc_Quantity select:disabled {
    background-color: #dfe3e6 !important;
    border-color: #c4cbd1 !important;
    color: #737d85 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Masquer la flèche chevron sur un champ désactivé */
.custom-dropdown.disabled .custom-dropdown-arrow,
.custom-dropdown[aria-disabled="true"] .custom-dropdown-arrow {
    display: none !important;
}

/* Le menu ne doit jamais s'ouvrir */
.custom-dropdown.disabled .custom-dropdown-menu {
    display: none !important;
}

/* ============================================
   APERÇU AGRANDI DES VIGNETTES
   ============================================ */

.h2-image-preview-trigger {
    cursor: zoom-in;
}

.h2-image-preview-trigger:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.h2-image-preview {
    position: fixed;
    z-index: 2147483000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.h2-image-preview.is-open {
    visibility: visible;
    opacity: 1;
}

.h2-image-preview.is-floating {
    width: min(360px, calc(100vw - 24px));
    transform: translateY(4px) scale(.985);
}

.h2-image-preview.is-floating.is-open {
    transform: translateY(0) scale(1);
}

.h2-image-preview__surface {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(32, 71, 85, .18);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 45, 55, .26);
}

.h2-image-preview__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    background: #f4f4f4;
}

.h2-image-preview__image[hidden] {
    display: none;
}

.h2-image-preview__swatch {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(32, 71, 85, .18);
    border-radius: 8px;
    background: #f4f4f4;
}

.h2-image-preview__swatch[hidden] {
    display: none;
}

.h2-image-preview__caption {
    padding: 9px 4px 1px;
    color: #204755;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.h2-image-preview__close {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(32, 71, 85, .9);
    color: #fff;
    font: 400 28px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}

.h2-image-preview__close:focus-visible {
    outline: 3px solid #4fc0ea;
    outline-offset: 2px;
}

.h2-image-preview.is-modal {
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(13, 31, 38, .78);
    pointer-events: auto;
    overscroll-behavior: contain;
}

.h2-image-preview.is-modal .h2-image-preview__surface {
    width: min(560px, 92vw);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 12px;
}

.h2-image-preview.is-modal .h2-image-preview__image {
    max-height: min(70vh, 560px);
    max-height: min(70dvh, 560px);
    object-fit: contain;
}

.h2-image-preview.is-modal .h2-image-preview__close {
    display: flex;
}

body.h2-image-preview-lock {
    overflow: hidden !important;
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
    .h2-image-preview.is-modal .h2-image-preview__surface {
        width: min(520px, 94vw);
        border-radius: 10px;
    }

    .h2-image-preview__caption {
        padding-top: 10px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h2-image-preview {
        transition: none;
    }
}

/* ============================================
   DROPZONE UPLOAD PERSONNALISÉE
   ============================================ */

.upload-container {
    position: relative;
}

.dropzone {
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    background: #fafafa;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.dropzone.dz-drag-hover {
    border-color: #0066cc;
    background: #e6f2ff;
}

.dropzone .dz-message {
    margin: 0;
}

.dropzone .dz-message h5 {
    margin-bottom: 10px;
    font-weight: 500;
    color: #4fc0ea;
    font-size: 16px;
}

.dropzone .dz-message h5 i {
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
}

/* ============================================
   STYLES MIGRÉS DEPUIS LE JS (inline → CSS)
   ============================================ */

/* Wrapper principal de l'upload Pressero */
.fileUploadArea .fileUploadWrapper {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
}

/* Masquer le heading natif Pressero (icône est dans la dropzone) */
.fileUploadArea .fileUploadWrapper > .pricingHeading {
    display: none;
}

/* Labels "Fichier X :" */
.upload-field-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

/* Carte de fichier existant (réédition de commande) */
.existing-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.existing-file-card .existing-file-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.existing-file-card .existing-file-icon {
    font-size: 32px;
    color: #4fc0ea;
}

.existing-file-card .existing-file-name {
    font-weight: 600;
    color: #204755;
    font-size: 14px;
}

.existing-file-card .existing-file-size {
    color: #999;
    font-size: 12px;
}

/* Bouton de suppression de fichier existant */
.btn-remove-file {
    width: 32px;
    height: 32px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ============================================
   DROPZONE NATIVE PRESSERO (custom-dropzone-content)
   Styles migrés depuis setupPresseroFileUploadStyling
   ============================================ */

/* Conteneur principal dropzone Pressero */
.custom-dropzone-content {
    pointer-events: none;
}

/* Ligne titre : icône + h5 côte à côte */
.dropzone-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dropzone-upload-icon {
    font-size: 32px;
    color: #4fc0ea;
}

.dropzone-title {
    color: #4fc0ea;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.dropzone-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.dropzone-browse-link {
    text-decoration: underline;
    cursor: pointer;
}

.dropzone-formats {
    color: #999;
    font-size: 12px;
}

/* Wrapper invisible pour rendre toute la zone cliquable */
.file-input-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

/* Input file invisible superposé sur toute la zone */
.file-input-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 11 !important;
}

.dropzone .upload-info {
    margin-top: 15px;
}

/* File selected display */
.file-selected-display {
    padding: 20px;
}

.file-info-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.file-icon {
    font-size: 32px;
    color: #0066cc;
}

.file-details {
    flex: 1;
}

.file-name-display {
    font-weight: 500;
    color: #232323;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-size-display {
    font-size: 12px;
    color: #666;
}

.file-remove-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.file-remove-btn:hover {
    background-color: #fff0f0;
}

.file-remove-btn i {
    font-size: 18px;
}

/* Zone remove button */
.zone-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.zone-remove-btn:hover {
    background-color: #c82333;
}

/* ============================================
   ORDER SUMMARY SECTION
   ============================================ */

/* Les classes utilitaires lg-w-100/xl-right-130px ne doivent pas étirer le récap. */
#sticky-cart-bar.sticky-cart-bar {
    box-sizing: border-box;
    width: 50% !important;
    max-width: calc(100% - 32px) !important;
    right: 130px !important;
    left: auto !important;
}
#sticky-cart-bar > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    margin: 0 12px !important;
}
/* Les clearfix Bootstrap de Pressero ne doivent pas occuper une cellule. */
#sticky-cart-bar > .row::before,
#sticky-cart-bar > .row::after {
    content: none !important;
    display: none !important;
}
#sticky-cart-bar > .row > div {
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin-bottom: 0 !important;
    text-align: center;
}
#sticky-cart-bar #sticky-add-to-cart {
    max-width: 100%;
    white-space: nowrap;
    min-height: 44px;
}
@media (max-width: 1199.98px) {
    #sticky-cart-bar.sticky-cart-bar {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        right: 12px !important;
        left: auto !important;
    }
}
@media (max-width: 575.98px) {
    #sticky-cart-bar > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
    #sticky-cart-bar > .row > div:last-child { grid-column: 1 / -1; }
    #sticky-cart-bar #sticky-add-to-cart { width: 100%; }
}

.order-summary-section {
    background: transparent;
    padding:0;
}

.order-summary-section .feature-box {
    background: transparent;
    border-radius: 6px;
    padding: 5px 10px;
}

.order-summary-section .feature-box-content span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600 !important;
}

.order-summary-section .feature-box-content p {
    font-size: 16px;
    font-weight: 600 !important;
    margin: 0;
}

.order-summary-delay,
.order-summary-price-ht,
.order-summary-price-ttc {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
}



/* ============================================
   PRODUCT PAGE LAYOUT
   ============================================ */

.product-detail .shopping-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

/* Colonne gauche - Images & Onglets */
.product-images-column {
    flex: 0 0 40%;
    max-width: 40%;
}

/* Colonne droite - Calculateur */
.product-calculator-column {
    flex: 0 0 60%;
    max-width: 60%;
}

/* ============================================
   ONGLETS INFORMATIFS
   ============================================ */



/* ============================================
   BOUTONS ENRICHIS (DÉLAI DE FABRICATION)
   ============================================ */

.feature-box.btn {
    transition: all 0.3s ease;
}

.feature-box.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feature-box.btn.border-color-h2-blue {
    border-color: #4fc0ea !important;
}

.feature-box.btn .feature-box-icon.bg-transparent-h2-blue {
    background-color: rgba(0, 102, 204, 0.1) !important;
}

.feature-box.btn .product-price {
    
    font-weight: 500;
    color: #232323;
}

/* Bouton désactivé avec pattern hachuré */
.bg-hatched-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0.05) 20px
    );
}

/* ============================================
   TOOLTIPS PERSONNALISÉS
   ============================================ */

.tooltip-trigger {
    cursor: help;
    margin-left: 5px;
}

/* Thème Tippy personnalisé */
.tippy-box[data-theme~='light-border'] {
    background-color: #fff;
    color: #232323;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tippy-box[data-theme~='light-border'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #fff;
}

.tippy-box[data-theme~='light-border'] > .tippy-content {
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================
   MODAL INFORMATIONS PAPIER
   ============================================ */

.modal-popup-main {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.mfp-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: color 0.2s ease;
}

.mfp-close:hover {
    color: #232323;
}

/* ============================================
   FENÊTRE MODALE DEVIS (Kendo UI k-window)
   Force le scroll sur le contenu — styles Pressero natifs non accessibles
   ============================================ */

/* Contenu scrollable de la modale */
#dynamicContainer.k-window-content,
.k-window #dynamicContainer {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* On enlève tout padding top inutile pour maximiser l'espace */
    box-sizing: border-box !important;
}

/* S'assure que la page d'estimation ne force pas une hauteur infinie */
#dynamicContainer .printEstimatePage {
    height: auto !important;
    min-height: unset !important;
}

/* Zone imprimable : hauteur auto, pas de débordement */
#dynamicContainer #printableArea,
#dynamicContainer #printEstimateProductPage {
    height: auto !important;
    overflow: visible !important;
}

/* Bouton d'impression : toujours visible en haut, collé */
#dynamicContainer .prod-estimate-button {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #fff !important;
    padding: 8px 0 !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #e8e8e8 !important;
    text-align: right !important;
}

/* Scrollbar fine et discrète (navigateurs WebKit) */
#dynamicContainer.k-window-content::-webkit-scrollbar {
    width: 6px;
}

#dynamicContainer.k-window-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#dynamicContainer.k-window-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

#dynamicContainer.k-window-content::-webkit-scrollbar-thumb:hover {
    background: #4fc0ea;
}

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

@media (max-width: 1199px) {
    .product-images-column,
    .product-calculator-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-detail .shopping-content {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .custom-dropdown-toggle {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .custom-dropdown-item {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .dropzone {
        padding: 30px 15px;
        min-height: 150px;
    }
    
    .dropzone .dz-message i {
        font-size: 36px;
    }
    
    .order-summary-section .feature-box-content p {
        font-size: 16px;
    }
    
    .sticky-cart-bar {
        padding: 10px 0;
    }
    
    .sticky-cart-bar .sticky-delay,
    .sticky-cart-bar .sticky-price {
        font-size: 14px;
    }
    
    .tab-style-07 .nav-tabs .nav-link {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */


.border-radius-10px {
    border-radius: 10px !important;
}


.bg-transparent-h2-blue {
    background-color: rgba(0, 102, 204, 0.1) !important;
}

.btn-transparent-h2-blue {
    background-color: rgba(0, 102, 204, 0.1);
    color: #4fc0ea;
    border: 1px solid #4fc0ea;
}

.btn-transparent-h2-blue:hover {
    background-color: #4fc0ea;
    color: #fff;
}

.btn-transparent-golden-brown {
    background-color: rgba(184, 134, 11, 0.1);
    color: #b8860b;
    border: 1px solid #b8860b;
}

.btn-transparent-golden-brown:hover {
    background-color: #b8860b;
    color: #fff;
}

.text-green {
    color: #28a745 !important;
}

.margin-5px-bottom {
    margin-bottom: 5px !important;
}

.margin-10px-bottom {
    margin-bottom: 10px !important;
}

.margin-20px-bottom {
    margin-bottom: 20px !important;
}

.margin-20px-top {
    margin-top: 20px !important;
}

.margin-5px-right {
    margin-right: 5px !important;
}

/* ============================================
   UPLOAD FIELDS VISIBILITY CONTROL
   ============================================ */

/* Classe pour masquer les champs upload supplémentaires */
.upload-hidden,
.fileUploadSelect.upload-hidden,
.fileUploadArea .upload-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

/* ============================================
   ANIMATION ATTENTION CHECKBOX
   ============================================ */

/* Animation shake pour attirer l'attention */
@keyframes shake-attention {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-attention {
    animation: shake-attention 0.6s ease-in-out;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5) !important;
    border-radius: 8px;
}

.shake-attention .alert {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* ============================================
   LAYOUT 2 COLONNES : UPLOAD + INSTRUCTIONS
   Utilisation de CSS Grid pour placer côte à côte
   .fileUploadArea et .orderNotesArea sans toucher au JS
   ============================================ */

.general-panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
}

/* Par défaut, tous les enfants prennent toute la largeur (2 colonnes) */
.general-panel-body > * {
    grid-column: 1 / -1;
}

/* Seuls upload et notes se partagent la ligne en 50/50 */
.general-panel-body > .fileUploadArea {
    grid-column: 1 / 2;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.general-panel-body > .orderNotesArea {
    grid-column: 2 / 3;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Le textarea a une hauteur raisonnable */
.orderNotesArea #txtOrderNotes {
    min-height: 140px;
    max-height: 180px;
    resize: vertical;
}

/* Responsive : repasser en colonne unique sous 992px */
@media (max-width: 991px) {
    .general-panel-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .general-panel-body > .fileUploadArea,
    .general-panel-body > .orderNotesArea {
        grid-column: 1 / -1;
    }
}

/* ============================================
   SEO CONTENT RELOCATION
   ============================================ */

#product-seo-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.moved-seo-content {
    animation: animate__fadeIn 1s ease-in-out;
}

/* Le texte reste intégralement présent ; seul son aperçu est limité. */
#product-seo-section .product-seo-viewport {
    position: relative;
    display: flow-root;
}

#product-seo-section.product-seo-collapsible:not(.product-seo-expanded) .product-seo-viewport {
    max-height: var(--seo-preview-height, 280px);
    overflow: hidden;
    overflow: clip;
}

#product-seo-section.product-seo-collapsible:not(.product-seo-expanded) .product-seo-viewport::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

#product-seo-section .product-seo-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 8px auto 0;
    padding: 8px 24px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #204755;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    cursor: pointer;
}

#product-seo-section .product-seo-toggle[hidden] {
    display: none;
}

#product-seo-section .product-seo-toggle:hover {
    color: #167b9d;
    background: #f0faff;
}

#product-seo-section .product-seo-toggle:focus-visible {
    outline: 3px solid #4fc0ea;
    outline-offset: 4px;
}

#product-seo-section.product-seo-expanded .product-seo-toggle svg {
    transform: rotate(180deg);
}

@media print {
    #product-seo-section.product-seo-collapsible .product-seo-viewport {
        max-height: none;
        overflow: visible;
    }

    #product-seo-section .product-seo-viewport::after,
    #product-seo-section .product-seo-toggle {
        display: none;
    }
}

/* Optionnel : cacher le bloc dans son emplacement d'origine pendant le chargement */
.product-description-wrapper > .container.moved-seo-content {
    display: none !important;
}
/* ============================================
   PRODUCT COLUMN SYNC & SCROLL
   ============================================ */

.shopping-content.align-items-start {
    align-items: flex-start !important;
}

.product-description-wrapper::-webkit-scrollbar {
    width: 6px;
}

.product-description-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.product-description-wrapper::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.product-description-wrapper::-webkit-scrollbar-thumb:hover {
    background: #4fc0ea;
}

/* ============================================
   BADGES DÉLAIS (URGENT, EXPRESS, STANDARD, ECO)
   ============================================ */

.h2-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.h2-badge-urgent {
    background-color: #f3e8ff;
    color: #7e22ce;
}

.h2-badge-express {
    background-color: #fce8f3;
    color: #be185d;
}

.h2-badge-rapide {
    background-color: #fff0e0;
    color: #e67300;
}

.h2-badge-standard {
    background-color: #e0f2fe;
    color: #0369a1;
}

.h2-badge-eco {
    background-color: #d1fae5;
    color: #059669;
}

.h2-badge-super-eco {
    background-color: #ecfdf5;
    color: #10b981;
}

/* ============================================
   ACCORDÉON D'OPTIONS (Finitions, Accessoires)
   ============================================ */
.h2-accordion-section-title {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 10px;
    color: #a1a1a1;
}

.h2-options-list > li {
    margin-bottom: 15px;
}

.h2-options-list > li > label {
    font-size: 14px;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* ============================================
   SÉLECTEUR DE MATIÈRES — PANNEAUX RIGIDES
   ============================================ */

.h2-material-selector {
    margin: 8px 0 18px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.h2-material-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
}

.h2-material-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #232323;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.h2-material-tab:hover {
    color: #0066cc;
    background: #fff;
    border-color: #d9d9d9;
}

.h2-material-tab.is-active {
    color: #fff;
    background: #4fc0ea;
    border-color: #4fc0ea;
}

.h2-material-tab:focus-visible,
.h2-material-choice:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.h2-material-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.h2-material-choice {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #232323;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.h2-material-choice:hover {
    border-color: #4fc0ea;
    background: #f5fbfe;
}

.h2-material-choice__radio {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #b7b7b7;
    border-radius: 50%;
    background: #fff;
}

.h2-material-choice.is-active {
    color: #0066cc;
    border-color: #4fc0ea;
    background: #f0faff;
    box-shadow: 0 0 0 1px rgba(79, 192, 234, .12);
    font-weight: 500;
}

.h2-material-choice.is-active .h2-material-choice__radio {
    border-color: #4fc0ea;
}

.h2-material-choice.is-active .h2-material-choice__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #4fc0ea;
}

.h2-material-selector.is-disabled {
    opacity: .65;
}

.h2-material-tab:disabled,
.h2-material-choice:disabled {
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .h2-material-tabs {
        padding: 6px;
    }

    .h2-material-tab {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .h2-material-panel {
        grid-template-columns: 1fr;
        padding: 9px;
    }

    .h2-material-choice {
        min-height: 48px;
        padding: 9px 10px;
    }
}
