/********************************************************
			Coderplace Custom Styles
********************************************************/
.tm-carousel {
  display: none;
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
}
.cp-carousel {
  display: none;
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
}
.owl-carousel .owl-wrapper {
  display: none;
  position: relative;
  -webkit-transform: translate3d(0px, 0px, 0px);
  -ms-transform: translate3d(0px, 0px, 0px);
  -o-transform: translate3d(0px, 0px, 0px);
  -moz-transform: translate3d(0px, 0px, 0px);
  display: flex !important;
  flex-wrap: wrap;
}
.owl-carousel .owl-wrapper:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
.owl-carousel .owl-wrapper-outer {
  overflow-x: clip;
  position: relative;
  float: left;
  width: 100%;
  padding: 0;
}
.owl-carousel .owl-wrapper-outer.autoHeight {
  -webkit-transition: height 500ms ease-in-out;
  -moz-transition: height 500ms ease-in-out;
  -ms-transition: height 500ms ease-in-out;
  -o-transition: height 500ms ease-in-out;
  transition: height 500ms ease-in-out;
}
.owl-carousel .owl-item {
  float: left;
  display: flex;
  height: auto;
}
.owl-carousel .owl-item .manu_image a {
  display: inline-block;
}
.owl-carousel .owl-item .manu_image a img {
  max-width: 100%;
}

.owl-carousel .owl-wrapper,
.owl-carousel .owl-item {
  /* fix */
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  text-align: center;
}

/* mouse grab icon */
.customNavigation {
	position: absolute;
	z-index: 9;
	width: 100%;
	top: 57%;
	direction: ltr !important;
	right: 0;
	left: auto;
  opacity: 0;
  -khtml-opacity: 0;
  -webkit-opacity: 0;
  -moz-opacity: 0;
}
.products .customNavigation {
	top: 35%;
}
.customNavigation a.prev::before {
	content: "\E314";
	font-family: "Material Icons";
	position: absolute;
	font-size: 20px;
	right: 5px;
	top: -1px;
	color: #808080;
}
.customNavigation a.next::before {
	content: "\E315";
	font-family: "Material Icons";
	position: absolute;
	font-size: 20px;
	position: absolute;
	right: 3px;
	top: -1px;
	color: #808080;
}
.special-products:hover .customNavigation,
.products:hover .customNavigation,
.testimonial-block-part:hover .customNavigation,
.tmblog-latest:hover .customNavigation,
.product-accessories:hover .customNavigation,
.productscategory-products:hover .customNavigation{
  opacity: 1;
  -khtml-opacity: 1;
  -webkit-opacity: 1;
  -moz-opacity: 1;
}
.lastest_block .customNavigation {
	top: 44%;
}
.customNavigation i {
	color: #222 !important;
	cursor: pointer;
	font-size: 0;
	font-weight: 500;
	height: 38px;
	line-height: 32px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	text-align: center;
	width: 38px;
	background: transparent;
	border-radius: 0;
	font-style: unset;
	box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.11);
}
.customNavigation i.prev {
	background: transparent;
	right: auto;
	background: #fff;
	border-radius: 50%;
	left: -5px;
}
.customNavigation i.next {
	background: transparent;
	right: 0px;
	background: #fff;
	border-radius: 50%;
	right: -5px;
}
.testimonial-block-part .customNavigation i.prev,
.special-products .customNavigation i.prev,
.btn.prev.accessories_prev {
	left: -20px;
}
.testimonial-block-part .customNavigation i.next,
.special-products .customNavigation i.next,
.btn.next.accessories_next  {
  right: -20px;
}
.customNavigation i.prev::before {
	content: '';
	-webkit-mask-image: url(../img/megnor/pro-left.svg);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-image: url(../img/megnor/pro-left.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #000;
	mask-size: 14px;
	font-size: 14px;
	width: 38px;
	height: 38px;
	display: block;
  -webkit-mask-size: 14px;
}
.customNavigation i.next::before {
	content: '';
	-webkit-mask-image: url(../img/megnor/pro-right.svg);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-image: url(../img/megnor/pro-right.svg);
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #000;
	mask-size: 14px;
	font-size: 14px;
	width: 38px;
	height: 38px;
	display: block;
  -webkit-mask-size: 14px;
}
.customNavigation i.next:hover::before,.customNavigation i.prev:hover::before  {
  color: #fff;
}
#cpleftbanner1 img,
#cpleftbanner2 img {
  max-width: 100%;
}
#cpleftbanner1 li,
#cpleftbanner2 li {
  overflow: hidden;
  position: relative;
  float: left;
  border-radius: 5px;
}
#cpleftbanner1 li a,
#cpleftbanner2 li a {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
}
.footer-container .links.lastest_block .customNavigation i.prev:hover {
  color: #9bbab1 !important;
}
.footer-container .links.lastest_block .customNavigation i.next:hover {
  color: #9bbab1 !important;
}

