.evo-lookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--evo-lookbook-gap, 1rem);
}

/* When used as Swiper container, keep grid on wrapper only */
.evo-lookbook-grid.swiper {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

.evo-lookbook-grid.swiper .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--evo-lookbook-gap, 1rem);
}

/* Ensure injected lookbook spans full product grid width */
.products .evo-lookbook-block {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

.evo-lookbook-cell img {
  width: 100%;
  height: auto;
  display: block;
}

.evo-category-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 1.25rem 0;
}

.evo-category-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.evo-home-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.evo-home-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.evo-home-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.evo-home-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.evo-lookbook-grid--cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.evo-lookbook-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evo-lookbook-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evo-lookbook-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evo-lookbook-grid--cols-1.swiper .swiper-wrapper {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.evo-lookbook-grid--cols-2.swiper .swiper-wrapper {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evo-lookbook-grid--cols-3.swiper .swiper-wrapper {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evo-lookbook-grid--cols-4.swiper .swiper-wrapper {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evo-lookbook-grid.swiper.swiper-initialized .swiper-wrapper {
  display: flex;
  gap: 0;
  grid-template-columns: none;
}

.evo-banner-group,
.evo-lookbook-grid {
  margin: 0;
}

/* Brand video — injected after Nth product on manufacturer listing */
/* Full-bleed : le bloc s'étire sur toute la largeur du viewport (fond bord à bord),
   le contenu interne reste centré via .evo-brand-video__inner (max-width 1100px).
   Fonctionne car la grille produit est dans une section CE "boxed" centrée :
   calc(50% - 50vw) aligne le bloc sur les bords du viewport. */
.products .evo-brand-video {
  grid-column: 1 / -1;
  justify-self: start;
  width: 100vw;
  max-width: 100vw;
  /* !important requis : CE core applique `.ce-product-grid > * { margin-left:0 !important;
     margin-right:0 !important }` (frontend.css) sur les enfants directs de la grille, ce
     qui écraserait sinon nos marges négatives full-bleed. */
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: #f0f0f0;
  padding: 2.5rem 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.evo-brand-video__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
}

.evo-brand-video__overline {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #383838;
}

.evo-brand-video__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #000;
  margin-bottom: 2.5rem;
}

.evo-brand-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.evo-brand-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.evo-brand-video__btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .evo-brand-video__title {
    font-size: 1.5rem;
  }
  .products .evo-brand-video {
    padding: 2rem 1rem;
  }
}
