
/* Animation de rotation pour les spinners de chargement */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Zoom effet sur les images de cards au hover */
.zoom-card-img {
    transform: scale(1);
    transition: transform 500ms ease-in-out;
}

.group:hover .zoom-card-img {
    transform: scale(1.1);
}

.scrolled .header-mid .Contact-btn .b-title,
.scrolled .header-mid .wishlist-btn .b-title  {
    display: none;
}

/* Cache header-top sur mobile lors du scroll - même principe que desktop */
@media (max-width: 767px) {
    .main-header {
        position: sticky;
        z-index: 1000;
    }
}

/* Cacher complètement les vrais inputs radio des options de paiement */
input[name="payment-option"].radio-input {
    display: none !important;
}

/* Style du custom radio pour les paiements */
.custom-radio {
    transition: all 0.3s ease;
}

.custom-radio.selected {
    background-color: var(--blaze-orange-600);
    border-color: var(--blaze-orange-600);
}

/* ===== PRODUCT CAROUSEL OVERFLOW STYLES ===== */
/* Override des styles par défaut de Swiper pour les carousels */
.product-carousel-section .swiper {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Overflow visible seulement sur desktop (tablet et plus grand) */
@media (min-width: 768px) {
  .product-carousel-overflow .swiper {
    overflow: visible !important;
  }
}

/* Container spécial pour l'effet de débordement */
.product-carousel-overflow {
  position: relative;
  /* Étendre au-delà des limites du container parent */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* Padding pour aligner le début du carousel avec le reste du contenu */
  padding-left: max(1rem, calc(50vw - 50%));
  padding-right: 0;
}

/* Ajustement du padding pour aligner avec le container principal sur grands écrans */
@media (min-width: 1920px) {
  .product-carousel-overflow {
    /* Calcul pour aligner avec container 1658px + padding px-4 (16px) */
    padding-left: calc((100vw - 1658px) / 2 + 16px);
  }
}

@media (min-width: 1280px) and (max-width: 1919px) {
  .product-carousel-overflow {
    /* Calcul pour aligner avec container 1308px + padding px-4 (16px) */
    padding-left: calc((100vw - 1308px) / 2 + 16px);
  }
}

/* Le swiper prend toute la largeur disponible */
.product-carousel-overflow .swiper {
  width: 100%;
}

/* Blog articles carousel overflow - système adapté sans débordement visible */

.blog-carousel-overflow {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: max(1rem, calc(50vw - 50%));
  padding-right: 0;
}

@media (min-width: 1920px) {
  .blog-carousel-overflow {
    padding-left: calc((100vw - 1658px) / 2 + 16px);
  }
}

@media (min-width: 1280px) and (max-width: 1919px) {
  .blog-carousel-overflow {
    padding-left: calc((100vw - 1308px) / 2 + 16px);
  }
}

.blog-carousel-overflow .swiper {
  width: 100%;
}

/* Empêche le débordement horizontal des sections carousel */
.product-carousel-section,
.blog-home-widget {
  overflow-x: hidden;
}
#search_filters_brands .swiper-slide {
  height: auto;
  display: flex;
}
.jms-megamenu > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-sm);
  line-height: var(--tw-leading, var(--text-base--line-height));
  color: var(--color-cod-gray-400);
  --tw-tracking: 1px;
  letter-spacing: 1px;
  --tw-font-weight: var(--font-weight-medium);
  font-weight: var(--font-weight-medium);
  --tw-leading: 100%;
  font-family: var(--font-KumbhSans);
}
.jms-megamenu > ul > li:first-child {
  border-right:1px solid var(--color-cod-gray-100);
  padding-right: 26px;
}
.product-btn-sticky.active .menu-open {
  display: block;
}
.product-btn-sticky.active .menu-close {
  display: none;
}
.arrow-right {
  background:url(../img/arrow-right.svg) no-repeat center center;
}
.group-hover\:bg-white {
    &:is(:where(.group):hover *) {
        @media (hover: hover) {
            &:is(:where(.group):hover *) {
                background:var(--color-white) url(../img/arrow-right-hover.svg) no-repeat center center;
            }
        }
    }
}
.manufacturer-link img {
  max-width: 140px;
}
.input-color {
  display: none; 
}

.color-label {
  cursor: pointer;
}

