/* ── CARRITO ICON EN NAV ── */
.nav__cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: color 0.3s;
}

.nav__cart:hover { color: #39ff14; }

.nav__cart svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__cart-count {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #39ff14;
  color: #0c0c0c;
  font-size: 9px;
  font-weight: 700;
  font-family: 'manifold-extended-cf', sans-serif;
  min-width: 16px;
  height: 16px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.nav__cart-count.has-items {
  opacity: 1;
  transform: scale(1);
}

.nav__cart.pulse svg {
  animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}


/* ── OVERLAY ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}


/* ── PANEL CARRITO ── */
.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: #111;
  border-left: 1px solid rgba(57,255,20,0.12);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.cart.open {
  transform: translateX(0);
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.cart__title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}

.cart__close {
  background: none;
  border: none;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 4px;
}

.cart__close:hover { color: #fff; }


/* ── ITEMS ── */
.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
}

.cart__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.cart__item:hover { background: rgba(255,255,255,0.02); }

.cart__item-img {
  width: 52px;
  height: 52px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart__item-img span {
  font-size: 18px;
  color: rgba(57,255,20,0.3);
  font-weight: 700;
}

.cart__item-info {
  flex: 1;
  min-width: 0;
}

.cart__item-name {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart__item-price {
  font-size: 12px;
  color: #39ff14;
  display: block;
  margin-bottom: 10px;
}

.cart__item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  width: fit-content;
}

.cart__item-qty button {
  background: none;
  border: none;
  color: #777;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart__item-qty button:hover {
  color: #fff;
  background: rgba(57,255,20,0.08);
}

.cart__item-qty span {
  font-size: 12px;
  color: #fff;
  width: 28px;
  text-align: center;
}

.cart__item-remove {
  background: none;
  border: none;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.cart__item-remove:hover { color: #ff4444; }


/* ── VACÍO ── */
.cart__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  padding: 48px 28px;
  text-align: center;
}

.cart__empty.visible { display: flex; }

.cart__empty p {
  font-size: 14px;
  color: #444;
  letter-spacing: 0.5px;
}

.cart__empty a {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #39ff14;
  text-decoration: none;
  border: 1px solid rgba(57,255,20,0.3);
  padding: 12px 24px;
  transition: background 0.3s, color 0.3s;
}

.cart__empty a:hover {
  background: #39ff14;
  color: #0c0c0c;
}


/* ── FOOTER CARRITO ── */
.cart__footer {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.cart__footer.visible { display: flex; }

.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.cart__total span:first-child {
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
}

.cart__total span:last-child {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.cart__checkout {
  display: block;
  text-align: center;
  background: #39ff14;
  color: #0c0c0c;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px;
  font-family: 'manifold-extended-cf', sans-serif;
  transition: background 0.3s;
}

.cart__checkout:hover { background: #fff; }

.cart__clear {
  background: none;
  border: none;
  color: #333;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'manifold-extended-cf', sans-serif;
  text-align: center;
  padding: 4px;
  transition: color 0.3s;
}

.cart__clear:hover { color: #ff4444; }


/* ── MOBILE NAV PANEL ── */
.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mob-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mob-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0c0c0c;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  gap: 0;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  border-top: 1px solid rgba(57,255,20,0.1);
}

.mob-nav.open {
  transform: translateY(0);
}

.mob-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.mob-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mob-nav__link {
  display: block;
  padding: 20px 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: color 0.3s;
}

.mob-nav__link:hover,
.mob-nav__link.nav__active { color: #39ff14; }

.mob-nav__cta {
  display: inline-block;
  background: #39ff14;
  color: #0c0c0c;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  font-family: 'manifold-extended-cf', sans-serif;
  align-self: flex-start;
  transition: background 0.3s;
}

.mob-nav__cta:hover { background: #fff; }

/* Hamburger → X */
.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__hamburger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* ── MODAL SALIDA ── */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.exit-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.exit-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%) scale(0.95);
  z-index: 300;
  background: #111;
  border: 1px solid rgba(57,255,20,0.2);
  padding: 52px 48px;
  width: 460px;
  max-width: calc(100vw - 40px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1),
              transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.exit-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.exit-modal__emoji {
  display: block;
  font-size: 36px;
  margin-bottom: 20px;
}

.exit-modal__label {
  display: block;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #39ff14;
  margin-bottom: 14px;
}

.exit-modal__title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.exit-modal__text {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.exit-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.exit-modal__stay {
  width: 100%;
  background: #39ff14;
  border: none;
  color: #0c0c0c;
  font-family: 'manifold-extended-cf', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.exit-modal__stay:hover { background: #fff; }

.exit-modal__leave {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
  text-decoration: none;
  transition: color 0.3s;
  padding: 8px;
}

.exit-modal__leave:hover { color: #888; }


/* ── RESPONSIVE CARRITO ── */
@media (max-width: 480px) {
  .cart { width: 100vw; }
  .exit-modal { padding: 36px 24px; }
}
