/* === PAGE BACKGROUND === */
body {
  background: linear-gradient(180deg, #41006b, #9a57b4);
  font-family: "Poppins", sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* === PAGE TITLE === */
.product-page {
  padding: 20px;
}

.page-title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  color: #ff9600;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* === PRODUCT CARD === */
.product-card {
  background: #fff;                       
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.4); 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
  color: #000;                            
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* === PRODUCT IMAGE === */
.product-image {
  height: 180px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  margin-bottom: 12px;
  border-radius: 10px;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #ddd;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
}

/* === PRODUCT NAME === */
.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px 0;
  line-height: 1.3rem;

  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  min-height: calc(1.3rem * 2);
}

/* === PRODUCT INFO === */
.product-info {
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.product-meta {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* === PRODUCT ACTION === */
.product-action {
  margin-top: auto;
  text-align: center;
}

/* === ADD TO BASKET BUTTON === */
.add-basket-btn {
  background: #ff6600;     
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.add-basket-btn:hover {
  background: #e05500;
  transform: translateY(-2px);
}

.add-basket-btn:active {
  background: #c94a00;
  transform: translateY(0);
}

/* === NO PRODUCTS MESSAGE === */
.no-products {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 40px;
  color: #fff;
}

/* === FILTERS === */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-container input,
.filter-container select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: border-color 0.2s;
}

.filter-container input {
  width: 100%;
  max-width: 400px;
}

.filter-container select {
  width: 100%;
  max-width: 200px;
  cursor: pointer;
  background-color: #fff;
}

.filter-container input:focus,
.filter-container select:focus {
  border-color: #ff9600; /* orange accent */
  box-shadow: 0 0 0 3px rgba(255, 150, 0, 0.2);
}
