/* =====================================================
   CATEGORY SLIDER SECTION BASE STYLES
===================================================== */
.slider {
  width: 100%;
  height: auto;
  background: #FBE3E3 center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  margin-top: 2px;
  overflow-x: hidden;
}

.slider-container {
  width: 100%;
  height: auto;
}

.slider-top-text {
  text-align: center;
  padding: 10px 0;
}

.slider-top-text h2 {
  margin: 5px 0;
  color: #C70F0F;
  font-weight: bold;
}

/* =====================================================
   CATEGORY ITEMS STYLING
===================================================== */
.category-items {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-items::-webkit-scrollbar {
  display: none;
}

.category-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.category-item img {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.category-item:hover {
  transform: scale(1.05);
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
}

.category-item h3 {
  font-size: 10px;
  font-weight: 400;
  color: black;
  text-decoration: none;
}

.category-item p {
  margin-top: 5px;
  font-size: 16px;
  color: red;
}

.category-item a {
  text-decoration: none;
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES
===================================================== */

/* ===== Extra Small Devices (≤400px) ===== */
@media (max-width: 400px) {
  .slider {
    height: 220px;
  }

  .slider-top-text {
    padding: 8px 0;
  }

  .category-item img {
    width: 100px;
  }

  .category-item h3 {
    font-size: 14px;
    margin: 8px 0;
  }

  .category-item p {
    font-size: 12px;
    margin: 5px 0;
  }
}

/* ===== Small Devices (401px–767.98px) ===== */
@media (min-width: 401px) and (max-width: 767.98px) {
  .slider-top-text {
    padding: 9px 0;
  }

  .category-item img {
    width: 78px;
  }

  .category-item h3 {
    font-size: 14px;
    margin: 8px 0;
  }

  .category-item p {
    font-size: 12px;
    margin: 5px 0;
  }
}

/* ===== Medium Devices (768px–991.98px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .category-item img {
    width: 80px;
  }

  .category-item h3 {
    font-size: 18px;
  }

  .category-item p {
    font-size: 15px;
  }
}

/* ===== Large Devices (992px–1199.98px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .category-item img {
    width: 120px;
  }

  .category-item h3 {
    font-size: 20px;
  }

  .category-item p {
    font-size: 17px;
  }
}

/* ===== Extra Large Devices (1200px–1399.98px) ===== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .slider-container {
    width: 70%;
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .slider-top-text {
    padding: 12px 0;
  }

  .category-items {
    gap: 70px;
  }

  .category-item img {
    width: 180px;
  }

  .slider-top-text h2 {
    font-size: 40px;
    margin: 10px 0;
  }

  .category-item h3 {
    font-size: 20px;
    margin: 10px 0;
  }

  .category-item p {
    font-size: 17px;
  }
}

/* ===== XXL Devices (≥1400px) ===== */
@media (min-width: 1400px) {
  .slider-container {
    width: 70%;
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .slider-top-text {
    padding: 12px 0;
  }

  .category-items {
    gap: 85px;
  }

  .category-item img {
    width: 180px;
  }

  .slider-top-text h2 {
    font-size: 40px;
    margin: 10px 0;
  }

  .category-item h3 {
    font-size: 20px;
    margin: 10px 0;
  }

  .category-item p {
    font-size: 17px;
    margin: 5px 0;
  }
}
