/* ==============================
   CONTENEDOR GENERAL
============================== */
#ProductsOffers {
  margin: 10px 0;
}

#ProductsOffers .title {
  color: #ff6600;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 100;
  font-family: "Lilita One", cursive;
  padding-bottom: 8px;
}

/* ==============================
   BLOQUES PRINCIPALES
============================== */
#ProductsOffers #BestOffer,
#ProductsOffers #AllProductsOffer {
  background-color: #fff1d6;
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
  padding: 20px;
  border-radius: 8px;
}

/* ==============================
   CARDS
============================== */
#ProductsOffers .card {
  border: 1px solid #69c0f5;
  padding: 10px;
  border-radius: 8px;
  min-height: 405px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#ProductsOffers #BestOffer .card {
  min-height: 415px;
}

#ProductsOffers .card img {
  max-width: 100%;
  height: auto;
  margin: auto;
  display: block;
}

/* ==============================
   BADGES OFERTA
============================== */
#ProductsOffers .card .on-sale {
  position: absolute;
  top: 6px;
  left: 5px;
  color: #fff;
  padding: 3px 15px;
  border: 2px solid #fff;
  border-radius: 5px;
  z-index: 2;
}

#ProductsOffers .card .on-sale .material-symbols-outlined {
  font-size: 1.2rem;
  margin-right: 5px;
}

#ProductsOffers .card .on-sale .text {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
}

#ProductsOffers #BestOffer .card .on-sale {
  top: 18px;
}

/* Colores dinámicos con selector reforzado */
#ProductsOffers .card .on-sale.badge-stock { background-color: #991B1B; color: #FFF; } /* Rojo Carmesí */
#ProductsOffers .card .on-sale.badge-flash, #ProductsOffers .countdown { background-color: #f1f504; color: #000000; } /* Amarillo Fuego */
#ProductsOffers .card .on-sale.badge-top   { background-color: #D97706; color: #FFF; } /* Dorado */
#ProductsOffers .card .on-sale.badge-trend { background-color: #0284C7; color: #FFF; } /* Celeste Intenso (hace juego con el borde) */


/* ==============================
   IMAGEN + COUNTDOWN
============================== */
#ProductsOffers .card-image-container {
  width: 100%;
  min-height: 180px;
  margin: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ProductsOffers .countdown {
  position: absolute;
  bottom: 0;
  width: 80%;
  text-align: center;
  font-size: 0.85rem;
}

/* ==============================
   TITULOS PRODUCTOS
============================== */
#ProductsOffers .product-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  min-height: 25px;
  margin: 10px 0;
}

/* ==============================
   DESCRIPCION / PRECIOS
============================== */
#ProductsOffers .product-description {
  min-height: 110px;
}

#ProductsOffers .product-price-and-shipping {
  width: 100%;
}

#ProductsOffers .price {
  color: #1a1a1a;
  font-size: 1.35rem;
  font-weight: 700;
}

#ProductsOffers .regular-price {
  font-size: 1rem;
  color: #7f8c8d;
  text-decoration: line-through;
}

#ProductsOffers .discount {
  color: #00a650;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 6px;
}

/* ==============================
   BOTONES
============================== */
#ProductsOffers .btn-offer,
#ProductsOffers .btn-primary {
  margin-top: 12px;
  text-align: center;
}

/* ==============================
   SWIPER
============================== */
#ProductsOffers .swiper {
  overflow: hidden;
  padding: 10px 0;
}

#ProductsOffers .swiper-slide {
  height: auto;
}

/* ==============================
   LINKS DESHABILITADOS
============================== */
#ProductsOffers a.btn.disabled,
#ProductsOffers a.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==============================
   RESPONSIVE TABLET
============================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #ProductsOffers .title {
    font-size: 1.3rem;
  }

  #ProductsOffers .card {
    min-height: 340px;
  }

  #ProductsOffers #BestOffer .card {
    min-height: 350px;
  }

  #ProductsOffers .countdown {
    font-size: 10px;
  }
}

/* ==============================
   RESPONSIVE MOBILE
============================== */
@media screen and (max-width: 767px) {
  #ProductsOffers .title {
    font-size: 1.3rem;
  }

  #ProductsOffers .card {
    min-height: auto;
  }

  #ProductsOffers .product-title {
    min-height: auto;
  }

  #ProductsOffers .product-description {
    min-height: auto;
  }

  #ProductsOffers #BestOffer {
    margin-bottom: 20px;
  }
}

/* ==============================
   NOTEBOOK
============================== */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  #ProductsOffers .title {
    font-size: 1.3rem;
  }
}