.color {
  display: inline-block;
  width: 100px;
  height: 30px;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.custom-select {
    background: #F3610C;
    text-align: center;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    width: 100px;
    height: 30px;
    color: white;
}

.input-color:checked + .color {
  border: 2px solid #f3610c;
  box-shadow: 0 0 0 2px #f3610c;
}
/* Ẩn radio gốc */
.attribute-radio__input {
  display: none;
}

/* Thiết lập nút hiển thị */
.attribute-radio__text {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #1c1c1c;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  user-select: none;
}

/* Hover effect */
.attribute-radio__label:hover .attribute-radio__text {
  border-color: #F3610C;
}

/* Trạng thái được chọn */
.attribute-radio__input:checked + .attribute-radio__text {
  background-color: #F3610C;
  color: #fff;
  border-color: #F3610C;
}
/*.form-select {
border: 1px solid #1c1c1c;
  border-radius: 4px;
  height: 33px;
  padding: 0px 20px;
}*/

.swiper-pagination-progressbar {
    position: static;
    background-color: #D1D1D1;
    height: 2px;
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: #F97916;
}
.swiper-pagination-lock {
    display: none;
}
.d-none {
    display: none;
}
@media (max-width: 639px) {
  .breadcrumb {
    display: none !important;
  }
}
#search_filters_wrapper .slide {
  display: block !important;
}
.page-title-section {
  font-size: 68px;
}
#checkout #wrapper > .bg-white{
  background-color: var(--color-cod-gray-50)!important;
}
input:-webkit-autofill {
    background-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    color: var(--color-woodsmoke-200);
}
.form-validation input {
  outline-style: var(--tw-outline-style);
  outline-width: 0px;
  color: var(--color-woodsmoke-600);
  --tw-font-weight: var(--font-weight-medium);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-lg);
  --tw-leading: 145%;
  line-height: 145%;
  font-family: var(--font-KumbhSans);
  padding: calc(var(--spacing) * 0);
  flex: 1;
  background-color: transparent;
  border:0px;
}
.form-validation select {
  flex: 1;
}
textarea.form-control {
    border: 1px solid var(--color-woodsmoke-1200);
}
.order-options .form-control {
  width: 100%;
  padding: 10px;
}
/*.payment__option .form-check-input {
  display: none!important;
}*/
.step--reachable {
  display: none;
}
.step--current.step--reachable {
  display: block;
}
.step-img-active {
  display: none;
}
.checkout__steps--success .step-img-active,
.checkout__steps--current .step-img-active {
  display: block!important;
}
.checkout__steps--success .step-img,
.checkout__steps--current .step-img {
  display: none!important;
}
.checkout__steps__number {
  color: var(--color-woodsmoke-600);
  background-color: var(--color-woodsmoke-1200);
}

.checkout__steps--success .checkout__steps__number,
.checkout__steps--current .checkout__steps__number {
  color: var(--color-white)!important;
  background-color: var(--color-blaze-orange-600)!important;
}

/* Animation des boutons avec transform:scale pour éviter le décalage du contenu */
.btn-hover-scale {
  cursor: pointer;
  transition: transform 0.25s ease-in-out;
}

.btn-hover-scale:hover {
  transform: scale(0.95);
}

/* Classes spécifiques pour remplacer les animations height/width problématiques */
.btn-animate-scale {
  cursor: pointer;
  transition: transform 0.25s ease-in-out;
}

.btn-animate-scale:hover {
  transform: scale(0.92);
}

/* Ajout du cursor pointer pour tous les boutons du projet */
button, .btn, input[type="button"], input[type="submit"], input[type="reset"] {
  cursor: pointer;
}

/* Password strength progress bar base styles */
.progress {
  position: relative;
  overflow: hidden;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  transition: width 0.3s ease;
}

/* Password strength progress bar colors */
.progress-bar.bg-danger {
  background-color: #ef4444 !important;
}

.progress-bar.bg-warning {
  background-color: #f59e0b !important;
}

.progress-bar.bg-info {
  background-color: #3b82f6 !important;
}

.progress-bar.bg-success {
  background-color: #10b981 !important;
}

/* Default red color for progress bar */
.progress-bar {
  background-color: #ef4444;
}

/* Password requirements validation states */
.password-requirements .text-success {
  color: #10b981 !important;
}

.password-requirements .text-danger {
  color: #ef4444 !important;
}

/* Password strength text styles */
.password-strength-text {
  min-height: 16px;
  display: block;
  font-weight: normal;
}


/* Conteneur pour éviter que le texte des conseils parte n'importe où */
.password-strength-feedback {
  position: relative;
  z-index: 1;
}

/* S'assurer que le texte des conseils apparaît dans le bon conteneur */
.password-strength-text:empty {
  min-height: 16px;
}

/* Masquer les popovers Bootstrap visuellement mais garder leur contenu */
.popover, [id*="popover"], [class*="popover"] {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  visibility: hidden !important;
}

