/* ===========================================================
   ZENDRIAN LARTE — Carrito · estilos (cajón + botón header)
   =========================================================== */

/* botón del header */
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  background: none; border: none; cursor: pointer; color: var(--ink);
  transition: color 0.3s var(--ease);
}
.cart-btn:hover { color: var(--green-800); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__count {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--green-800); color: #fff; border-radius: 9px;
  font-family: var(--ff-label); font-size: 0.6rem; line-height: 1; font-weight: 500;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cart-btn__count.is-empty { opacity: 0; transform: scale(0.5); }

/* cajón */
.zl-cart { position: fixed; inset: 0; z-index: 200; }
.zl-cart[hidden] { display: none; }
.zl-cart__backdrop {
  position: absolute; inset: 0; background: rgba(5,34,39,0.42);
  opacity: 0; transition: opacity 0.36s var(--ease);
}
.zl-cart.is-open .zl-cart__backdrop { opacity: 1; }
.zl-cart__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 92vw); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  box-shadow: -30px 0 70px -50px rgba(0,0,0,0.6);
}
.zl-cart.is-open .zl-cart__panel { transform: none; }

.zl-cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line); flex: none;
}
.zl-cart__head h2 { font-family: var(--ff-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.zl-cart__x { background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.zl-cart__x:hover { color: var(--ink); }

.zl-cart__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.zl-cart__empty { text-align: center; color: var(--ink-soft); padding: 60px 10px; }
.zl-cart__shop {
  display: inline-block; margin-top: 16px;
  font-family: var(--ff-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem;
  color: var(--green-800); border-bottom: 1px solid var(--green-800); padding-bottom: 3px;
}

.zl-cart__item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.zl-cart__thumb { width: 64px; height: 82px; flex: none; overflow: hidden; background: #eee; }
.zl-cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.zl-cart__noimg { width: 100%; height: 100%; background: repeating-linear-gradient(135deg,#eee 0 6px,#f6f6f4 6px 12px); }
.zl-cart__info { flex: 1; min-width: 0; }
.zl-cart__name { font-family: var(--ff-display); font-size: 1.12rem; line-height: 1.2; }
.zl-cart__talla { font-family: var(--ff-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.6rem; color: var(--ink-soft); margin-top: 5px; }
.zl-cart__price { font-family: var(--ff-label); font-size: 0.84rem; color: var(--green-800); margin-top: 6px; }
.zl-cart__qty { display: inline-flex; align-items: center; gap: 0; margin-top: 10px; border: 1px solid var(--line); }
.zl-cart__qty button { width: 30px; height: 28px; background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--ink); }
.zl-cart__qty button:hover { background: #f3f3f1; }
.zl-cart__qty span { min-width: 30px; text-align: center; font-size: 0.92rem; }
.zl-cart__del {
  position: absolute; top: 18px; right: 0; background: none; border: none; cursor: pointer;
  font-family: var(--ff-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.58rem; color: var(--ink-soft);
}
.zl-cart__del:hover { color: #9a2b2b; }

.zl-cart__foot { flex: none; padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.zl-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.zl-cart__total span:first-child { font-family: var(--ff-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: var(--ink-soft); }
.zl-cart__total span:last-child { font-family: var(--ff-display); font-size: 1.5rem; color: var(--green-800); }
.zl-cart__wa {
  width: 100%; padding: 16px; cursor: pointer; border: 1px solid var(--green-800); background: var(--green-800); color: #fff;
  font-family: var(--ff-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem;
  transition: background 0.3s var(--ease);
}
.zl-cart__wa:hover { background: var(--green-700); }
.zl-cart__note { margin: 14px 0 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }

/* ===========================================================
   BOTÓN FLOTANTE DE WHATSAPP (aura palpitante)
   =========================================================== */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 120; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 16px 32px -8px rgba(0,0,0,0.5); }
.wa-float svg { width: 32px; height: 32px; position: relative; z-index: 2; }
.wa-float__ring {
  position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: 1;
  animation: wa-pulse 2.2s cubic-bezier(0.22,1,0.36,1) infinite;
}
.wa-float__ring--2 { animation-delay: 1.1s; }
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (max-width: 600px) { .wa-float { width: 52px; height: 52px; } .wa-float svg { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .wa-float__ring { animation: none; opacity: 0; } }