@media (max-width: 1449px) {
  .testimonial-block-part .customNavigation i.prev,
  .special-products .customNavigation i.prev,
  .btn.prev.accessories_prev {
    left: -15px;
  }
  .testimonial-block-part .customNavigation i.next,
   .special-products .customNavigation i.next,
   .btn.next.accessories_next {
    right: -15px;
  }
  .customNavigation i.next {
    right: 0;
  }
  .customNavigation i.prev {
    left: 0;
  }
}
@media (max-width: 1199px) {
}

@media (max-width: 991px) {
  #cpleftbanner1 li img,
  #cpleftbanner2 li a {
    width: auto;
  }
}
@media (max-width: 767px) {
  .customNavigation {
    opacity: 1;
    -khtml-opacity: 1;
    -webkit-opacity: 1;
    -moz-opacity: 1;
  }

  .testimonial-block-part .customNavigation i.prev,
  .special-products .customNavigation i.prev,
  .btn.prev.accessories_prev {
    left: 5px;
  }
  .testimonial-block-part .customNavigation i.next,
   .special-products .customNavigation i.next,
   .btn.next.accessories_next {
    right: 5px;
  }
  #main .images-container .js-qv-mask .customNavigation {
    top: 13px;
  }
  .quickview .mask.additional_slider .customNavigation i.prev {
    left: -10px !important;
  }
  .quickview .mask.additional_slider .customNavigation i.next {
    right: -10px !important;
  }
  .btn.next.brand_next {
    left: auto;
    right: 0;
    position: absolute;
  }
  .btn.prev.brand_prev {
    left: 0;
    right: auto;
  }
  .customNavigation i.next {
    left: auto;
    right: 0;
  }
}
@media (max-width: 480px) {
}

/********************************************************
        Boutons de navigation Waze et Google Maps
********************************************************/
.store-navigation-buttons {
  margin: 15px 0 !important;
}

.btn-waze,
.btn-gmaps {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-waze {
  background-color: #00D9F7;
  color: #fff;
  margin-right: 10px;
}

.btn-waze:hover {
  background-color: #00B8D4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 217, 247, 0.3);
}

.btn-gmaps {
  background-color: #4285F4;
  color: #fff;
}

.btn-gmaps:hover {
  background-color: #3367D6;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
}

.btn-waze i,
.btn-gmaps i {
  margin-right: 5px;
}

/* Responsive pour mobile */
@media (max-width: 767px) {
  .store-navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn-waze,
  .btn-gmaps {
    width: 100%;
    margin-right: 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn-waze,
  .btn-gmaps {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/********************************************************
  Personnalisation des sous-catégories - 4 par ligne
********************************************************/

/* Desktop - 4 sous-catégories par ligne avec images plus grandes */
#subcategories ul li {
  width: calc(25% - 20px) !important;
  margin: 0 10px 30px !important;
}

#subcategories ul li .subcategory-image {
  padding: 0 !important;
  border: 2px solid #e0e0e0 !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

#subcategories ul li .subcategory-image:hover {
  border-color: #007bff !important;
  box-shadow: 0 4px 16px rgba(0,123,255,0.2) !important;
  transform: translateY(-5px) !important;
}

#subcategories ul li .subcategory-image a img {
  max-width: 100% !important;
  height: auto !important;
  min-height: 250px !important;
  object-fit: cover !important;
  vertical-align: top !important;
}

#subcategories ul li h5 {
  margin-top: 15px !important;
  margin-bottom: 10px !important;
  font-size: 16px !important;
}

