/* ============================
   Carrito lateral (drawer)
============================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1990;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100vh;
  background: var(--white); z-index: 2000; display: flex; flex-direction: column;
  transition: right .25s ease; box-shadow: -8px 0 30px rgba(0,0,0,.15);
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--gray-100);
}
.cart-header h3 { font-size: 1.05rem; font-weight: 800; }
.cart-header button { background: none; border: none; font-size: 1.1rem; color: var(--gray-700); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--gray-500); text-align: center; gap: 10px; }
.cart-empty i { font-size: 2rem; color: var(--gray-300); }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.cart-item-img { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--gray-50); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-top { display: flex; justify-content: space-between; gap: 8px; }
.cart-item-name { font-size: .84rem; font-weight: 700; }
.cart-item-remove { background: none; border: none; color: var(--gray-500); font-size: .82rem; }
.cart-item-cat { font-size: .72rem; color: var(--gray-500); }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cart-item-price { font-weight: 800; font-size: .88rem; }

.cart-footer { border-top: 1px solid var(--gray-100); padding: 16px 20px 22px; }
.cart-promo-badge {
  background: #fff2f0; border: 1px solid #ffd6d6; color: var(--red-dark);
  font-size: .76rem; font-weight: 700; padding: 8px 12px; border-radius: 8px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.cart-promo-badge-pending { background: var(--gray-50); border-color: var(--gray-100); color: var(--gray-700); font-weight: 600; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1rem; margin-bottom: 14px; }
.cart-checkout-btn {
  width: 100%; background: var(--red); color: var(--white); border: none;
  padding: 14px; border-radius: 8px; font-weight: 800; font-size: .9rem;
}

.cart-recent { border-top: 1px solid var(--gray-100); padding: 14px 20px 18px; flex-shrink: 0; }
.cart-recent-title { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--gray-500); margin-bottom: 10px; }
.cart-recent-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.cart-recent-item { flex: 0 0 84px; text-decoration: none; color: inherit; }
.cart-recent-img { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--gray-50); display: flex; align-items: center; justify-content: center; color: var(--gray-300); }
.cart-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-recent-name { display: block; font-size: .7rem; font-weight: 600; margin-top: 5px; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.cart-recent-price { display: block; font-size: .72rem; font-weight: 800; color: var(--red); margin-top: 2px; }
