/* Section catégories — charte China Shop (#ffba00, #ff8c00) */
.home-categories {
  padding: 70px 0 60px;
  background: linear-gradient(180deg, #fff 0%, #fff9ee 100%);
}

.home-categories .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.home-categories .section-title p {
  color: #666;
  max-width: 560px;
  margin: 0 auto 40px;
}

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1199px) {
  .home-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .home-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.category-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  aspect-ratio: 1;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 186, 0, 0.25);
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card__img {
  transform: scale(1.08);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.05) 0%, rgba(26, 26, 46, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 14px;
}

.category-card__title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-card__badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ffba00, #ff8c00);
  color: #1a1a2e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  width: fit-content;
}

.category-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffba00 0%, #ff8c00 100%);
  color: #fff;
  font-size: 42px;
  font-weight: 800;
}
