/* =========================================================
   Featured Collection — Améliorations UX (mobile-first)
   ========================================================= */

/* 1. Header */
.featured-products-wrapper .section-header-wrapper { margin-bottom: 32px; }
.featured-products-wrapper .section-header-wrapper .section-description {
  opacity: 0.85; max-width: 640px;
}
.featured-products-wrapper .header-align--center .section-description { margin-inline: auto; }

@media (max-width: 749px) {
  .featured-products-wrapper .section-header-wrapper { padding: 0 4px; margin-bottom: 22px; }
  .featured-products-wrapper .section-header-wrapper .section-description {
    margin-top: 8px; font-size: 0.95em; line-height: 1.5; max-width: 92%;
  }
  .featured-products-wrapper .section-header-wrapper .section-title {
    line-height: 1.2; letter-spacing: -0.01em;
  }
}

/* 2. Espacement vertical compressé sur mobile */
@media (max-width: 749px) {
  [data-wetheme-section-type="collection--featured-collection"] {
    --padding-section-top: max(32px, calc(var(--padding-section-top, 60px) * 0.65));
    --padding-section-bottom: max(32px, calc(var(--padding-section-bottom, 60px) * 0.65));
  }
}

/* 3. Slider mobile : effet "peek" du produit suivant */
@media (max-width: 749px) {
  .featured-products-wrapper .product-grid--slider-enabled .swiper {
    overflow: visible;
    padding-right: 32px;
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
            mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  }
  .featured-products-wrapper .product-grid--slider-enabled .swiper-slide {
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .featured-products-wrapper .product-grid--slider-enabled .swiper-slide:not(.swiper-slide-visible) {
    opacity: 0.92;
  }
}

/* 4. Pagination moderne */
.featured-products-wrapper .swiper-pagination { margin-top: 18px; }
.featured-products-wrapper .swiper-pagination-bullet {
  width: 7px; height: 7px; opacity: 0.35;
  transition: width 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease;
}
.featured-products-wrapper .swiper-pagination-bullet-active {
  opacity: 1; width: 22px; border-radius: 4px;
}

/* 5. Boutons navigation desktop */
.featured-products-wrapper .swiper-button--prev,
.featured-products-wrapper .swiper-button--next {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.featured-products-wrapper .swiper-button--prev:hover,
.featured-products-wrapper .swiper-button--next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* 6. Cartes produit : lift au hover (desktop) */
.featured-products-wrapper .featured-product--grid-item {
  transition: transform 0.35s ease;
}
@media (hover: hover) {
  .featured-products-wrapper .featured-product--grid-item:hover { transform: translateY(-4px); }
}

/* 7. Bouton "Voir tout" */
.featured-products-wrapper .show-view-all--button { margin-top: 32px; }
@media (max-width: 749px) {
  .featured-products-wrapper .show-view-all--button { margin-top: 24px; }
  .featured-products-wrapper .show-view-all--button .btn {
    width: 100%; max-width: 320px; padding-block: 14px;
  }
}

/* 8. Header + bouton alignés sur la même ligne (desktop) */
@media (min-width: 750px) {
  .featured-products-wrapper.header-left-button-right .section-header-wrapper,
  .featured-products-wrapper.header-right-button-left .section-header-wrapper {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  }
  .featured-products-wrapper.header-left-button-right .show-view-all--button,
  .featured-products-wrapper.header-right-button-left .show-view-all--button {
    margin-top: 0; flex-shrink: 0;
  }
}

/* 9. Animations plus douces */
.featured-products-wrapper [data-animate] {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 10. Scrollbar swiper discrète */
.featured-products-wrapper .swiper-scrollbar {
  height: 3px !important; background: rgba(0, 0, 0, 0.06);
}
.featured-products-wrapper .swiper-scrollbar-drag { background: rgba(0, 0, 0, 0.4); }

/* 11. Highlights produit */
.featured-products-wrapper .product-highlight {
  border-radius: 10px; transition: background-color 0.25s ease;
}

/* 12. Accessibilité : focus visible */
.featured-products-wrapper a:focus-visible,
.featured-products-wrapper button:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px;
}
