/* Restored after PS 9.1.5 — backup Hummingbird (May 2025) used brand red primary + black links. */

html {
  --bs-primary: #e01010 !important;
  --bs-primary-rgb: 224, 16, 16 !important;
  --bs-primary-text-emphasis: #800808 !important;
  --bs-link-color: #232323 !important;
  --bs-link-color-rgb: 35, 35, 35 !important;
  --bs-link-hover-color: #e01010 !important;
  --bs-link-hover-color-rgb: 224, 16, 16 !important;
}

.elementor-3170101 .elementor-icon-list-item a,
.elementor-3170101 .elementor-icon-list-text,
.elementor[data-elementor-type="footer"] .elementor-icon-list-item a {
  color: #232323 !important;
  text-decoration: none !important;
}

.elementor-3170101 .elementor-icon-list-item:hover .elementor-icon-list-text,
.elementor[data-elementor-type="footer"] .elementor-icon-list-item:hover a {
  color: #e01010 !important;
}

/* Creative Elements product grids (Hummingbird PS 9 markup). */
.elementor .ce-product-grid,
.elementor .ce-products.ce-product-grid {
  align-items: stretch;
}

.elementor .ce-product-grid > .product-miniature,
.elementor .ce-product-grid > article.product-miniature {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.elementor .ce-product-grid .product-miniature {
  height: 100% !important;
}

.elementor .ce-product-grid .product-miniature__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 26rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 0.5rem;
  overflow: hidden;
}

.elementor .ce-product-grid .product-miniature__top {
  position: relative;
  flex: 0 0 auto;
  min-height: 11.5rem;
}

.elementor .ce-product-grid .product-miniature__bottom {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.elementor .ce-product-grid .product-miniature__infos {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 6.5rem;
}

.elementor .ce-product-grid .product-miniature__actions {
  margin-top: auto;
  min-height: 3.25rem;
  display: flex;
  align-items: flex-end;
}

.elementor .ce-product-grid .product-miniature__form {
  margin-top: 0;
  width: 100%;
}

.elementor .ce-product-grid a.product-miniature__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.75em;
  line-height: 1.35;
}

.elementor .ce-product-grid a.product-miniature__title,
.elementor .ce-product-grid a.product-miniature__image-link {
  color: #232323 !important;
  text-decoration: none !important;
}

.elementor .ce-product-grid a.product-miniature__title:hover {
  color: #e01010 !important;
}

.elementor .ce-product-grid .product-miniature__price,
.elementor .ce-product-grid .product-miniature__regular-price {
  color: #232323;
}

