@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* Store theme faces (public/themes/*.css). Declared here so directory cards can use them; browsers only fetch faces a page renders. */
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #fbf8f4; --card: #ffffff; --ink: #231e1a; --muted: #6a5f57; --line: #ece3d9; --soft: #f5eee6; --field: #ffffff; --field-line: #d8c9b9;
  --ok: #2c6a38; --ok-bg: #e4f2e6; --bad: #a3321f; --bad-bg: #fbe9e5; --warn-bg: #fff2cc; --warn: #6b4e00;
  --link: var(--accent); --shadow: 0 1px 2px rgba(35, 30, 26, .05), 0 8px 24px rgba(35, 30, 26, .07);
  --radius: 16px; --r-sm: 10px;
  --serif: "Fraunces", ui-serif, Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[hidden] { display: none !important; } /* .btn and other display rules must never beat the hidden attribute */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161311; --card: #201c19; --ink: #f2ebe4; --muted: #b3a79d; --line: #352e29; --soft: #2a2420; --field: #1a1715; --field-line: #4a413a;
    --ok: #8fd19b; --ok-bg: #1d3322; --bad: #ff9b88; --bad-bg: #3a1f1a; --warn-bg: #3a3016; --warn: #f3d27a;
    --link: color-mix(in srgb, var(--accent) 45%, #fff); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.has-cart { padding-bottom: 84px; }
body.locked { overflow: hidden; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; font-optical-sizing: auto; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; }
a { color: var(--link); text-underline-offset: 3px; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1160px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; }
.narrow { max-width: 420px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.pre { white-space: pre-line; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.big { width: 100%; min-height: 52px; font-size: 1.05rem; }
.btn.wa { background: #1a7f45; color: #fff; margin: 4px 0 8px; }
.btn.wa svg { order: -1; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; min-height: 32px; }
button.link.small { font-size: .85rem; min-height: 28px; }
button.link.danger { color: var(--bad); }
fieldset:disabled .btn, .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); font-size: 1.1rem; cursor: pointer; flex: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--soft); color: var(--muted); }
.pill.open { background: var(--ok-bg); color: var(--ok); }
.pill.closed { background: var(--bad-bg); color: var(--bad); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.box { padding: 10px 14px; border-radius: var(--r-sm); }
.ok.box { background: var(--ok-bg); color: var(--ok); }
.err { color: var(--bad); font-size: .9rem; margin: 4px 0 0; }
.err.box { background: var(--bad-bg); margin-bottom: 12px; }
.note { background: var(--soft); padding: 12px 14px; border-radius: var(--r-sm); }

/* Logo */
.logo { width: 64px; height: 64px; border-radius: 50%; flex: none; object-fit: cover; }
.logo-initial { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 600 1.8rem var(--serif); }
.logo.sm { width: 34px; height: 34px; font-size: 1rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.1rem var(--serif); margin-right: auto; }
.topnav { display: none; gap: 4px; }
.topnav a, .topbar-link { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover, .topbar-link:hover { background: var(--soft); }
@media (min-width: 720px) { .topnav { display: flex; } }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.cart-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; display: grid; place-items: center; animation: pop .25s ease; }
.badge[hidden] { display: none; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* Directory */
.dir-hero { background: radial-gradient(1200px 400px at 10% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), var(--bg); padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.dir-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 14ch; margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.dir-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dir-points li { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.dir h2 { margin: 12px 0 16px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; height: 100%; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--soft); }
.card-cover img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover .logo { position: absolute; left: 16px; bottom: -24px; width: 52px; height: 52px; border: 3px solid var(--card); font-size: 1.4rem; }
.card-body { display: grid; gap: 6px; padding: 32px 16px 18px; }
.card-body strong { font: 600 1.25rem var(--serif); }
.card-desc { color: var(--muted); font-size: .93rem; }
.card-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-state { text-align: center; color: var(--muted); }
.skeleton { height: 260px; border-radius: var(--radius); background: linear-gradient(90deg, var(--soft), var(--card), var(--soft)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Store hero */
.hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, .15) 0%, rgba(20, 14, 10, .78) 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 56px; }
.hero-card { max-width: 620px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); margin: 12px 0 8px; color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .92); font-size: 1.2rem; margin-bottom: 6px; }
.hero-desc { color: rgba(255, 255, 255, .82); }
.hero-now { color: rgba(255, 255, 255, .85); }
.hero-now a { color: #fff; }
.hero .pill.open { background: rgba(228, 242, 230, .95); color: #1f5a2b; }
.hero .pill.closed { background: rgba(251, 233, 229, .95); color: #8a2a1a; }
.hero .btn { margin-top: 6px; }
@media (min-width: 900px) { .hero { min-height: 520px; } }

.status { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: -28px 0 28px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.closed-msg { background: var(--bad-bg); color: var(--bad); padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 10px; }
.closed-msg p:last-child { margin: 0; }
.closed-msg .btn { margin-top: 8px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .92rem; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }
.facts li::before { content: "\2022"; margin-right: 8px; color: var(--accent); }
.zones { margin-top: 10px; font-size: .92rem; }
.zones summary { cursor: pointer; color: var(--link); font-weight: 600; min-height: 32px; display: list-item; }
.zones ul { list-style: none; padding: 0; margin: 6px 0 0; }
.zones li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }

/* Menu */
.menu-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.menu-head h2 { font-size: 2rem; margin: 0; }
.filters { display: grid; gap: 10px; width: 100%; }
@media (min-width: 900px) { .filters { width: auto; grid-template-columns: 260px auto; align-items: center; } }
.filters[hidden] { display: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fchip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.fchip[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-title { font: 600 1.25rem var(--serif); margin: 22px 0 12px; }
.menu[hidden] { display: none; }
.products { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 16px; }
@media (min-width: 560px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.product:hover { transform: translateY(-2px); }
.product[hidden] { display: none; }
.p-media { position: relative; display: block; overflow: hidden; }
.product .photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); transition: transform .4s ease; }
.product:hover .photo { transform: scale(1.04); }
.ph { display: grid !important; place-items: center; color: var(--accent); }
.ph svg { width: 34%; max-width: 110px; }
@media (prefers-color-scheme: dark) { .ph { filter: brightness(.82) saturate(.9); } }
.product .ph-0, .pm-media .ph-0 { background: radial-gradient(circle at 30% 20%, #f6e3cf, #e8c9a8); color: #7a4423; }
.product .ph-1, .pm-media .ph-1 { background: radial-gradient(circle at 70% 30%, #e7efe2, #c9dcbf); color: #3f6233; }
.product .ph-2, .pm-media .ph-2 { background: radial-gradient(circle at 30% 70%, #f3e6d6, #dcc3a4); color: #6a4a2a; }
.product .ph-3, .pm-media .ph-3 { background: radial-gradient(circle at 60% 40%, #efe0e6, #d9bcc8); color: #6d3550; }
.soldout-badge { position: absolute; top: 12px; left: 12px; background: rgba(20, 14, 10, .82); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 1.08rem; font-weight: 600; }
.p-body h3 a { color: inherit; text-decoration: none; }
.p-body h3 a:hover { text-decoration: underline; }
.size { font-weight: 400; color: var(--muted); font-size: .92rem; }
.desc { color: var(--muted); font-size: .92rem; }
.tags { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .76rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; }
.price { font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.soldout .photo { filter: grayscale(.7); opacity: .7; }
.soldout .price { color: var(--muted); }
.soldout-tag { font-weight: 700; color: var(--bad); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.step { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; color: var(--link); cursor: pointer; border-radius: 999px; }
.step:hover { background: var(--soft); }
.stepper .n { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Store sections */
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 28px 0; box-shadow: var(--shadow); }
.about { display: grid; gap: 22px; align-items: center; padding: 0; overflow: hidden; }
.about img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.about > div { padding: 4px 22px 22px; }
@media (min-width: 800px) { .about { grid-template-columns: 1fr 1fr; } .about > div { padding: 32px 32px 32px 0; } }
.about h2 { font-size: 1.9rem; }
.info-grid { display: grid; gap: 0 22px; }
@media (min-width: 800px) { .info-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.week-hours { width: 100%; border-collapse: collapse; }
.week-hours th, .week-hours td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.week-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.week-hours tr.today { background: var(--soft); font-weight: 700; }
.week-hours tr.today th, .week-hours tr.today td { font-weight: 700; }
.zone-out { margin: 10px 0 0; font-weight: 600; }
.zone-out:empty { display: none; }
.zone-out.yes { color: var(--ok); }
.zone-out.no { color: var(--bad); }
.rev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.rev-avg strong { font: 600 1.6rem var(--serif); margin-right: 4px; }
.stars { color: #c98a12; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.reviews { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews figure { margin: 0; padding: 16px; border-radius: var(--r-sm); background: var(--soft); height: 100%; display: flex; flex-direction: column; gap: 10px; }
.reviews blockquote { margin: 0; flex: 1; }
.reviews figcaption { display: grid; gap: 2px; font-size: .92rem; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(6, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 32px; color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-name { display: block; font: 600 1.15rem var(--serif); color: var(--ink); margin-bottom: 4px; }
.site-foot p { margin: 0 0 4px; }

/* Cart bar + drawer + modal */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .1);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); z-index: 10; animation: up .25s ease; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.cartbar[hidden] { display: none; }
.cartbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.cartbar-in .min-hint { display: block; font-weight: 400; color: var(--muted); }
.cartbar-in .btn { white-space: nowrap; flex: none; }
.min-hint:empty { display: none; }
p.min-hint { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; margin: 12px 0 0; }
dialog { color: var(--ink); background: var(--card); border: 0; padding: 0; }
dialog::backdrop { background: rgba(15, 10, 8, .55); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); max-width: 100vw; }
.drawer[open] { animation: slide .28s ease; }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
.drawer-foot p { margin-bottom: 8px; }
.drawer-sub { display: flex; justify-content: space-between; font-size: 1.1rem; }
.drawer .min-hint { margin: 0 0 8px; }
.pmodal { width: min(860px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--radius); overflow: hidden; }
.pmodal[open] { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pm-in { display: grid; overflow-y: auto; max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
/* The close button is positioned on the dialog, not on the scroller, so it never scrolls away. */
@media (min-width: 720px) { .pm-in { grid-template-columns: 1fr 1fr; } }
.pm-close { position: absolute; top: 12px; right: 12px; z-index: 2; box-shadow: var(--shadow); }
.pm-media .photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; height: 100%; }
@media (max-width: 719px) {
  .pmodal { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92dvh; border-radius: var(--radius) var(--radius) 0 0; }
  .pmodal[open] { animation: sheet .25s ease; }
  .pm-in { max-height: 92dvh; }
  .pm-media .photo { aspect-ratio: 4 / 3; height: auto; }
  .pm-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
.pm-body { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.pm-body h2 { font-size: 1.8rem; padding-right: 40px; }
.pm-body .size:empty, .pm-body .desc:empty { display: none; }
.pm-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-foot .price { font-size: 1.4rem; }

/* Forms */
form .row { margin-bottom: 14px; }
label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--field); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
textarea { min-height: 0; resize: vertical; }
input[type=color] { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--field); }
[aria-invalid=true] { border-color: var(--bad) !important; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row.three { grid-template-columns: 1fr 1fr; } }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); margin-bottom: 8px; cursor: pointer; }
.choices .choice { margin: 0; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Checkout */
.checkout h1 { font-size: 2.2rem; margin: 8px 0 16px; }
.co-step, .co-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.co-step h3 { display: flex; align-items: center; gap: 10px; font: 600 1.2rem var(--serif); margin-bottom: 14px; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 .9rem var(--sans); flex: none; }
.co-cart p:last-child { margin: 0; }
.lines { list-style: none; padding: 0; margin: 0 0 12px; }
.lines li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border-bottom: 0; }
.lines .l-name { flex: 1; font-weight: 500; }
.lines .l-price { min-width: 72px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.lines.static li { justify-content: space-between; padding: 8px 0; }
.lines li.grand { font-weight: 700; }
.empty { background: var(--soft); padding: 14px; border-radius: var(--r-sm); }
.totals { margin: 12px 0; padding: 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals dt, .totals dd { margin: 0; }
.totals [hidden], .co-summary [hidden] { display: none; }
.totals dd { font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.co-summary .btn.big { margin: 6px 0 10px; }

/* Confirmation */
.confirm-hero { text-align: center; padding: 18px 0 8px; }
.confirm-hero h2 { font-size: 2.1rem; }
.confirm-hero .btn.wa { max-width: 420px; }
.confirm .code { font-size: 1.05rem; }
.confirm .code strong { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.timeline { list-style: none; padding: 0; margin: 20px auto 6px; display: flex; justify-content: space-between; max-width: 560px; counter-reset: s; }
.timeline li { flex: 1; position: relative; display: grid; justify-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline .dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); }
.timeline .done, .timeline .now { color: var(--ink); font-weight: 600; }
.timeline .done::before, .timeline .now::before { background: var(--accent); }
.timeline .done .dot { background: var(--accent); border-color: var(--accent); }
.timeline .now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); background: var(--card); }
.summary, .pay { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; box-shadow: var(--shadow); }
.summary h3, .pay h3 { font: 600 1.2rem var(--serif); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.save-link { text-align: center; }
.save-link .url { overflow-wrap: anywhere; color: var(--ink); }
.save-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 4px; }

/* Admin */
.admin-head { background: var(--card); border-bottom: 1px solid var(--line); }
.admin-bar { display: flex; align-items: center; gap: 10px; min-height: 56px; flex-wrap: wrap; }
.admin-bar nav { display: flex; gap: 4px; margin-left: auto; }
.admin-bar nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.admin-bar nav a[aria-current] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 520px) { .admin-bar nav { order: 3; width: 100%; margin: 0 0 8px; } .admin-bar form { margin-left: auto; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; color: var(--muted); }
.big-n { display: block; font: 600 1.6rem var(--serif); color: var(--ink); }
.orders { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.order { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; }
.order.status-entregado, .order.status-cancelado { border-left-color: var(--line); }
.o-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.o-head strong { font-family: ui-monospace, Menlo, monospace; }
.o-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.chip.pay { margin-left: auto; background: var(--card); }
.pill.status-nuevo { background: var(--warn-bg); color: var(--warn); }
.pill.status-cancelado { background: var(--bad-bg); color: var(--bad); }
.pill.status-entregado { background: var(--ok-bg); color: var(--ok); }
.past summary { cursor: pointer; }
.past summary h2 { display: inline; }
.admin-products { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.admin-products > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.admin-products summary { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.admin-products summary > span:nth-child(2) { flex: 1; }
.admin-products details[open] summary { margin-bottom: 12px; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.thumb.empty { background: var(--soft); }
.admin > form.pform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 14px 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.store-form fieldset { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.store-form legend { font: 600 1.1rem var(--serif); padding: 0 6px; }
.big-toggle { font-size: 1.05rem; font-weight: 700; }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin h3 { margin-top: 12px; }
form.danger { margin-top: 4px; }

/* admin Pedidos */
.stats .wide { grid-column: 1 / -1; }
.stats .small { display: block; }
.o-search { display: flex; gap: 8px; margin-bottom: 20px; }
.o-search input { flex: 1; }
.results { background: var(--soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 20px; }
.results h2 { margin-top: 0; font-size: 1.1rem; }
.day-head { font-size: 1rem; margin: 18px 0 10px; }
.day-head span { font-weight: 400; color: var(--muted); }
.order details > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; min-height: 44px; }
.order details[open] > summary { margin-bottom: 10px; }
.order details > summary .pill { margin-left: auto; }
.week table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.week th, .week td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.week th[scope=row], .week thead th:first-child { text-align: left; }
.week .has-units > * { border-bottom: 0; padding-bottom: 2px; }
.week .units td { text-align: left; color: var(--muted); font-size: .85rem; padding-top: 0; }

/* admin: opening checklist, quick sold-out toggle, account */
.hint { background: var(--soft); border-radius: var(--radius); padding: 10px 14px; }
.checklist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; margin-bottom: 16px; }
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--line); }
.checklist .done .mark { background: var(--ok); color: var(--card); border-color: var(--ok); }
.checklist .done .pill { background: var(--ok-bg); color: var(--ok); }
.checklist .pending .mark { border-color: var(--bad); color: var(--bad); }
.checklist .pill { font-size: .75rem; }
.checklist .pending .pill { background: var(--bad-bg); color: var(--bad); }
.admin-products > li { display: flex; gap: 8px; align-items: flex-start; }
.admin-products > li > details { flex: 1; min-width: 0; }
.admin-products .quick { flex: none; margin-top: 6px; }
.account { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 8px; }
.account form + form { margin-top: 16px; }
@media (max-width: 520px) { .admin-products > li { display: block; } .admin-products .quick { margin: 4px 0 0; } }
.chip.notify { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.day-off { margin: -4px 0 10px; font-weight: 600; }
/* admin Resumen */
.kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.dash { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .dash { grid-template-columns: 1fr 1fr; } .dash .wide { grid-column: 1 / -1; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .lbl, .chart .val { font: 13px system-ui, sans-serif; fill: var(--ink); }
.chart .val { fill: var(--ink); font-weight: 600; }
.chart .bar { fill: var(--accent); }
.chart .track { fill: var(--soft); }
.chart .axis { stroke: var(--line); }
.chart .hit { fill: transparent; }
.chart .zero { fill: var(--line); }
.chart .day:hover .bar { opacity: .8; }
.chart.days .lbl { font-size: 13px; }
@media (max-width: 520px) { .chart.days .lbl { font-size: 24px; } }
.facts .ok-fact { color: var(--ok); font-weight: 600; }
.facts .ok-fact::before { color: var(--ok); }
.demo-badge { position: absolute; top: 16px; right: 16px; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(20, 14, 10, .55); color: rgba(255, 255, 255, .9); font-size: .72rem; letter-spacing: .04em; border: 1px solid rgba(255, 255, 255, .35); }
/* Admin Pedidos: next action, "Más acciones", filter chips, new-since-last-visit */
.chip.next { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.o-more { flex-basis: 100%; }
.order .o-more > summary { min-height: 36px; font-size: .88rem; color: var(--muted); }
.o-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip[aria-current=page] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.order.fresh { box-shadow: 0 0 0 3px var(--accent); }
.order.fresh .o-head strong::after { content: " Nuevo"; font-size: .75rem; color: var(--accent); }

/* Wave 4: denser mobile menu, tidy info strip, chip rows, one-line cart bar, cart line thumbs, confirmation moment */
@media (max-width: 599px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product .photo { aspect-ratio: 1; }
  .p-body { padding: 10px 10px 12px; }
  .p-body h3 { font-size: .95rem; }
  .p-body .size { display: block; font-size: .8rem; }
  .product .desc { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
  .product .tags { display: none; }
  .p-foot { flex-wrap: wrap; gap: 6px; min-height: 40px; }
  .price { font-size: 1rem; }
  .product .btn.add { width: 40px; min-height: 40px; height: 40px; padding: 0; font-size: 0; margin-left: auto; }
  .product .btn.add::before { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 500; }
  .product .stepper { margin-left: auto; }
  .product .step { width: 36px; height: 36px; }
  .soldout-badge { top: 8px; left: 8px; font-size: .7rem; }
}
.menu-desc { margin: 4px 0 8px; max-width: 70ch; }
.about-lead { font-weight: 600; }
@media (min-width: 800px) {
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 20px; }
  .facts li { display: flex; align-items: baseline; }
}
.chip-rows { display: grid; gap: 6px; min-width: 0; }
.chips.more { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.fchip.tag { min-height: 32px; font-size: .82rem; background: var(--soft); border-color: transparent; }
.fchip.tag[aria-pressed=true] { background: var(--ink); color: var(--bg); }
@media (min-width: 900px) { .filters { grid-template-columns: 260px minmax(0, 560px); } }

.cartbar { padding-top: 10px; }
.cartbar-in { white-space: nowrap; }
#cart-sum { overflow: hidden; text-overflow: ellipsis; }
.min-meter { padding: 0 0 8px; }
.min-meter[hidden] { display: none; }
.min-meter .wrap { display: grid; gap: 4px; }
.min-meter .min-hint { color: var(--muted); font-weight: 500; }
.meter { display: block; height: 4px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s ease; }
.badge.pulse { animation: pulse .45s ease; }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

#lines .lines li, #drawer-lines .lines li { display: grid; grid-template-columns: 48px 1fr auto; grid-template-areas: "thumb name name" "thumb step price"; gap: 6px 12px; align-items: center; }
.l-thumb { grid-area: thumb; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; align-self: start; }
.ph-thumb { display: grid; place-items: center; background: var(--soft); color: var(--accent); font: 600 1.2rem var(--serif); }
#lines .l-name, #drawer-lines .l-name { grid-area: name; }
#lines .stepper, #drawer-lines .stepper { grid-area: step; justify-self: start; }
#lines .l-price, #drawer-lines .l-price { grid-area: price; }

.check { display: block; width: 64px; height: 64px; margin: 4px auto 8px; color: var(--ok); }
.check svg { width: 100%; height: 100%; }
.thanks { font: 600 1.15rem var(--serif); color: var(--muted); margin-bottom: 2px; }
.confirm-hero .btn.wa { margin-top: 8px; }
.check path { stroke: var(--card); }
.hero-now:empty { display: none; }

/* Directory cards wear their store's theme (fixed palettes, same in light and dark) */
.card[class*=theme-] { color: var(--ink); }
.card[class*=theme-] .card-body strong { font-size: 1.45rem; line-height: 1.1; }
.card.theme-tostado { --card: #1c1410; --ink: #efe6da; --muted: #c2b3a2; --line: #1c1410; --soft: #2c211a; border-radius: 2px; }
.card.theme-tostado .card-body strong { font: 400 1.9rem "Instrument Serif", Georgia, serif; }
.card.theme-tostado .logo-initial { background: #1c1410; color: #efe6da; border-color: #1c1410; font: italic 400 1.5rem "Instrument Serif", serif; }
.card.theme-fresco { --card: #fff0b8; --ink: #163020; --muted: #4a5a3c; --line: #fff0b8; border-radius: 28px; }
.card.theme-fresco .card-body strong { font: 600 1.6rem "Fredoka", system-ui, sans-serif; }
.card.theme-fresco .card-cover img:first-child { border-radius: 0 0 28px 28px; }
.card.theme-fresco .logo-initial { border-radius: 14px; transform: rotate(-8deg); border-color: #fff0b8; font-family: "Fredoka", sans-serif; }
.card.theme-artesanal { --card: #fbf6ec; --ink: #2b2118; --muted: #65523f; --line: #b48c5e; border-style: dashed; border-radius: 6px; }
.card.theme-artesanal .card-body strong { font: 700 2rem/1 "Caveat", cursive; color: #7a4519; }
.card.theme-artesanal .logo-initial { background: #fbf6ec; color: #7a4519; border-color: #fbf6ec; outline: 1.5px solid #7a4519; outline-offset: -5px; font: 700 1.6rem "Caveat", cursive; }
.card.theme-barrio { --card: #ffd23f; --ink: #111; --muted: #2b2b2b; --line: #111; border: 3px solid #111; border-radius: 0; box-shadow: 6px 6px 0 #111; }
.card.theme-barrio .card-body strong { font: 400 1.8rem/1.05 "Anton", Impact, sans-serif; text-transform: uppercase; font-synthesis: none; }
.card.theme-barrio .card-cover { border-bottom: 3px solid #111; }
.card.theme-barrio .logo-initial { border-radius: 0; background: #111; color: #ffd23f; border-color: #111; font: 400 1.4rem "Anton", sans-serif; }
.card.theme-barrio .pill { border-radius: 0; }
@media (prefers-color-scheme: dark) { .card.theme-barrio { box-shadow: 6px 6px 0 #ffd23f; } }
