/* =========================================================
   Bernstein Woo — homepage sections
   ========================================================= */

/* ---------- Hero slideshow ---------- */

.slideshow { position: relative; }

.slideshow__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slideshow__track::-webkit-scrollbar { display: none; }

.slideshow__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 420px;
  height: 70vh;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media only screen and (min-width: 768px) {
  .slideshow__slide { min-height: 560px; }
}

.slideshow__media { position: absolute; inset: 0; }
.slideshow__media img { width: 100%; height: 100%; object-fit: cover; }

.slideshow__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.35) 0%, rgba(17,17,17,0.05) 45%, rgba(17,17,17,0.25) 100%);
}

.slideshow__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  text-align: center;
  color: var(--color-white);
}

.slideshow__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background-color: var(--color-green);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slideshow__subtitle { margin-bottom: 4px; font-weight: 500; }
.slideshow__title { margin-bottom: 24px; font-weight: 700; }

@media only screen and (min-width: 1400px) {
  .slideshow__subtitle { margin-bottom: 6px; }
}

@media only screen and (max-width: 575px) {
  .slideshow .f-64 { font-size: 24px; }
  .slideshow .f-24 { font-size: 16px; font-weight: 500; }
}

.slideshow__dots {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slideshow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.slideshow__dot.is-active { background-color: var(--color-white); transform: scale(1.25); }

.slideshow__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-black);
  transition: background-color var(--dur) var(--ease);
}

.slideshow__arrow:hover { background-color: var(--color-white); }
.slideshow__arrow--prev { left: 24px; }
.slideshow__arrow--next { right: 24px; }

@media only screen and (min-width: 992px) {
  .slideshow__arrow { display: flex; }
}

/* ---------- Benefits bar ---------- */

.benefits-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-gray-light);
}

.benefits-bar__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 40px;
  flex-wrap: wrap;
}

.benefits-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.benefits-bar__item svg { color: var(--color-blue); }

/* ---------- Category strip ---------- */

.category-strip { padding: 32px 0; }

.category-strip__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.category-strip__list::-webkit-scrollbar { display: none; }

.category-strip__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  text-align: center;
  border-radius: 8px;
  transition: background-color var(--dur) var(--ease);
}

.category-strip__item:hover { background-color: var(--color-gray-ultra-light); }

.category-strip__image {
  width: 88px; height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-gray-ultra-light);
  overflow: hidden;
}

.category-strip__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.category-strip__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

@media only screen and (min-width: 992px) {
  .category-strip { padding: 48px 0; }
  .category-strip__list { justify-content: space-between; gap: 12px; }
  .category-strip__item { width: auto; flex: 1 1 0; min-width: 100px; }
  .category-strip__image { width: 104px; height: 104px; }
}

/* ---------- Tab filters ---------- */

.tabs__nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }

.tabs__tab {
  flex: none;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--color-gray-light);
  border-radius: 20px;
  background-color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.tabs__tab:hover { border-color: var(--color-gray-medium); color: var(--color-black); }

