/* =====================================================
   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: sacamos la columna "Novedades", quedan 3. Override del grid. */
.footer__grid {
  grid-template-columns: 1.6fr 1fr 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%);
}

/* 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;
}
/* El SVG inline del logo MP usa currentColor para el texto "Mercado Pago" —
   lo seteamos a blanco para que matchee la card oscura. */
.paymethod__logo--mp {
  height: 24px;
  color: #fff;
}
.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
   =================================================== */
.order__transfer {
  margin: 20px 0;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(217, 70, 239, 0.06));
  border: 1px solid rgba(217, 70, 239, 0.18);
}
.order__transfer h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.order__transfer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
  margin: 12px 0 4px;
}
.order__transfer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.order__transfer-row:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(217, 70, 239, 0.25);
}
.order__transfer-row:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.order__transfer-row > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3, #9b9ba8);
}
.order__transfer-row > strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.order__transfer-copied {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #4ade80;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: order-copied-in 0.18s ease-out;
}
@keyframes order-copied-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   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;
}

/* ===================================================
   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);
}

/* ===== 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;
}
