/* 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 {
  position: relative;
  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;
}

/* Pastilles / favoris : référentiel = carte (.product-miniature__inner), pas la zone image. */
.elementor .ce-product-grid .product-miniature__top {
  position: static;
  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,
.elementor .ce-product-grid ul.product-flags {
  position: absolute !important;
  /* Léger inset : évite le crop (overflow + border-radius de la carte). */
  top: 0.25rem !important;
  left: 0.25rem !important;
  right: auto !important;
  inset-inline-start: 0.25rem !important;
  inset-inline-end: auto !important;
  transform: none !important;
  translate: none !important;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 2.25rem);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  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;
}

/* Listings catalogue Presta uniquement (#products) — pas les grilles Creative Elements. */
#js-product-list .products,
#products .products {
  align-items: stretch;
}

#js-product-list .product-miniature,
#products .product-miniature {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#js-product-list .product-miniature__inner,
#products .product-miniature__inner,
.product-miniature .product-miniature__inner {
  position: relative;
  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;
}

#js-product-list .product-miniature__top,
#products .product-miniature__top,
.product-miniature .product-miniature__top {
  position: static;
  flex: 0 0 auto;
  min-height: 11.5rem;
}

#js-product-list .product-miniature__bottom,
#products .product-miniature__bottom {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#js-product-list .product-miniature__infos,
#products .product-miniature__infos {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 6.5rem;
}

#js-product-list .product-miniature__actions,
#products .product-miniature__actions {
  margin-top: auto;
  min-height: 3.25rem;
  display: flex;
  align-items: flex-end;
}

#js-product-list a.product-miniature__title,
#products 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;
}

#js-product-list .product-miniature__image-container,
#products .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;
}

#js-product-list .product-miniature__image-container .product-miniature__image-link,
#products .product-miniature__image-container .product-miniature__image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
}

#js-product-list .product-miniature__image-container picture,
#products .product-miniature__image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

#js-product-list .product-miniature__image,
#products .product-miniature__image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 10.5rem;
  height: auto;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
}

#js-product-list .product-miniature__image--placeholder,
#products .product-miniature__image--placeholder {
  max-height: 7rem;
  opacity: 0.85;
}

#js-product-list .product-miniature__inner:hover .product-miniature__image--placeholder,
#products .product-miniature__inner:hover .product-miniature__image--placeholder,
#js-product-list .product-miniature__inner:hover .product-miniature__image[src*="fr-default"],
#products .product-miniature__inner:hover .product-miniature__image[src*="-default-default"] {
  transform: none !important;
}

#js-product-list .product-miniature__top .product-flags,
#products .product-miniature__top .product-flags,
#js-product-list .product-flags,
#products .product-flags,
.product-miniature .product-flags,
.product-miniature ul.product-flags {
  position: absolute !important;
  top: 0.25rem !important;
  left: 0.25rem !important;
  right: auto !important;
  inset-inline-start: 0.25rem !important;
  inset-inline-end: auto !important;
  transform: none !important;
  translate: none !important;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 2.25rem);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left;
  gap: 0.2rem;
  pointer-events: none;
}

/* Favoris catalogue : petite pastille, ne couvre pas la photo. */
#js-product-list .wishlist-button-add,
#products .wishlist-button-add,
.products article .wishlist-button-add,
.product-miniature .wishlist-button-add {
  position: absolute !important;
  top: 0.4rem !important;
  right: 0.4rem !important;
  left: auto !important;
  bottom: auto !important;
  width: 1.75rem !important;
  height: 1.75rem !important;
  min-width: 1.75rem !important;
  min-height: 0 !important;
  max-width: 1.75rem !important;
  max-height: 1.75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  z-index: 6;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8e8e8;
  box-shadow: none;
  transform: none !important;
}

#js-product-list .wishlist-button-add i,
#products .wishlist-button-add i,
.products article .wishlist-button-add i,
.product-miniature .wishlist-button-add i,
#js-product-list .wishlist-button-add svg,
#products .wishlist-button-add svg {
  font-size: 1rem !important;
  width: 1rem !important;
  height: 1rem !important;
  line-height: 1 !important;
  max-width: 1rem !important;
  max-height: 1rem !important;
}

/* Tout widget favoris dans une miniature (CE ou module), y compris pages catégorie. */
.product-miniature [class*="wishlist"],
.product-miniature [class*="add-to-wishlist"],
#products [class*="wishlist"],
#js-product-list [class*="wishlist"] {
  width: 1.75rem !important;
  height: 1.75rem !important;
  max-width: 1.75rem !important;
  max-height: 1.75rem !important;
  min-height: 0 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

.product-miniature [class*="wishlist"] i,
.product-miniature [class*="wishlist"] svg,
#products [class*="wishlist"] i,
#js-product-list [class*="wishlist"] i {
  font-size: 1rem !important;
  width: 1rem !important;
  height: 1rem !important;
  max-width: 1rem !important;
  max-height: 1rem !important;
}

/* Also apply on native listings (category, search, new products outside Elementor). */
.product-flags,
ul.product-flags {
  max-width: calc(100% - 2.75rem);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  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: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 10.5rem;
  height: auto;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  vertical-align: middle;
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  outline: none !important;
  box-shadow: none !important;
}

.elementor .ce-product-grid .product-miniature__image-container .product-miniature__image-link:focus-visible {
  outline: 2px solid #e01010 !important;
  outline-offset: 2px;
}

.elementor .ce-product-grid .product-miniature__image-container picture {
  display: block;
  width: 100%;
  max-height: 100%;
}

/* Favoris (widget CE) — petite pastille, ne couvre pas la photo. */
.elementor .ce-product-grid .elementor-widget-product-add-to-wishlist {
  position: absolute !important;
  top: 0.25rem !important;
  right: 0.25rem !important;
  left: auto !important;
  bottom: auto !important;
  width: 1.75rem !important;
  height: 1.75rem !important;
  min-width: 0 !important;
  max-width: 1.75rem !important;
  max-height: 1.75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 6;
  pointer-events: auto;
  overflow: hidden;
}

.elementor .ce-product-grid .ce-add-to-wishlist,
.elementor .ce-product-grid .elementor-widget-product-add-to-wishlist .elementor-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.75rem !important;
  height: 1.75rem !important;
  max-width: 1.75rem !important;
  max-height: 1.75rem !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8e8e8 !important;
  box-shadow: none;
  color: #232323 !important;
  line-height: 1 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
}

.elementor .ce-product-grid .ce-add-to-wishlist i,
.elementor .ce-product-grid .elementor-widget-product-add-to-wishlist i {
  font-size: 1rem !important;
  width: 1rem !important;
  height: 1rem !important;
  line-height: 1 !important;
}

.elementor .ce-product-grid .ce-add-to-wishlist.elementor-active,
.elementor .ce-product-grid .ce-add-to-wishlist.elementor-active i {
  color: #e01010 !important;
}

.elementor .ce-product-grid .elementor-widget-product-add-to-wishlist .elementor-icon-wrapper {
  line-height: 1 !important;
}

/* 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"],
.elementor .ce-product-grid .product-miniature__inner:hover .product-miniature__image--placeholder {
  transform: none !important;
}

.elementor .ce-product-grid .product-miniature__image--placeholder {
  max-height: 7rem;
  opacity: 0.85;
}

.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;
}
