/* General Body Styling */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Content Layout */
.main-cont {
  display: flex;
  padding: 30px;
  gap: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styling */
.sidebar {
  flex: 1;
  background-color: #f1f3f4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.sidebar h2 {
  font-size: 1.6rem;
  color: #d32f2f;
  margin-bottom: 15px;
  font-weight: bold;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #333;
  background-color: #e9ecef;
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
}

.sidebar ul li:hover {
  background-color: #d32f2f;
  color: #fff;
}

/* Products Container */
.products-container {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filters {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.filters label {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
}

.filters select {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.filters select:hover {
  border-color: #d32f2f;
}

/* Products Grid Styling */
#products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  row-gap: 2rem;
}

@media (max-width: 1024px) {
  #products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #products-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card Styling */
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  /* height: 35rem; */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-name {
  font-size: 1rem; /* Reduced from 1.2rem */
  font-weight: bold;
  color: #333;
  margin: 10px 0;
}

.product-description {
  font-size: 0.85rem; /* Reduced from 0.95rem */
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4; /* Adjusted for better readability */
}

.product-pricing {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.original-price {
  font-size: 0.8rem; /* Reduced from 0.9rem */
  color: #aaa;
  text-decoration: line-through;
}

.discounted-price {
  font-size: 1rem; /* Reduced from 1.2rem */
  color: #d32f2f;
  font-weight: bold;
}

.product-rating {
  margin-top: 10px;
  font-size: 0.8rem; /* Reduced from 0.9rem */
  color: #f4a261;
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.product-rating i {
  color: #f4a261;
}

/* Button Styling */
button {
  padding: 8px 16px; /* Slightly smaller padding for a compact look */
  background-color: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem; /* Reduced from 1rem */
  transition: background-color 0.3s;
}

button:hover {
  background-color: #b71c1c;
}

/* Sidebar Styling */
.sidebar {
  flex: 1;
  background-color: #f1f3f4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar h2 {
  font-size: 1.6rem;
  color: #d32f2f;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.sidebar div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 15px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-align: center;
}

.sidebar a:hover {
  background-color: #d32f2f;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.sidebar a:active {
  background-color: #b71c1c;
  transform: translateY(1px);
}

/* Add to Cart Button Styling */
.add-to-cart {
  display: inline-block;
  width: 100%;
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #d32f2f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart:hover {
  background-color: #b71c1c;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.add-to-cart:active {
  background-color: #9a0000;
  transform: translateY(1px);
}

.add-to-cart:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
}

a {
  text-decoration: none;
}

@media (max-width: 768px) {
  .main-cont {
    flex-direction: column;
  }
}
