/* body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fefefe;
  color: #333;
} */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff9900; /* highlight color */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 40px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.categories-section {
  padding: 0px 10px;
}

.section_title {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.categories-section__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
}

.categories-section__category {
  flex: 1 1 calc(25% - 20px);
  background: #ffffff;
  border-radius: 0px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px 20px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(10px);
  cursor: pointer;
}

.categories-section__category.animate {
  opacity: 1;
  transform: translateY(0);
}

.categories-section__category-title {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #ff9900;
  text-align: center;
}

.categories-section__products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.categories-section__product {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0px;
  background-size: cover;
  background-position: center;
}
.categories-section__category:hover .categories-section__product{
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.categories-section__product::after {
    content: attr(data-name);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-align: center;
  }


.categories-section__show-more {
  display: block;
  margin: 0 auto;
  padding: 8px 16px;
  background-color: #ff9900;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.categories-section__show-more:hover {
  background-color: #e67e22;
}

@media (max-width: 768px) {
  .categories-section__category {
    flex: 1 1 98%;
  }

  .categories-section__products {
    grid-template-columns: repeat(2, 1fr);
  }
}
