/* ===== BARRES ===== */
.custom-quantity-block {
  display: flex;
  flex-direction: column;
  gap: 0px !important;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Assistant', Inter;
}

.wpiqd-swatch {
  display: block;
  position: relative;
  border: 1px solid rgba(8, 36, 59, 0.2);
  border-radius: 5px !important;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wpiqd-swatch.active,
.wpiqd-swatch.wpiqd-active {
  border-color: #24354C !important;
  border-width: 2px !important;
  background-color: #E9F5FC !important;
}

.wpiqd-swatch:not(.active):not(.wpiqd-active) {
  background-color: #ffffff !important;
}

.wpiqd-swatch:nth-child(2),
.wpiqd-swatch:nth-child(3) {
  margin-top: 10px !important;
}

/* ===== INNER ===== */
.wpiqd-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 18px 16px;
}

/* ===== RADIO ===== */
.one-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wpiqd-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid rgba(8, 36, 59, 0.35);
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.wpiqd-radio input[type="radio"]:checked {
  border-color: #24354C;
  background: #24354C;
}

.wpiqd-radio input[type="radio"]:checked::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== IMAGE PRODUIT ===== */
.elementor .custom-quantity-block img.wpiqd-product-image,
.woocommerce .custom-quantity-block img.wpiqd-product-image {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  object-fit: contain !important;
  border-radius: 5px !important;
  flex-shrink: 0 !important;
  margin-right: 8px !important;
}

/* ===== CONTENU TEXTE ===== */
.second-block { flex: 1; }

.wpiqd-heading {
  font-size: 16px;
  font-weight: 700;
  color: #08243B;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wpiqd-subheading {
  font-size: 12px;
  color: #4E4E4E;
  margin-top: 3px;
  line-height: 1.4;
}

/* ===== PRIX ===== */
.third-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}

.wpiqd-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.wpiqd-price {
  font-size: 18px !important;
  font-weight: 700;
  color: #0C2590 !important;
  line-height: 1.2;
}

