:root {
  --color-texto: #4e4e4e;
  --color-primario: #ff91b7;
  --color-gris: #f5f5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 90px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9f9f9;
}

body.is-empty-cart {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.is-empty-cart .cart-layout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 20px;
}

body.is-empty-cart .cart-left {
  width: 100%;
  max-width: 420px;
}

body.is-empty-cart .cart-right {
  display: none;
}

body.is-empty-cart .cart-products {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-empty-cart .empty-cart {
  width: 100%;
  max-width: 360px;
  padding: 120px 20px;
  min-height: auto;
  flex: 1;
}

/* -------------------------
   Header (lo dejamos intacto)
------------------------- */

/* -------------------------
   CARDS DE PRODUCTOS
------------------------- */
.container {
  max-width: 400px;
  margin: 0 auto;
}

.card-container {
  position: relative;
  margin: 16px auto;
  width: min(350px, calc(100% - 32px)); /* 16px de margen cada lado en pantallas pequeñas */
}

.card {
  width: 100%;
  height: 110px; /* alto según figma */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 84px 1fr auto !important;
  align-items: center !important;
  padding: 12px;
  gap: 12px;
  transition: transform 0.3s ease;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  margin-bottom: 20px;
}

.card:active {
  cursor: grabbing;
}

/* Imagen del producto */
.product-img-wrapper {
  width: 84px;
  height: 84px;
  background: var(--color-gris);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrapper img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Info */
.product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}

.product-name {
  font-size: 12px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-category {
  font-size: 10px;
  font-weight: 500;
  color: #aeb0b7;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-top: 4px;
}

.product-img-wrapper {
  width: 84px;
  height: 84px;
  background-color: #f7f8fa; /* fondo gris */
  border-radius: 12px; /* esquinas redondeadas */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-img-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Contador */
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.quantity-control form,
.quantity-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.quantity-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #eeeeee;
  color: #666565;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  pointer-events: all;
}

.quantity-value {
  font-size: 12px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
  color: #666565;
}

/* Botón eliminar */
.delete-btn {
  position: absolute;
  right: 2.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--color-primario);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--color-primario) 10%, transparent);
}

.delete-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.delete-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

/* Animación eliminar */
.card.eliminating {
  transform: translateX(-100%) rotate(-5deg);
  opacity: 0;
}

.cart-summary {
  /* background: #fff; */
  border-radius: 16px 16px 0 0;
  padding: 20px 26px;
  margin-bottom: 26px;
  /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); */
}

.mis-productos {
  padding: 10px 26px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.drag-hint {
  color: #999;
  font-size: 11px;
  margin-top: 8px;
  text-align: start;
  opacity: 0.6;
}

.discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 16px;
  /* padding-top: 10px; */
}

.discount-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
}

.coupon-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primario, #ff91b7);
}

.apply-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primario, #ff91b7);
  text-decoration: none;
  cursor: pointer;
}

.vaciar-cart-wrapper {
  padding-left: 26px;
}

.vaciar-cart {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primario);
  text-decoration: none;
  cursor: pointer;
}

.remove-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primario, #ff91b7);
  text-decoration: none;
  cursor: pointer;
}

.shipping-selector {
  margin-top: 18px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.shipping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.shipping-header h3 {
  margin: 0;
  font-size: 11px;
  color: #1f1f1f;
}

.shipping-remember {
  font-size: 11px;
  color: #aeb0b7;
}

.shipping-options {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed #ededed;
  border-radius: 12px;
  background: #fff;
}

.shipping-group__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #5b5f6a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.shipping-group__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.2s ease;
}

.shipping-option.selected {
  border-color: var(--color-primario);
  background: color-mix(in srgb, var(--color-primario) 2%, transparent);
  box-shadow: 0 6px 20px
    color-mix(in srgb, var(--color-primario) 10%, transparent);
}

.shipping-option input[type="radio"] {
  border: 2px solid var(--color-primario) !important;
  accent-color: var(--color-primario);
}

.shipping-option .shipping-name {
  font-weight: 700;
  color: #333;
}

.shipping-option--zone .shipping-name {
  font-size: 12px;
  font-weight: 600;
  color: #4a4f59;
}

.shipping-option--zone .shipping-cost {
  font-size: 12px;
  font-weight: 700;
}

.shipping-option .shipping-cost {
  margin-left: auto;
  font-weight: 700;
  color: #000;
}

.shipping-option:has(.shipping-description) {
  flex-wrap: wrap;
}

.shipping-option .shipping-description {
  width: 100%;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  line-height: 1.4;
}

.shipping-message {
  margin-top: 8px;
  font-size: 12px;
  color: #4e4e4e;
}

.shipping-message.error {
  color: #d9534f;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 18px;
  color: #aeb0b7;
}

.summarycontainer {
  padding-top: 30px;
}

.summary-line .value {
  font-weight: 600;
  color: #333;
}