#subcategories ul li .subcategory-name {
  font-weight: 600 !important;
  color: #333 !important;
  transition: color 0.3s ease !important;
}

#subcategories ul li .subcategory-name:hover {
  color: #007bff !important;
}

/* Tablet - 3 par ligne */
@media (max-width: 991px) and (min-width: 768px) {
  #subcategories ul li {
    width: calc(33.333% - 20px) !important;
  }

  #subcategories ul li .subcategory-image a img {
    min-height: 200px !important;
  }
}

/* Mobile - 2 par ligne */
@media (max-width: 767px) {
  #subcategories ul li {
    width: calc(50% - 20px) !important;
  }

  #subcategories ul li .subcategory-image a img {
    min-height: 150px !important;
  }

  #subcategories ul li h5 {
    font-size: 14px !important;
  }
}

/* Très petit mobile - 1 par ligne */
@media (max-width: 480px) {
  #subcategories ul li {
    width: calc(100% - 20px) !important;
  }

  #subcategories ul li .subcategory-image a img {
    min-height: 200px !important;
  }
}

/********************************************************
  Correction alignement bestseller-products
********************************************************/

/* Forcer l'alignement des colonnes de produits */
.bestseller-products .bestseller_grid.row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}

.bestseller-products .bestseller_grid .product_item {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

.bestseller-products .product_item .product {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

/* Structure de la carte produit */
.bestseller-products .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Images - hauteur fixe pour alignement parfait */
.bestseller-products .thumbnail-container {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
  flex-shrink: 0;
}

.bestseller-products .thumbnail-container .thumbnail {
  display: block;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.bestseller-products .thumbnail-container img {
  width: 100%;
  height: 300px !important;
  object-fit: cover;
  object-position: center;
}

/* Description produit - hauteur flexible */
.bestseller-products .product-description {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.bestseller-products .product-brand {
  margin-bottom: 8px;
}

.bestseller-products .product-description .product-title {
  height: 65px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.bestseller-products .product-description .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* Zone prix/bouton - toujours en bas, même hauteur */
.bestseller-products .product-bottom {
  margin-top: auto;
  flex-shrink: 0;
}

.bestseller-products .product-price-and-shipping {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.bestseller-products .product-quote-badge-listing {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.bestseller-products .add-to-cart-button {
  width: 100%;
}

.bestseller-products .add-to-cart-button button {
  width: 100%;
  height: 45px;
}

/* Pour le carousel owl - CORRECTION ALIGNEMENT */
.bestseller-products #bestseller-carousel.cp-carousel {
  display: block;
}

.bestseller-products #bestseller-carousel .owl-wrapper-outer {
  display: block;
}

.bestseller-products #bestseller-carousel .owl-wrapper {
  display: flex !important;
  align-items: stretch !important;
}

.bestseller-products #bestseller-carousel .owl-item {
  display: flex !important;
  align-items: stretch !important;
  float: none !important;
  height: auto !important;
}

/* Forcer la même structure que le grid */
.bestseller-products #bestseller-carousel .owl-item article.item {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  height: 100%;
}

.bestseller-products #bestseller-carousel .owl-item .product {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  height: 100% !important;
}

.bestseller-products #bestseller-carousel .owl-item .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Appliquer les mêmes hauteurs fixes que le grid */
.bestseller-products #bestseller-carousel .thumbnail-container {
  flex-shrink: 0;
}

.bestseller-products #bestseller-carousel .thumbnail-container .thumbnail {
  height: 300px;
  overflow: hidden;
}

