/*
 * Custom style goes here.
 * A template should always ship with an empty custom.css
 */

/* ====== Checkout - GLS ====== */
#checkout-delivery-step .delivery-options .gls-container .row {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

#checkout-delivery-step .delivery-options .gls-container .gls-relay-infos .row {
  -ms-flex-align: start;
  align-items: flex-start;
}

/* ====== Page produit : Prix + Alma ====== */
/* On limite la portée aux pages produit pour éviter les effets de bord */
.page-product #mainProduct .product-prices .product-prices-wrapper{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:.25rem !important;
  width:100% !important;
}

/* Prix + "TTC" sur la même ligne, juste après le montant */
.page-product #mainProduct .product-prices .price.product-price{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:.25em !important;
  flex-wrap:nowrap !important;
}
.page-product #mainProduct .product-prices .price.prod

/* TTC inline juste après le prix */
.product-prices .price.product-price {
  display:inline-flex !important;
  align-items:baseline !important;
  gap:.35rem !important;
}
.product-prices .tax-shipping-delivery-label .labels-tax-long{
  display:none !important; /* on masque le doublon */
}
.product-prices .price.product-price .tax-label-next-price{
  display:inline !important;
  margin:0 !important;
  opacity:.85;
  font-size:90%;
}
/* Espace au-dessus et dessous du badge Alma */
#alma-slot-under-price{
  margin:.5rem 0 1rem !important;
}
#alma-slot-under-price .alma-widgets,
#alma-slot-under-price .alma-pp-container{
  width:100% !important;
}


/* KARPET - Fiche produit sur mesure n°106 */
/* Style limité à la fiche produit */

body#product:has(
  input[name="id_product"][value="106"]
) .product-add-to-cart .add-to-cart {
    min-height: 56px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    padding: 14px 22px;
    background: #3b9568;
    color: #fff;
    transition: background .2s ease;
}

body#product:has(
  input[name="id_product"][value="106"]
) .product-add-to-cart .add-to-cart:hover {
    background: #287a52;
}

body#product:has(
  input[name="id_product"][value="106"]
) input[type="number"] {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    max-width: 180px;
}

body#product:has(
  input[name="id_product"][value="106"]
) input[type="number"]:focus {
    border-color: #3b9568;
    outline: 2px solid rgba(59,149,104,.18);
}

@media (max-width: 767px) {
  body#product:has(
    input[name="id_product"][value="106"]
  ) .product-add-to-cart .add-to-cart {
      width: 100%;
      font-size: 16px;
  }
}



/* ========================================
   KARPET - CONFIGURATEUR TAPIS SUR MESURE
   Module Tuni-Soft Dynamic Product
   ======================================== */

/* Champ Longueur */
#dp_longueur {
    width: 150px !important;
    max-width: 100%;
    min-height: 48px !important;
    padding: 10px 14px !important;
    font-size: 17px !important;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    box-sizing: border-box;
}

/* Mise en évidence au clic */
#dp_longueur:focus {
    border-color: #3b9568 !important;
    outline: 2px solid rgba(59,149,104,.2);
    outline-offset: 1px;
}

/* Adaptation mobile */
@media (max-width: 767px) {
    #dp_longueur {
        width: 100% !important;
        max-width: 180px;
        font-size: 16px !important;
    }
}




/* =========================================
   KARPET - CONFIGURATEUR TUNI-SOFT
   Design des champs de dimensions
   ========================================= */

/* Longueur et largeur */
#dp_longueur,
#dp_largeur {
    width: 170px !important;
    max-width: 100%;
    height: 48px !important;
    padding: 10px 14px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #303030 !important;
    background: #ffffff !important;
    border: 1px solid #ccd5dc !important;
    border-radius: 7px !important;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

/* Conteneurs des champs avec flèches */
#dp_longueur.ui-spinner-input,
#dp_largeur.ui-spinner-input {
    margin: 0 !important;
}

/* Focus */
#dp_longueur:focus,
#dp_largeur:focus {
    border-color: #3b9568 !important;
    outline: 2px solid rgba(59,149,104,.18);
    outline-offset: 0;
}

/* Adaptation mobile */
@media (max-width: 767px) {
    #dp_longueur,
    #dp_largeur {
        width: 100% !important;
        max-width: 180px;
        font-size: 16px !important;
    }
}


/* KARPET - Tuni-Soft : finition des dimensions */

