/* ─── Carrito — Pompa Art Studio ─────────────────────────── */

/* Icono en el header */
.cart-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
  line-height: 1;
}
.cart-icon-btn svg {
  width: 22px;
  height: 22px;
}
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Overlay */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer */
.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 95vw);
  height: 100%;
  background: #FAF6F0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

/* Header del drawer */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #E8DDD0;
  background: var(--white, #fff);
}
.cart-drawer-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--burgundy, #7B2D42);
  margin: 0;
}
.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
  padding: 4px 8px;
  transition: color 0.15s;
}
.cart-drawer-close:hover { color: var(--burgundy, #7B2D42); }

/* Items */
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #EDE6DD;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-nombre {
  font-size: 0.9rem;
  color: var(--text, #333);
  line-height: 1.4;
}
.cart-item-precio {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--burgundy, #7B2D42);
}
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 0.8rem;
  padding: 2px 6px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: #e55; }

/* Footer / totales + form */
.cart-drawer-footer {
  border-top: 2px solid #C9A96E;
  padding: 20px 24px 24px;
  background: var(--white, #fff);
  overflow-y: auto;
  max-height: 65vh;
}
.cart-totales { margin-bottom: 20px; }
.cart-total-linea {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text, #333);
  padding: 5px 0;
}
.cart-total-final {
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid #E8DDD0;
  margin-top: 6px;
  padding-top: 10px;
  color: var(--burgundy, #7B2D42);
}
.cart-envio-gratis {
  color: #4caf50;
  font-weight: 600;
}
.cart-envio-hint {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 2px;
  text-align: right;
}

/* Empty state */
.cart-vacio {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
  padding: 40px 24px;
}

/* Toast del drawer */
.cart-toast {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}
.cart-toast.success { background: #e8f5e9; color: #2e7d32; }
.cart-toast.error   { background: #fde8e8; color: #c62828; }

/* Selector envío / recogida */
.entrega-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.entrega-btn {
  flex: 1;
  padding: 9px 10px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  color: #666;
  transition: all 0.2s;
  text-align: center;
}
.entrega-btn:hover { border-color: var(--gold, #C9A96E); }
.entrega-btn.active {
  border-color: var(--burgundy, #7B2D42);
  background: rgba(123,45,66,0.06);
  color: var(--burgundy, #7B2D42);
  font-weight: 600;
}

/* Disclaimer recogida en mano */
.cart-recogida-disclaimer {
  background: #FFF8E7;
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #7a5c00;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Precio en action bar (cuadros/toppers) */
.action-precio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.action-precio-valor {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--burgundy, #7B2D42);
}
.action-precio-detalle {
  font-size: 0.78rem;
  color: #aaa;
}
