/* Additional styles for Buyer Dashboard Shopping Interface */
.dashboard-products {
  margin-top: 2rem;
}

.filter-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.filter-group label {
  font-weight: 500;
  white-space: nowrap;
}

.filter-group select,
.filter-group input {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #c8b39a;
  background: white;
  font-family: inherit;
}

.cart-summary-card {
  background: white;
  border-radius: 20px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-summary-card a {
  background: #c07a53;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}

.cart-summary-card a:hover {
  background: #9b5e3f;
}

/* My Orders Section */
.orders-section {
  margin-top: 2rem;
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.orders-section h3 {
  margin-bottom: 1rem;
}

.order-item {
  border-bottom: 1px solid #eee;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.order-item:last-child {
  border-bottom: none;
}

.order-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #c07a53;
}

.order-details {
  font-size: 0.9rem;
  color: #555;
}

.order-product-list {
  margin-top: 0.5rem;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: #444;
}

.order-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: normal;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #f0f0f0;
}

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

.product-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.product-price {
  color: #c07a53;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0.25rem 0;
}

.product-stock {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.product-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    justify-content: space-between;
  }
}
