/* Layout Wrapper */
.main-content {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
}

/* Sidebar */
.sidebar {
  flex: 0 0 220px;
  background-color: #fce6cc;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list a {
  text-decoration: none;
  color: #000;
  display: block;
  padding: 6px 10px;
  border-bottom: 1px solid #aaa;
  transition: background 0.2s ease;
}

.category-list a:hover {
  background-color: #ffe5b4;
}

/* Product Grid */
.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns:repeat(3, 1fr);
  gap: 20px;
}

/* Product Card */
.product-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.product-card h4 {
  margin-top: 10px;
  font-size: 15px;
  color: #333;
}

/* Responsive */
@media (max-width: 991px) {
  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
