/* =========================
   CATEGORIES SECTION
========================= */
.categories {
  min-height: 70vh;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #eef2f7;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 40px 20px;
  margin: 20px 0;
}

.categories-header {
  margin-bottom: 24px;
}

.categories-title {
  font-size: 32px;
  font-weight: 600;
  color: #9ca3af;
}

/* =========================
   ARROWS
========================= */
.category-arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.arrow-btn:hover {
  background: #000;
}

/* =========================
   SLIDER
========================= */
.categories-slider-wrapper {
  overflow: hidden;
}

.categories-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

/* 2.5 cards visible */
.category-slide {
  flex: 0 0 38%;
}

/* =========================
   CATEGORY CARD
========================= */
.category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.05));
}

/* =========================
   LABEL
========================= */
.category-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.category-label span {
  width: 2px;
  height: 18px;
  background: #fff;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .categories {
    min-height: auto;
  }

  .categories-title {
    font-size: 26px;
    text-align: center;
  }

  .category-arrows {
    display: none;
  }

  /* 1.1 card visible */
  .category-slide {
    flex: 0 0 90%;
  }

  .category-card {
    height: 320px;
  }
}