/* Conteneur des champs */
.ui-spinner:has(#dp_longueur),
.ui-spinner:has(#dp_largeur) {
    position: relative;
    display: inline-block !important;
    width: 215px !important;
    height: 50px !important;
    max-width: 100%;
    border: 1px solid #d5dce2 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Champs de saisie */
#dp_longueur,
#dp_largeur {
    width: calc(100% - 22px) !important;
    height: 48px !important;
    padding: 8px 14px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* Focus du conteneur */
.ui-spinner:has(#dp_longueur):focus-within,
.ui-spinner:has(#dp_largeur):focus-within {
    border-color: #3b9568 !important;
    box-shadow: 0 0 0 3px rgba(59,149,104,.15);
}

/* Adaptation mobile */
@media (max-width: 767px) {
    .ui-spinner:has(#dp_longueur),
    .ui-spinner:has(#dp_largeur) {
        width: 100% !important;
        max-width: 260px;
    }
}



/* ==========================================
   KARPET - TAPIS SUR MESURE
   Alignement Longueur / Largeur
   ========================================== */

/* Bloc Longueur */
.dp_field_container_1 {
    display: inline-block !important;
    vertical-align: top !important;
    width: 48% !important;
    margin-right: 2% !important;
    box-sizing: border-box;
}

/* Bloc Largeur :
   suppose que le champ possède l'ID dp_largeur */
.dp_field_container:has(#dp_largeur) {
    display: inline-block !important;
    vertical-align: top !important;
    width: 48% !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Libellés */
.dp_field_container_1 .attribute_label,
.dp_field_container:has(#dp_largeur) .attribute_label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* Adaptation mobile */
@media (max-width: 767px) {
    .dp_field_container_1,
    .dp_field_container:has(#dp_largeur) {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }
}






/* ==========================================
   KARPET - BLOC PRIX ET LIVRAISON
   Tapis sur mesure - Tuni-Soft
   ========================================== */

/* Encadré du prix */
body#product:has(#dp_longueur) .price.product-price {
    display: block !important;
    width: fit-content;
    max-width: 100%;
    padding: 18px 24px !important;
    margin: 18px 0 22px !important;
    background: #f0f8f3 !important;
    border: 1px solid #5a9f79 !important;
    border-radius: 12px !important;
    box-sizing: border-box;
}

/* Intitulé du prix */
body#product:has(#dp_longueur)
.price.product-price::before {
    content: "Prix de votre tapis sur mesure";
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
}

/* Montant */
body#product:has(#dp_longueur) .current-price {
    display: inline !important;
    color: #287a52 !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* TTC */
body#product:has(#dp_longueur) .tax-label-next-price {
    color: #287a52 !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    margin-left: 6px;
}

/* Informations de fabrication et livraison */
body#product:has(#dp_longueur)
.price.product-price::after {
    content: "✓ Fabrication sous 48 h maximum\A✓ Livraison en 2 à 3 jours ouvrés après expédition";
    display: block;
    white-space: pre-line;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #d5e7dc;
    color: #35634b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
}

/* Mobile */
@media (max-width: 767px) {
    body#product:has(#dp_longueur) .price.product-price {
        width: 100%;
        padding: 15px !important;
    }

    body#product:has(#dp_longueur) .current-price {
        font-size: 30px !important;
    }

    body#product:has(#dp_longueur)
    .price.product-price::after {
        font-size: 13px;
    }
}



/* KARPET - Bloc prix pleine largeur */

body#product:has(#dp_longueur) .price.product-price {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}



/* ==========================================
   KARPET - OPTIMISATION MOBILE
   Configurateur Tuni-Soft
   ========================================== */

@media (max-width: 767px) {

    /* Champs de dimensions */
    body#product:has(#dp_longueur)
    .dp_field_container:has(.dp_input) {
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    /* Conteneur des champs numériques */
    body#product:has(#dp_longueur)
    .dp_input_container .ui-spinner {
        display: inline-flex !important;
        width: min(100%, 230px) !important;
        max-width: 100% !important;
        height: 48px !important;
        box-sizing: border-box;
    }

    /* Saisie des dimensions */
    body#product:has(#dp_longueur)
    .dp_input_container .ui-spinner-input {
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        padding: 8px 12px !important;
        font-size: 20px !important;
        box-sizing: border-box;
    }

    /* Prix pleine largeur */
    body#product:has(#dp_longueur)
    .price.product-price {
        width: 100% !important;
        padding: 14px !important;
        margin: 12px 0 !important;
    }

    /* Prix */
    body#product:has(#dp_longueur)
    .current-price {
        font-size: 30px !important;
    }

    /* Livraison et fabrication */
    body#product:has(#dp_longueur)
    .price.product-price::after {
        font-size: 12px !important;
        line-height: 1.6 !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
}



/* KARPET - Bouton panier mobile */
@media (max-width: 767px) {

  /* Zone quantité + achat */
  body#product:has(#dp_longueur)
  .product-add-to-cart .product-quantity {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  /* Quantité */
  body#product:has(#dp_longueur)
  .product-add-to-cart .qty {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Conteneur du bouton */
  body#product:has(#dp_longueur)
  .product-add-to-cart .add {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Bouton d'achat */
  body#product:has(#dp_longueur)
  .product-add-to-cart .add-to-cart {
    display: flex !important;
    width: 100% !important;
    min-height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    padding: 12px !important;
    box-sizing: border-box;
  }
}



/* =========================================
   KARPET - CORRECTION PANIER MOBILE
   ========================================= */

@media (max-width: 767px) {

  /* Conteneur quantité + bouton */
  body#product:has(#dp_longueur)
  .product-quantity {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }

  /* Quantité */
  body#product:has(#dp_longueur)
  .product-quantity .qty {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Conteneur du bouton */
  body#product:has(#dp_longueur)
  .product-quantity .add {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Bouton ajouter au panier */
  body#product:has(#dp_longueur)
  .product-quantity .add-to-cart {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================
   KARPET - BOUTON PANIER MOBILE
   ========================================== */

@media (max-width: 767px) {

  /* Zone quantité et bouton */
  body#product:has(#dp_longueur)
  .product-quantity {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Sélecteur de quantité */
  body#product:has(#dp_longueur)
  .product-quantity .qty {
    float: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* Bouton identifié dans ton HTML */
  body#product:has(#dp_longueur)
  button[data-button-action="add-to-cart"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;

    padding: 12px 16px !important;
    margin: 0 !important;

    box-sizing: border-box !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  /* Texte du bouton */
  body#product:has(#dp_longueur)
  button[data-button-action="add-to-cart"] > span:not(.js-waitting-add-to-cart) {
    white-space: nowrap !important;
  }
}


/* KARPET - Correction définitive du panier mobile */
/* Fiche produit avec configurateur Dynamic Product */

@media screen and (max-width: 767px) {

  /* Conteneur commun quantité + bouton */
  body#product:has(#dp_longueur)
  .inline-style.d-flex.align-items-center:has(> .product-quantity-touchspin) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  /* Bloc quantité */
  body#product:has(#dp_longueur)
  .inline-style.d-flex.align-items-center > .product-quantity-touchspin {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: none !important;
  }

  /* Sélecteur de quantité */
  body#product:has(#dp_longueur)
  .product-quantity-touchspin .qty {
    width: 180px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Conteneur du bouton */
  body#product:has(#dp_longueur)
  .inline-style.d-flex.align-items-center > .add {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: none !important;
  }

  /* Bouton Ajouter au panier */
  body#product:has(#dp_longueur)
  .inline-style.d-flex.align-items-center > .add > .add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 16px !important;
  }
}



/* KARPET - Bouton panier fixe sur mobile */

@media screen and (max-width: 767px) {

  body#product:has(#dp_longueur) {
    padding-bottom: 105px !important;
  }

  body#product:has(#dp_longueur)
  .inline-style.d-flex.align-items-center:has(> .product-quantity-touchspin) {
    position: static !important;
  }

  body#product:has(#dp_longueur)
  .inline-style.d-flex.align-items-center > .add {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;

    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px
      calc(12px + env(safe-area-inset-bottom)) !important;

    background: #ffffff !important;
    box-shadow: 0 -3px 15px rgba(0,0,0,.12) !important;
    box-sizing: border-box !important;
  }

  body#product:has(#dp_longueur)
  .inline-style.d-flex.align-items-center > .add > .add-to-cart {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 8px !important;
    background: #35966b !important;
    color: #ffffff !important;
  }
}



/* KARPET - Prix dynamique dans la barre panier mobile */

@media screen and (max-width: 767px) {

  body#product:has(#dp_longueur) {
    padding-bottom: 155px !important;
  }

  body#product:has(#dp_longueur)
  .karpet-sticky-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }

  body#product:has(#dp_longueur)
  .karpet-sticky-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #287a52;
    white-space: nowrap;
  }
}


/* KARPET - Bouton fixe mobile tapis standard 40x50 */
/* Produit PrestaShop ID 55 */

@media screen and (max-width: 767px) {

  /* Espace pour éviter de masquer le contenu */
  body#product:has(input[name="id_product"][value="55"]) {
    padding-bottom: 115px !important;
  }

  /* Conteneur quantité + panier */
  body#product:has(input[name="id_product"][value="55"])
  .inline-style.d-flex.align-items-center:has(> .product-quantity-touchspin) {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
  }

  /* Sélecteur de quantité */
  body#product:has(input[name="id_product"][value="55"])
  .product-quantity-touchspin {
    width: 100% !important;
    max-width: 100% !important;
  }

  body#product:has(input[name="id_product"][value="55"])
  .product-quantity-touchspin .qty {
    width: 180px !important;
    max-width: 100% !important;
  }

  /* Barre d'achat fixe */
  body#product:has(input[name="id_product"][value="55"])
  .inline-style.d-flex.align-items-center > .add {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;

    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px
      calc(12px + env(safe-area-inset-bottom)) !important;

    background: #ffffff !important;
    box-shadow: 0 -3px 15px rgba(0,0,0,.12) !important;
    box-sizing: border-box !important;
  }

  /* Bouton Ajouter au panier */
  body#product:has(input[name="id_product"][value="55"])
  .inline-style.d-flex.align-items-center > .add > .add-to-cart {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background: #35966b !important;
    color: #ffffff !important;
    white-space: normal !important;
    font-size: 16px !important;
  }
}


/* KARPET - Prix vert tapis standard 40x50 cm */

@media screen and (min-width: 0px) {

  body#product:has(input[name="id_product"][value="55"])
  .price.product-price .current-price {
    color: #287a52 !important;
    font-size: 36px !important;
    font-weight: 700 !important;
  }

  body#product:has(input[name="id_product"][value="55"])
  .price.product-price {
    color: #287a52 !important;
  }
}

/* Taille adaptée sur mobile */
@media screen and (max-width: 767px) {

  body#product:has(input[name="id_product"][value="55"])
  .price.product-price .current-price {
    font-size: 30px !important;
  }
}


/* KARPET - Tapis standards sans rebords */
/* IDs : 55, 296, 200, 297, 56, 201, 199, 58, 183, 198 */

/* Prix vert sur ordinateur et mobile */
body#product:has(
  input[name="id_product"]:is(
    [value="55"], [value="296"], [value="200"],
    [value="297"], [value="56"], [value="201"],
    [value="199"], [value="58"], [value="183"],
    [value="198"]
  )
) .price.product-price .current-price {
  color: #287a52 !important;
  font-size: 36px !important;
  font-weight: 700 !important;
}

/* Optimisation mobile */
@media screen and (max-width: 767px) {

  body#product:has(
    input[name="id_product"]:is(
      [value="55"], [value="296"], [value="200"],
      [value="297"], [value="56"], [value="201"],
      [value="199"], [value="58"], [value="183"],
      [value="198"]
    )
  ) {
    padding-bottom: 115px !important;
  }

  body#product:has(
    input[name="id_product"]:is(
      [value="55"], [value="296"], [value="200"],
      [value="297"], [value="56"], [value="201"],
      [value="199"], [value="58"], [value="183"],
      [value="198"]
    )
  ) .price.product-price .current-price {
    font-size: 30px !important;
  }

  /* Quantité au-dessus du bouton */
  body#product:has(
    input[name="id_product"]:is(
      [value="55"], [value="296"], [value="200"],
      [value="297"], [value="56"], [value="201"],
      [value="199"], [value="58"], [value="183"],
      [value="198"]
    )
  ) .inline-style.d-flex.align-items-center:has(
    > .product-quantity-touchspin
  ) {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
  }

  /* Sélecteur de quantité */
  body#product:has(
    input[name="id_product"]:is(
      [value="55"], [value="296"], [value="200"],
      [value="297"], [value="56"], [value="201"],
      [value="199"], [value="58"], [value="183"],
      [value="198"]
    )
  ) .product-quantity-touchspin {
    width: 100% !important;
    max-width: 100% !important;
  }

  body#product:has(
    input[name="id_product"]:is(
      [value="55"], [value="296"], [value="200"],
      [value="297"], [value="56"], [value="201"],
      [value="199"], [value="58"], [value="183"],
      [value="198"]
    )
  ) .product-quantity-touchspin .qty {
    width: 180px !important;
    max-width: 100% !important;
  }

  /* Barre d'achat fixe */
  body#product:has(
    input[name="id_product"]:is(
      [value="55"], [value="296"], [value="200"],
      [value="297"], [value="56"], [value="201"],
      [value="199"], [value="58"], [value="183"],
      [value="198"]
    )
  ) .inline-style.d-flex.align-items-center:has(
    > .product-quantity-touchspin
  ) > .add {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px
      calc(12px + env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
    box-shadow: 0 -3px 15px rgba(0,0,0,.12) !important;
    box-sizing: border-box !important;
  }

  /* Bouton panier vert */
  body#product:has(
    input[name="id_product"]:is(
      [value="55"], [value="296"], [value="200"],
      [value="297"], [value="56"], [value="201"],
      [value="199"], [value="58"], [value="183"],
      [value="198"]
    )
  ) .inline-style.d-flex.align-items-center:has(
    > .product-quantity-touchspin
  ) > .add > .add-to-cart {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background: #35966b !important;
    color: #ffffff !important;
    white-space: normal !important;
    font-size: 16px !important;
  }
}


/* KARPET - Harmoniser le prix TTC des tapis standards */

body#product:has(
  input[name="id_product"]:is(
    [value="55"], [value="296"], [value="200"],
    [value="297"], [value="56"], [value="201"],
    [value="199"], [value="58"], [value="183"],
    [value="198"]
  )
) .price.product-price .tax-label-next-price {
  color: #287a52 !important;
  font-weight: 600 !important;
}


/* KARPET - Cadre prix réservé aux tapis sur mesure */

/* Tous les produits sans configurateur Tuni-Soft */
body#product:not(:has(#dp_longueur))
.price.product-price {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Supprimer les textes ajoutés par CSS */
body#product:not(:has(#dp_longueur))
.price.product-price::before,
body#product:not(:has(#dp_longueur))
.price.product-price::after {
    content: none !important;
    display: none !important;
}

/* Conserver la présentation du prix */
body#product:not(:has(#dp_longueur))
.price.product-price {
    width: auto !important;
    max-width: 100% !important;
}


/* KARPET - 3 catégories sous la bannière */

body#index .karpet-categories {
    max-width: 1280px;
    margin: 35px auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

body#index .karpet-categories h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

body#index .karpet-categories-intro {
    color: #666;
    margin-bottom: 25px;
}

body#index .karpet-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px;
}

body#index .karpet-category-card {
    display: block;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    text-decoration: none !important;
    padding-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    transition: transform .2s ease;
}

