/* Shop Page Styles */
body {
  background: #f5f5f5;
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  padding-top: 80px;
}

.container.shop-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.shop-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #08cb00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* exactly 4 columns */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;

  /* Standard product card sizing */
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 220px; /* consistent height */
  object-fit: cover;
  display: block;
}

.product-image.placeholder {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.product-info {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: bold;
}

.product-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1;
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #08cb00;
  margin-bottom: 0.8rem;
}

.product-stock {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #666;
}

.product-stock.out-of-stock {
  color: #df2e38;
  font-weight: bold;
  text-transform: uppercase;
}

.btn.add-to-cart {
  width: 100%;
  background: #df2e38;
  color: #fff;
  padding: 1rem;
  border: none;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 2px solid #df2e38;
  margin-top: auto;
}

.btn.add-to-cart:hover {
  background: transparent;
  color: #08cb00;
  border-color: #08cb00;
}

.no-products {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter and Sort Section */
.shop-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-group select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  background: #fff;
  font-family: inherit;
}

.filter-group select:focus {
  outline: none;
  border-color: #08cb00;
}

@media (max-width: 768px) {
  .container.shop-page {
    padding: 2rem 1rem;
  }

  .shop-title {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
    justify-content: center;
  }
}
