/* ==================================================
   CARRITO – ESTILOS BASE (PC Y MOBILE)
================================================== */

.carrito-page .carrito-table {
  width: 100%;
  border-collapse: collapse;
}

.carrito-page .carrito-table th,
.carrito-page .carrito-table td {
  vertical-align: middle;
}

.precio-anterior {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
}

.precio-oferta {
  color: #f1c40f;
  font-weight: bold;
  font-size: 1.25rem;
}

/* ==================================================
   CARRITO – VISTA ESCRITORIO (PC)
================================================== */

@media (min-width: 769px) {

  .carrito-page .carrito-table img {
    width: 60px;
    border-radius: 8px;
  }

  .carrito-page .btn-outline-secondary {
    width: 32px;
    height: 32px;
    padding: 0;
  }

}

/* ==================================================
   CARRITO – VISTA MOBILE (ESTILO TEMU REAL)
================================================== */

@media (max-width: 768px) {

  /* ===== OCULTAR CABECERA ===== */
  .carrito-page .carrito-table thead {
    display: none;
  }

  .carrito-page .carrito-table,
  .carrito-page .carrito-table tbody {
    display: block;
    width: 100%;
  }

  /* ===== TARJETA PRODUCTO ===== */
  .carrito-page .carrito-table tr {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
  }

  .carrito-page .carrito-table td {
    border: none !important;
    padding: 0 !important;
  }

  /* ===== IMAGEN (IZQUIERDA) ===== */
  .carrito-page .carrito-table td:first-child {
    grid-row: 1 / span 4;
  }

  .carrito-page .carrito-table img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
  }

  /* ===== NOMBRE + OFERTA ===== */
  .carrito-page .carrito-table td:nth-child(2) {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  .carrito-page .badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 6px;
  }

  /* ===== PRECIOS ===== */
  .carrito-page .precio-anterior {
    display: block;
    font-size: 12px;
    margin-top: 4px;
  }

  .carrito-page .precio-oferta {
    font-size: 16px;
  }

  /* ===== CANTIDAD [- 1 +] ===== */
  .carrito-page .carrito-table td:nth-child(5) {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .carrito-page .btn-outline-secondary {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
    padding: 0;
  }

  /* ===== ELIMINAR (🗑 ESQUINA DERECHA) ===== */
  .carrito-page .carrito-table td:last-child {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .carrito-page .btn-danger {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #dc3545;
    padding: 0;
  }

  /* ===== BOTONES INFERIORES ===== */
  .carrito-page .btn-outline-danger,
  .carrito-page .btn-outline-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  /* ===== TOTAL ===== */
  .carrito-page .border.rounded.p-3 {
    width: 100%;
    border-radius: 14px;
    margin-top: 14px;
  }

  /* ===== FORMULARIO ENVÍO ===== */
  .carrito-page .card {
    border-radius: 14px;
    margin-top: 18px;
  }

  .carrito-page .card input,
  .carrito-page .card textarea {
    font-size: 16px;
    padding: 14px;
    border-radius: 12px;
  }

  /* ===== BOTÓN WHATSAPP ===== */
  .carrito-page .btn-success {
    font-size: 18px;
    padding: 16px;
    border-radius: 16px;
  }

  /* ===== CUPÓN ===== */
  .carrito-page .border.rounded.bg-light {
    width: 100%;
    border-radius: 14px;
    margin-top: 14px;
  }

}


/* ==============================
   CARRUSEL OFERTAS – LIMPIO
============================== */

#carouselOfertas,
#carouselOfertas .carousel-inner,
#carouselOfertas .carousel-item {
  background-color: #1f252a !important;
}

/* Contenedor imagen */
#carouselOfertas .carousel-img-box {
  background: transparent !important;
}

/* Imagen sin fondo */
#carouselOfertas .carousel-img {
  max-height: 240px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

/* Texto más compacto */
#carouselOfertas h2 {
  font-size: 2.2rem;
}

#carouselOfertas p.lead {
  font-size: 1rem;
  opacity: 0.9;
}

/* Botón más vistoso */
#carouselOfertas .btn {
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
}

/* Mobile compacto */
@media (max-width: 768px) {
  #carouselOfertas .carousel-img {
    max-height: 170px;
  }

  #carouselOfertas h2 {
    font-size: 1.6rem;
  }

#carouselOfertas .carousel-item > div {
  flex-direction: row;
   text-align: center;
    padding: 1px;
  }
}


/* =========================================
   CARRUSEL OFERTAS – MOBILE ULTRA COMPACTO
========================================= */
@media (max-width: 768px) {

#carouselOfertas,
#carouselOfertas .carousel-inner,
#carouselOfertas .carousel-item {
  background-color: #1f252a !important;
  }

  #carouselOfertas .carousel-item {
    padding: 0px 8px !important;
    background-color: #1f252a !important;
  }

  /* CONTENEDOR */
#carouselOfertas .carousel-item > div {
  flex-direction: row;
    min-height: unset !important;
  }

  /* IMAGEN MUY PEQUEÑA */
  #carouselOfertas img {
    max-height: 120px !important;
    width: auto;
    margin: 6px auto 8px;
    object-fit: contain;
    background: transparent !important;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.4));
  }

  /* BADGE */
  #carouselOfertas .badge {
    font-size: 5px;
    padding: 3px 8px;
    border-radius: 16px;
  }

  /* TITULO */
  #carouselOfertas h2 {
    font-size: 1.2rem;
    margin: 4px 0;
    line-height: 1.15;
  }

  /* DESCRIPCIÓN */
  #carouselOfertas p.lead {
    font-size: 0.8rem;
    margin-bottom: 6px;
    opacity: 0.8;
  }

  /* PRECIOS */
  #carouselOfertas h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  #carouselOfertas .text-decoration-line-through {
    font-size: 0.75rem;
  }

  /* BOTÓN */
  #carouselOfertas .btn {
    font-size: 14px;
    padding: 8px;
    border-radius: 24px;
  }

  /* FLECHAS MÁS DISCRETAS */
  #carouselOfertas .carousel-control-prev,
  #carouselOfertas .carousel-control-next {
    width: 6%;
  }
}
