:root {
  --green: #0f5a32;
  --green-2: #137a43;
  --green-ink: #0b3a22;
  --red: #d42a2f;
  --red-2: #b61f24;
  --cream: #fbf6ee;
  --sand: #f2e8d8;
  --sand-2: #e7d9c3;
  --ink: #1f1a16;
  --muted: #6b5f53;
  --card: #ffffff;
  --line: #e9dfcf;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 26, 22, .06), 0 8px 24px rgba(31, 26, 22, .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); }
svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0 0 .6em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Knappar */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.25em; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-2); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .95rem; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(251, 246, 238, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand img { width: 138px; height: auto; }
.loc-switch { display: flex; gap: 4px; margin-left: auto; background: var(--sand); padding: 4px; border-radius: 8px; }
.loc-switch a { padding: .45em 1em; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.loc-switch a[aria-current] { background: var(--green); color: #fff; }
.loc-switch a:not([aria-current]):hover { background: var(--sand-2); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 80% at 100% 0%, rgba(19, 122, 67, .14), transparent 60%),
  radial-gradient(50% 70% at 0% 100%, rgba(212, 42, 47, .10), transparent 60%); pointer-events: none; }
.hero-home { text-align: center; padding: 56px 0 clamp(150px, 20vw, 240px); }
.hero-home::before { display: none; }
.hero-home .wrap { position: relative; }
.hero-desert { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* Sandstorm: dis som kommer i byar plus två lager sandkorn som blåser åt höger.
   Kornlagren är bredare än heron och flyttas exakt en mönsterbredd (260px) per varv så att loopen blir sömlös.
   Masken håller stormen nere vid marken så att loggan förblir läsbar. */
.sandstorm { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 75%); mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 75%);
  background: linear-gradient(to top, rgba(214, 160, 110, .55), rgba(236, 196, 150, .25) 45%, transparent 80%); animation: sand-gust 13s ease-in-out infinite; }
.sandstorm::before, .sandstorm::after { content: ""; position: absolute; top: 0; bottom: 0; left: -520px; right: 0; background-size: 260px 180px; }
.sandstorm::before { opacity: .7; animation: sand-drift 7s linear infinite; background-image:
  radial-gradient(circle, #a8754a 0 1px, transparent 1.6px), radial-gradient(circle, #b98757 0 1px, transparent 1.6px),
  radial-gradient(circle, #9c6a41 0 1.2px, transparent 1.8px), radial-gradient(circle, #c4935f 0 1px, transparent 1.6px),
  radial-gradient(circle, #a8754a 0 .8px, transparent 1.4px), radial-gradient(circle, #b98757 0 1.2px, transparent 1.8px),
  radial-gradient(circle, #9c6a41 0 1px, transparent 1.6px), radial-gradient(circle, #c4935f 0 .8px, transparent 1.4px);
  background-position: 12px 30px, 70px 120px, 130px 60px, 190px 150px, 230px 20px, 40px 170px, 160px 95px, 100px 10px; }
.sandstorm::after { opacity: .55; animation: sand-drift 3.6s linear infinite; background-image:
  radial-gradient(ellipse 22px 1.2px, rgba(170, 118, 72, .9), transparent), radial-gradient(ellipse 34px 1px, rgba(190, 140, 92, .8), transparent),
  radial-gradient(ellipse 16px 1px, rgba(160, 108, 66, .9), transparent), radial-gradient(ellipse 28px 1.2px, rgba(196, 150, 100, .8), transparent);
  background-position: 20px 140px, 150px 70px, 210px 165px, 90px 110px; }
@keyframes sand-drift { to { transform: translateX(520px); } }
@keyframes sand-gust { 0%, 100% { opacity: .55; } 35% { opacity: .8; } 50% { opacity: 1; } 65% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .sandstorm::before, .sandstorm::after { display: none; } }

/* Tumbleweeds som blåser förbi över dynerna: spannet färdas i sidled, bilden studsar och rullar */
.tumbleweeds { position: absolute; inset: 0; pointer-events: none; }
.tumbleweed { position: absolute; left: 0; transform: translateX(-140px); animation: tw-travel linear infinite; }
.tumbleweed img { display: block; width: 100%; height: auto; animation: tw-bounce ease-in-out infinite, tw-spin linear infinite; }
.tw-1 { bottom: clamp(6px, 1.6vw, 22px); width: clamp(44px, 6vw, 84px); animation-duration: 16s; animation-delay: 1.5s; }
.tw-1 img { animation-duration: .9s, .9s; }
.tw-2 { bottom: clamp(30px, 4.6vw, 62px); width: clamp(26px, 3.4vw, 46px); animation-duration: 23s; animation-delay: 9s; opacity: .85; }
.tw-2 img { animation-duration: .7s, 1.1s; }
@keyframes tw-travel { 0% { transform: translateX(-140px); } 55%, 100% { transform: translateX(calc(100vw + 40px)); } }
@keyframes tw-bounce { 0%, 100% { translate: 0 0; } 45% { translate: 0 -38%; } }
@keyframes tw-spin { to { rotate: 360deg; } }
.hero-logo { width: min(620px, 100%); margin: 0 auto; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--green-ink); margin-top: 12px; }
.hero-loc { padding: 48px 0 32px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red); }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--green-ink); letter-spacing: -.02em; }
.hero h1 em { color: var(--red); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-top: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; justify-content: inherit; }
.nf .hero-cta { justify-content: center; }

.open-badge { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; font-weight: 600; color: var(--muted); }
.open-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #b9ad9f; }
.open-badge.is-open { color: var(--green-2); }
.open-badge.is-open .dot { background: #1fa45a; box-shadow: 0 0 0 0 rgba(31, 164, 90, .5); animation: pulse 2s infinite; }
.open-badge.is-closed { color: var(--red-2); }
.open-badge.is-closed .dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 164, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 164, 90, 0); } }

