
.categaories-section {
  padding: 20px 20px;
  text-align: center;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
}

.categaories-title {
  font-size: 28px;
  font-weight: 700;
  /* letter-spacing: 1px; */
  color: #333;
  margin-bottom: 40px;
}

.categaories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* 🔹 Box style */
.categaories-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
  width: 120px; /* keep all boxes same width */
}

/* 🔹 Image default */
.categaories-box img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  background-color: #f9f9f9;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* ✅ Only image zooms IN on hover */
.categaories-box:hover img {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* 🔹 Text under image */
.categaories-box p {
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  width: 100px; /* fixed width for text */
  text-align: center;
  word-wrap: break-word;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.categaories-box:hover p {
  color: #fac126;
}

/* ✅ Tablet View */
@media (max-width: 768px) {
     .categaories-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .categaories-container {
    /* gap: 15px; */
  }

  .categaories-box img {
    width: 70px;
    height: 70px;
  }

  .categaories-box p {
    font-size: 13px;
  }
}

/* ✅ Mobile View: 4 per row (≤430px) */
@media (max-width: 630px) {
  .categaories-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    justify-items: center;
  }
  .categaories-title {
  font-size: 25px;
  margin-bottom: 20px;
}

  .categaories-box {
    width: 85px;
  }

  .categaories-box img {
    width: 50px;
    height: 50px;
  }

  .categaories-box p {
    width: 80px;
    font-size: 12px;
  }
}

/* ✅ Animation & scroll margin */
.category-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  scroll-margin-top: 150px; /* space for sticky header */
}

.category-section.show {
  opacity: 1;
  transform: translateY(0);
}
/* ✅ Extra Small Mobile View: Below 370px */
@media (max-width: 358px) {
  .categaories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row instead of 4 */
    gap: 10px;
    justify-items: center;
  }
  .categaories-title {
  font-size: 20px;
  margin-bottom: 20px;
}
  .categaories-box {
    width: 80px;
  }

  .categaories-box img {
    width: 55px;
    height: 55px;
  }

  .categaories-box p {
    width: 70px;
    font-size: 11px;
  }
}