body#index .karpet-category-card:hover {
    transform: translateY(-5px);
}

body#index .karpet-category-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

body#index .karpet-category-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 18px 10px 10px;
    color: #333;
}

body#index .karpet-category-card p {
    color: #666;
    padding: 0 15px;
    font-size: 14px;
}

body#index .karpet-category-card span {
    display: inline-block;
    margin-top: 12px;
    color: #27834c;
    font-weight: 700;
}

@media (max-width: 767px) {
    body#index .karpet-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    body#index .karpet-categories h2 {
        font-size: 23px;
    }
}


/* KARPET - Correction disposition catégories */

body#index .karpet-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch;
}

body#index .karpet-categories-grid > a.karpet-category-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 100%;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 0 22px !important;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center !important;
}

body#index .karpet-category-card img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin: 0 !important;
    float: none !important;
}

body#index .karpet-category-card h3 {
    display: block !important;
    width: 100%;
    margin: 18px 0 10px !important;
    padding: 0 12px;
    text-align: center !important;
}

body#index .karpet-category-card p {
    display: block !important;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0 15px;
    text-align: center !important;
}

body#index .karpet-category-card span {
    display: block !important;
    margin-top: auto !important;
    padding: 10px 12px 0;
    text-align: center !important;
}

@media (max-width: 767px) {
    body#index .karpet-categories-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Structure des cartes Karpet */

body#index .karpet-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

body#index .karpet-categories-grid > .karpet-category-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0;
    height: 100%;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

body#index .karpet-category-image {
    width: 100%;
    flex: 0 0 auto;
}

