/* =========================
   SECTION
========================= */
.categories-section {
  position: relative;
}

/* =========================
   TOP HEADER
========================= */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-top span {
  color: var(--cl-dor);
  font-size: 14px;
}

.section-top h1 {
  font-size: 28px;
}

.section-top > div:first-child {
  display: flex;
  flex-direction: column;
}

/* =========================
   NAVIGATION
========================= */
.navigation-btns {
  display: flex;
  gap: 10px;
}

.navigation-btns .cat-prev,
.navigation-btns .cat-next {
  width: 30px;
  height: 30px;
  background: var(--cl-dor);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cl-white);
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  font-size: 0.8rem;
}

.navigation-btns .cat-prev::after {
  content: "←";
}
.navigation-btns .cat-next::after {
  content: "→";
}

.navigation-btns div:hover {
  background: var(--cl-navy);
}

/* =========================
   SLIDER
========================= */
.categories-slider-container {
  overflow: hidden;
}

.category-swiper {
  overflow: visible;
}

.category-swiper .swiper-wrapper {
  align-items: flex-start;
  padding-bottom: 2rem;
  height: auto;
}

.category-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

/* =========================
   CARD
========================= */
.category-card {
  width: 230px;
  border-radius: 10px 10px 0 0 !important;
  overflow: hidden; /* important fix */
}

/* IMAGE */
.category-img {
  width: 100%;
  height: 120px; /* fixed realistic height */
  object-fit: cover;
  border-radius: 10px 10px 0 0 !important;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0 !important;
}

/* TITLE */
.category-title {
  color: white;
  background-color: var(--cl-dor);
  padding: 6px;
  font-size: 16px;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

/* =========================
   STAGGER EFFECT
========================= */
.category-swiper .swiper-slide:nth-child(even) {
  margin-top: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .category-card {
    width: 160px;
    border-radius: 10px 10px 0 0 !important;
  }

  .category-img {
    height: 100px;
    border-radius: 10px 10px 0 0 !important;
  }

  .category-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .category-card {
    width: 120px;
  }

  .category-img {
    height: 80px;
  }

  .category-title {
    font-size: 12px;
  }
}
