:root {
  --bg: #faf7f2;
  --paper: #f2ede4;
  --ink: #1a1714;
  --accent: #c4532e;
  --accent-hover: #ae4927;
  --accent-text: #a84224;
  --line: #e8e2d9;
  --muted: #6f665d;
  --whatsapp: #1f7a4d;
  --whatsapp-hover: #185f3c;
  --open: #2e7d4f;
  --leaf: #2f6b3f;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --p: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  transition: transform 150ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

button:not(:disabled):active {
  transform: scale(0.95);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden],
.hidden {
  display: none !important;
}

.app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
}

/* Hero */

.hero-cover {
  position: relative;
  height: 220px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--on-img);
  background: var(--accent);
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) sepia(0.08) contrast(1.02);
  transform-origin: 60% 40%;
  animation: ken-burns 24s ease-in-out infinite alternate;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.12) 0%, rgba(26, 23, 20, 0.4) 40%, rgba(26, 23, 20, 0.82) 100%);
}

@keyframes ken-burns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-2%, -1.5%, 0);
  }
}

.cover-top,
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-photo {
  transform: translate3d(0, calc(var(--p) * -24px), 0);
}

.hero-copy,
.status-row {
  opacity: calc(1 - var(--p));
  transform: translate3d(0, calc(var(--p) * -12px), 0);
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monogram {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(250, 247, 242, 0.7);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(26, 23, 20, 0.18);
  transition: transform 300ms var(--spring);
}

.monogram:hover {
  transform: scale(1.06);
}

.cover-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cover-sub {
  margin: 6px 0 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.table-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.cover-top .table-pill {
  border-color: rgba(250, 247, 242, 0.7);
  color: var(--on-img);
}

.cover-top .table-pill::before {
  background: var(--on-img);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 24px;
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--open);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--open) 40%, transparent);
  animation: pulse 2s ease-out infinite;
}

.status-dot.is-closed {
  background: var(--muted);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--open) 40%, transparent);
  }
  70% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--open) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--open) 0%, transparent);
  }
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.rating svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.chip {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* Compact bar */

.compact-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  max-width: 480px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  opacity: var(--p);
  transform: translate3d(0, calc((1 - var(--p)) * -100%), 0);
}

.monogram-sm {
  width: 32px;
  height: 32px;
  border-color: var(--ink);
  font-size: 13px;
}

.compact-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-bar .table-pill {
  height: 36px;
  padding: 0 16px;
}

/* Category rail */

.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 24px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  transition: top 300ms ease-out;
}

.rail.is-lowered {
  top: 64px;
}

.rail::-webkit-scrollbar {
  display: none;
}

.pill {
  position: relative;
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pill.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

.rail-indicator {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  pointer-events: none;
  transition: transform 360ms var(--ease-out), width 360ms var(--ease-out);
}

/* Reorder chip */

.reorder-row {
  padding: 16px 24px 0;
}

.reorder-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 200ms ease;
}

.reorder-chip:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Search & filters */

.tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 24px 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box > svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
  outline: none;
  transition: border-color 200ms ease;
}