.bestseller-products #bestseller-carousel .thumbnail-container img {
  height: 300px !important;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.bestseller-products #bestseller-carousel .product-description {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bestseller-products #bestseller-carousel .product-description .product-title {
  height: 65px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.bestseller-products #bestseller-carousel .product-description .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.bestseller-products #bestseller-carousel .product-bottom {
  margin-top: auto;
  flex-shrink: 0;
}

.bestseller-products #bestseller-carousel .product-price-and-shipping {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bestseller-products #bestseller-carousel .add-to-cart-button button {
  height: 45px;
  width: 100%;
}

/* Responsive - ajuster hauteur image sur mobile */
@media (max-width: 767px) {
  .bestseller-products .thumbnail-container .thumbnail,
  .bestseller-products .thumbnail-container img,
  .bestseller-products #bestseller-carousel .thumbnail-container .thumbnail,
  .bestseller-products #bestseller-carousel .thumbnail-container img {
    height: 250px !important;
  }

  /* Correction alignement bouton panier sur mobile */
  #_desktop_cart {
    float: none !important;
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 15px !important;
    display: block !important;
    width: auto !important;
  }

  #_desktop_cart .blockcart {
    float: none !important;
    display: inline-block !important;
  }

  .header-top #_desktop_cart {
    justify-content: flex-end !important;
  }
}

@media (max-width: 480px) {
  .bestseller-products .thumbnail-container .thumbnail,
  .bestseller-products .thumbnail-container img,
  .bestseller-products #bestseller-carousel .thumbnail-container .thumbnail,
  .bestseller-products #bestseller-carousel .thumbnail-container img {
    height: 200px !important;
  }

  /* Correction alignement bouton panier sur très petit mobile */
  #_desktop_cart {
    float: none !important;
    text-align: right !important;
    display: block !important;
    margin-right: 10px !important;
    width: auto !important;
  }
}

/* ==========================================
   VARIANTS PRODUIT - AEGIS PANEL
   Longueur + Épaisseur inline, Couleur dessous
   ========================================== */

.product-variants {
  margin-bottom: 20px;
}

/* Row inline pour Longueur + Épaisseur */
.variants-inline-row {
  margin-bottom: 15px;
}

.variants-inline-row .product-variants-item {
  margin-bottom: 10px;
}

.variants-inline-row .control-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1F3652;
}

.variants-inline-row .form-control-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

.variants-inline-row .form-control-select:focus {
  border-color: #1F3652;
  outline: none;
  box-shadow: 0 0 0 2px rgba(31, 54, 82, 0.1);
}

/* Bloc couleur - marge avec Longueur/Épaisseur */
.product-variants .aegis-couleur-block {
  margin-top: 15px !important;
  padding-top: 10px !important;
  clear: both !important;
}

/* Liste des couleurs RAL - affichage horizontal */
.product-variants ul.color-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 1px !important;
  margin: 5px 0 0 0 !important;
}

.product-variants ul.color-list li {
  float: none !important;
  margin: 0 !important;
}

/* Responsive - mobile: full width */
@media (max-width: 767px) {
  .variants-inline-row .col-md-6 {
    margin-bottom: 15px;
  }
}

/* Valeur sélectionnée en gras */
.product-variants-item .control-label strong {
  color: #1F3652;
  font-weight: 600;
}

/* ================================================
   AEGIS - Collapse Autres Couleurs RAL
   ================================================ */

/* Bouton collapse */
.aegis-collapse-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.aegis-collapse-btn:hover {
  text-decoration: none !important;
}

.aegis-collapse-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Rotation de l'icône */
.aegis-collapse-btn[aria-expanded="true"] .aegis-collapse-icon {
  transform: rotate(180deg);
}