.summary-line.total {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.btn-pedir {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  background: var(--color-primario);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--color-primario) 10%, transparent);
}

.btn-pedir img {
  width: 18px;
  height: 18px;
}

.divisor {
  color: #aeb0b7;
}

/* Cuando el carro esta vacio */

/* ---------- Carrito vacío (misma estética que favoritos) ---------- */
.empty-cart {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4e4e4e;
  animation: fadeIn 0.5s ease-in-out;
}

@media (max-width: 640px) {
  body.is-empty-cart .cart-layout {
    min-height: 82vh;
    padding-top: 36px;
  }
}

.empty-cart-icon {
  width: 100px;
  height: 100px;
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.empty-cart p {
  font-size: 14px;
  color: #888;
  margin-bottom: 26px;
  max-width: 260px;
  line-height: 1.4;
}

.btn-explorar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primario);
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 30px;
  padding: 12px 22px;
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--color-primario) 10%, transparent);
  transition: background 0.3s ease;
}

.btn-explorar:hover {
  background: var(--color-primario);
}

.btn-explorar img {
  width: 16px;
  height: 16px;
}

/* Animación sutil */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 💫 Animación al actualizar el total */
@keyframes pulseTotal {
  0% {
    transform: scale(1);
    color: #333;
  }
  30% {
    transform: scale(1.15);
    color: var(--color-primario);
  }
  100% {
    transform: scale(1);
    color: #333;
  }
}

.total-animate {
  animation: pulseTotal 0.4s ease-in-out;
}

/* Cupones */

/*  MODAL CUPÓN */
.modal-cupon {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  overflow-y: auto;
  padding: 16px;
}

.modal-cupon.show {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-cupon-contenido {
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  width: 90%;
  max-width: 340px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
}

.modal-titulo {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-texto {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.payment-reminder {
  background: color-mix(in srgb, var(--color-primario) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primario) 5%, transparent);
  border-radius: 12px;
  /* padding: 12px 14px; */
  padding: 14px 16px;
  color: #444;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-reminder p {
  margin-bottom: 2px;
}

.payment-reminder h4.payment-title {
  font-size: 15px;
  margin: 0;
  color: #2c2c2c;
}

.bank-accounts {
  display: grid;
  gap: 10px;
}

.bank-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--color-primario) 50%, transparent);
  box-shadow: 0 2px 6px
    color-mix(in srgb, var(--color-primario) 2%, transparent);
}

.bank-card:nth-child(1) {
  align-items: center;
}

.bank-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.bank-logo.ficohsa {
  background: linear-gradient(135deg, #0054a6, #00a1e1);
}

.bank-logo.bac {
  background: linear-gradient(135deg, #d40628, #ff5f75);
}

.bank-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-number {
  font-weight: 700;
  margin: 0;
  color: #333;
}

.bank-owner {
  margin: 0;
  color: #5a5a5a;
  font-size: 12px;
}

.payment-note {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--color-primario);
  font-weight: 600;
  color: var(--color-primario);
  text-align: center;
}

.payment-instruction {
  padding-bottom: 5px;
  color: #5a5a5a;
}

.payment-reminder .info-link {
  color: var(--color-primario);
  font-weight: 600;
  text-decoration: none;
  padding-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-reminder .info-link::after {
  content: "→";
  font-size: 13px;
}

.payment-reminder .info-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .payment-reminder {
    padding: 12px 13px;
    gap: 8px;
  }

  .bank-card {
    padding: 10px;
  }

  .bank-logo {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .modal-cupon {
    align-items: stretch;
    padding: 0;
  }

  .modal-cupon-contenido {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    padding-top: 5rem;
  }
}

.modal-cupon-contenido input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-cupon-contenido input:focus {
  border-color: var(--color-primario);
}

.modal-botones {
  display: flex;
  justify-content: center;
}

.btn-modal-aplicar {
  background-color: var(--color-primario);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 3px 10px
    color-mix(in srgb, var(--color-primario) 10%, transparent);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.btn-modal-aplicar:hover {
  transform: scale(1.05);
  background-color: var(--color-primario);
}

.modal-cerrar {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
}

.modal-cerrar:hover {
  color: #ff91b7;
}

.modal-mensaje {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}
.modal-mensaje.ok {
  color: #4caf50;
}
.modal-mensaje.error {
  color: #e74c3c;
}

.toast {
  --toast-bg: var(--color-primario, #ff91b7);
  --toast-text: #ffffff;
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 120%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px 16px;
  background: var(--toast-bg);
  color: var(--toast-text);
  border-radius: 16px;
  border: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast.ok {
  --toast-bg: var(--color-primario, #ff91b7);
}

.toast.error {
  --toast-bg: #ef476f;
}

.toast.warning {
  --toast-bg: #f6c166;
  --toast-text: #ffffff;
}

.toast.warning .toast-icon {
  color: #ffffff;
}

.toast.info {
  --toast-bg: #4a90e2;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--toast-text);
  flex-shrink: 0;
}

.toast-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.toast-message {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--toast-text);
  word-break: break-word;
}

.toast-close {
  border: none;
  background: transparent;
  color: color-mix(in srgb, var(--toast-text) 82%, transparent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 6px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--toast-text);
}

.toast-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.toast-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: left;
  animation: toast-progress var(--toast-duration, 2600ms) linear forwards;
}

.toast.show .toast-icon {
  animation: toast-icon-pop 0.5s ease;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes toast-icon-pop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .toast {
    left: 16px;
    right: 16px;
    transform: translateY(120%);
    max-width: none;
    min-width: 0;
  }

  .toast.show {
    transform: translateY(0);
  }

  .toast-message {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }

  .toast.show .toast-icon {
    animation: none;
  }

  .toast-progress::after {
    animation: none;
  }
}

.btn-modal-cancelar {
  background-color: #ffffff;
  color: var(--color-primario);
  border: 1px solid var(--color-primario);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn-modal-cancelar:hover {
  background-color: #bbb;
}

.agotado-text {
  color: #d9534f; /* rojo suave */
  font-size: 0.6rem;
  font-weight: 600;
}

/* ==============================
   CAMPOS DE TEXTO Y TEXTAREA
============================== */
#modalPedido input:not([type="checkbox"]),
#modalPedido textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#modalPedido input:not([type="checkbox"]):focus,
#modalPedido textarea:focus {
  border-color: var(--color-primario);
  outline: none;
}

/* ==============================
   CHECKBOX + TÉRMINOS
============================== */
.check-terminos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 18px 0 22px;
  text-align: center;
}

.check-terminos-container label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
  width: fit-content;
  margin: 0 auto;
}

.check-terminos-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primario);
  cursor: pointer;
  flex-shrink: 0;
}

