/* =====================================================
   PRODUCT CARD
===================================================== */

.producto-card {
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 360px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  transition: transform .2s ease, box-shadow .2s ease;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* =====================================================
   TOP SECTION
===================================================== */

.producto-top {
  border: 2px solid #0b78c6;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.img-card--placeholder {
  background: #f3f4f6;
  border-radius: 6px;
  display: block;
}

/* Badge */

.producto-descuento {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 95px;
  height: 95px;
  display: grid;
  place-items: center;
}

.producto-descuento__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.producto-descuento__txt {
  position: absolute;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

/* Código / Stock */

.producto-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 900;
  color: #0b78c6;
}

.producto-info > * {
  min-width: 0;
}

/* =====================================================
   BOTTOM SECTION
===================================================== */

.producto-bottom {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex: 1 1 auto;
}

.producto-nombre {
  width: 100%;
  min-height: 40px;
  max-height: 40px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.producto-descripcion {
  width: 100%;
  min-height: 32px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.35;
  overflow: hidden;
}

/* =====================================================
   PRICE GRID (FULL)
===================================================== */

.producto-precios3 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  text-align: center;
  margin-top: 8px;
}

.producto-precioLbl,
.producto-precioVal {
  font-weight: 900;
  font-size: 13px;
  color: #333;
  min-width: 0;
}

.producto-precioVal {
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Totales */

.producto-totales {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 10px;
  gap: 12px;
}

.producto-totalBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.producto-totalLbl,
.producto-totalVal {
  font-weight: 900;
  font-size: 13px;
  color: #0aa64f;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =====================================================
   ACTIONS (FULL + MINI)
===================================================== */

.producto-card__acciones {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.producto-card__row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Qty */

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #0b78c6;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}

.qty__input {
  width: 52px;
  text-align: center;
  border: none;
  border-bottom: 2px solid #333;
  font-weight: 900;
  font-size: 18px;
  background: transparent;
  outline: none;
  cursor: text;
  -moz-appearance: textfield;
  flex-shrink: 0;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty__input:focus {
  border-bottom-color: #0b78c6;
}

/* Add button */

.producto-card__addBtn {
  border: none;
  border-radius: 999px;
  background: #0b78c6;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .1s;
  text-align: center;
  white-space: nowrap;
}

.producto-card__addBtn:hover {
  background: #0960a0;
  transform: translateY(-1px);
}

.producto-card__addBtn:active {
  transform: translateY(0);
}

/* In cart label */

.producto-card__incart {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0aa64f;
  min-height: 18px;
}

.producto-card__incartNum {
  font-weight: 900;
}

.producto-card__incart.is-hidden {
  visibility: hidden;
}

/* Precio original tachado (cuando hay descuento) */
.producto-mini__precioOriginal {
  min-height: 20px;
  font-size: 16px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  text-align: center;
  margin-bottom: -6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* P.L. tachado en variant full cuando hay descuento */
.producto-precioVal--tachado {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 600;
}

/* =====================================================
   MINI VARIANT
===================================================== */

.producto-card--mini .producto-mini__precio {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  color: #0aa64f;
  margin: 8px 0 14px;
  text-align: center;
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.producto-precio-guest {
  min-height: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  margin: 8px 0 14px;
}

/* =====================================================
   FOOTER
===================================================== */

.producto-card__footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 900;
  color: #0b78c6;
}

.producto-card__footer > * {
  min-width: 0;
}

/* Promo label — shown only when the card is used inside a promotion carousel */
.producto-promo-nombre {
  width: 100%;
  min-height: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #0aa64f;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 767px) {
  .producto-descuento {
    width: 78px;
    height: 78px;
  }

  .producto-descuento__txt {
    font-size: 15px;
  }

  .producto-card--mini .producto-mini__precio {
    font-size: clamp(24px, 8vw, 34px);
    min-height: 48px;
  }

  .producto-card__row {
    gap: 10px;
  }

  .qty__btn {
    width: 40px;
    height: 40px;
  }

  .qty__input {
    width: 46px;
    font-size: 16px;
  }

  .producto-card__addBtn {
    padding: 11px 18px;
    font-size: 11px;
  }
}