
/* ── Cart Drawer ─────────────────────────────────────────── */
.vo-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.45);
  z-index: 390;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vo-cart-backdrop.open { opacity: 1; pointer-events: auto; }

.vo-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--brand-white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  /* Cerrado = visibility:hidden, así sus links/botones no entran en el orden de Tab ni
     en el lector de pantalla. Al cerrar, visibility cambia recién al terminar el
     deslizamiento (delay 0.4s); al abrir (regla .open) cambia en el acto. */
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0.4s;
  box-shadow: -8px 0 40px rgba(15,15,15,0.12);
}

.vo-cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s;
}

.vo-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--brand-border);
}

.vo-cart-head h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Manrope', sans-serif;
  margin: 0;
}

.vo-cart-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--brand-black);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.vo-cart-close:hover { color: var(--brand-sand); }

.vo-cart-promo-bar {
  background: var(--brand-black);
  color: var(--brand-white);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

.vo-cart-promo-bar span { color: var(--brand-sand); }

.vo-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}

.vo-cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--brand-border);
}

.vo-cart-item:last-child { border-bottom: none; margin-bottom: 0; }

.vo-cart-item-img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--brand-surface);
  aspect-ratio: 4/5;
}

.vo-cart-item-info { flex: 1; }

.vo-cart-item-name {  
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.vo-cart-item-meta {
  font-size: 0.72rem;
  color: var(--brand-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.vo-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--brand-border);
  width: fit-content;
}

.vo-qty-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-black);
  transition: background 0.2s;
}
.vo-qty-btn:hover { background: var(--brand-surface); }

.vo-qty-val {
  width: 36px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  outline: none;
  background: none;
  font-family: 'Manrope', sans-serif;
}

.vo-cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.vo-cart-remove {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
  text-align: right;
  margin-top: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.vo-cart-remove:hover { color: var(--brand-black); }

.vo-cart-email-capture {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--brand-border);
}

.vo-cart-email-capture-text {
  font-size: 0.78rem;
  color: var(--brand-muted);
  margin-bottom: 0.5rem;
}

.vo-cart-email-capture-msg {
  font-size: 0.72rem;
  margin: 0.4rem 0 0;
}

.vo-cart-email-capture.vo-cart-email-capture-done .input-group { opacity: 0.5; pointer-events: none; }

.vo-cart-foot {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--brand-border);
}

.vo-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.vo-cart-subtotal .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.vo-cart-subtotal .amount {

  font-size: 1.4rem;
  font-weight: 400;
}

.vo-cart-shipping-note {
  font-size: 0.7rem;
  color: var(--brand-muted);
  margin-bottom: 1.25rem;
}

.vo-cart-checkout {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--brand-black);
  color: var(--brand-white);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
  text-decoration: none;
}
.vo-cart-checkout:hover { background: var(--brand-sand); color: var(--brand-white); }

.vo-cart-continue {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-top: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  transition: color 0.2s;
}
.vo-cart-continue:hover { color: var(--brand-black); }

.vo-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--brand-black);
  color: var(--brand-white);
  font-size: 0.65rem;
  font-family: 'Manrope', sans-serif;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ── Cart Page ───────────────────────────────────────────── */
.vo-cart-page-head {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--brand-border);
}

.vo-cart-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 0.25rem;
}

.vo-cart-table { width: 100%; }

.vo-cart-table th {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--brand-border);
  font-family: 'Manrope', sans-serif;
}

.vo-cart-table td {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--brand-border);
  vertical-align: middle;
}

.vo-cart-row-img {
  width: 90px;
  height: 112px;
  object-fit: cover;
  flex-shrink: 0;
  aspect-ratio: 4/5;
}

.vo-cart-row-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.vo-cart-row-meta {
  font-size: 0.72rem;
  color: var(--brand-muted);
  letter-spacing: 0.04em;
}
/* ── Checkout (paso 2): resumen del pedido fijo en escritorio ──
   La columna derecha (items, totales y botón "Continuar") acompaña el scroll para que
   el botón quede siempre a la vista mientras se completa el formulario de la izquierda.
   --vo-cart-sticky-top: distancia al borde superior; cada sitio la ajusta a la altura
   de su header fijo. El nombre contiene "sticky-" a propósito: Canvas fuerza
   position:relative en [class*=col-]:not([class*=sticky-]) y así queda excluida. */
@media (min-width: 992px) {
  .vo-sticky-checkout-summary {
    position: sticky;
    top: var(--vo-cart-sticky-top, 100px);
    align-self: flex-start;
  }
}

/* Drawer vacío: sin subtotal ni "Ir al carrito" (queda "Seguir comprando").
   .vo-cart-empty lo renderiza core/carrito/_drawer_items.php cuando no hay ítems. */
.vo-cart-drawer:has(.vo-cart-empty) .vo-cart-subtotal,
.vo-cart-drawer:has(.vo-cart-empty) .vo-cart-checkout { display: none; }