.check-terminos-container span {
  display: inline;
  line-height: 1.4;
  white-space: normal;
}

.check-terminos-container a {
  color: var(--color-primario);
  font-weight: 500;
  text-decoration: none;
}

.check-terminos-container a:hover {
  text-decoration: underline;
}

/* ==============================
   BOTONES DEL MODAL
============================== */
.modal-botones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-modal-aplicar,
.btn-modal-cancelar {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-aplicar {
  background-color: var(--color-primario);
  color: #fff;
  border: none;
}

.btn-modal-aplicar:hover {
  opacity: 0.9;
}

.btn-modal-cancelar {
  background-color: #fff;
  border: 1px solid var(--color-primario);
  color: var(--color-primario);
}

.btn-modal-cancelar:hover {
  background-color: #e6e6e6;
}

#aceptoTerminos {
  margin: 0 !important;
}

.card {
  position: relative;
}

/* Área de swipe en el borde derecho */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  z-index: 1;
}

/* Indicador visual del swipe */
.card.dragging::after {
  /* content: "← Deslizar para eliminar"; */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  opacity: 0.7;
}

/* Estilos para productos no disponibles */
.producto-no-disponible {
  opacity: 0.8;
  background-color: #fff5f5;
  border-left: 4px solid #ff6b6b;
  position: relative;
}

.producto-no-disponible::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.1) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
}

.badge-no-disponible {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* En tu CSS */
.producto-no-disponible {
  opacity: 0.6;
  border: 2px solid #ff4444 !important;
  background: #fff5f5;
}

.stock-badge {
  background: #ff4444;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
}

.btn-eliminar-stock {
  background: white;
  color: #ff4444;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  margin-top: 5px;
  cursor: pointer;
}

/* -------------------------
   Tablet (600-1023px): single column, ancho completo
------------------------- */
@media (min-width: 600px) and (max-width: 1023px) {
  body {
    padding-top: 54px;
    background-color: #f9f9f9;
  }

  .cart-layout {
    display: flex;
    flex-direction: column;
    padding: 20px 32px 40px;
    max-width: 680px;
    margin: 0 auto;
    background-color: transparent;
    gap: 0;
  }

  .cart-left {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .cart-right {
    position: static;
  }

  .card-container {
    width: 100%;
    margin: 10px 0;
  }

  .card {
    height: auto;
    min-height: 100px;
    grid-template-columns: 90px 1fr auto !important;
  }

  .product-img-wrapper {
    width: 90px;
    height: 90px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-price {
    font-size: 15px;
  }

  .mis-productos {
    margin-left: 0;
    padding-left: 0;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
}

@media (max-width: 360px) {
  .card-container {
    margin: 12px auto;
  }

  .card {
    padding: 10px;
    grid-template-columns: 72px 1fr auto !important;
    gap: 10px;
  }

  .product-img-wrapper {
    width: 72px;
    height: 72px;
  }

  .product-img-wrapper img {
    max-width: 85%;
    max-height: 85%;
  }
}