/* Style moderne pour les informations de paiement */
.payment-info-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  font-family: var(--font-KumbhSans);
  font-weight: 400;
}

.payment-info-content p:last-child {
  margin-bottom: 0;
}

.payment-info-content dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px 20px;
  margin: 16px 0;
}

.payment-info-content dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-noir-black-1200);
  font-family: var(--font-KumbhSans);
}

.payment-info-content dd {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-woodsmoke-600);
  font-family: var(--font-KumbhSans);
  margin: 0;
  line-height: 1.4;
}

.payment-info-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-noir-black-1200);
  font-family: var(--font-KumbhSans);
  margin-bottom: 16px;
}

/* Style pour les modals Bootstrap dans les infos de paiement */
.payment-info-content .modal {
  display: none !important;
}
.account-menu__line {
  width: 100%;
  display: flex;
  border:1px solid var(--color-noir-black-1200);
  padding: 10px 20px;
  margin-bottom: 10px;
}
.page-header h1.h4 {
  font-size: 38px;
  color: black;
  margin-bottom: 20px;
}
.bg-cover .product-box .product-prices h4,
.bg-cover .product-box .product-name {
  color: #fff!important;
}
.bg-cover .product-box .product-short-desc {
  color: #b0b0b0!important;
}
/* blog style */
.nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: none;
}

.nav-tabs .nav-item {
  list-style: none;
}

.nav-tabs .nav-item a {
  display: inline-block;
  padding: 8px 25px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-tabs .nav-item a:hover {
  border-color: #aaa;
}

.nav-tabs .nav-item.active a {
  background-color: #f3610c;
  color: #fff;
  border-color: #f3610c;
}
.tab-pane {
  display: none;
  padding: 15px 0;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  align-items: center;
  font-size: 14px;
  color: #666;
  font-style: italic;
}
.post-meta li {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.post-meta .category-name a {
    color: #f3610c;
    text-decoration: none;
}
.post-meta .created .day,
.post-meta .created .month {
    font-weight: 500;
}
.post-meta li:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #999;
}
.blog-widget ul li a {
  color: #1c1c1c;
  font-size: 13px;
  font-family: var(--font-GothamBook);
}
.blog-readmore {
  float: right;
}
#cms .page-cms h1,
#module-jms_blog-post .blog-post h1 {
  font-size: 36px;
}
#cms .page-cms h2,
#module-jms_blog-post .blog-post h2 {
  font-size: 32px;
}
#cms .page-cms h3,
#module-jms_blog-post .blog-post h3 {
  font-size: 28px;
}
#cms .page-cms h4,
#module-jms_blog-post .blog-post h4 {
  font-size: 24px;
}
.post-thumb > a {
  width: 100%;
}
.post-thumb > a > img {
  width: 100%;
}

/* Custom styles for wishlist button */
.wishlist-button-add {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important; /* 40px */
  height: 2.5rem !important; /* 40px */
  min-width: 2.5rem !important;
  background-color: var(--color-woodsmoke-900) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.5s ease-in-out !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative !important;
}

.wishlist-button-add:hover {
  background-color: var(--color-blaze-orange-400) !important;
  transform: scale(0.95) !important;
  opacity: 1 !important;
}

.wishlist-button-add:focus {
  outline: 0 !important;
}

.wishlist-button-add:active {
  transform: scale(0.95) !important;
}

/* Style pour l'icône Material Icons */
.wishlist-button-add i.material-icons {
  display: block !important;
  color: white !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
}

/* État actif - cœur orange */
.wishlist-button-add.is-active i.material-icons {
  color: var(--color-blaze-orange-600) !important;
}

/* Surcharge des modales wishlist pour style Steflo */
.wishlist-modal.modal.fade {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: transparent !important;
  transition: all 0.5s ease-in-out !important;
  display: none !important;
}

.wishlist-modal.modal.fade.show {
  display: flex !important;
  background: rgba(0, 0, 0, 0.25) !important;
  align-items: center !important;
  justify-content: center !important;
}

.wishlist-modal .modal-backdrop,
.wishlist-share .modal-backdrop,
.wishlist-rename .modal-backdrop,
.wishlist-delete .modal-backdrop,
.wishlist-create .modal-backdrop {
  display: none !important;
}

/* Centrage forcé de la modale */
.wishlist-modal .modal-window-inner,
.wishlist-modal .modal-dialog {
  margin: 0 auto !important;
  position: relative !important;
  transform: none !important;
  max-width: 520px !important;
  width: 90% !important;
}

.right {
  float: right !important;
}