body#index .karpet-category-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

body#index .karpet-category-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 18px;
    box-sizing: border-box;
}

body#index .karpet-category-content h3 {
    margin: 0 0 12px !important;
}

body#index .karpet-category-content p {
    margin: 0 0 18px !important;
}

body#index .karpet-category-content span {
    margin-top: auto !important;
}

@media (max-width: 767px) {
    body#index .karpet-categories-grid {
        grid-template-columns: 1fr !important;
    }
}

/* KARPET - Boutons catégories */

body#index .karpet-category-content a {
    display: inline-block !important;
    margin-top: auto !important;
    padding: 12px 24px !important;
    background: #27834c !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background .2s ease;
}

body#index .karpet-category-content a:hover {
    background: #176339 !important;
}

/* KARPET - Finitions catégories accueil */

body#index .karpet-categories {
    max-width: 1200px !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
    text-align: center !important;
}

body#index .karpet-categories h2,
body#index .karpet-categories-intro {
    text-align: center !important;
}

body#index .karpet-category-image img {
    width: 100% !important;
    height: 250px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

@media (max-width: 767px) {
    body#index .karpet-category-image img {
        height: 210px !important;
    }
}

/* KARPET - Harmonisation du bloc catégories */

body#index .karpet-categories-grid {
    max-width: 1200px !important;
    margin: 25px auto 35px !important;
    padding: 0 15px !important;
    box-sizing: border-box;
}