.search-input:focus {
  border-color: var(--ink);
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.search-clear:hover {
  background: var(--paper);
  color: var(--ink);
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.fchip {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.fchip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.fchip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
}

.empty-results {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

.empty-results p {
  margin: 0;
}

/* Menu content */

.menu {
  padding: 0 24px;
}

.menu-status {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
}

.menu-status p {
  margin: 0 0 16px;
}

.skeleton {
  padding-top: 16px;
}

.sk {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--paper) 0%, var(--line) 50%, var(--paper) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.sk-pills {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 8px;
}

.sk-pill {
  width: 96px;
  height: 36px;
  flex-shrink: 0;
}

.sk-featured {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sk-art {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 14px;
}

.sk-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-line {
  height: 12px;
}

.sk-line-lg {
  height: 18px;
}

.w30 {
  width: 30%;
}

.w40 {
  width: 40%;
}

.w50 {
  width: 50%;
}

.w60 {
  width: 60%;
}

.w70 {
  width: 70%;
}

.w85 {
  width: 85%;
}

.sk-list {
  margin-top: 32px;
}

.sk-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.sk-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.featured-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--paper) 100%);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
}

.featured-card:hover {
  transform: translateY(-2px);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 6px 20px rgba(26, 23, 20, 0.06);
  animation: breathe 4s ease-in-out infinite;
  pointer-events: none;
  transition: box-shadow 300ms ease;
}

.featured-card:hover::after {
  box-shadow: 0 12px 32px rgba(26, 23, 20, 0.12);
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.featured-art {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(26, 23, 20, 0.08), 0 4px 12px rgba(26, 23, 20, 0.1);
}

.featured-body {
  flex: 1;
  min-width: 0;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.featured-name {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.2;
}

.featured-story {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.featured-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.category {
  scroll-margin-top: 140px;
  padding-top: 36px;
}

.category-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.01em;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
}

.ornament .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.ornament .diamond {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-entering .item {
  animation: rise-in 420ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 40ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.item {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 200ms ease;
}

.item:hover {
  opacity: 0.88;
}

.item:hover .thumb {
  transform: scale(1.04);
}

.thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(26, 23, 20, 0.08);
  transition: transform 300ms var(--ease-out);
}

.thumb img,
.featured-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) sepia(0.06) contrast(1.02);
}

.tone-saffron {
  background: radial-gradient(circle at 30% 28%, #f6d89a 0%, #d99b3e 80%);
}

.tone-olive {
  background: radial-gradient(circle at 30% 28%, #c3c98f 0%, #6f7a43 85%);
}

.tone-clay {
  background: radial-gradient(circle at 30% 28%, #e6a98c 0%, #a4533a 85%);
}

.tone-cream {
  background: radial-gradient(circle at 30% 28%, #fbf5ea 0%, #dccaae 85%);
}

.item-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.item-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.item-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 14px;
}

.item-price {
  color: var(--accent-text);
  font-weight: 600;
}

.item-qty {
  color: var(--muted);
  font-size: 13px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.badge svg {
  width: 12px;
  height: 12px;
}

.badge-bestseller {
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
}

.badge-vegetarian {
  border: 1px solid color-mix(in srgb, var(--leaf) 45%, transparent);
  color: var(--leaf);
}

.badge-spicy {
  border: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent);
  color: var(--accent-text);
}

.add {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background-color 200ms ease, transform 150ms var(--ease-out), box-shadow 200ms ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.add:hover,
.btn-add:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

.add:active,
.btn-add:active {
  transform: scale(0.95);
}

.is-pop {
  animation: pop 320ms var(--ease-out);
}

@keyframes pop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.btn-add {
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 200ms ease, transform 150ms ease;
}

.price-large {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
}

.fly-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}

/* Footer */

.site-footer {
  padding: 40px 24px 176px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-rule {
  height: 1px;
  margin-bottom: 36px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-address {
  margin: 8px 0 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.footer-link:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 18%, transparent);
}

.footer-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.footer-link svg {
  width: 16px;
  height: 16px;
}

.footer-credit {
  margin: 32px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cart bar */

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: calc(100% - 32px);
  max-width: 448px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 8px 28px rgba(26, 23, 20, 0.22);
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 400ms var(--spring), opacity 200ms ease, box-shadow 300ms ease;
}

.cart-bar:hover {
  box-shadow: 0 12px 36px rgba(26, 23, 20, 0.28);
}

.cart-bar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.cart-bar-text {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cart {
  flex-shrink: 0;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.btn-cart:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,.42);
}

/* Sheet */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 300ms;
}

.sheet.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, 0.4);
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 280ms ease-in, backdrop-filter 280ms ease-in, -webkit-backdrop-filter 280ms ease-in;
}

.sheet.is-open .scrim {
  opacity: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 400ms ease-out, backdrop-filter 400ms ease-out, -webkit-backdrop-filter 400ms ease-out;
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  max-width: 480px;
  height: 85vh;
  height: 85dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 14px 14px 0 0;
  transform: translateY(100%);
  transition: transform 280ms ease-in;
  outline: none;
}

.sheet.is-open .sheet-panel {
  transform: translateY(0);
  transition: transform 520ms var(--spring);
}

.sheet-grab {
  padding: 12px 0 4px;
  touch-action: none;
  cursor: grab;
}

.sheet-grab::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--line);
}

.sheet.is-open .sheet-panel.is-dragging {
  transition: none;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.sheet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
  -webkit-overflow-scrolling: touch;
}

.text-btn {
  padding: 8px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cart-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.line-name {
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
}

.line-unit {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.line-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.line-total {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stepper button {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 18px;
  line-height: 1;
  border-radius: 999px;
}

.stepper button:hover {
  background: var(--paper);
}

.stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0 0;
}

.total-label {
  font-size: 16px;
  font-weight: 500;
}

.total-value {
  font-size: 22px;
  font-weight: 600;
}

.divider {
  height: 1px;
  margin: 24px 0 0;
  background: var(--line);
}

.order-form {
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.field-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input {
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 16px;
  border-radius: 0;
  outline: none;
  transition: border-color 200ms ease;
}

.field-input::placeholder {
  color: var(--muted);
}

.field-input:focus {
  border-bottom-color: var(--ink);
}

.field-input[readonly] {
  color: var(--muted);
}

.note-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.note-chip {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 200ms ease, border-color 200ms ease;
}

.note-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.form-error {
  min-height: 20px;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent-text);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-fg);
  text-decoration: none;
  transition: background-color 200ms ease, transform 150ms ease, opacity 200ms ease;
}

.btn:active {
  transform: scale(0.95);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-whatsapp {
  background: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-outline {
  width: auto;
  height: 40px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
}

.reveal {
  animation: rise-in 360ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

.success {
  padding: 32px 0 16px;
  text-align: center;
  animation: fade-in 300ms ease-out;
}

.check {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  animation: check-pop 520ms var(--ease-out) both;
}

.check-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
  animation: draw-ring 600ms ease-out forwards;
}

.check-mark {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-mark 400ms ease-out 550ms forwards;
}

@keyframes check-pop {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes draw-ring {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-mark {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
}

.success-no {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.success-number {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
}

.success-note {
  margin: 16px 0 32px;
  color: var(--muted);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-warn {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Language toggle */

.cover-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(250, 247, 242, 0.7);
  border-radius: 999px;
  background: transparent;
  color: var(--on-img);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color 200ms ease;
}

.lang-btn:hover {
  border-color: var(--on-img);
}

.compact-bar .lang-btn {
  height: 32px;
  padding: 0 12px;
  border-color: var(--line);
  color: var(--ink);
}

.compact-bar .lang-btn:hover {
  border-color: var(--ink);
}

/* Pairing suggestions */

.pairs {
  margin-top: 24px;
}

.pairs-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pair-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.pair-row .thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.pair-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.pair-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
}

.pair-add {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.pair-add:hover {
  background: var(--accent-hover);
}

/* Order tracking */

.track-no {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
}

.track-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 20px;
}

.track-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.track-step:last-child::before {
  display: none;
}

.step-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--bg);
}

.track-step.is-done .step-dot {
  border-color: var(--open);
  background: var(--open);
}

.track-step.is-current .step-dot {
  border-color: var(--accent);
}

.track-step.is-current .step-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2s ease-out infinite;
}

.step-label {
  font-size: 15px;
  color: var(--muted);
}

.track-step.is-done .step-label,
.track-step.is-current .step-label {
  color: var(--ink);
  font-weight: 500;
}

.track-step.is-current .step-label {
  color: var(--accent-text);
}

.track-updated {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 481px) {
  body {
    padding: 32px 0;
  }

  .app {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(26, 23, 20, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Extras */

/* Sold out */
.item.is-soldout {
  opacity: 0.55;
}

.item.is-soldout .thumb img {
  filter: grayscale(0.7);
}

.badge-soldout {
  background: var(--ink);
  color: var(--bg);
}

.badge-promo {
  background: var(--open);
  color: var(--accent-fg);
}

.price-old {
  color: var(--muted);
  font-weight: 400;
  text-decoration: line-through;
}

.add:disabled,
.btn-add:disabled,
.pair-add:disabled {
  background: var(--line);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* Closed notice */
.closed-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Cancelled */
.track-cancel {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent);
  border-radius: 12px;
  color: var(--accent-text);
  font-weight: 500;
  text-align: center;
}

/* Admin link */
.footer-admin {
  margin-top: 12px;
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.55;
  text-decoration: none;
}

.footer-admin:hover {
  opacity: 0.9;
}