/* Pulse animation for variant selection emphasis */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 97, 12, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(243, 97, 12, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 97, 12, 0);
  }
}

/* Force add-to-cart button to always be visible */
.product-actions__button.add,
.product-actions__button.add .add-to-cart,
[data-button-action="add-to-cart"] {
  display: flex !important;
  visibility: visible !important;
}

.product-actions__button.add {
  display: block !important;
}

/* ===== BUTTON PRESS UTILITY CLASS ===== */
.btn-press {
  position: relative;
  isolation: isolate;
}

.btn-press::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F3610C;
  border-radius: inherit;
  transition: transform 200ms ease-in-out;
  z-index: -1;
}

.btn-press:hover::before {
  transform: scale(0.95);
}

.btn-press:active::before {
  transform: scale(0.92);
}

/* ===== BUTTON PRESS OUTLINE VARIANT ===== */
.btn-press-outline {
  position: relative;
  isolation: isolate;
}

.btn-press-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #F3610C;
  border-radius: inherit;
  transition: transform 200ms ease-in-out;
  z-index: -1;
}

.btn-press-outline:hover::before {
  transform: scale(0.95);
}

.btn-press-outline:active::before {
  transform: scale(0.92);
}

/* ===== WISHLIST MODULE STYLING MINIMALISTE ===== */
/* Styles épurés pour s'intégrer au thème steflo_emarket */

/* Titre principal - typographie cohérente */
div.wishlist-container div.wishlist-container-header h1,
div.wishlist-products-container div.wishlist-products-container-header h1 {
  font-family: 'Gotham', sans-serif !important;
  font-weight: 400 !important;
  color: #1C1C1C !important;
  border-bottom: 2px solid #F3610C !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

/* Bouton "Créer une nouvelle liste" */
div.wishlist-container button.wishlist-add-to-new {
  font-family: 'KumbhSans', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 1.6px !important;
  background: #F3610C !important;
  color: white !important;
  border: none !important;
  border-radius: 0.125rem !important;
  padding: 0.75rem 1.5rem !important;
  position: relative !important;
  isolation: isolate !important;
}

div.wishlist-container button.wishlist-add-to-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F3610C;
  border-radius: inherit;
  transition: transform 200ms ease-in-out;
  z-index: -1;
}

div.wishlist-container button.wishlist-add-to-new:hover::before {
  transform: scale(0.95);
}

/* Section de tri - légère mise en forme */
div.wishlist-products-container div.sort-by-row {
  background: #F9FAFB !important;
  padding: 1rem !important;
  border-radius: 0.125rem !important;
  margin-bottom: 1.5rem !important;
}

div.wishlist-products-container span.sort-by {
  font-family: 'KumbhSans', sans-serif !important;
  font-weight: 500 !important;
  color: #1C1C1C !important;
  text-transform: uppercase !important;
  letter-spacing: 1.6px !important;
  font-size: 0.875rem !important;
}

/* Dropdown de tri */
div.wishlist-products-container .dropdown {
  position: relative !important;
}

div.wishlist-products-container button.btn-unstyle.select-title {
  border: 1px solid #CCCCCC !important;
  border-radius: 0.125rem !important;
  font-family: 'KumbhSans', sans-serif !important;
  transition: border-color 0.3s ease !important;
  width: 100% !important;
  text-align: left !important;
  padding: 0.75rem 1rem !important;
  background: white !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

div.wishlist-products-container button.btn-unstyle.select-title:hover {
  border-color: #F3610C !important;
}

div.wishlist-products-container .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid #CCCCCC !important;
  border-radius: 0.125rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  z-index: 1000 !important;
  margin-top: 2px !important;
  display: none !important;
}

div.wishlist-products-container .dropdown.show .dropdown-menu {
  display: block !important;
}