body#index h2:has(+ .karpet-categories-intro) {
    text-align: center !important;
    margin: 30px auto 10px !important;
    padding: 0 15px !important;
}

body#index .karpet-categories-intro {
    text-align: center !important;
    margin-bottom: 20px !important;
}

body#index .karpet-category-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
}

@media (max-width: 767px) {
    body#index .karpet-categories-grid {
        grid-template-columns: 1fr !important;
    }

    body#index .karpet-category-image img {
        height: 210px !important;
    }
}


/* KARPET - Prix verts sur les listes de produits */

body#index .product-miniature .price,
body#index .product-miniature .product-price,
body#index .product-miniature .price-final,
body#index .product-miniature .current-price,
body#index .featured-products .price {
    color: #27834c !important;
    font-weight: 700 !important;
}

/* Conserver les anciens prix barrés en gris */
body#index .product-miniature .regular-price {
    color: #999 !important;
}

/* KAR PET - Espacement du prix du tapis sur mesure */

.karpet-sticky-price .karpet-sticky-price-value {
    margin-left: 8px;
}
/* KARPET - Suppression du bloc sur mesure dans les miniatures */

.product-miniature .price.product-price::before,
.product-miniature .price.product-price::after {
    content: none !important;
    display: none !important;
}
/* KARPET - Intitulé du prix dans les miniatures */

