/* Carrito LaserPro en tour VR — tema oscuro (no hereda color claro del body) */
.cart-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  z-index: 10040;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #212f3d;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-float__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8b8b8;
  color: #212f3d;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10150;
  pointer-events: none;
  color: #f4f6f8;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #1e2836 0%, #151c27 100%);
  border-left: 1px solid rgb(255 255 255 / 10%);
  box-shadow: -12px 0 40px rgb(0 0 0 / 45%);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  color: #f4f6f8;
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.cart-drawer__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
}

.cart-drawer__empty {
  color: rgb(255 255 255 / 58%);
  font-size: 0.92rem;
  margin: 1rem 0;
}

.cart-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.cart-item__info {
  min-width: 0;
}

.cart-item__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.cart-item__price {
  display: block;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 58%);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
}

.cart-qty-val {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 800;
  color: #fff;
}

.cart-item__remove {
  border: none;
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 55%);
  cursor: pointer;
  padding: 0.45rem;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 8px;
}

.cart-item__remove:hover {
  color: #ffb4b4;
  background: rgb(255 100 100 / 12%);
}

.cart-drawer__foot {
  flex-shrink: 0;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: rgb(0 0 0 / 18%);
}

.cart-drawer__total {
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 12px;
}

.cart-drawer__wa,
.btn--whatsapp-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.cart-drawer__wa.is-disabled,
.btn--whatsapp-lg.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cart-drawer__clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: none;
  background: transparent;
  color: rgb(255 255 255 / 48%);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
}

body.product-shop-open .cart-float {
  display: none !important;
}

body.cart-open {
  overflow: hidden;
}

#mars2VrToggle {
  display: none !important;
}