div.wishlist-products-container .dropdown-menu a.select-list {
  display: block !important;
  padding: 0.75rem 1rem !important;
  font-family: 'KumbhSans', sans-serif !important;
  font-size: 0.875rem !important;
  color: #1C1C1C !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

div.wishlist-products-container .dropdown-menu a.select-list:hover {
  background: #F9FAFB !important;
  color: #F3610C !important;
}

div.wishlist-products-container .dropdown-menu a.select-list:not(:last-child) {
  border-bottom: 1px solid #F0F0F0 !important;
}

/* Message vide */
p.wishlist-list-empty {
  text-align: center !important;
  padding: 2rem !important;
  font-family: 'KumbhSans', sans-serif !important;
  color: #666666 !important;
  background: #F9FAFB !important;
  border-radius: 0.25rem !important;
  margin: 1rem 0 !important;
}

/* Footer links */
div.wishlist-footer-links {
  padding: 1rem 0 !important;
  border-top: 1px solid #E5E7EB !important;
  margin-top: 2rem !important;
}

div.wishlist-footer-links a {
  color: #F3610C !important;
  font-family: 'KumbhSans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: color 300ms ease-in-out !important;
}

div.wishlist-footer-links a:hover {
  color: #D4520A !important;
}

/* ===== FORMULAIRES - STYLE EM ===== */
/* Style pour les textes em dans les labels de formulaire */
label em,
.form-label em,
label small,
.form-label small {
  font-size: 0.75rem !important; /* 12px */
  font-style: italic !important;
  color: #666666 !important;
  font-weight: 300 !important;
  line-height: 1.4 !important;
  display: block !important;
  margin-top: 0.25rem !important;
}

/* Spécifique aux checkbox et radio */
.flex.items-start.gap-3 label em,
.flex.items-center.gap-2 label em {
  font-size: 0.7rem !important; /* 11.2px - encore plus petit */
  margin-top: 0.125rem !important;
}

.mt-\[3px\] {
  margin-top: 3px !important;
}
/* Script JavaScript pour le dropdown wishlist - placé en CSS pour garantir le chargement */

/* Hauteurs responsive pour les sliders */
.slider-responsive-height {
  height: 200px;
}

@media (min-width: 768px) {
  .slider-responsive-height {
    height: 250px;
  }
}

@media (min-width: 991px) {
  .slider-responsive-height {
    height: 300px;
  }
}

/* ===== FIX SAFARI - TEXT CLIPPING ===== */
/* Safari coupe le haut et le bas des textes à cause de bugs line-height et flex rendering */

/* Fix Safari line-height pour tous les titres */
h1, h2, h3, h4, h5, h6 {
  overflow: visible !important;
  /*display: block !important;*/
}

/* Safari-specific: désactiver will-change qui peut causer des bugs de clipping */
@supports (-webkit-appearance: none) {
  h1, h2, h3, h4, h5, h6 {
    will-change: unset !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    padding-top: 0.25em !important;
    margin-top: -0.15em !important;
    padding-bottom: 0.1em !important;
  }

}

/* ===== STEFLO HERO SLIDER STYLES ===== */

.swiper-pagination-progressbar {
  position: static !important;
  background-color: #D1D1D1 !important;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background-color: #F97916 !important;
}

.swiper-pagination.swiper-pagination0 {
  background-color: #fff !important;
  height: 1px !important;
}

/* ===== STEFLO HERO SLIDER - ANTI LAYOUT SHIFT 2025 ===== */

/* Réserver l'espace pour éviter le layout shift */
.heroSlider {
  position: relative;
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
}

/* Skeleton loader avant l'initialisation */
.heroSlider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: hero-skeleton-loading 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

/* Masquer le skeleton une fois Swiper initialisé */
.heroSlider.swiper-initialized::before {
  opacity: 0;
}

/* Animation skeleton */
@keyframes hero-skeleton-loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Fade-in des slides */
.heroSlider .swiper-slide {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.heroSlider.swiper-initialized .swiper-slide {
  opacity: 1;
}

/* Préférences motion réduit */
@media (prefers-reduced-motion: reduce) {
  .heroSlider::before {
    animation: none;
    opacity: 0.5;
  }

  .heroSlider .swiper-slide {
    transition: none;
    opacity: 1;
  }
}

/* Scrollbar pour cart dropdown */
.cart-dropdown .max-h-\[400px\]::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown .max-h-\[400px\]::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 10px;
}

.cart-dropdown .max-h-\[400px\]::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 10px;
}

.cart-dropdown .max-h-\[400px\]::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Firefox scrollbar */
.cart-dropdown .max-h-\[400px\] {
    scrollbar-width: thin;
    scrollbar-color: #9CA3AF #F5F5F5;
}

/* Indicateur de scroll pour cart dropdown */
.cart-dropdown .max-h-\[400px\] {
    position: relative;
}

/* Ombre en bas pour indiquer qu'il y a plus de contenu */
.cart-dropdown .max-h-\[400px\]::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(245, 245, 245, 0.95));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Afficher l'ombre seulement quand il y a du contenu en dessous */
.cart-dropdown .max-h-\[400px\].has-scroll::after {
    opacity: 1;
}

/* Grid 6 colonnes pour sous-catégories */
@media (min-width: 1024px) {
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Hauteur 100px pour sous-catégories compactes */
.h-\[100px\] {
    height: 100px;
}

/* Grid 2 colonnes mobile uniquement (< 640px) */
@media (max-width: 639px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