.product-miniature .price.product-price::before {
    content: "Prix TTC" !important;
    display: block !important;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}
/* Badge promotionnel : présentation */
.product-miniature .product-flags .product-flag.on-sale {
    background: #27834c !important;
    color: #fff !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}
/* KARPET - Badge Meilleure Vente */
/* Uniquement sur le produit 106 */

.product-miniature[data-id-product="106"]
.product-flags .product-flag.on-sale {
    background: #27834c !important;
    border-radius: 5px !important;
    padding: 6px 10px !important;
}

/* Masquer visuellement l'ancien texte */
.product-miniature[data-id-product="106"]
.product-flag.on-sale > span {
    font-size: 0 !important;
}

/* Afficher le nouveau texte */
.product-miniature[data-id-product="106"]
.product-flag.on-sale > span::after {
    content: "MEILLEURE VENTE";
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
    white-space: nowrap;
}

/* Karpet - Bannière Ever Block tapis sur mesure */
.everblock-11 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.everblock-11 img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* KARPET - Correction infographies Ever Block n°2 */

.everblock-2.hookdisplayLeftColumn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.everblock-2.hookdisplayLeftColumn .karpet-infographies {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.everblock-2.hookdisplayLeftColumn .karpet-infographies img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}
/* Masquer le bandeau cookies redondant du thème */
#cookieMessage {
    display: none !important;
}
/* Karpet - Correction des images de réassurance */
img[src*="karpet-infographie-confiance"],
img[src*="karpet-guide-shopping"],
img[src*="karpet-avis-garantis"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}