/* ==========================================================================
   BAB Ingredients Carousel — Horizontal scrolling ingredient cards
   ========================================================================== */

.bab-ingredients {
  background: #f0ede8;
  color: #1a1a1a;
  padding: 80px 0 80px;
  overflow: hidden;
}

.bab-ingredients__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header row: headline 2/3, CTA 1/3 --- */
.bab-ingredients__header {
  display: flex;
  align-items: stretch;
  gap: 40px;
  margin-bottom: 12px;
}

.bab-ingredients__headline {
  flex: 2 1 0;
  font-family: termina, sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  align-self: center;
}

.bab-ingredients__cta-group {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  align-items: center;
}

.bab-ingredients__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: termina, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.bab-ingredients__cta:hover {
  background: #1a1a1a;
  color: #fff;
}

/* --- Subtitle tag --- */
.bab-ingredients__sub {
  font-family: new-science-mono, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #555;
  margin: 0 0 40px;
}

/* --- Scrolling Card Track — auto-advance + manual scroll --- */
.bab-ingredients__track-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.bab-ingredients__track-wrap::-webkit-scrollbar { display: none; }

.bab-ingredients__track {
  display: flex;
  width: max-content;
}

.bab-ingredients__group {
  display: flex;
  flex-shrink: 0;
}

/* --- Card --- */
.bab-ingredients__card {
  flex: 0 0 380px;
  margin-right: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #2a2a2a;
}

.bab-ingredients__card-image-wrap {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}

.bab-ingredients__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Category tag (top-left) --- */
.bab-ingredients__card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: new-science-mono, sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* --- Bottom overlay banner — frosted glass / liquid glass --- */
.bab-ingredients__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(220, 220, 220, 0.2);
  backdrop-filter: blur(19px);
  -webkit-backdrop-filter: blur(19px);
  border-radius: 0;
  padding: 20px 16px 18px;
  z-index: 2;
}

.bab-ingredients__card-title {
  font-family: termina, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.bab-ingredients__card-sub {
  font-family: new-science-mono, sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* --- Tablet --- */
@media (max-width: 1024px) {
  .bab-ingredients__card {
    flex: 0 0 300px;
  }
}

/* Mobile-only CTA wrapper: hidden on desktop */
.bab-ingredients__mobile-cta-wrap {
  display: none;
}

/* Hide desktop CTA group on mobile */
.bab-ingredients__cta-group--header {
  display: none;
}

@media (min-width: 768px) {
  .bab-ingredients__cta-group--header {
    display: flex;
  }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .bab-ingredients {
    padding: 50px 0;
  }

  .bab-ingredients__inner {
    padding: 0 20px;
  }

  .bab-ingredients__header {
    flex-direction: column;
    gap: 16px;
  }

  /* Hide the header CTA on mobile — it moves below the cards */
  .bab-ingredients__cta--header {
    display: none;
  }

  .bab-ingredients__card {
    flex: 0 0 80vw;
    margin-right: 16px;
  }

  .bab-ingredients__headline {
    font-size: 1.5rem;
  }

  /* CTAs below the card track on mobile */
  .bab-ingredients__mobile-cta-wrap {
    display: block;
    padding: 20px 20px 0;
  }

  .bab-ingredients__mobile-cta-wrap .bab-ingredients__cta-group {
    flex-direction: column;
  }

  .bab-ingredients__mobile-cta-wrap .bab-ingredients__cta {
    width: 100%;
    box-sizing: border-box;
  }
}