/* Hero med foto (t.ex. Bromma): bilden ligger bakom, mörkgrön toning för läsbarhet */
.hero-photo { padding: 88px 0 64px; background: var(--green-ink); }
.hero-photo::before { z-index: 1; background: linear-gradient(90deg, rgba(11, 58, 34, .88) 0%, rgba(11, 58, 34, .6) 50%, rgba(11, 58, 34, .2) 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides .hero-bg { opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s ease-out; }
.hero-slides .hero-bg.is-active { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero-slides .hero-bg { transform: none; transition: opacity .6s ease; } }
.hero-photo .hero-grid { z-index: 2; }
.hero-photo .eyebrow { color: #ffd8d9; }
.hero-photo h1 { color: #fff; }
.hero-photo h1 em { color: #ff8f93; }
.hero-photo .lead { color: #e3efe7; }
.hero-photo .btn-ghost { border-color: #fff; color: #fff; }
.hero-photo .btn-ghost:hover { background: #fff; color: var(--green-ink); }
.hero-photo .open-badge { background: rgba(251, 246, 238, .95); padding: .35em .85em; border-radius: 6px; }
.hero-photo .lunch-card { box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }

.lunch-card { background: var(--green); color: #eaf5ee; border-radius: 12px; padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.lunch-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px; background: url(/img/kaktus.png) center/contain no-repeat; opacity: .12; filter: brightness(3); }
.lunch-label { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem; color: #ffd8d9; }
.lunch-price { font-family: var(--serif); font-weight: 800; font-size: 4rem; line-height: 1; color: #fff; margin: 4px 0 6px; }
.lunch-price span { font-size: 1.4rem; margin-left: .2em; }
.lunch-time { font-weight: 600; color: #fff; }
.lunch-card .muted { color: #b9dcc7; }

/* Infobrickor */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 18px; }
.tile { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tile > svg { width: 26px; height: 26px; color: var(--green-2); margin-top: 2px; }
.tile h3 { font-size: 1rem; margin-bottom: 4px; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile-hours { margin: 0; font-size: .95rem; }
.tile-hours dt { color: var(--muted); font-size: .85rem; }
.tile-hours dd { margin: 0 0 6px; font-weight: 700; white-space: nowrap; }
.tile-hours dd:last-child { margin-bottom: 0; }
.offer { display: flex; gap: 16px; align-items: center; background: linear-gradient(120deg, #fff1e6, #ffe3e3); border: 1px dashed #e9a3a5; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 8px; }
.offer-title { font-family: var(--serif); font-weight: 800; font-size: 1.4rem; color: var(--red); margin: 0 0 2px; }
.offer p { margin: 0; }
.offer .small { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* Meny */
.menu { margin-top: 28px; }
.menu-tools { position: sticky; top: 68px; z-index: 20; background: rgba(251, 246, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; max-width: 520px; }
.search svg { color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: 11px 0; width: 100%; color: var(--ink); }
.search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(19, 122, 67, .15); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; scroll-snap-align: start; padding: .42em .95em; border-radius: 6px; background: var(--sand); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; border: 1px solid transparent; }
.cats a:hover { border-color: var(--sand-2); }
.cats a.active { background: var(--ink); color: #fff; }
.menu-body { padding: 8px 0 24px; }
.menu-sec { padding-top: 30px; }
.menu-sec h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--green-ink); margin-bottom: 10px; }
.notes { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.notes li { background: #eaf3ec; color: var(--green-ink); border-radius: 6px; padding: .35em .8em; font-size: .88rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sizes span { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; }
.sizes small { color: var(--muted); font-size: .8rem; }
.sizes b { font-size: 1.15rem; color: var(--red); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.item { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.item:hover { border-color: var(--sand-2); box-shadow: var(--shadow); }
.item h3 { font-size: 1.02rem; font-weight: 700; display: flex; align-items: baseline; gap: .5em; }
.item p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }
.nr { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .35em; border-radius: 6px; background: var(--sand); color: var(--muted); font-size: .78rem; font-weight: 700; flex: none; }
.price { font-weight: 700; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item[hidden], .menu-sec[hidden] { display: none; }
.no-hits { padding: 40px 0; text-align: center; color: var(--muted); }
mark { background: #fff0a8; color: inherit; border-radius: 3px; }

/* Hitta hit */
.find { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: center; padding: 40px 0 56px; }
.find h2 { font-family: var(--serif); font-weight: 800; font-size: 2rem; color: var(--green-ink); margin-bottom: 8px; }
.find-addr { font-size: 1.15rem; font-weight: 600; }
.map { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background:
  repeating-linear-gradient(45deg, var(--sand) 0 14px, var(--sand-2) 14px 15px); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-load { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--green-ink); cursor: pointer; }
.map-load svg { width: 36px; height: 36px; color: var(--red); }
.map-load small { font-weight: 400; color: var(--muted); }

/* Startsidan */
.loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 12px 0 28px; }
.loc-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.loc-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.loc-card h2 { font-family: var(--serif); font-weight: 800; font-size: 2.2rem; color: var(--green-ink); }
.loc-addr, .loc-hours { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--muted); }
.loc-addr svg, .loc-hours svg { color: var(--green-2); margin-top: 3px; }
.loc-facts { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.loc-facts li { background: var(--sand); border-radius: 6px; padding: .3em .85em; font-size: .9rem; }
.loc-facts b { color: var(--red); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-bottom: 56px; }
.perks div { background: var(--sand); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.perks b { font-family: var(--serif); font-size: 1.2rem; color: var(--green-ink); }
.perks span { color: var(--muted); font-size: .92rem; }

/* 404 */
.nf { text-align: center; padding: 72px 0; }
.nf img { margin: 0 auto 16px; }
.nf h1 { font-family: var(--serif); font-size: 2.2rem; color: var(--green-ink); margin-bottom: 8px; }

/* Footer */
.footer { background: var(--green-ink); color: #cfe3d6; padding: 48px 0 24px; }
.footer a { color: #fff; }
.footer h3 { color: #fff; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.footer .muted { color: #9cbfaa; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer-cactus { filter: brightness(1.6) saturate(.8); margin-bottom: 10px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #fff; }
.fb { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #9cbfaa; }

/* Ringknapp i mobil */
.callbar { display: none; }

@media (max-width: 900px) {
  .hero-grid, .find { grid-template-columns: 1fr; gap: 24px; }
  .items { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 170px; }
  .hide-sm { display: none; }
  .topbar-inner { height: 60px; gap: 10px; }
  .brand img { width: 108px; }
  .loc-switch a { padding: .4em .8em; font-size: .9rem; }
  .order-pill { padding: .4em .7em; font-size: .85rem; }
  .order-pill .op-label { display: none; }
  .menu-tools { top: 60px; }
  .hero-loc { padding-top: 28px; }
  .loc-grid { grid-template-columns: 1fr; }
  .loc-card { padding: 20px; }
  .lunch-card { padding: 22px; }
  .lunch-price { font-size: 3.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 96px; }
  .callbar { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: center; gap: .6em; padding: 15px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(182, 31, 36, .35); }
}
/* Pågående beställning i sidhuvudet */
.order-pill { margin-left: auto; display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em .45em .75em; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; min-width: 0; }
.order-pill:hover { border-color: var(--green); }
.order-pill + .loc-switch { margin-left: 0; }
.op-num { font-weight: 700; }
.op-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.op-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; animation: op-pulse 1.6s ease-in-out infinite; }
.order-pill[data-status=cooking] .op-dot, .order-pill[data-status=pending] .op-dot { background: #e0a100; }
.order-pill[data-status=ready] .op-dot, .order-pill[data-status=out] .op-dot { background: var(--green-2); }
.order-pill[data-status=done] .op-dot { background: var(--green-2); animation: none; }
.order-pill[data-status=cancelled] .op-dot { background: var(--muted); animation: none; }
@keyframes op-pulse { 50% { box-shadow: 0 0 0 5px rgba(212, 42, 47, 0); opacity: .55; } }

/* Webbeställning: lägg till-knappar, kundkorg och statussida */
.price-add { display: flex; align-items: center; gap: 10px; }
.add { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font: 700 1.3rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.add:hover { background: var(--green-ink); }
.add-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.add-sizes .add { width: auto; height: auto; border-radius: 999px; padding: .4em .85em; font-size: .85rem; }
.add.is-added { animation: added .5s ease; }
@keyframes added { 40% { transform: scale(1.25); background: var(--red); } }

.cart-bar { position: fixed; z-index: 41; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font: 700 1rem var(--sans); cursor: pointer; box-shadow: 0 10px 30px rgba(11, 58, 34, .35); }
.cart-bar:hover { background: var(--green-ink); }
.cart-bar.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.04); } }
.cart-count { background: #fff; color: var(--green); border-radius: 999px; min-width: 1.8em; padding: 0 .4em; text-align: center; }
.cart-sum { margin-left: auto; }
body.has-cart .callbar { display: none; }
body.has-cart .footer { padding-bottom: 96px; }

.cart { border: 0; padding: 0; margin: 0 0 0 auto; width: min(460px, 100%); height: 100%; max-height: none; max-width: 100%; background: var(--cream); color: var(--ink); }
.cart::backdrop { background: rgba(31, 26, 22, .45); }
.cart-form { display: flex; flex-direction: column; height: 100%; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.cart-head h2 { font-family: var(--serif); font-size: 1.4rem; color: var(--green-ink); }
.cart-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1rem; cursor: pointer; }
.cart-body { flex: 1; overflow: auto; padding: 16px 20px; }
.cart-closed { margin: 0; padding: 12px 14px; border-radius: 8px; background: #fde3e3; color: #8f1418; font-weight: 600; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cart-lines li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.cart-lines .cl-empty { color: var(--muted); text-align: center; padding: 20px; }
.cl-main { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.cl-price { white-space: nowrap; }
.cl-row { display: flex; gap: 10px; align-items: center; }
.cl-qty { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.cl-qty span { min-width: 1.4em; text-align: center; }
.cl-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--sand-2); background: var(--cream); font: 700 1.1rem/1 var(--sans); cursor: pointer; color: var(--ink); }
.cart input, .cart textarea { font: inherit; width: 100%; padding: .6em .75em; border: 1px solid var(--sand-2); border-radius: 8px; background: #fff; color: inherit; min-width: 0; }
.cart input:focus, .cart textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.cl-note { flex: 1; padding: .4em .6em !important; font-size: .9rem !important; }
.cart-type { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-type legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.cart-type label { position: relative; cursor: pointer; }
.cart-type input { position: absolute; opacity: 0; }
.cart-type span { display: grid; padding: 12px; border: 2px solid var(--sand-2); border-radius: 8px; background: #fff; font-weight: 700; }
.cart-type small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.cart-type input:checked + span { border-color: var(--green); background: #eef6f0; }
.cart-type input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.cart-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cart-fields label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.cart-fields label small { font-weight: 400; color: var(--muted); }
.cart-fields .wide, .cart-fields .zone { grid-column: 1 / -1; }
.cart .zone { margin: -4px 0 0; font-weight: 600; font-size: .92rem; color: var(--green-2); }
.cart .zone.is-bad { color: var(--red); }
.cart:not(.is-delivery) .only-delivery { display: none; }
.cart-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cart-totals { margin: 0; display: grid; gap: 2px; }
.cart-totals div { display: flex; justify-content: space-between; }
.cart-totals dd { margin: 0; }
.cart-totals .total { font-weight: 800; font-size: 1.15rem; margin-top: 4px; }
.cart-error { margin: 0; color: var(--red); font-weight: 600; overflow-wrap: anywhere; }
.cart-pay { justify-content: center; border: 0; font-size: 1.05rem; cursor: pointer; }
.cart-pay:disabled { opacity: .5; cursor: default; }
.cart-small { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }

.cart-head { gap: 10px; }
.cart-head h2 { margin-right: auto; }
.cart-back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.cart-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.cart-progress li { padding: .25em .6em; border-radius: 999px; background: var(--sand); }
.cart-progress li.is-on { background: var(--green); color: #fff; }
.cart-step { display: grid; gap: 18px; align-content: start; }
.cart-step[hidden] { display: none; }
.pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pay-summary p { margin: 0; }
.pay-edit { border: 0; background: none; color: var(--green-2); font: 600 .95rem var(--sans); cursor: pointer; text-decoration: underline; }
.pay-express:empty { display: none; }
.pay-or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: .85rem; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; border-top: 1px solid var(--sand-2); }
.pay-or[hidden] { display: none; }
.pay-loading { margin: 0; color: var(--muted); text-align: center; padding: 24px 0; }
.pay-loading[hidden] { display: none; }
@media (max-width: 680px) { .cart-progress { display: none; } }

.order-status { max-width: 620px; padding: 48px 0 72px; }
.order-status h1 { font-family: var(--serif); font-size: 2.1rem; color: var(--green-ink); margin: 6px 0 8px; }
.order-status .lead { margin-top: 0; }
.steps { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: step; }
.steps li { position: relative; padding-top: 14px; border-top: 5px solid var(--sand-2); font-size: .88rem; font-weight: 600; color: var(--muted); }
.steps li.done { border-color: var(--green-2); color: var(--ink); }
.steps li.now { border-color: var(--red); color: var(--ink); }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 16px; margin: 20px 0; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt li:last-child { border-bottom: 0; }
.receipt small { display: block; color: var(--muted); }
.receipt .sum { font-weight: 800; }

@media (max-width: 680px) {
  .cart-bar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cart-fields { grid-template-columns: 1fr; }
  .order-status h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