.wpiqd-price .woocommerce-Price-amount {
  color: #0C2590 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.old-price { line-height: 1.2; }

.old-price s {
  font-size: 15px;
  color: #000 !important;
  text-decoration: line-through;
}

/* ===== BADGE % ÉCONOMIES ===== */
.wpiqd-savings-label {
  display: inline-block;
  background-color: #0c2590;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.6;
  vertical-align: middle;
}

/* ===== BADGES HAUT ===== */
.wpiqd-top-badge {
  position: absolute;
  top: -13px;
  right: 10px;
  left: auto;
  background-color: #0C2590;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 7px 7px 0 0;
  white-space: nowrap;
  z-index: 10;
  line-height: 1.6;
}

@keyframes wpiqd-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.wpiqd-top-badge--blink {
  animation: wpiqd-blink 1.2s ease-in-out infinite;
}

/* ===== BOUTON ATC ===== */
.single_add_to_cart_button.button.alt {
  background-color: #08243b !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  transition: background-color 0.2s !important;
  padding: 15px 20px !important;
  height: auto !important;
  min-height: unset !important;
  line-height: 1.4 !important;
  font-size: 0 !important;
  width: 100% !important;
  margin-top: 10px !important;
}

.single_add_to_cart_button.button.alt::before {
  content: '\2192 AJOUTER AU PANIER';
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.single_add_to_cart_button.button.alt::after { content: none; }

.single_add_to_cart_button.button.alt:hover {
  background-color: #0C2590 !important;
}

/* ===== MASQUER SELECT NATIF WOOCOMMERCE ===== */
.variations,
.woocommerce-variation,
.reset_variations,
.reset_variations_alert {
  display: none !important;
}

/* ===== BLOC COULEURS ===== */
.wpiqd-color-picker {
  padding: 10px 14px 14px 14px;
  border-top: 1px solid rgba(8, 36, 59, 0.08);
  background: transparent;
  display: none;
}

.wpiqd-swatch.active .wpiqd-color-picker,
.wpiqd-swatch.wpiqd-active .wpiqd-color-picker {
  display: block;
}

.wpiqd-color-picker-label {
  font-size: 11px;
  font-weight: 600;
  color: #08243B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.wpiqd-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wpiqd-color-row:last-child { margin-bottom: 0; }

.wpiqd-color-row-label {
  font-size: 11px;
  color: #4E4E4E;
  font-weight: 600;
  min-width: 24px;
}

.wpiqd-color-dots { display: flex; gap: 7px; }

.wpiqd-color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
  flex-shrink: 0;
}

.wpiqd-color-dot:hover { transform: scale(1.12); }

.wpiqd-color-dot.selected {
  border-color: #24354C;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #24354C;
}

.wpiqd-color-dot[data-color="Noir"] { background-color: #1a1a1a; }
.wpiqd-color-dot[data-color="Bleu"] { background-color: #7ab3d4; }
.wpiqd-color-dot[data-color="Rose"] { background-color: #e8a0b4; }

.wpiqd-color-warning {
  font-size: 11px;
  color: #EA1919;
  margin-top: 6px;
  display: none;
}

.wpiqd-color-warning.visible { display: block; }

/* ===== MASQUER LOUPE GALERIE MOBILE ===== */
@media (max-width: 767px) {
  .woocommerce-product-gallery__trigger {
    display: none !important;
  }
}

/* ===== FIX GALERIE PRODUIT VARIABLE ===== */
.woocommerce-product-gallery .flex-viewport { overflow: hidden !important; }

.woocommerce-product-gallery__wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.woocommerce-product-gallery__image { flex-shrink: 0 !important; }

.flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 6px !important;
  padding: 6px 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

.flex-control-thumbs li { flex-shrink: 0 !important; }

.woocommerce-product-gallery .flex-prev,
.woocommerce-product-gallery .flex-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  background: rgba(255,255,255,0.85) !important;
  color: #000000 !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
  line-height: 36px !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
}

.woocommerce-product-gallery .flex-prev { left: 8px !important; right: auto !important; }
.woocommerce-product-gallery .flex-next { right: 8px !important; left: auto !important; }

.woocommerce-product-gallery .flex-prev:hover,
.woocommerce-product-gallery .flex-next:hover {
  background: rgba(255,255,255,1) !important;
}

.woocommerce-product-gallery { position: relative !important; }

.wpiqd-thumbs-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
}

.wpiqd-thumb-arrow {
  background: transparent !important;
  border: none !important;
  color: #000000 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
}

.wpiqd-thumbs-wrapper .flex-control-thumbs {
  flex: 1 !important;
  overflow-x: auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  scrollbar-width: none !important;
}

.wpiqd-thumbs-wrapper .flex-control-thumbs::-webkit-scrollbar { display: none !important; }

/* ========================================================
   CHECKOUT
   ======================================================== */
.woocommerce-checkout .form-row,
.woocommerce form .form-row {
  margin-bottom: 6px !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  padding: 12px 14px !important;
  height: auto !important;
  border-radius: 6px !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row label,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row label {
  display: none !important;
}

.woocommerce-checkout #billing_email_field label {
  display: block !important;
  margin-bottom: 6px !important;
}

.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #shipping_first_name_field,
.woocommerce-checkout #billing_last_name_field,
.woocommerce-checkout #shipping_last_name_field {
  width: 48% !important;
  display: inline-block !important;
  vertical-align: top !important;
  float: none !important;
  clear: none !important;
}

.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #shipping_first_name_field {
  margin-right: 4% !important;
}

.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_company_field,
.woocommerce-checkout #shipping_country_field {
  clear: both !important;
  display: block !important;
  width: 100% !important;
}

.woocommerce-message[role="alert"] { display: none !important; }
#ship-to-different-address { display: none !important; }

