/* ══════════════════════════════════════════
   POPULAR CATEGORIES SLIDER
══════════════════════════════════════════ */
.bubble-cluster {
  position: absolute;
  pointer-events: none;
}
.bubble-cluster--tr {
  top: -10px;
  right: 140px;
  width: 210px;
  height: 200px;
}
.bubble-cluster--bl {
  bottom: 10px;
  left: -20px;
  width: 160px;
  height: 150px;
}

.popular-section {
position: relative;
  padding: 120px 0;
  background: var(--white);
}
.popular-section__header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}
.popular-section__label {
  color: var(--brown);
  display: block;
  margin-bottom: 10px;
}
.popular-section__title {
  font: var(--h2);
  color: var(--black);
}

.slider {
  overflow: hidden;
}
.slider__track {
  display: flex;
  gap: 30px;
  padding: 12px 40px 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
  list-style: none;
}
.slider__track:active {
  cursor: grabbing;
}

/* Card */
.card {
  flex: 0 0 360px;
  height: 500px;
  background: var(--white);
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow:
    0 2px 16px rgba(4, 157, 191, 0.07),
    0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    box-shadow 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.card__img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.card__title {
  color: var(--black);
  text-align: center;
  text-transform: uppercase;
  margin: 20px 0 auto;
}

/* Slider dots */
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}
.slider__dot {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: #c9d0da;
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.25s,
    width 0.25s;
}
.slider__dot--active {
  background: var(--blue);
  width: 36px;
}

/* Popular categories responsive */
@media (max-width: 768px) {
  .popular-section__title {
    font-size: 36px;
  }
  .card {
    flex: 0 0 300px;
    height: 440px;
  }
  .card__img {
    height: 240px;
  }
}
 
@media (max-width: 480px) {
  .popular-section__title {
    font-size: 28px;
  }
  .slider__track {
    padding: 12px 20px 20px;
    gap: 16px;
  }
  .card {
    flex: 0 0 260px;
    height: 420px;
    padding: 20px 18px;
  }
  .card__img {
    height: 200px;
  }
  .card__title {
    font-size: 20px;
  }
}