/* Qoffa Smart — Premium bundles carousel */
#bundles.category-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

#bundles .products-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: clamp(1.5rem, 4vw, 3rem) 0 1.25rem;
}

#bundles .section-subtitle {
  position: relative;
  margin: 0;
  color: #16352c;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.15;
}

#bundles .section-subtitle::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: .28rem;
  margin-top: .8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e8b57, #c4d96b);
}

#bundlesBlackholeCarousel {
  position: relative;
  min-height: clamp(29rem, 49vw, 40rem);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2.25rem) clamp(2.2rem, 6vw, 5.25rem);
  border: 1px solid rgba(46, 139, 87, .14);
  border-radius: clamp(1.5rem, 4vw, 2.8rem);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.95), transparent 42%),
    linear-gradient(135deg, #edf8ed, #f8f5ea 58%, #f2eee0);
  box-shadow: 0 1.4rem 4rem rgba(30, 73, 53, .12);
  overflow: hidden;
}

#bundlesBlackholeCarousel::before,
#bundlesBlackholeCarousel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
#bundlesBlackholeCarousel::before {
  width: 17rem;
  height: 17rem;
  top: -8rem;
  inset-inline-start: -5rem;
  background: rgba(175, 213, 131, .24);
}
#bundlesBlackholeCarousel::after {
  width: 15rem;
  height: 15rem;
  bottom: -8rem;
  inset-inline-end: -4rem;
  background: rgba(255, 212, 122, .18);
}

#bundlesBlackholeScene {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: clamp(26rem, 43vw, 36rem);
}

#bundlesBlackholeCarousel .blackhole-slide-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  padding: clamp(.75rem, 2vw, 1.5rem);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: clamp(1.35rem, 3vw, 2.2rem);
  background: rgba(255,255,255,.72);
  box-shadow: 0 1.4rem 3.5rem rgba(35, 71, 53, .13);
  opacity: 0;
  transform: translateX(4rem) scale(.92);
  transition: opacity .55s ease, transform .65s cubic-bezier(.22,1,.36,1), filter .55s ease;
  pointer-events: none;
  overflow: hidden;
}

#bundlesBlackholeCarousel .blackhole-slide-wrapper.active,
#bundlesBlackholeCarousel .blackhole-slide-wrapper[data-active="true"],
#bundlesBlackholeCarousel .blackhole-slide-wrapper[style*="opacity: 1"] {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 3;
}

#bundlesBlackholeCarousel .blackhole-slide-image {
  position: relative;
  flex: 0 1 clamp(16rem, 34vw, 28rem);
  height: clamp(18rem, 32vw, 26rem);
  overflow: hidden;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background: #dfeee0;
}

#bundlesBlackholeCarousel .blackhole-slide-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(11, 35, 26, .7));
  pointer-events: none;
}

#bundlesBlackholeCarousel .blackhole-slide-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
#bundlesBlackholeCarousel .blackhole-slide-wrapper:hover .blackhole-slide-image img { transform: scale(1.07); }

#bundlesBlackholeCarousel .blackhole-content {
  position: absolute;
  inset-inline: clamp(1.8rem, 8vw, 7rem);
  bottom: clamp(5rem, 8vw, 7rem);
  z-index: 2;
  width: min(30rem, 72%);
  color: #fff;
  text-align: start;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
#bundlesBlackholeCarousel .blackhole-content h2 {
  margin: 0 0 .25rem;
  color: #fff;
  font-size: clamp(1.45rem, 3.3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
}
#bundlesBlackholeCarousel .blackhole-content .subtitle {
  color: rgba(255,255,255,.86);
  font-size: clamp(.85rem, 1.4vw, 1rem);
}
#bundlesBlackholeCarousel .blackhole-content .price {
  display: inline-flex;
  margin-top: .75rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #206b47;
  font-size: 1.05rem;
  font-weight: 900;
  text-shadow: none;
}

#bundlesBlackholeCarousel .blackhole-buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 0 0 clamp(11rem, 20vw, 15rem);
}
#bundlesBlackholeCarousel .blackhole-btn {
  min-height: 3rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
#bundlesBlackholeCarousel .blackhole-btn:hover { transform: translateY(-3px); box-shadow: 0 1rem 1.8rem rgba(30,90,58,.18); }
#bundlesBlackholeCarousel .blackhole-btn-cart { background: #236e49; color: #fff; border: 1px solid #236e49; }
#bundlesBlackholeCarousel .blackhole-btn-details { background: rgba(255,255,255,.72); color: #236e49; border: 1px solid rgba(35,110,73,.28); }

#bundlesBlackholeCarousel .blackhole-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(46,139,87,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #236e49;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 .7rem 1.5rem rgba(29,76,55,.15);
  transform: translateY(-50%);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
#bundlesBlackholeCarousel .blackhole-arrow:hover { background: #236e49; color: #fff; transform: translateY(-50%) scale(1.08); }
#bundlesBlackholeCarousel .blackhole-prev { inset-inline-start: 1rem; }
#bundlesBlackholeCarousel .blackhole-next { inset-inline-end: 1rem; }

