/* -------------------------
   Cart desktop (≥1024px)
------------------------- */

body {
  background-color: #f9f9f9;
}

.cart-layout {
  background-color: white;
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 4rem 1.3rem 40px;
  align-items: start;
}

.cart-left {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
}

.cart-left::-webkit-scrollbar {
  width: 6px;
}

.cart-left::-webkit-scrollbar-track {
  background: transparent;
}

.cart-left::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 10px;
}

.cart-products {
  margin: 0;
}

.empty-cart {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-layout.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 20px;
  background-color: transparent;
}

.cart-layout.is-empty .cart-left {
  max-height: none;
  overflow: visible;
  width: 100%;
  max-width: 420px;
  padding-right: 0;
}

.cart-layout.is-empty .cart-right {
  display: none;
}

.cart-right {
  position: sticky;
  top: 110px;
}

.cart-summary {
  margin-top: 0;
}

.card-container {
  width: 520px;
}

.card {
  height: 124px;
  grid-template-columns: 110px 1fr auto !important;
  padding: 12px;
}

.product-img-wrapper {
  width: 100px;
  height: 100px;
}

.product-img-wrapper img {
  max-width: 90%;
  max-height: 90%;
}

.product-name {
  font-size: 16px;
}

.product-price {
  font-size: 15px;
}

.quantity-control {
  transform: scale(1.05);
  position: relative;
  z-index: 2;
}

.quantity-btn {
  pointer-events: auto;
}

.card,
.card-container {
  touch-action: pan-y;
}

@media (min-width: 1200px) {
  .cart-layout {
    grid-template-columns: minmax(600px, 1.4fr) minmax(340px, 0.9fr);
  }
}

#modalPedido .modal-cupon-contenido {
  max-width: 720px;
  width: 90%;
}

.mis-productos {
  margin-left: 5.3rem;
}

.product-category {
  font-size: 13px;
}
