html, body {
  overflow-x: hidden;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  padding: 0 0.5rem;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow-x: visible;
}


section.products-list-parent {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1.3rem 1rem 1rem 1rem;
  text-align: center;
  transition: transform 0.2s;
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card .card-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #ff6600;
  margin-bottom: 1.1rem;
  text-align: center;
  line-height: 1.28;
  max-height: 3.9em;
  min-height: 3.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card .card-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.4;
}

.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.product-card .add-cart-btn, .product-card .add-wishlist-btn {
  width: 100%;
  margin: 0.25rem 0;
  padding: 0.75rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .products-list {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.1rem;
    padding: 0 0.3rem;
  }
  .products-list {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    padding: 0 0.5rem;
  }
  
  .product-card {
    padding: 0.8rem;
    border-radius: 10px;
  }
  
  .product-card img {
    height: 160px;
    border-radius: 6px;
  }
  
  .product-card .card-title {
    font-size: 1rem;
    height: 36px;
  }
  
  .product-card .card-desc {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .product-card .price {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .product-card .add-cart-btn, .product-card .add-wishlist-btn {
    width: 100%;
    margin: 0.2rem 0;
    padding: 0.65rem;
    font-size: 0.9rem;
    border-radius: 6px;
  }
}

@media (max-width: 600px) {
  .products-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    padding: 0 0.2rem;
  }
  
  .product-card {
    padding: 0.6rem;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
  
  .product-card img {
    height: 140px;
    border-radius: 5px;
  }
  
  .product-card .card-title {
    font-size: 0.95rem;
    height: 32px;
  }
  
  .product-card .card-desc {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }
  
  .product-card .price {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  
  .product-card .add-cart-btn, .product-card .add-wishlist-btn {
    width: 100%;
    margin: 0.15rem 0;
    padding: 0.55rem;
    font-size: 0.85rem;
    border-radius: 5px;
  }
}

@media (max-width: 450px) {
  .products-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.4rem;
    padding: 0 0.1rem;
  }
  
  .product-card {
    padding: 0.5rem;
  }
  
  .product-card img {
    height: 120px;
  }
  
  .product-card .card-title {
    font-size: 0.9rem;
    height: 30px;
  }
  
  .product-card .card-desc {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .product-card .price {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .product-card .add-cart-btn, .product-card .add-wishlist-btn {
    margin: 0.1rem 0;
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}
  }
  
  .product-card img {
    height: 160px;
  }
  
  .product-card .card-title {
    font-size: 1rem;
    height: 36px;
  }
}