/* Container des couleurs supplémentaires */
.aegis-couleurs-supp-container {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

/* Liste des couleurs */
.aegis-couleurs-supp-list {
  max-height: 200px;
  overflow-y: auto;
}

/* Pastilles de couleur */
.aegis-couleur-link {
  position: relative;
}

.aegis-couleur-link:hover {
  z-index: 10;
}

/* Tooltip au survol */
.aegis-couleur-item:hover .aegis-couleur-tooltip {
  display: block !important;
}

/* Animation collapse */
.aegis-autres-couleurs-wrapper .collapse {
  transition: height 0.35s ease;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .aegis-couleurs-supp-list {
    gap: 6px !important;
  }
  
  .aegis-couleur-link {
    width: 28px !important;
    height: 28px !important;
  }
  
  .aegis-couleurs-supp-container {
    padding: 12px !important;
  }
}

/* ================================================
   AEGIS - Couleurs personnalisées (sélection)
   ================================================ */

/* Boutons couleur */
.aegis-couleur-btn {
  position: relative;
}

.aegis-couleur-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 10;
}

.aegis-couleur-btn.selected {
  border-color: #1F3652 !important;
  box-shadow: 0 0 0 3px rgba(31, 54, 82, 0.3);
}

/* Tooltip natif via title - on utilise CSS pour le style au survol */
.aegis-couleur-btn::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
  pointer-events: none;
}

.aegis-couleur-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}

.aegis-couleur-btn:hover::after,
.aegis-couleur-btn:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Container overflow visible pour tooltips */
.aegis-couleurs-supp-container {
  overflow: visible !important;
}

.aegis-couleurs-supp-list {
  overflow: visible !important;
  padding-top: 20px !important;
}

/* Couleur sélectionnée */
.aegis-selected-color {
  display: flex !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.aegis-remove-color:hover {
  color: #c00 !important;
}

/* ================================================
   AEGIS - Panel Autre RAL (natif PrestaShop)
   ================================================ */

/* Bouton Autre RAL arc-en-ciel */
.aegis-autre-ral-btn {
  cursor: pointer;
}

.aegis-autre-ral-container input:checked + .aegis-autre-ral-btn {
  box-shadow: 0 0 0 3px rgba(31, 54, 82, 0.4);
}

/* Panel couleurs */
.aegis-autres-couleurs-panel {
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Boutons couleur dans le panel */
.aegis-ral-btn {
  position: relative;
}

.aegis-ral-btn:hover {
  transform: scale(1.15);
  z-index: 10;
}

.aegis-ral-btn.selected {
  border-color: #1F3652 !important;
  box-shadow: 0 0 0 3px rgba(31, 54, 82, 0.3);
}

/* Tooltip */
.aegis-ral-btn::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s;
  z-index: 100;
  pointer-events: none;
}

.aegis-ral-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Display couleur sélectionnée */
.aegis-selected-color-display {
  display: flex !important;
}

/* ========================================
   Menu principal - Correction une seule ligne
   ======================================== */

/* Réduire l'espacement entre les éléments du menu */
.header-top-main.bg_main #_top_main_menu li {
  margin-inline: 12px;
}

/* Réduire la taille de police */
.header-top-main.bg_main #_top_main_menu li a[data-depth="0"] {
  font-size: 13px;
  padding: 13px 0;
}

/* Ajuster la position du séparateur */
.header-top-main.bg_main #_top_main_menu li a[data-depth="0"]::after {
  right: -14px;
}

/* Alternative: si ça ne suffit pas, activer le scroll horizontal */
/*
.header-top-main.bg_main #_top_main_menu #top-menu {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}
*/

/********************************************************
  Correction alignement - Nouveautés et Produits populaires
  (Même structure que bestseller-products)
********************************************************/

/* ===== NOUVEAUTÉS (.newproducts) ===== */

.newproducts .newproduct_grid.row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}

