
.products-section {
  padding: 0;
}

.products-section-container {
  width: 100%;
  margin: auto;
  display: flex;
  
  flex-wrap: wrap;
  gap: 4px;
}

/* CARD */
.products-section-card {
  background: #fff;
  padding: 0;
  padding: 16px;
  position: relative;
  width: 212px;
  
  display: flex;
  flex-direction: column;
}


/* FAVORITE */
.products-section-card .fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

/* IMAGE */
.product-card-image {
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card-image img {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
}

/* TEXT */
.products-section-card .product-card-title {
  margin: 14px 0 8px;
  margin: 12px 0 0 0;
  margin: 0;
  font-weight: normal;
  font-size: 0.875rem; 
  color: #000000;
}

.products-section-card .product-card-rating {
  font-size: 14px;
  color: #777;
  display: flex;
  justify-content: space-between;
  color: #9ca3af;
  padding: 10px 0 0 0;
}

.products-section-card .product-card-rating span:first-child{
    text-decoration: line-through;
}

.products-section-card .star {
  color: #f5a623;
}

/* PRICE */
.product-card-price {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
  margin: 0px 0 12px 0;
  display: flex;
  color: #16a34a;
  justify-content: space-between;
}

.product-card-price span:last-child, .products-section-card > span{
  font-size: 12px;
  color: #9ca3af;
}

.product-card-price span:last-child{
    color: #01e226;
    background: #ddffd3;
    padding: 4px 4px;
    border-radius: 2px;
}

/* ACTIONS */
.product-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0 0;
}

.product-card-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 4px 10px;
}

.product-card-quantity button {
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
}

.product-add-cart {
  flex: 1;
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .products-section-container{
  
  }
}


@media (max-width: 768px) {
  .products-section-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .products-section-container::-webkit-scrollbar {
    display: none; /* oculta la scrollbar */
  }

  .products-section-card {
    flex: 0 0 75%;
    max-width: 200px;
    scroll-snap-align: start;
  }

  .products-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.1);
  }
}

/*--------------------------------------------------------------------------------------------*/

