:root {
  --primary-red: #e53935;
  --dark-red: #d32f2f;
  --green: #3e9b48;
  --dark-green: #2e7e39;
  --white: #ffffff;
  --light-gray: #f7f7f7;
  --dark-gray: #333333;
  --medium-gray: #888888;
  --border-radius: 12px;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Tarjeta de producto - Fila 2 (Diseño Nuevo) - SOLO CORREGIDO */
.product-card-new {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #efefef;
  display: flex;
  flex-direction: column;
  /*height: 100%;*/
  height: 400px;
  width: 260px;
  min-width: 260px;
  position: relative;
}

.product-card-new:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.product-badge-new {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--green) 0%, var(--dark-green) 100%);
  color: var(--white);
  padding: 1px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: normal;
  z-index: 10;
  font-family: "Roboto", sans-serif;
}

.product-favorito-container {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--dark-gray);
  font-size: 0.85rem;
  font-weight: normal;
  z-index: 10;
  font-family: "Roboto", sans-serif;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-image-container-new {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.product-image-new {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card-new:hover .product-image-new {
  transform: scale(1.05);
}

.product-info-new {
  padding: 20px;
  padding-top: 5px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.laboratory-label {
  font-family: "Roboto", sans-serif;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.commercial-name {
  /* color: var(--primary-red); */
  color: var(--dark-gray);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.2;
  font-family: "Roboto", sans-serif;
}

.full-name {
  font-size: 0.85rem;
  color: var(--medium-gray);
  font-weight: 300;
  margin-bottom: 0px;
  line-height: 1.3;
  flex-grow: 1;
}

.price-container-new {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.regular-price-new {
  text-decoration: line-through;
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: block;
  width: 100%;
}

.price-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.offer-price-new {
  color: var(--green);
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.discount-badge-new {
  background: linear-gradient(135deg, var(--green) 0%, var(--dark-green) 100%);
  color: var(--white);
  padding: 1px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: normal;
  font-family: "Roboto", sans-serif;
}

.add-btn-new {
  background: linear-gradient(
    90deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  border: none;
  border-radius: 50px;
  padding: 5px 20px;
  font-weight: 600;
  color: var(--white);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
}

.add-btn-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

/* Responsive - Solo para diseño nuevo */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-image-container-new {
    height: 150px;
  }

  .product-image-new {
    max-height: 120px;
  }

  .offer-price-new {
    font-size: 1.2rem;
  }

  .discount-badge-new {
    font-size: 0.75rem;
    padding: 2px 10px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  body {
    padding: 20px 15px;
  }

  .product-info-new {
    padding: 15px;
  }

  .commercial-name {
    font-size: 0.95rem;
  }

  .full-name {
    font-size: 0.8rem;
  }

  .add-btn-new {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .price-wrapper {
    gap: 8px;
  }

  /* Nuevo responsive */
  .products-scroll {
    padding: 10px 0px;
  }
  .products-scroll .product-card-new {
    min-width: calc(50% - 7px);
    max-width: calc(50% - 7px);
    width: auto;
  }
  .col-6 .product-card-new {
    max-width: 100%;
    min-width: 100%;
  }
}
