/*
 * Tema TIENDA del menú web — claro, cuadrícula de fotos cuadradas (7-oct-2026).
 *
 * Para catálogos donde la foto vende: bisutería, ropa, accesorios, la tienda que vende por
 * Instagram. Dos columnas en el teléfono, tres en tableta y cuatro en escritorio; la foto es
 * cuadrada porque así llegan las de Instagram, y recortarlas a otro formato les cortaría el precio
 * que muchas tiendas escriben encima. Lo único que varía por negocio es --accent.
 */

@font-face {
  font-family: 'Onest';
  src: url('/menu-assets/fonts/onest-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/menu-assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --bg-2: #F6F5F2;
  --line: #E8E5E0;
  --line-soft: #F0EEEA;
  --ink: #18161A;
  --ink-2: #625E66;
  --ink-3: #6F6B73;
  --accent: #0E7A43;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #FFFFFF);
  --accent-ink: color-mix(in srgb, var(--accent) 70%, #18161A);
  --warn: #B4432B;
  --promo: #8E2A4E;
  --r-lg: 22px;
  --r-md: 14px;
  --r-pic: 14px;
}

* { box-sizing: border-box; }

/* `hidden` es como el JS esconde piezas, y el del navegador pierde contra cualquier `display`. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}

h1, h2, h3 { margin: 0; font-family: 'Bricolage', 'Onest', sans-serif; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
input { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ── Portada y perfil ─────────────────────────────────────────────────── */
.perfil { position: relative; }
.portada {
  position: relative;
  height: 150px;
  background:
    radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--accent) 22%, #FFFFFF) 0%, transparent 70%),
    radial-gradient(80% 120% at 95% 20%, color-mix(in srgb, var(--accent) 34%, #FFFFFF) 0%, transparent 65%),
    color-mix(in srgb, var(--accent) 14%, #FFFFFF);
  background-size: cover;
  background-position: center;
}
.portada.con-foto::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 22, 26, .18) 0%, rgba(24, 22, 26, 0) 50%);
}
.wa-redondo {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(24, 22, 26, .16);
}
.wa-redondo svg { width: 20px; height: 20px; fill: var(--accent-ink); }

.perfil-cuerpo { position: relative; padding-top: 52px; }
.avatar {
  position: absolute; top: -44px; left: 16px;
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; background: var(--bg);
  border: 4px solid var(--bg);
  box-shadow: 0 4px 16px rgba(24, 22, 26, .12);
}
.avatar-texto {
  display: grid; place-items: center;
  background: var(--accent); color: #FFFFFF;
  font-family: 'Bricolage', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.03em;
}
.eyebrow {
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.perfil h1 { margin-top: 6px; font-size: 1.75rem; font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; }
.perfil-sub { margin-top: 6px; max-width: 62ch; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
  font-size: .8125rem; font-weight: 500;
}
.chip.ok  { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.chip.off { background: #F7E9E6; color: var(--warn); font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.dot.live { animation: ping 2.4s ease-out infinite; }
@keyframes ping {
  0%        { box-shadow: 0 0 0 0 currentColor; }
  70%, 100% { box-shadow: 0 0 0 6px transparent; }
}

.promo {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 11px 13px; border-radius: var(--r-md);
  background: rgba(142, 42, 78, .06);
  border: 1px solid rgba(142, 42, 78, .16);
}
.promo-tag {
  flex: 0 0 auto; padding: 3px 8px; border-radius: 6px;
  background: var(--promo); color: #FFFFFF;
  font-size: .625rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.promo p { font-size: .8125rem; color: var(--promo); line-height: 1.4; }

/* ── Buscador, filtros y categorías ───────────────────────────────────── */
.barra {
  position: sticky; top: 0; z-index: 35;
  margin-top: 20px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.barra.stuck { border-bottom-color: var(--line); box-shadow: 0 4px 14px rgba(24, 22, 26, .05); }

.search { position: relative; padding: 10px 0 6px; }
.search svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-40%);
  width: 18px; height: 18px; fill: var(--ink-3); pointer-events: none;
}
.search input {
  width: 100%; min-height: 48px; padding: 12px 14px 12px 42px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid transparent; color: var(--ink);
  font-size: 1rem;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { background: var(--bg); border-color: var(--accent); outline: none; }

.tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 6px 16px 12px; max-width: 1180px; margin: 0 auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tabs button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.filtros { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; padding-bottom: 4px; }
.filtro { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filtro-nombre { font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.chip-f {
  min-height: 36px; padding: 4px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  font-size: .82rem;
}
.chip-f:hover { border-color: var(--ink-3); }
.chip-f.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ── Secciones y cuadrícula ───────────────────────────────────────────── */
.cat { padding-top: 26px; scroll-margin-top: var(--menu-offset, 130px); }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cat-head h2 { font-size: 1.3125rem; font-weight: 800; }
.cat-head span { font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
}
.card { position: relative; min-width: 0; display: flex; flex-direction: column; }

.pic {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-pic);
  overflow: hidden;
  background: var(--bg-2);
}
.pic img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.pic-vacia {
  display: grid; place-items: center;
  background:
    radial-gradient(70% 70% at 30% 25%, color-mix(in srgb, var(--accent) 14%, #FFFFFF) 0%, transparent 70%),
    color-mix(in srgb, var(--accent) 7%, #FFFFFF);
}
.pic-inicial {
  font-family: 'Bricolage', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 12vw, 3.75rem);
  letter-spacing: -.04em; color: color-mix(in srgb, var(--accent) 45%, #FFFFFF);
}

.badge-out {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--warn);
  font-size: .6875rem; font-weight: 700;
}
.card.out .pic img,
.card.out .pic-inicial { filter: grayscale(1); opacity: .55; }
.card.out .card-name,
.card.out .card-price { color: var(--ink-3); }

.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.card-name {
  font-family: 'Onest', sans-serif; font-size: .9375rem; font-weight: 600; line-height: 1.3;
  letter-spacing: -.005em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc {
  font-size: .8125rem; color: var(--ink-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { margin-top: 2px; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-price .from { font-size: .75rem; font-weight: 500; color: var(--ink-3); margin-right: 2px; }
.card-mini {
  align-self: flex-start; margin-top: 3px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: .6875rem; font-weight: 600;
}

/* Servicios (V152): un salón con este tema también se lee bien. */
.renglones { display: grid; gap: 10px; }
.renglon {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md);
}
.renglon h3 { font-family: 'Onest', sans-serif; font-size: 1rem; font-weight: 600; }
.renglon p { margin-top: 3px; font-size: .875rem; color: var(--ink-2); }
.renglon-precio { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-agendar {
  display: inline-block; margin-top: 14px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; font-weight: 600; text-decoration: none;
}

.no-results,
.empty {
  margin-top: 26px; padding: 40px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: 18px; color: var(--ink-2);
}
.no-results strong { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: 8px; }
.no-results button {
  margin-top: 18px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; font-weight: 600; text-align: center;
}

/* El pie lo dibuja shared/footer.css, igual en todos los temas; acá solo el texto base. */
.foot p,
.foot a { font-size: .875rem; color: var(--ink-2); text-decoration: none; display: block; }
.foot a:hover { color: var(--accent-ink); }

/* ── Llamado a la acción ──────────────────────────────────────────────── */
.cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 18px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; text-decoration: none;
  font-weight: 600; font-size: .9375rem;
  box-shadow: 0 8px 24px rgba(24, 22, 26, .24);
}
.cta svg { width: 19px; height: 19px; fill: currentColor; }

/* ── Aviso de vista previa ────────────────────────────────────────────── */
.preview-bar {
  padding: 9px 16px; background: var(--promo); color: #FFFFFF;
  font-size: .8125rem; font-weight: 600; text-align: center;
}

/* ── Tableta y escritorio ─────────────────────────────────────────────── */
@media (min-width: 720px) {
  .portada { height: 220px; }
  .perfil-cuerpo { padding-top: 64px; }
  .avatar { top: -56px; width: 112px; height: 112px; }
  .avatar-texto { font-size: 38px; }
  .perfil h1 { font-size: 2.25rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .cat-head h2 { font-size: 1.5rem; }
}
@media (min-width: 1040px) {
  body { padding-bottom: 40px; }
  .portada { max-width: 1180px; margin: 20px auto 0; height: 260px; border-radius: 24px; overflow: hidden; }
  .shell, .tabs { padding-inline: 24px; }
  .avatar { left: 24px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
  .card.tap:hover .pic img { transform: scale(1.035); }
  .cta { left: auto; right: 24px; bottom: 24px; width: auto; padding: 15px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Carrito (F4) ─────────────────────────────────────────────────────── */
.card.tap { cursor: pointer; }

/* El «+» sobre la foto, abajo a la derecha: que se pueda agregar tiene que verse. */
.card-add {
  position: absolute; right: 8px; bottom: 8px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: #FFFFFF; color: var(--ink);
  font-size: 1.375rem; font-weight: 500; line-height: 1; text-align: center;
  box-shadow: 0 3px 10px rgba(24, 22, 26, .18);
  transition: background .15s ease, color .15s ease;
}
.card.tap:hover .card-add { background: var(--ink); color: #FFFFFF; }

.cartbar {
  visibility: hidden;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(115%);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}
.cartbar.on { transform: none; visibility: visible; }
.cart-btn {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 15px 20px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF;
  font-weight: 600; font-size: .9375rem;
  box-shadow: 0 8px 24px rgba(24, 22, 26, .22);
}
.cart-qty {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  display: grid; place-items: center;
  font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.cartbar.on ~ .cta { display: none; }

.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 12, 18, .45);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }

/* ⚠ Una hoja CERRADA no puede capturar clics: ver vitrina/style.css. */
.sheet {
  pointer-events: none;
  visibility: hidden;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 24px 24px 0 0;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(101%);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 -6px 34px rgba(24, 22, 26, .16);
  --sheet-drag: 1;
}
.sheet.on { transform: none; pointer-events: auto; visibility: visible; }
.grab { width: 38px; height: 4px; border-radius: 99px; background: var(--line); margin: 9px auto 0; }

.sheet-bar { position: sticky; top: 0; z-index: 3; height: 0; display: flex; justify-content: flex-end; }
.sheet-close {
  margin: 10px -4px 0 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  box-shadow: 0 2px 10px rgba(24, 22, 26, .18);
}
.sheet-close svg { width: 20px; height: 20px; fill: currentColor; }
.sheet-pic[hidden] + h2,
.sheet-body > h2:first-child { padding-right: 46px; }
.sheet-body { padding-top: 18px; }
.sheet h2 { font-size: 1.375rem; font-weight: 800; }

/* La foto del producto en grande y CUADRADA: es lo que el cliente vino a ver. */
.sheet-pic {
  margin: 0 -16px 16px;
  aspect-ratio: 1 / 1; max-height: 58vh;
  overflow: hidden; background: var(--bg-2);
}
.sheet-pic img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--bg-2); }
.sheet-item .sheet-body { padding-top: 0; }
.sheet-item .sheet-pic[hidden] + h2 { margin-top: 22px; }
.sheet-desc { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); white-space: pre-line; }
.sheet-price { margin-top: 10px; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet-each { font-size: .8125rem; font-weight: 500; color: var(--ink-3); }

.opt-group { margin-top: 22px; }
.opt-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}
.req {
  padding: 2px 7px; border-radius: 5px; background: var(--bg-2);
  color: var(--ink-2); font-size: .625rem; letter-spacing: .04em;
}
.opt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 11px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.opt:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--bg-2); }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; position: relative; }
.opt[aria-pressed="true"] .radio { border-color: var(--ink); }
.opt[aria-pressed="true"] .radio::after {
  content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--ink);
}
.opt-name { font-size: .9375rem; }
.opt-plus { margin-left: auto; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* En la cuadrícula y en los botones en fila no hay círculo que se llene: lo elegido va relleno,
   o la «S» elegida entre veintiséis letras casi no se distingue. */
.opt-list.grid .opt[aria-pressed="true"],
.opt-list.chips .opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.opt-list.chips .opt[aria-pressed="true"] .swatch { box-shadow: 0 0 0 2px #FFFFFF; }

.sheet-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; }

.note-field { display: block; margin-top: 22px; }
.note-field textarea, .note-field input {
  display: block; width: 100%; margin-top: 11px; resize: none;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.note-field textarea::placeholder, .note-field input::placeholder { color: var(--ink-3); }
.note-field textarea:focus, .note-field input:focus { outline: none; border-color: var(--ink); }

.closed-note {
  margin-top: 18px; padding: 11px 13px; border-radius: var(--r-md);
  background: #F7E9E6; color: var(--warn);
  font-size: .875rem; font-weight: 600; line-height: 1.4;
}

.sheet.sheet-item { padding-bottom: 0; }
.sheet-item .sheet-actions {
  position: sticky; bottom: 0; z-index: 1;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.sheet-item .sheet-actions::before {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px;
  background: linear-gradient(to top, var(--bg), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.stepper {
  display: flex; align-items: center; gap: 2px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 4px;
}
.stepper button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; color: var(--ink-2); }
.stepper button:hover { background: var(--bg-2); color: var(--ink); }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.add {
  flex: 1; min-height: 52px; padding: 14px 16px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF;
  font-weight: 600; font-size: .9375rem; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.add:hover:not(:disabled) { background: #000000; }
.add:disabled { background: var(--bg-2); color: var(--ink-3); cursor: not-allowed; }
.add svg { width: 19px; height: 19px; fill: currentColor; }
.add.wa { width: 100%; margin-top: 20px; background: var(--accent); }
.add.wa:hover:not(:disabled) { background: var(--accent-ink); }

.line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.line-main { flex: 1 1 auto; min-width: 0; }
.line-name { font-size: .9375rem; font-weight: 600; display: block; }
.line-opt { font-size: .8125rem; color: var(--ink-2); margin-top: 2px; display: block; }
.line-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-mini { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.qty-mini button {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.125rem; color: var(--ink-2);
}
.qty-mini button:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.qty-mini button.drop:hover { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.qty-mini button:disabled { opacity: .35; cursor: not-allowed; }
.qty-mini svg { width: 18px; height: 18px; fill: currentColor; }
.qty-mini button,
.stepper button { touch-action: manipulation; }
.qty-mini span { min-width: 24px; text-align: center; font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.sums { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.sum { display: flex; justify-content: space-between; font-size: .9375rem; color: var(--ink-2); }
.sum span:last-child { font-variant-numeric: tabular-nums; }
.sum.total { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.125rem; font-weight: 700; }
.sum-hint { font-size: .8125rem; color: var(--ink-3); }

.cart-error {
  margin-top: 14px; padding: 11px 13px; border-radius: var(--r-md);
  background: #F7E9E6; color: var(--warn); font-size: .875rem; line-height: 1.4;
}

/* V220: dónde lo recoge, en «Mi pedido». */
.pickup-group .opt-name { text-align: left; }
.pickup-group .opt-sub { display: block; margin-top: 2px; font-size: .8125rem; color: var(--ink-2); }
.pickup-group .opt:disabled { opacity: .55; cursor: default; }

@media (min-width: 960px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(560px, calc(100vw - 48px));
    border-radius: 22px; padding: 0 22px 24px; max-height: 90vh;
    transform: translate(-50%, -46%) scale(.98); opacity: 0;
    transition: transform .26s cubic-bezier(.2, .8, .3, 1), opacity .2s ease;
    --sheet-drag: 0;
  }
  .sheet.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .grab { display: none; }
  .sheet-pic { margin: 0 -22px 18px; max-height: 52vh; }
  .sheet-body { padding-top: 26px; }
  .sheet-item .sheet-actions { padding-bottom: 22px; }
}

/* V262: lo que se compra en la tienda en línea del negocio (ver vitrina/style.css). */
.buy-online {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: 32px;
  margin-top: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 600; text-decoration: none;
}
.buy-online:hover { filter: brightness(1.08); }
.buy-online:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
