/* Parent container if you have multiple cards */
.products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start; /* aligns cards to the start (left) */
  max-width: 960px; /* reduced overall width */
  margin: 2rem auto;
  padding: 0 1rem;
}


/* Individual product card */
.products-card {
  background: #0a0a0a;
  color: #fff;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  border: 1px solid red;
}

.products-card:hover {
  transform: translateY(-5px);
}

/* Image styling */
.product-image {
  width: 80%;             
  height: auto;
  display: block;
  margin: 0 auto;          
  object-fit: cover;
  border-radius: 8px;
  margin-top: 2%;
}


/* Content inside card */
.product-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-price {
  font-size: 1.1rem;
  color: #e0e0e0;
  font-weight: 500;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 0.5rem;
  margin: 0.5rem 0;        
}


.quantity-btn {
  background: #1e1e1e;
  border: 1px solid #444;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.quantity-input {
  width: 50px;
  padding: 0.3rem;
  text-align: center;
  background: #1e1e1e;
  border: 1px solid #444;
  color: white;
  border-radius: 4px;
}

.add-to-cart-btn {
  background-color: #ff5722;
  color: #fff;
  padding: 0.6rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: #e64a19;
}

.product-description {
  font-size: 0.9rem;
  color: #ccc;
  border-top: 1px solid #333;
  padding-top: 0.5rem;
}

.product-description h4 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1rem;
  color: #fff;
}
