/* ---------- CATEGORY PAGE LAYOUT ---------- */
body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  background: #fff;
  color: #555;
  overflow-x: hidden;
}

/* Page container */
.category-page {
  padding: 100px 20px 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Main title */
.category-page h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  margin-top: 40px;
  color: #b04b6a;
  font-weight: 600;
}

/* Grid for categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Category cards */
.category-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 230px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Category images */
.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
}

/* Category text */
.category-card h3 {
  font-size: 1.2rem;
  color: #444;
  margin: 0;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.product-price {
  font-size: 0.95rem;
  color: #555;
  margin: 5px 0 0 0;
}

.icons {
  display: flex;
  gap: 8px;
  justify-content: center;
  color: #e85470;
}

.icons i:hover {
  color: #000;
}

.like-btn.active {
  color: #ff5c8a;
}

#cart-count {
  background: #ff5c8a;
  color: white;
  font-size: 0.8em;
  padding: 2px 6px;
  border-radius: 50%;
  position: relative;
  top: -10px;
  right: 10px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-page h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 500px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    max-width: 350px;
  }
  .category-page h1 {
    font-size: 2rem;
  }
}