.woocommerce-checkout-review-order-table .product-name {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.woocommerce-checkout-review-order-table .product-name img {
  flex-shrink: 0 !important;
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}

.woocommerce-checkout-review-order-table .product-name .product-name-text {
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce-checkout-review-order-table thead,
.cart_item .product-total {
  display: none !important;
}

.woocommerce-checkout-review-order-table .product-name {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.woocommerce-checkout-review-order-table .product-name span { white-space: nowrap !important; }
.cart_item .product-name { width: 100% !important; }

/* ===== FIX LIVRAISON GRATUITE CHECKOUT ===== */
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th {
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 200px !important;
}

.woocommerce-shipping-methods {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-shipping-methods li label {
  white-space: normal !important;
  word-break: break-word !important;
}

/* ===== SIDE CART ===== */
.xoo-wsc-qty-price { display: none !important; }
.xoo-wsc-psavings { display: none !important; }

.wpiqd-cart-oldprice {
  display: block;
  font-size: 13px;
  color: #888 !important;
  margin-bottom: 2px;
}

.wpiqd-cart-oldprice s {
  text-decoration: line-through;
  color: #888 !important;
}

.wpiqd-cart-price {
  display: block;
  font-size: 16px !important;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 4px;
  line-height: 1.3 !important;
}

.wpiqd-cart-price .woocommerce-Price-amount {
  color: #000000 !important;
  font-weight: 700 !important;
}

.wpiqd-cart-savings {
  display: inline-block;
  background-color: #e8f5ee;
  color: #1a7a4a !important;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

/* ===== SIDE CART — LAYOUT POUBELLE + PRIX ===== */
.xoo-wsc-product {
  position: relative !important;
}

.xoo-wsc-sm-info {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.xoo-wsc-sm-left {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Poubelle + prix en colonne, poubelle en haut prix en bas */
.xoo-wsc-sm-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin-top: 0 !important;
}

span.xoo-wsc-smr-del {
  margin: 0 !important;
  order: 0 !important;
}

.xoo-wsc-smr-ptotal {
  order: 1 !important;
  font-weight: 700 !important;
}

/* ===== SIDE CART PRIX CUSTOM ===== */
.wpiqd-cart-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  margin-top: 6px !important;
  width: 100% !important;
}

.wpiqd-cart-block .wpiqd-cart-oldprice {
  display: block !important;
  text-align: right !important;
  font-size: 13px !important;
  color: #888 !important;
  line-height: 1.3 !important;
}

.wpiqd-cart-block .wpiqd-cart-oldprice s {
  color: #888 !important;
  text-decoration: line-through !important;
}

.wpiqd-cart-block .wpiqd-cart-price {
  display: block !important;
  text-align: right !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  line-height: 1.3 !important;
}

.wpiqd-cart-block .wpiqd-cart-savings {
  display: inline-block !important;
  background-color: #e8f5ee !important;
  color: #1a7a4a !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  margin-top: 3px !important;
}

/* ===== SIDE CART — FOOTER ===== */
.xoo-wsc-ft-amt {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.xoo-wsc-ft-amt-label,
.xoo-wsc-ft-amt-value { display: inline !important; }

.xoo-wsc-ft-amt-subtotal .xoo-wsc-ft-amt-label {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

.xoo-wsc-ft-amt-subtotal .xoo-wsc-ft-amt-value {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

.xoo-wsc-ft-amt-subtotal .woocommerce-Price-amount { color: #000000 !important; }

.wpiqd-savings-footer-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #000000 !important;
}

.wpiqd-savings-footer-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #000000 !important;
}

.wpiqd-savings-footer-badge {
  display: inline-block !important;
  background-color: #2C303B !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}

/* ===== BARRE LIVRAISON OFFERTE ===== */
.wpiqd-shipping-bar {
  padding: 10px 16px 8px 16px !important;
  background: #f8f8f8 !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

.wpiqd-shipping-bar-text {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #08243B !important;
  margin: 0 0 6px 0 !important;
  text-align: center !important;
}

.wpiqd-shipping-bar--unlocked .wpiqd-shipping-bar-text {
  color: #2C303B !important;
  font-weight: 700 !important;
}

.wpiqd-shipping-bar-progress {
  width: 100% !important;
  height: 6px !important;
  background: #e0e0e0 !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}

.wpiqd-shipping-bar-fill {
  height: 100% !important;
  background: #08243B !important;
  border-radius: 9999px !important;
  transition: width 0.4s ease !important;
}

.wpiqd-shipping-bar--unlocked .wpiqd-shipping-bar-fill { background: #2C303B !important; }

/* ===== PANIER FLOTTANT XOO ===== */
/* Masquer le bouton flottant quand le panier est ouvert */
body.xoo-wsc-cart-active .xoo-wsc-basket {
  display: none !important;
}



/* ===== CHECKOUT MOBILE ===== */
@media (max-width: 767px) {

  .e-atc-qty-button-holder {
    flex-direction: column !important;
  }

  .wpiqd-bogo-wrap {
    width: 100% !important;
  }

  .e-checkout__column,
  .e-checkout__column-start,
  .e-checkout__column-end,
  .e-checkout__container {
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex: 0 0 100% !important;
  }

  .woocommerce-billing-fields b,
  .woocommerce-billing-fields__field-wrapper b {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce-checkout input.input-text,
  .woocommerce-checkout select,
  .woocommerce-checkout textarea,
  .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .input-text {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  .woocommerce-checkout .form-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .woocommerce-checkout-review-order-table thead,
  .woocommerce-checkout-review-order-table .cart-subtotal { display: none !important; }

  .woocommerce-checkout-review-order-table .product-quantity,
  .woocommerce-checkout-review-order-table .variation { display: none !important; }

  .woocommerce-checkout-review-order-table .product-name img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
  }

  .woocommerce-checkout-review-order-table .product-name > span > span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
  }

  .woocommerce-checkout-review-order-table .product-name > span {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .woocommerce-checkout-review-order-table .product-total,
  .woocommerce-checkout-review-order-table tfoot td,
  .woocommerce-checkout-review-order-table tfoot th {
    white-space: nowrap !important;
    font-size: 13px !important;
    text-align: right !important;
  }

  #place_order {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
  }

  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    touch-action: pan-y !important;
  }

  .site, .elementor-page, .elementor-section-wrap {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .elementor-widget-html {
    padding: 0 !important;
    margin: 0 !important;
  }

  .elementor-widget-html .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-bg-mobile { display: block !important; }
  .hero-bg-desktop { display: none !important; }
}