.elementor .ce-product-grid .product-flags {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  left: auto;
  z-index: 4;
  /* Full label must fit ("Rupture de stock") — do not clip with a tight max-width. */
  max-width: calc(100% - 0.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  pointer-events: none;
}

.elementor .ce-product-grid .product-flags .badge,
.elementor .ce-product-grid .product-flags li {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
}

.elementor .ce-product-grid .product-flags .badge.discount {
  background-color: #fff;
  color: #e01010;
}

/* Also apply on native listings (category, search, new products outside Elementor). */
.product-flags {
  max-width: calc(100% - 0.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.product-flags .badge,
.product-flags li {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
  font-size: 0.7rem;
}

.elementor .ce-product-grid .product-miniature__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}

.elementor .ce-product-grid .product-miniature__image-container {
  height: 10.5rem;
  min-height: 10.5rem;
  max-height: 10.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.elementor .ce-product-grid .product-miniature__image-container .product-miniature__image-link,
.elementor .ce-product-grid .product-miniature__image-container picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Default "Aucune image disponible" placeholder: keep centered, no hover zoom clip. */
.elementor .ce-product-grid .product-miniature__inner:hover .product-miniature__image[src*="fr-default"],
.elementor .ce-product-grid .product-miniature__inner:hover .product-miniature__image[src*="-default-default"],
.elementor .ce-product-grid .product-miniature__inner:hover .product-miniature__image[src*="no-picture"],
.product-miniature__inner:hover .product-miniature__image[src*="fr-default"],
.product-miniature__inner:hover .product-miniature__image[src*="-default-default"] {
  transform: none !important;
}

.elementor .ce-product-grid .product-miniature__quickview-button,
.elementor .ce-product-grid .product-miniature__quickview-touch {
  position: absolute;
  z-index: 3;
  max-width: calc(100% - 0.5rem);
}

.elementor .ce-product-grid .product-miniature__quickview-touch {
  display: none;
}

.elementor .ce-product-grid .btn-outline-primary,
.elementor .ce-product-grid .product-miniature__details.btn-outline-primary,
.elementor .ce-product-grid a.product-miniature__details {
  --bs-btn-color: #232323 !important;
  --bs-btn-border-color: #e01010 !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #e01010 !important;
  --bs-btn-hover-border-color: #c00e0e !important;
  --bs-btn-active-bg: #c00e0e !important;
  --bs-btn-active-border-color: #c00e0e !important;
  color: #232323 !important;
  border-color: #e01010 !important;
  background-color: #fff !important;
  width: 100%;
  text-align: center;
}

.elementor .ce-product-grid .btn-outline-primary:hover,
.elementor .ce-product-grid .btn-outline-primary:focus,
.elementor .ce-product-grid a.product-miniature__details:hover,
.elementor .ce-product-grid a.product-miniature__details:focus {
  color: #fff !important;
  background-color: #e01010 !important;
  border-color: #c00e0e !important;
}

.elementor .ce-product-grid .btn-tertiary,
.elementor .ce-product-grid .product-miniature__quickview-button {
  color: #232323 !important;
  border-color: #e8e8e8 !important;
}

.elementor .ce-product-grid a:not(.btn):not(.product-miniature__add) {
  color: #232323 !important;
}

.elementor .ce-product-grid a:not(.btn):hover {
  color: #e01010 !important;
}

.elementor .ce-product-grid .product-miniature__add.btn-primary {
  background-color: #e01010 !important;
  border-color: #e01010 !important;
}

.elementor .ce-product-grid .product-miniature__add.btn-primary:hover {
  background-color: #c00e0e !important;
  border-color: #c00e0e !important;
}

/* Native listings (category, search, etc.) — same brand as pre-PS9 theme. */
.product-miniature__add.btn-primary,
.products .product-miniature__add.btn-primary {
  background-color: #e01010 !important;
  border-color: #e01010 !important;
}

.product-miniature__add.btn-primary:hover,
.products .product-miniature__add.btn-primary:hover {
  background-color: #c00e0e !important;
  border-color: #c00e0e !important;
}

.product-flags .badge.discount {
  background-color: #fff;
  color: #e01010;
}

/* PS 9 Hummingbird: .btn-primary on PDP does not inherit --bs-primary (Bootstrap btn vars). */
.btn-primary,
.product__add-to-cart-button.btn-primary {
  --bs-btn-bg: #e01010 !important;
  --bs-btn-border-color: #e01010 !important;
  --bs-btn-hover-bg: #c00e0e !important;
  --bs-btn-hover-border-color: #c00e0e !important;
  --bs-btn-active-bg: #a00c0c !important;
  --bs-btn-active-border-color: #a00c0c !important;
  --bs-btn-disabled-bg: #e01010 !important;
  --bs-btn-disabled-border-color: #e01010 !important;
  background-color: #e01010 !important;
  border-color: #e01010 !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.product__add-to-cart-button.btn-primary:hover,
.product__add-to-cart-button.btn-primary:focus {
  background-color: #c00e0e !important;
  border-color: #c00e0e !important;
  color: #fff !important;
}

#checkout .btn-primary,
.cart-detailed-actions .btn-primary,
.checkout .btn-primary {
  background-color: #e01010 !important;
  border-color: #e01010 !important;
}

/* mobile-header-compact — CE header 1170101 (Hummingbird) */

@media (max-width: 767px) {
  /* Bandeau contact / connexion : moins haut */
  .elementor-1170101 .elementor-element-9e575de {
    padding-block: 0.2rem !important;
  }

  .elementor-1170101 .elementor-element-9e575de .elementor-icon-list-text {
    font-size: 0.72rem;
  }

  .elementor-1170101 .elementor-element-9e575de .elementor-icon-list-icon i {
    font-size: 0.85em;
  }

  /* Logo + panier sur une même ligne ; recherche en dessous */
  .elementor-1170101 .elementor-element-c6ffd3b {
    padding-block: 0.35rem !important;
  }

  .elementor-1170101 .elementor-element-c6ffd3b > .elementor-container > .elementor-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    row-gap: 0.35rem;
  }

  .elementor-1170101 .elementor-element-8c1fe45 {
    flex: 0 1 52% !important;
    width: 52% !important;
    max-width: 52% !important;
  }

  .elementor-1170101 .elementor-element-278aeb0 {
    flex: 1 1 auto !important;
    width: 48% !important;
    max-width: 48% !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .elementor-1170101 .elementor-element-3b9b13a {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 3;
  }

  .elementor-1170101 .elementor-element-23e4c80 img {
    max-height: 2.75rem !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  .elementor-1170101 .elementor-element-0d8b17a .elementor-cart__toggle {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .elementor-1170101 .elementor-element-0d8b17a .elementor-cart__toggle .elementor-button {
    padding: 0.4rem 0.65rem !important;
    min-height: 2.25rem !important;
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
  }

  .elementor-1170101 .elementor-element-d1bf9e9 .elementor-search__input {
    min-height: 2.35rem !important;
    padding-block: 0.35rem !important;
    font-size: 0.9rem !important;
  }

  .elementor-1170101 .elementor-element-d1bf9e9 .elementor-search__submit {
    padding-inline: 0.65rem !important;
  }
}

@media (max-width: 400px) {
  /* Très petit écran : panier icône seule (le total reste dans aria-description) */
  .elementor-1170101 .elementor-element-0d8b17a .elementor-cart__toggle .elementor-button-text {
    display: none !important;
  }

  .elementor-1170101 .elementor-element-9e575de .elementor-icon-list-item:nth-child(2) .elementor-icon-list-text {
    display: none !important;
  }
}

/* end mobile-header-compact */