.tabs__tab.is-active {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

/* ---------- Product carousel ---------- */

.product-carousel { position: relative; }

.product-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.product-carousel__track::-webkit-scrollbar { display: none; }

.product-carousel__track > * {
  flex: 0 0 calc((100% - 16px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}

@media only screen and (min-width: 768px) {
  .product-carousel__track > * { flex-basis: calc((100% - 2 * 16px) / 3); }
}

@media only screen and (min-width: 1200px) {
  .product-carousel__track > * { flex-basis: calc((100% - 3 * 16px) / 4); }
}

@media only screen and (min-width: 1400px) {
  .product-carousel__track { gap: 24px; }
  .product-carousel__track > * { flex-basis: calc((100% - 3 * 24px) / 4); }
}

.product-carousel__arrow {
  position: absolute;
  top: 140px;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-black);
  box-shadow: var(--shadow-menu);
  transition: opacity var(--dur) var(--ease);
}

.product-carousel__arrow--prev { left: -20px; }
.product-carousel__arrow--next { right: -20px; }
.product-carousel__arrow[disabled] { opacity: 0; pointer-events: none; }

@media only screen and (min-width: 992px) {
  .product-carousel__arrow { display: flex; }
}

/* ---------- Collection carousel (series tiles) ---------- */

.collection-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.collection-carousel__track::-webkit-scrollbar { display: none; }

.collection-tile {
  flex: 0 0 calc((100% - 16px) / 2);
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
  display: block;
  overflow: hidden;
}

@media only screen and (min-width: 768px) {
  .collection-tile { flex-basis: calc((100% - 3 * 16px) / 4); }
}

.collection-tile__media { aspect-ratio: 4 / 3; background-color: var(--color-gray-ultra-light); }
.collection-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.collection-tile:hover .collection-tile__media img { transform: scale(1.05); }

.collection-tile__label {
  position: absolute;
  left: 16px; bottom: 16px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(17, 17, 17, 0.4);
}

/* ---------- Showcase (brand block + media) ---------- */

.showcase { position: relative; }

.showcase__inner {
  display: grid;
  gap: 32px;
}

.showcase__content { padding: 32px 0; }
.showcase__title { margin-bottom: 16px; }
.showcase__text { margin-bottom: 24px; color: var(--color-gray); }

.showcase__usps {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.showcase__usp {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.showcase__usp svg { color: var(--color-blue); }

.showcase__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.showcase__media { position: relative; aspect-ratio: 4 / 3; background-color: var(--color-gray-ultra-light); }
.showcase__media img, .showcase__media video { width: 100%; height: 100%; object-fit: cover; }

@media only screen and (min-width: 992px) {
  .showcase__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 64px;
  }
  .showcase__content { padding: 64px 0; }
  .showcase__usps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase__usp { flex-direction: column; align-items: flex-start; gap: 8px; }
  .showcase__media { aspect-ratio: auto; height: 100%; min-height: 560px; }
}

/* ---------- Collapsible SEO text ---------- */

.collapsible-text { padding: 48px 0; background-color: var(--color-gray-ultra-light); }

.collapsible-text__body {
  position: relative;
  overflow: hidden;
  max-height: 320px;
  transition: max-height 0.5s var(--ease);
}

.collapsible-text__body::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245,245,245,0) 0%, var(--color-gray-ultra-light) 100%);
  transition: opacity var(--dur) var(--ease);
}

.collapsible-text.is-expanded .collapsible-text__body { max-height: none; }
.collapsible-text.is-expanded .collapsible-text__body::after { opacity: 0; }

.collapsible-text__toggle { margin-top: 24px; }

/* ---------- B2B banner ---------- */

.banner { position: relative; overflow: hidden; }

.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,0.65) 0%, rgba(17,17,17,0.15) 100%);
}

.banner__inner {
  position: relative;
  z-index: 2;
  padding: 64px 0;
  color: var(--color-white);
}

.banner__content { max-width: 710px; }
.banner__title { margin-bottom: 16px; }
.banner__text { margin-bottom: 32px; }
.banner__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

@media only screen and (min-width: 992px) {
  .banner__inner { padding: 96px 0; }
}

/* ---------- Newsletter ---------- */

.newsletter { padding: 56px 0; background-color: var(--color-black); color: var(--color-white); }

.newsletter__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter__title { margin-bottom: 12px; }
.newsletter__text { margin-bottom: 24px; color: var(--color-gray-medium); }

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter__input {
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--color-gray);
  border-radius: 24px;
  background-color: transparent;
  color: var(--color-white);
  font-size: 16px;
}

.newsletter__input::placeholder { color: var(--color-gray-medium); }
.newsletter__input:focus { outline: none; border-color: var(--color-white); }

.newsletter__legal { margin-top: 16px; font-size: 12px; color: var(--color-gray-medium); }
.newsletter__legal a { text-decoration: underline; }

@media only screen and (min-width: 768px) {
  .newsletter__form { flex-direction: row; }
  .newsletter__input { flex: 1 1 auto; }
  .newsletter__form .btn { flex: none; }
}