.newproducts .newproduct_grid .product_item {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

.newproducts .product_item .product {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

.newproducts .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.newproducts .thumbnail-container {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
  flex-shrink: 0;
}

.newproducts .thumbnail-container .thumbnail {
  display: block;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.newproducts .thumbnail-container img {
  width: 100%;
  height: 300px !important;
  object-fit: cover;
  object-position: center;
}

.newproducts .product-description {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.newproducts .product-brand {
  margin-bottom: 8px;
}

.newproducts .product-description .product-title {
  height: 65px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.newproducts .product-description .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.newproducts .product-bottom {
  margin-top: auto;
  flex-shrink: 0;
}

.newproducts .product-price-and-shipping {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.newproducts .product-quote-badge-listing {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.newproducts .add-to-cart-button {
  width: 100%;
}

.newproducts .add-to-cart-button button {
  width: 100%;
  height: 45px;
}

/* ===== PRODUITS POPULAIRES (.featured-products) ===== */

.featured-products .featured_grid.row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}

.featured-products .featured_grid .product_item {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

.featured-products .product_item .product {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

.featured-products .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.featured-products .thumbnail-container {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
  flex-shrink: 0;
}

.featured-products .thumbnail-container .thumbnail {
  display: block;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.featured-products .thumbnail-container img {
  width: 100%;
  height: 300px !important;
  object-fit: cover;
  object-position: center;
}

.featured-products .product-description {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.featured-products .product-brand {
  margin-bottom: 8px;
}

.featured-products .product-description .product-title {
  height: 65px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.featured-products .product-description .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.featured-products .product-bottom {
  margin-top: auto;
  flex-shrink: 0;
}

.featured-products .product-price-and-shipping {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.featured-products .product-quote-badge-listing {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.featured-products .add-to-cart-button {
  width: 100%;
}

.featured-products .add-to-cart-button button {
  width: 100%;
  height: 45px;
}

/* ================================================
   AEGIS - UX Fix: Select couleur loading state
   ================================================ */
select#group_2.aegis-color-loading {
  pointer-events: none;
  opacity: 0.6;
  cursor: wait;
}

/* Empêcher le flash du dropdown pendant le chargement */
select#group_2.aegis-color-loading:focus {
  outline: none;
}


/* ================================================
   AEGIS - Affichage prix avec unité (m², ML, HT)
   ================================================ */
.price-unit {
  font-size: 0.75em;
  font-weight: normal;
  color: #666;
  margin-left: 3px;
}

.product-price-and-shipping .price {
  display: inline;
}

.product-price-and-shipping .price-unit {
  display: inline;
}

/* Style pour les pages de listing */
.product-miniature .price-unit {
  font-size: 0.7em;
  color: #777;
}

/* Alignement prix + unité */
.product-price-and-shipping {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

/* ================================================
   AEGIS - Prix en gras et plus visible
   ================================================ */
.product-miniature .product-price-and-shipping .price {
  font-weight: 700;
  font-size: 1.2em;
  color: #1F3652;
}

.product-miniature .product-price-and-shipping .price-unit {
  font-weight: 600;
  color: #1F3652;
}

/* Liste grille */
.product-miniature.js-product-miniature .price {
  font-weight: 700;
  font-size: 1.15em;
  color: #1F3652;
}

/* ================================================
   AEGIS - Alignement section Accessoires (You might also like)
   ================================================ */

/* Conteneur du carrousel accessoires */
.product-accessories #accessories-carousel .owl-item {
  display: flex !important;
  flex-direction: column !important;
}

.product-accessories #accessories-carousel .item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.product-accessories #accessories-carousel .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Images - hauteur fixe pour alignement parfait */
.product-accessories .thumbnail-container {
  flex-shrink: 0;
}

.product-accessories .thumbnail-container .thumbnail {
  height: 250px !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.product-accessories .thumbnail-container img {
  width: 100% !important;
  height: 250px !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Description produit */
.product-accessories .product-description {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

/* Titre - hauteur fixe avec ellipsis */
.product-accessories .product-description .product-title {
  height: 50px !important;
  min-height: 50px !important;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.product-accessories .product-description .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-size: 14px;
}

/* Zone prix - hauteur fixe */
.product-accessories .product-price-and-shipping {
  height: 40px !important;
  min-height: 40px !important;
  display: flex;
  align-items: center;
}

/* Grille accessoires (si moins de 5 produits) */
.product-accessories .accessories_grid .product_item {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 20px;
}

.product-accessories .accessories_grid .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

