/* Base común de los temas (se carga después de store.css; el tema Clásico no la usa).
   Cada tema define sus letras, colores y su arte en public/css/temas/<id>.css. */
:root {
  --page-bg: var(--bg);
  --topbar-bg: var(--bg);
  --hero-bg: transparent;
  --bw: 1px;                 /* grosor de líneas y bordes */
  --btn-radius: var(--radius);
  --tag-radius: 4px;
  --card-shadow: none;
  --focus: var(--accent);
}

body { background: var(--page-bg); }
/* Con los emojis originales, los temas no los muestran (no combinan con su diseño), salvo en los botones que solo tienen ícono;
   Mi pedido y la cuenta llevan su propio dibujo. Con los demás estilos de íconos sí se muestran y toman el color del tema. */
html[data-iconos="emoji"] .ico:not(.dlg-close .ico):not(.ci-del .ico):not(.bell-btn .ico) { display: none; }
html[data-iconos="emoji"] .track-link::before, html[data-iconos="emoji"] .acct-link::before { content: ''; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--ico-pedido) center / contain no-repeat; mask: var(--ico-pedido) center / contain no-repeat; }
html[data-iconos="emoji"] .acct-link::before { -webkit-mask-image: var(--ico-cuenta); mask-image: var(--ico-cuenta); }
:root { --ico-pedido: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2 3 6.5v11L12 22l9-4.5v-11L12 2Zm0 2.2 6.6 3.3L12 10.8 5.4 7.5 12 4.2ZM5 9.1l6 3v7.6l-6-3V9.1Zm8 10.6v-7.6l6-3v7.6l-6 3Z%27/%3E%3C/svg%3E"); --ico-cuenta: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0-8a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 10c-5 0-9 2.6-9 6v2h18v-2c0-3.4-4-6-9-6Zm-7 6c.3-1.7 3.2-4 7-4s6.7 2.3 7 4H5Z%27/%3E%3C/svg%3E"); }
.track-link:hover, .acct-link:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Barra superior: sólida, sin desenfoque */
.topbar { background: var(--topbar-bg); backdrop-filter: none; border-bottom: var(--bw) solid var(--line); }
.logo { font-family: var(--display); }
.search input { border-radius: var(--btn-radius); border-width: var(--bw); }
.cart-btn { border-radius: var(--btn-radius); border-width: var(--bw); }

/* Portada: el texto en minúsculas normales y sin la frase en otro color */
.hero { background: var(--hero-bg); border-bottom: var(--bw) solid var(--line); position: relative; }
h1.eyebrow { text-transform: none; letter-spacing: normal; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero .hero-title span { color: inherit; }
.fcard { box-shadow: none; }
.fcard::after { display: none; }

/* Categorías y filtros */
.cat { border-radius: var(--btn-radius); border-width: var(--bw); }
.cat::before { border-radius: 0; }
.chips button, .play-toggle, select, .pager button, .tabs button { border-radius: var(--btn-radius); border-width: var(--bw); }

/* Productos */
.card { border-radius: var(--radius); border-width: var(--bw); box-shadow: var(--card-shadow); transition: none; }
.card:hover { transform: none; }
.tag { border-radius: var(--tag-radius); }
.btn { border-radius: var(--btn-radius); }
.btn.add { border-width: var(--bw); white-space: nowrap; }
.card-foot { flex-wrap: wrap; row-gap: 6px; }
.ph span { text-shadow: none; }

/* Ventanas, carrito y formularios */
.dlg { border-radius: var(--radius); border-width: var(--bw); }
.dlg::backdrop { background: color-mix(in srgb, var(--text) 45%, transparent); backdrop-filter: none; }
.dlg-close { border-radius: var(--btn-radius); }
.drawer { background: color-mix(in srgb, var(--text) 40%, transparent); }
.drawer-panel { border-left-width: var(--bw); }
.checkout input, .checkout textarea, .checkout select, .track input { border-radius: var(--btn-radius); border-width: var(--bw); }
.pay-opt, .summary, .bank, .panel, .points-box, .visit, .faq details, .free-hint, .reserve-help, .play-help { border-radius: var(--radius); }
.points-card { background: var(--panel); border-radius: var(--radius); }
.toast { border-radius: var(--btn-radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Celular: que la barra quepa en una línea (logo, iconos y carrito) */
@media (max-width: 560px) {
  .topbar-inner { gap: 10px; }
  .topbar .logo { font-size: var(--logo-movil, 16px); gap: 6px; min-width: 0; }  /* gana al tamaño de escritorio de cada tema */
  .topbar .logo span { font-size: inherit; }
  .topbar-inner > .track-link:last-child { font-size: 13px; letter-spacing: 0; text-transform: none; }  /* “← Volver a la tienda” de las otras páginas */
  .logo-mark { width: 30px; height: 34px; }
  .track-link { margin-left: auto; }
  .acct-link { font-size: 14px; }
  .cart-btn { width: 42px; height: 40px; }
}
@media (max-width: 380px) { .topbar .acct-link { font-size: 0; gap: 0; } }  /* celulares angostos: solo el ícono de la cuenta */
