/* =====================================================
   Plasma — estilos para flujo de compra (checkout, orden, modal)
   ===================================================== */

/* ---------- Header user button ---------- */
.header-user {
  font: inherit;
  background: transparent;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  color: var(--fg, inherit);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.header-user:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,8,12,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: modalFade 0.18s ease-out;
}
.modal {
  background: var(--bg-1, #14141a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__title { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.01em; }
.modal__sub { color: var(--fg-3, #9b9ba8); margin: 0 0 24px; font-size: 14px; }
.modal__divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--fg-3, #9b9ba8); font-size: 12px;
  margin: 16px 0;
}
.modal__divider::before, .modal__divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.08);
}
.modal__success { text-align: center; padding: 12px 0; }
.modal__success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(127, 218, 159, 0.12);
  color: #7fda9f;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.modal__success-icon svg { width: 24px; height: 24px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Formularios ---------- */
.form__label {
  display: block;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3, #9b9ba8);
  margin-bottom: 6px;
}
.form__input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--fg, #f5f5f7);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.form__input:focus {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(255,255,255,0.06);
}
.form__error {
  color: #ff6b8a;
  font-size: 12px;
  margin: 6px 0 0;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form__row:has(.form__field--grow):has(.form__field--narrow) {
  grid-template-columns: 2fr 1fr 1fr;
}
.form__field { min-width: 0; }
.form__field--grow { grid-column: span 1; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Checkout ---------- */
.page--checkout { background: var(--bg-0, #0a0a10); }
.checkout { padding: 80px 0 100px; }
.checkout__head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.checkout__back {
  background: transparent; border: none; cursor: pointer;
  color: var(--fg-3, #9b9ba8); font: inherit; font-size: 14px;
}
.checkout__back:hover { color: var(--fg, #f5f5f7); }
.checkout__title { font-size: 32px; margin: 0; letter-spacing: -0.01em; }
.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}
@media (max-width: 900px) {
  .checkout__grid { grid-template-columns: 1fr; }
}
.checkout__main { display: flex; flex-direction: column; gap: 24px; }
.checkout__section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
}
.checkout__section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.checkout__section-head h2 { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.checkout__step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient-brand, linear-gradient(135deg, #8b5cf6, #d946ef));
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  color: #fff;
}
.checkout__help { color: var(--fg-3, #9b9ba8); font-size: 14px; margin: 0 0 16px; }
.checkout__empty {
  text-align: center; padding: 80px 0;
}

/* ---------- Resumen (sidebar) ---------- */
.checkout__summary {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.checkout__summary h3 { margin: 0 0 20px; font-size: 18px; }
.checkout__items { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 14px; }
.checkout__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}
.checkout__item-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: grid; place-items: center;
}
.checkout__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout__item-name { margin: 0; font-size: 14px; }
.checkout__item-qty { margin: 2px 0 0; font-size: 12px; color: var(--fg-3, #9b9ba8); }
.checkout__item-price { font-size: 14px; font-weight: 500; }
.checkout__totals {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.checkout__totals-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--fg-2, #d4d4dc);
}
.checkout__totals-row--total {
  font-size: 18px; font-weight: 600;
  color: var(--fg, #f5f5f7);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.checkout__legal {
  font-size: 12px; color: var(--fg-3, #9b9ba8);
  margin: 20px 0 0; line-height: 1.5;
}

/* ---------- Quotes ---------- */
.quotes {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.quote {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quote:hover { border-color: rgba(255,255,255,0.18); }
.quote--selected {
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(167, 139, 250, 0.06);
}
.quote input { accent-color: #a78bfa; }
.quote__name { margin: 0; font-size: 14px; }
.quote__eta { margin: 2px 0 0; font-size: 12px; color: var(--fg-3, #9b9ba8); }
.quote__price { font-size: 15px; font-weight: 500; }

/* ---------- Order view ---------- */
.order { padding: 80px 0 100px; max-width: 720px; margin: 0 auto; }
.order__head { text-align: center; margin-bottom: 40px; }
.order__eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3, #9b9ba8); margin: 0 0 8px;
}
.order__status {
  font-size: 36px; margin: 0; letter-spacing: -0.02em;
}
.order__progress {
  display: flex; justify-content: space-between;
  margin: 40px 0;
  position: relative;
}
.order__progress::before {
  content: ""; position: absolute; top: 16px; left: 16px; right: 16px;
  height: 2px; background: rgba(255,255,255,0.08);
}
.order__step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  position: relative; z-index: 1;
}
.order__step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-1, #14141a);
  border: 2px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--fg-3, #9b9ba8);
}
.order__step--done .order__step-dot {
  background: var(--gradient-brand, linear-gradient(135deg, #8b5cf6, #d946ef));
  border-color: transparent;
  color: #fff;
}
.order__step-dot svg { width: 14px; height: 14px; }
.order__step-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--fg-3, #9b9ba8);
}
.order__step--done .order__step-label { color: var(--fg-2, #d4d4dc); }
.order__tracking {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.order__detail {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.order__detail h3 { font-size: 16px; margin: 0 0 16px; }
.order__items {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.order__items li { display: flex; justify-content: space-between; }
.order__totals {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.order__totals > div { display: flex; justify-content: space-between; }
.order__totals-total {
  font-size: 16px; font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px; margin-top: 4px;
}
.order__shipping {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.order__shipping h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-3, #9b9ba8);
  margin: 0 0 8px;
}
.order__shipping p { margin: 0; font-size: 14px; line-height: 1.6; }

/* ---------- Cart note ---------- */
.cart-totals__note {
  font-size: 12px;
  color: var(--fg-3, #9b9ba8);
  margin: 12px 0 0;
  line-height: 1.4;
}

/* ---------- Fixes globales ---------- */
/* SVG dentro de botones — sin esto el arrow se infla a 300x150 (default UA). */
.btn > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Imagen dentro del thumb del carrito (el SVG ya tiene su regla en plasma.css). */
.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================================
   ProductCard — galería con cross-fade + nav manual
   Todas las imágenes se apilan en absolute. Sólo la "active" tiene opacity 1.
   El zoom on-hover queda manejado por la regla existente en plasma.css.
   =================================================== */

/* Aspect-ratio más vertical para el media del card (default era 3/2 horizontal) */
.product-card__media {
  aspect-ratio: 4 / 5;
}

/* Footer: marca + Tienda (sacamos "Novedades" y "Estudio"). 2 columnas. */
.footer__grid {
  grid-template-columns: 1.6fr 1fr;
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===================================================
   Hero — rotación de publicaciones (cross-fade + nav)
   El frame y el tag siguen rules de plasma.css. Acá apilamos las imgs
   y agregamos flechas/dots como en el ProductCard.
   =================================================== */
.hero__visual-photo--fade {
  opacity: 0;
  transition: opacity ease-out;
  pointer-events: none;
}
.hero__visual-photo--fade.hero__visual-photo--active {
  opacity: 1;
  pointer-events: auto;
}
.hero__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  padding: 0 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  user-select: none;
  border-radius: 32px;
}
.hero__nav--prev { left: 0;  justify-content: flex-start; }
.hero__nav--next { right: 0; justify-content: flex-end;   }
.hero__visual:hover .hero__nav { opacity: 0.85; }
.hero__nav:hover {
  opacity: 1;
  background: linear-gradient(to right, rgba(0,0,0,.22), transparent 70%);
}
.hero__nav--next:hover {
  background: linear-gradient(to left, rgba(0,0,0,.22), transparent 70%);
}
.hero__dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s, transform 0.25s;
}
.hero__dot--active {
  background: #fff;
  transform: scale(1.3);
}
/* El tag (esquina inferior izquierda) debe quedar por encima de la nav */
.hero__visual-tag {
  z-index: 4;
}

.product-card__photo--fade {
  opacity: 0;
  transition: opacity var(--ease-out-quart, ease-out),
              transform var(--duration-slow) var(--ease-out-quart);
  transition-property: opacity, transform;
  pointer-events: none;
}
.product-card__photo--fade.product-card__photo--active {
  opacity: 1;
  pointer-events: auto;
}
.product-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}
.product-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s, transform 0.25s;
}
.product-card__dot--active {
  background: #fff;
  transform: scale(1.3);
}

/* Nav manual (flechas a izq/der). z-index intermedio:
   1 = fotos; 2 = nav; 3 = dots, favorito, badges. */
.product-card__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  padding: 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  user-select: none;
}
.product-card__nav--prev { left: 0;  justify-content: flex-start; }
.product-card__nav--next { right: 0; justify-content: flex-end;   }
.product-card:hover .product-card__nav { opacity: 0.85; }
.product-card__nav:hover {
  opacity: 1;
  background: linear-gradient(to right, rgba(0,0,0,.18), transparent 70%);
}
.product-card__nav--next:hover {
  background: linear-gradient(to left, rgba(0,0,0,.18), transparent 70%);
}
/* En dispositivos táctiles no hay hover → mostramos siempre las flechas (tenues)
   y agrandamos el área tocable para que se pueda cambiar de foto con el dedo. */
@media (hover: none) {
  .product-card__nav { opacity: 0.6; font-size: 30px; padding: 0 10px; width: 34%; }
  .product-card__nav--prev { background: linear-gradient(to right, rgba(0,0,0,.22), transparent 75%); }
  .product-card__nav--next { background: linear-gradient(to left, rgba(0,0,0,.22), transparent 75%); }
}

/* Favorito y badges deben estar por encima de la nav */
.product-card__media-tag,
.product-card__fav {
  z-index: 3;
}

/* ===================================================
   LoginModal — botón Google estilo oficial + spacing
   =================================================== */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  color: #1f1f1f;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid #dadce0;
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
}
.btn-google:hover:not(:disabled) {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 8px rgba(60, 64, 67, 0.12);
}
.btn-google:active:not(:disabled) {
  background: #f1f3f4;
}
.btn-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-google__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Spacing entre input email y botón de submit del magic link */
.login-form .form__label { margin-bottom: 6px; display: block; }
.login-form .form__input { margin-bottom: 14px; }
.login-form__submit { margin-top: 4px; }

/* ===================================================
   Métodos de pago — radios estilo card (igual que quotes)
   =================================================== */
.paymethods {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paymethod {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.paymethod:hover { background: rgba(255, 255, 255, 0.05); }
.paymethod--selected {
  border-color: #d946ef;
  background: rgba(217, 70, 239, 0.06);
  box-shadow: 0 0 0 1px #d946ef inset;
}
.paymethod > input[type="radio"] { margin-top: 4px; accent-color: #d946ef; }
.paymethod__body { flex: 1; }
.paymethod__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.paymethod__logo {
  height: 22px;
  width: auto;
  display: block;
}
/* MP logo: el oficial 2025 RGB color horizontal. Trae icono + "mercado pago"
   wordmark integrado. Sobre fondo oscuro le metemos un pill blanco sutil para
   que el navy del wordmark contraste bien. */
.paymethod__logo--mp {
  height: 28px;
  width: auto;
  display: block;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  box-sizing: content-box;
}
.paymethod__icon {
  font-size: 20px;
  line-height: 1;
}
.paymethod__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1, #fff);
}
.paymethod__sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--fg-3, #9b9ba8);
  line-height: 1.4;
}

/* ===================================================
   Bloque "Datos para transferir" en OrderView — rediseño
   =================================================== */
.order__transfer {
  margin: 24px 0;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(217, 70, 239, 0.06) 60%, rgba(10, 10, 15, 0) 100%),
              rgba(20, 16, 30, 0.55);
  border: 1px solid rgba(217, 70, 239, 0.22);
  box-shadow: 0 18px 50px -25px rgba(217, 70, 239, 0.35);
}
.order__transfer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.order__transfer h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.order__transfer-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.order__transfer-amount span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3, #9b9ba8);
}
.order__transfer-amount strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #c4b5fd, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.order__transfer-intro {
  margin: 12px 0 18px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.order__transfer-mail {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(217, 70, 239, 0.14);
  color: #f0abfc;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(217, 70, 239, 0.28);
  transition: background 0.15s, border-color 0.15s;
}
.order__transfer-mail:hover {
  background: rgba(217, 70, 239, 0.22);
  border-color: rgba(217, 70, 239, 0.45);
}
.order__transfer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
  margin: 12px 0 4px;
}
/* Card única con dividers internos — más prolijo que cuadritos sueltos */
.order__transfer-card {
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}
.order__transfer-line {
  display: grid;
  grid-template-columns: 130px 1fr 24px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.order__transfer-line[data-last="true"] { border-bottom: 0; }
.order__transfer-line:not(:disabled):hover { background: rgba(217, 70, 239, 0.06); }
.order__transfer-line:disabled { cursor: default; opacity: 0.6; }
.order__transfer-line-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3, #9b9ba8);
  font-weight: 500;
}
.order__transfer-line-value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  color: var(--fg-1, #fff);
  word-break: break-all;
}
.order__transfer-line-icon {
  font-size: 15px;
  color: var(--fg-3, #9b9ba8);
  opacity: 0.45;
  text-align: center;
  transition: opacity 0.15s, color 0.15s, transform 0.15s;
}
.order__transfer-line:not(:disabled):hover .order__transfer-line-icon {
  opacity: 1;
  color: #d946ef;
}
.order__transfer-copied {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.32);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  animation: order-copied-in 0.2s ease-out;
}
@keyframes order-copied-in {
  from { opacity: 0; transform: translate(6px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

.order__transfer-notes {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(217, 70, 239, 0.4);
  border-radius: 6px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}
.order__transfer-footer {
  margin: 16px 0 0;
  color: var(--fg-3);
  font-size: 13px;
}
.order__transfer-footer strong { color: var(--fg-2); }

@media (max-width: 540px) {
  .order__transfer-head { flex-direction: column; align-items: flex-start; }
  .order__transfer-amount { align-self: flex-start; }
  .order__transfer-line { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; }
  .order__transfer-line-icon { display: none; }
  .order__transfer-copied { position: static; transform: none; align-self: flex-end; margin-top: 4px; }
}

/* En teléfonos (grilla 2-up) las cards quedan angostas: apilamos el pie
   (swatches arriba, botón abajo ancho) para que "Agregar"/"A pedido" entre. */
@media (max-width: 560px) {
  .product-card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .product-card__swatches { justify-content: flex-start; }
  .product-card__oos { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
  .product-card__oos-tag { text-align: center; }
  .product-card__add { justify-content: center; width: 100%; }
  .product-card__name { font-size: 14px; }
  .product-card__price { font-size: 14px; }
  /* swatches un poco más grandes para tocarlos con el dedo */
  .product-card__swatch { width: 17px; height: 17px; }
}

/* ===================================================
   UserMenu — dropdown flotante del usuario logueado
   =================================================== */
.user-menu { position: relative; }
.user-menu .header-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.user-menu__chev {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.18s;
}
.user-menu .header-user[aria-expanded="true"] .user-menu__chev {
  transform: rotate(180deg);
}
.user-menu__pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: rgba(20, 16, 30, 0.96);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-default, rgba(255,255,255,.08));
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 6px;
  z-index: 1000;
  animation: user-menu-in 0.16s ease-out;
}
@keyframes user-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.user-menu__hello {
  padding: 10px 12px 8px;
}
.user-menu__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1, #fff);
}
.user-menu__email {
  font-size: 12px;
  color: var(--fg-3, #9b9ba8);
  margin-top: 2px;
}
.user-menu__sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}
.user-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  color: var(--fg-1, #fff);
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.user-menu__item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.user-menu__item--danger {
  color: #fca5a5;
}
.user-menu__item--danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

/* ===================================================
   Cuenta — perfil + mis pedidos
   =================================================== */
.account {
  padding: 40px 0 80px;
  min-height: 60vh;
}
.account h1 { font-size: 28px; margin: 0 0 16px; }
.account__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 6px 16px;
  margin: 16px 0;
  max-width: 520px;
}
.account__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}
.account__row:last-child { border-bottom: 0; }
.account__row > span { color: var(--fg-3, #9b9ba8); }

.myorders {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.myorders__item {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr 1.2fr;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  transition: background 0.12s, border-color 0.12s;
}
.myorders__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(217, 70, 239, 0.3);
}
.myorders__id { font-weight: 600; margin: 0; }
.myorders__date { font-size: 12px; color: var(--fg-3, #9b9ba8); margin: 2px 0 0; }
.myorders__items { font-size: 13px; }
.myorders__total { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .myorders__item { grid-template-columns: 1fr; }
  .myorders__total { text-align: left; }
}

/* La regla global .product-card__media svg en plasma.css setea position:absolute
   + inset:0 (para el "Visual" procedural). Eso le pega al SVG del corazón
   anidado en el .product-card__fav y lo arranca del flex-centering del botón.
   Devolvemos el SVG del fav a flujo normal para que quede centrado. */
.product-card__fav svg {
  position: static;
  inset: auto;
}

/* ===================================================
   Skeleton de carga del catálogo (primera visita sin cache)
   =================================================== */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}
.skeleton--eyebrow { width: 110px; height: 12px; margin-bottom: 12px; }
.skeleton--title   { width: 240px; height: 26px; margin-bottom: 10px; border-radius: 10px; }
.skeleton--sub     { width: min(420px, 80%); height: 13px; }
.skeleton--media   { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; }
.skeleton--line    { height: 13px; margin-top: 8px; }
.product-card--skeleton {
  cursor: default;
  pointer-events: none;
}
.product-card--skeleton:hover { transform: none; }

/* ===================================================
   Promo badge + price-old (precio tachado)
   =================================================== */
.product-card__media-tag--promo {
  background: linear-gradient(135deg, #d946ef, #f0abfc);
  color: #fff;
  right: 12px;
  left: auto;
  top: 12px;
}
.product-card__price-old {
  text-decoration: line-through;
  color: var(--fg-3, #9b9ba8);
  font-size: 0.85em;
  margin-right: 8px;
  font-weight: 400;
}

/* ===================================================
   Admin panel
   =================================================== */
.admin {
  padding: 40px 0 80px;
  min-height: 70vh;
}
.admin__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.admin__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--fg-3);
  margin: 0 0 4px;
}
.admin__title {
  font-size: 28px;
  margin: 0;
}
.admin__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.admin__tab {
  background: none;
  border: 0;
  color: var(--fg-2);
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.admin__tab:hover { color: var(--fg-1); }
.admin__tab--active {
  color: var(--fg-1);
  border-bottom-color: #d946ef;
}
.admin__panel { min-height: 200px; }

/* Toggle inline */
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}
.admin-toggle input { accent-color: #d946ef; }

/* ===== Tabla de productos ===== */
.admin-products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
.admin-table__head, .admin-table__row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 0.8fr 1.6fr;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
}
.admin-table__head {
  background: rgba(255,255,255,.04);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.admin-table__row {
  border-top: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
}
.admin-table__row--order {
  grid-template-columns: 1.2fr 1.5fr 2fr 0.8fr 1fr;
}
.admin-table__cell--num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table__cell--actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.admin-table__cell--prod { display: flex; align-items: center; gap: 12px; }
.admin-table__thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-table__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-table__name { font-weight: 600; margin: 0; }
.admin-table__sub { font-size: 12px; color: var(--fg-3); margin: 2px 0 0; }

.btn--danger { color: #f87171; }
.btn--danger:hover { background: rgba(248, 113, 113, .1); }

/* ===== Editor de producto ===== */
.admin-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-editor__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .admin-editor__grid { grid-template-columns: 1fr; } }
.admin-editor__col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin: 0 0 12px;
}
.admin-editor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.admin-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-cover__placeholder { color: var(--fg-3); font-size: 13px; }
.admin-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.admin-swatches__chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}

/* ===================================================
   VariantsEditor (admin)
   =================================================== */
.vedit { display: flex; flex-direction: column; gap: 12px; }
.vedit__group {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.vedit__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vedit__group-label { flex: 1; }
.vedit__group-kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.vedit__opts { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.vedit__opt,
.vedit__opts-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto auto auto;
  align-items: center;
  gap: 6px;
}
.vedit__opt--color,
.vedit__opts-head--color {
  grid-template-columns: 32px minmax(0, 1fr) 72px auto auto auto;
}
/* Que los inputs puedan encogerse dentro de la grilla y no empujen el × fuera. */
.vedit__opt > .form__input { min-width: 0; }
.vedit__opts-head {
  padding: 0 2px 4px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3, #9b9ba8);
}
.vedit__opt-color {
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.vedit__opt-delta {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.vedit__opt-upload {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.vedit__opt-imgs {
  font-size: 11px;
  color: var(--fg-3);
  padding: 0 6px;
}
.vedit__add { display: flex; gap: 6px; }

/* ===================================================
   StockEditor (admin)
   =================================================== */
.stock-edit { display: flex; flex-direction: column; gap: 10px; }
.stock-edit__list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stock-edit__row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
}
.stock-edit__label { font-size: 13px; }
.stock-edit__qty { font-variant-numeric: tabular-nums; text-align: right; }
.stock-edit__hint {
  font-size: 11px;
  color: var(--fg-3);
  white-space: nowrap;
}

/* Botón "Sin stock" deshabilitado (ya casi no se usa: ahora ofrecemos Producir) */
.btn--disabled,
.product-card__add:disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--fg-3) !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  filter: grayscale(0.4);
}

/* Sin stock → tag + botón "Producir" (made-to-order, acento ámbar) */
.product-card__oos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-card__oos-tag {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--fg-3, #9b9ba8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-card__add--produce {
  color: #fcd96a;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}
.product-card__add--produce:hover {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

/* Aviso de producción a pedido en el QuickView */
.qv__produce-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 12.5px;
  line-height: 1.4;
}
.qv__produce-note strong { color: #fcd96a; font-weight: 600; }
.qv__produce-note span { color: var(--fg-2, #d4d4dc); }

/* Card swatches clickeables (en el ProductCard) */
.product-card__swatch--btn {
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card__swatch--btn:hover { transform: scale(1.15); }
.product-card__swatch--selected {
  box-shadow: 0 0 0 2px rgba(217, 70, 239, 0.9), 0 0 0 4px rgba(217, 70, 239, 0.2);
}

/* Variantes en el cart drawer */
.cart-item__variants {
  font-size: 12px;
  color: var(--fg-3);
  margin: 2px 0 0;
  letter-spacing: 0.01em;
}

/* ===================================================
   QuickView modal
   =================================================== */
.qv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 80;
  animation: qv-fade-in 0.2s ease-out;
}
@keyframes qv-fade-in { from { opacity: 0; } to { opacity: 1; } }
.qv {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 81;
  width: min(820px, 96vw);
  max-height: 92vh;
  background: rgba(18, 18, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  animation: qv-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes qv-in {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.qv__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: rgba(10, 10, 15, 0.6);
}
.qv__media {
  position: relative;
  background: linear-gradient(180deg, #14101e, #0a0a14);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.qv__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.qv__media svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.qv__body {
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.qv__title { margin: 0; font-size: 22px; }
.qv__sub { margin: 0; color: var(--fg-3); font-size: 13px; }

.qv__group { display: flex; flex-direction: column; gap: 8px; }
.qv__group-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.qv__color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.qv__color {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.qv__color:hover { transform: scale(1.15); }
.qv__color--selected {
  box-shadow: 0 0 0 2px rgba(217, 70, 239, 0.9), 0 0 0 4px rgba(217, 70, 239, 0.2);
}

.qv__options { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.qv__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.qv__opt:hover { background: rgba(255, 255, 255, 0.05); }
.qv__opt--selected {
  border-color: rgba(217, 70, 239, 0.45);
  background: rgba(217, 70, 239, 0.08);
}
.qv__opt input[type="radio"] { accent-color: #d946ef; }
.qv__opt-label { flex: 1; font-size: 14px; font-weight: 500; }
.qv__opt-delta {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-3);
}

.qv__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}
.qv__total span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.qv__total strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #c4b5fd, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qv__cta { margin-top: 6px; }

.qv__ship {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.qv__ship-row {
  display: flex;
  gap: 8px;
}
.qv__ship-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.15s, background 0.15s;
}
.qv__ship-input:focus {
  outline: none;
  border-color: rgba(217, 70, 239, 0.45);
  background: rgba(217, 70, 239, 0.06);
}
.qv__ship-input::placeholder { color: var(--fg-3); }
.qv__ship-btn {
  flex: 0 0 auto;
  min-width: 110px;
}
.qv__ship-err {
  margin: 0;
  font-size: 12px;
  color: #fca5a5;
}
.qv__quotes {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qv__quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.qv__quote-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qv__quote-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qv__quote-eta {
  margin: 0;
  font-size: 11px;
  color: var(--fg-3);
}
.qv__quote-price {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 640px) {
  /* Pantalla completa, en columna: imagen acotada arriba y cuerpo scrolleable
     abajo (sino las variantes / cotización / botón quedan fuera de pantalla). */
  .qv {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    top: 0; left: 0;
    transform: none;
    width: 100vw;
  }
  @keyframes qv-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .qv__media { flex: 0 0 auto; aspect-ratio: auto; height: 38vh; min-height: 0; }
  .qv__body { flex: 1 1 auto; padding: 20px; padding-bottom: 28px; min-height: 0; overflow-y: auto; }
}

/* ===== Galería del editor admin ===== */
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.admin-gallery__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-gallery__item--cover {
  border-color: #d946ef;
  box-shadow: 0 0 0 1px #d946ef inset;
}
.admin-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.admin-gallery__actions {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
}
.admin-gallery__item:hover .admin-gallery__actions { opacity: 1; }
.admin-gallery__btn {
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.admin-gallery__btn:hover { background: rgba(255,255,255,.22); }
.admin-gallery__btn--danger:hover { background: rgba(248,113,113,.35); }
.admin-gallery__cover-tag {
  position: absolute;
  top: 4px; left: 4px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 999px;
}

/* ===== Métricas ===== */
.admin-metrics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.admin-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 16px;
}
.admin-stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin: 0 0 8px;
}
.admin-stat__value {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.admin-stat__sub {
  font-size: 12px;
  color: var(--fg-3);
  margin: 4px 0 0;
}
.admin-metrics__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-chip {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.admin-top {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.admin-top li {
  display: grid;
  grid-template-columns: 1fr 80px 120px;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
}
.admin-top__qty { color: var(--fg-3); }
.admin-top__rev { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Estados de orden ===== */
.admin-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,.05);
}
.admin-status--paid          { background: rgba(34,197,94,.15);  color: #4ade80; }
.admin-status--pending       { background: rgba(234,179,8,.15);  color: #fde047; }
.admin-status--in_production { background: rgba(168,85,247,.15); color: #c4b5fd; }
.admin-status--shipped       { background: rgba(59,130,246,.15); color: #93c5fd; }
.admin-status--delivered     { background: rgba(20,184,166,.15); color: #5eead4; }
.admin-status--cancelled     { background: rgba(248,113,113,.15);color: #fca5a5; }
.admin-orders__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