@media (max-width: 760px) {
  #bundles .products-header { margin-top: 1.5rem; }
  #bundlesBlackholeCarousel { min-height: 35rem; padding: .85rem; border-radius: 1.5rem; }
  #bundlesBlackholeScene { min-height: 32rem; }
  #bundlesBlackholeCarousel .blackhole-slide-wrapper { flex-direction: column; justify-content: flex-start; gap: .8rem; padding: .7rem; }
  #bundlesBlackholeCarousel .blackhole-slide-image { flex: 0 0 auto; width: 100%; height: 19rem; }
  #bundlesBlackholeCarousel .blackhole-content { inset-inline: 1.5rem; bottom: 6.25rem; width: calc(100% - 3rem); }
  #bundlesBlackholeCarousel .blackhole-buttons-wrapper { width: 100%; flex: 0 0 auto; flex-direction: row; }
  #bundlesBlackholeCarousel .blackhole-btn { flex: 1; min-height: 2.75rem; font-size: .82rem; padding-inline: .55rem; }
  #bundlesBlackholeCarousel .blackhole-arrow { top: 9rem; width: 2.7rem; height: 2.7rem; font-size: 1.65rem; }
  #bundlesBlackholeCarousel .blackhole-prev { inset-inline-start: .55rem; }
  #bundlesBlackholeCarousel .blackhole-next { inset-inline-end: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  #bundlesBlackholeCarousel .blackhole-slide-wrapper,
  #bundlesBlackholeCarousel .blackhole-slide-image img,
  #bundlesBlackholeCarousel .blackhole-btn,
  #bundlesBlackholeCarousel .blackhole-arrow { transition: none !important; }
}

/* Layout correction v2 — no text over the product image */
#bundlesBlackholeCarousel .blackhole-slide-wrapper {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, .82fr);
  grid-template-rows: 1fr auto;
  align-items: stretch;
  justify-content: initial;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

#bundlesBlackholeCarousel .blackhole-slide-image {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  min-height: clamp(20rem, 31vw, 27rem);
  flex: none;
  border-radius: clamp(1rem, 2vw, 1.6rem);
}

#bundlesBlackholeCarousel .blackhole-content {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: auto;
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(.5rem, 1vw, .75rem) 0;
  color: #173d2d;
  text-align: right;
  text-shadow: none;
}

#bundlesBlackholeCarousel .blackhole-content::before {
  content: "QOFFA SMART  ·  ÉDITION DU JOUR";
  display: inline-flex;
  margin-bottom: .9rem;
  padding: .35rem .7rem;
  border: 1px solid rgba(46,139,87,.18);
  border-radius: 999px;
  background: #edf7e9;
  color: #2e8b57;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
}

#bundlesBlackholeCarousel .blackhole-content h2 {
  margin: 0 0 .45rem;
  color: #173d2d;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  text-shadow: none;
}

#bundlesBlackholeCarousel .blackhole-content .subtitle {
  color: #6c8075;
  font-size: clamp(.85rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  text-shadow: none;
}

#bundlesBlackholeCarousel .blackhole-content .price {
  margin-top: 1.1rem;
  padding: .5rem .95rem;
  background: #eaf5dc;
  color: #236e49;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  text-shadow: none;
}

#bundlesBlackholeCarousel .blackhole-buttons-wrapper {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  flex: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  align-self: end;
  padding: 0 .5rem .25rem;
}

#bundlesBlackholeCarousel .blackhole-btn {
  width: 100%;
  min-height: 3.15rem;
}

#bundlesBlackholeCarousel .blackhole-badge {
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 3;
}

@media (max-width: 760px) {
  #bundlesBlackholeCarousel {
    min-height: 36rem;
    padding: .75rem;
  }
  #bundlesBlackholeScene { min-height: 34rem; }
  #bundlesBlackholeCarousel .blackhole-slide-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: .8rem;
    padding: .7rem;
  }
  #bundlesBlackholeCarousel .blackhole-slide-image {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 18rem;
    min-height: 0;
  }
  #bundlesBlackholeCarousel .blackhole-content {
    grid-column: 1;
    grid-row: 2;
    padding: .35rem .7rem 0;
    text-align: right;
  }
  #bundlesBlackholeCarousel .blackhole-content::before { margin-bottom: .55rem; font-size: .58rem; }
  #bundlesBlackholeCarousel .blackhole-content h2 { font-size: 1.45rem; }
  #bundlesBlackholeCarousel .blackhole-content .price { margin-top: .55rem; }
  #bundlesBlackholeCarousel .blackhole-buttons-wrapper {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr 1fr;
    padding: 0 .35rem .2rem;
  }
  #bundlesBlackholeCarousel .blackhole-btn { min-height: 2.75rem; font-size: .78rem; }
}

@media (max-width: 390px) {
  #bundlesBlackholeCarousel { min-height: 35rem; }
  #bundlesBlackholeScene { min-height: 33rem; }
  #bundlesBlackholeCarousel .blackhole-slide-image { height: 16rem; }
  #bundlesBlackholeCarousel .blackhole-content h2 { font-size: 1.25rem; }
  #bundlesBlackholeCarousel .blackhole-content .subtitle { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  #bundlesBlackholeCarousel .blackhole-slide-wrapper,
  #bundlesBlackholeCarousel .blackhole-slide-image img { transition: none !important; }
}

/* Detail clarity correction — prevent inactive carousel cards from bleeding through the active bundle. */
#bundlesBlackholeCarousel .blackhole-slide-wrapper[style*="opacity: 0.5"],
#bundlesBlackholeCarousel .blackhole-slide-wrapper[style*="opacity: 0.2"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

#bundlesBlackholeCarousel .blackhole-slide-wrapper[style*="opacity: 1"] {
  visibility: visible;
  isolation: isolate;
}

#bundlesBlackholeCarousel .blackhole-content {
  position: relative;
  z-index: 4;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,252,246,.94));
  border: 1px solid rgba(46, 139, 87, .11);
  border-radius: 1.15rem;
  box-shadow: 0 .75rem 1.5rem rgba(35, 85, 60, .07);
}

@media (max-width: 760px) {
  #bundlesBlackholeCarousel .blackhole-content {
    padding: .75rem .9rem .55rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #f4fbf2);
    box-shadow: 0 .65rem 1.3rem rgba(35, 85, 60, .09);
  }
}
