/* Núcleo de la tienda del socio: reset mínimo + variables que cada plantilla redefine en su theme.css. */
:root {
  --shop-bg: #0d0f14;
  --shop-fg: #f2f4f8;
  --shop-muted: #9aa3b2;
  --shop-surface: #171a22;
  --shop-line: #2a2f3a;
  --shop-accent: #7c5cff;
  --shop-on-accent: #fff;
  --shop-radius: 10px;
  --shop-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--shop-bg); color: var(--shop-fg); font-family: var(--shop-font); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--shop-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Respaldo del núcleo (solo si la plantilla no trae los suyos): toast y modal del pedido. */
.shop-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: var(--shop-radius); background: var(--shop-surface); border: 1px solid var(--shop-line); }
.shop-toast.error { border-color: #e5484d; }
.shop-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.shop-modal-box { width: 100%; max-width: 440px; max-height: 100%; overflow: auto; padding: 24px; border-radius: var(--shop-radius);
  background: var(--shop-surface); border: 1px solid var(--shop-line); display: grid; gap: 14px; }
.shop-modal-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-modal-box li, .shop-modal-total { display: flex; justify-content: space-between; gap: 12px; }
.shop-modal-total { font-weight: 700; border-top: 1px solid var(--shop-line); padding-top: 10px; }
.shop-modal-pay { white-space: pre-line; color: var(--shop-muted); }
.shop-pm { white-space: pre-line; display: grid; gap: 10px; }
.shop-pm h3 { margin: 0; font-size: 16px; }
.shop-pm-item { display: flex; gap: 12px; align-items: flex-start; }
.shop-pm-item p { margin: 4px 0 0; color: var(--shop-muted); }
.shop-pm-item img { width: 112px; height: auto; flex: none; border-radius: var(--shop-radius); background: #fff; }
.shop-modal-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-modal-acts a, .shop-modal-acts button { flex: 1; text-align: center; text-decoration: none; padding: 11px 16px; border-radius: var(--shop-radius);
  border: 1px solid var(--shop-line); background: transparent; cursor: pointer; }
.shop-modal-acts a { background: var(--shop-accent); color: var(--shop-on-accent); border-color: transparent; font-weight: 600; }
