:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#20211f;
  background:#f7f7f4;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  --accent:#aa8e6e;
  --accent-rgb:170,142,110;
  --surface:#fff;
  --ink:#20211f;
  --muted:#85877f;
  --line:#e9e9e4;
  --page:#f7f7f4;
  --topbar-h:66px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  min-width:320px;
  min-height:100vh;
  background:var(--page);
  color:var(--ink);
}

button {
  font:inherit;
  color:inherit;
}

.hidden {
  display:none!important;
}

body[data-brand=tema] {
  --accent:#aa8e6e;
  --accent-rgb:170,142,110;
  --page:#f7f7f5;
  --surface:#fff;
  --ink:#20211f;
  --muted:#85877f;
  --line:#e9e9e4;
}

body[data-brand=mazza] {
  --accent:#967448;
  --accent-rgb:150,116,72;
  --page:#f5eee3;
  --surface:#fffaf2;
  --ink:#342b22;
  --muted:#756657;
  --line:#e6dacb;
}

.chooser {
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:36px 22px;
  background:radial-gradient(ellipse at 50% 0%,rgba(149,131,91,.18),transparent 58%),#111510;
  color:#f6f4ef;
  text-align:center;
}

.chooser-mark {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin-bottom:30px;
  border:1px solid rgba(202,172,126,.65);
  border-radius:50%;
  font:22px Georgia,serif;
  color:#c9ad85;
}

.chooser-mark span {
  color:#72796c;
}

.eyebrow {
  margin:0 0 12px;
  color:var(--accent);
  font-size:10px;
  font-weight:800;
  letter-spacing:.19em;
  text-transform:uppercase;
}

.chooser .eyebrow {
  color:#c9ad85;
}

.chooser h1 {
  margin:0 0 30px;
  font:500 clamp(32px,6vw,46px)/1.05 Georgia,serif;
  letter-spacing:-.03em;
}

.chooser-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:min(420px,100%);
}

.place {
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 21px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:15px;
  background:rgba(255,255,255,.055);
  color:#f7f5ef;
  cursor:pointer;
  font-weight:850;
  letter-spacing:.12em;
  transition:transform .18s,border-color .18s,background .18s;
}

.place:hover,.place:focus-visible {
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.38);
  outline:none;
  background:rgba(255,255,255,.09);
}

.place-tema .place-arrow {
  color:#c9ad85;
}

.place-mazza .place-arrow {
  color:#d7b98e;
}

.place-arrow {
  font-size:21px;
}

.menu-app {
  min-height:100vh;
}

.topbar {
  height:var(--topbar-h);
  position:sticky;
  z-index:20;
  top:0;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 22px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}

.back-button {
  width:36px;
  height:36px;
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}

body[data-single-place] .back-button {
  display:none;
}

.brand {
  font-weight:850;
  letter-spacing:.12em;
}

.brand small {
  display:block;
  margin-top:3px;
  color:var(--accent);
  font-size:9px;
  letter-spacing:.19em;
}

.topbar-actions {
  display:flex;
  align-items:center;
  gap:16px;
  margin-left:auto;
}

.service-charge {
  color:var(--accent);
  font-size:12px;
  font-weight:750;
}

.languages {
  display:flex;
  gap:3px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:9px;
}

.languages button {
  min-width:36px;
  height:30px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.languages button.active {
  background:var(--accent);
  color:#fff;
}

body[data-brand=mazza] .languages button.active {
  color:#fff;
}

.layout {
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
  min-height:calc(100vh - var(--topbar-h));
}

.sidebar {
  position:sticky;
  top:var(--topbar-h);
  height:calc(100vh - var(--topbar-h));
  display:flex;
  flex-direction:column;
  padding:24px 15px 18px;
  border-right:1px solid var(--line);
  background:var(--surface);
}

.section-list {
  display:grid;
  gap:5px;
  overflow:auto;
}

.section-button {
  display:flex;
  align-items:center;
  width:100%;
  min-height:48px;
  padding:0 15px;
  border:0;
  border-radius:11px;
  background:transparent;
  text-align:left;
  cursor:pointer;
  font-size:14px;
}

.section-button:hover {
  background:rgba(var(--accent-rgb),.1);
}

.section-button.active {
  background:var(--accent);
  color:#fff;
  font-weight:750;
}

body[data-brand=mazza] .section-button.active {
  color:#fff;
}

.sidebar-service {
  margin-top:auto;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.content {
  width:100%;
  max-width:1480px;
  margin:0 auto;
  padding:26px 32px 50px;
}

.menu-heading {
  margin:0 0 22px;
}

.menu-heading .eyebrow {
  margin-bottom:8px;
}

.menu-heading h1 {
  margin:0;
  font:500 32px/1.1 Georgia,serif;
}

.category-nav {
  position:sticky;
  top:var(--topbar-h);
  z-index:12;
  display:flex;
  gap:8px;
  margin:0 -32px 20px;
  padding:12px 32px;
  overflow:auto;
  border-bottom:1px solid var(--line);
  background:var(--page);
  scrollbar-width:none;
}

.category-nav::-webkit-scrollbar {
  display:none;
}

.category-button {
  flex:0 0 auto;
  padding:9px 13px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  color:var(--muted);
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.category-button.active {
  border-color:rgba(var(--accent-rgb),.55);
  background:rgba(var(--accent-rgb),.13);
  color:var(--accent);
}

.category-sections {
  display:block;
}

.products {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}

.product-card {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--surface);
  cursor:pointer;
  text-align:left;
  transition:transform .18s,box-shadow .18s;
}

.product-card:hover {
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(0,0,0,.1);
}

.product-card img {
  display:block;
  width:100%;
  height:206px;
  object-fit:cover;
  background:rgba(var(--accent-rgb),.08);
}

.product-copy {
  display:flex;
  min-width:0;
  min-height:104px;
  flex-direction:column;
  gap:6px;
  padding:13px 14px 15px;
}

.product-name {
  display:block;
  min-width:0;
  overflow:hidden;
  margin:0;
  font-size:14px;
  line-height:1.35;
  font-weight:750;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.product-price {
  display:block;
  color:var(--accent);
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

.status {
  padding:32px 12px;
  color:var(--muted);
  text-align:center;
  font-size:14px;
}

.status.error {
  color:#bd553e;
}

.category-section {
  scroll-margin-top:calc(var(--topbar-h) + 64px);
}

.category-title {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin:26px 0 13px;
  font-size:20px;
}

.category-title span {
  color:var(--muted);
  font-size:12px;
}

.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:40;
  background:rgba(0,0,0,.58);
  opacity:0;
  visibility:hidden;
  transition:.2s;
}

.product-modal {
  position:fixed;
  z-index:41;
  top:50%;
  left:50%;
  width:min(560px,calc(100vw - 28px));
  max-height:calc(100vh - 30px);
  overflow:auto;
  transform:translate(-50%,-46%);
  border-radius:20px;
  background:var(--surface);
  opacity:0;
  visibility:hidden;
  transition:.2s;
}

.modal-backdrop.open,.product-modal.open {
  opacity:1;
  visibility:visible;
}

.product-modal.open {
  transform:translate(-50%,-50%);
}

.product-modal img {
  display:block;
  width:100%;
  max-height:340px;
  object-fit:cover;
  background:rgba(var(--accent-rgb),.08);
}

.modal-copy {
  padding:20px;
}

.modal-copy h2 {
  margin:0 0 12px;
  font:500 26px/1.15 Georgia,serif;
}

.modal-description {
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.modal-price {
  margin-top:16px;
  color:var(--accent);
  font-weight:850;
}

.modal-close {
  position:absolute;
  top:11px;
  right:11px;
  z-index:2;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:var(--surface);
  font-size:23px;
  cursor:pointer;
}

.empty-category {
  grid-column:1/-1;
  padding:25px;
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--muted);
}

@media(max-width:900px) {
  .layout {
    grid-template-columns:230px minmax(0,1fr);
  }
  .products {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .content {
    padding:24px;
  }
  .category-nav {
    margin:0 -24px 18px;
    padding:11px 24px;
  }
}

@media(max-width:650px) {
  .chooser-options {
    grid-template-columns:1fr;
    width:min(340px,100%);
  }
  .place {
    min-height:70px;
  }
  .topbar {
    height:60px;
    padding:0 12px;
    gap:10px;
  }
  .brand {
    font-size:13px;
  }
  .service-charge {
    display:none;
  }
  .languages {
    gap:0;
  }
  .languages button {
    min-width:31px;
    height:28px;
    font-size:10px;
  }
  .layout {
    display:block;
    min-height:calc(100vh - 60px);
  }
  .sidebar {
    position:static;
    width:100%;
    height:auto;
    padding:0;
    border-right:0;
    background:var(--surface);
  }
  .section-list {
    display:flex;
    gap:7px;
    padding:10px 12px;
    overflow-x:auto;
    border-bottom:1px solid var(--line);
    scrollbar-width:none;
  }
  .section-list::-webkit-scrollbar {
    display:none;
  }
  .section-button {
    width:auto;
    min-height:37px;
    flex:0 0 auto;
    padding:0 12px;
    border:1px solid var(--line);
    border-radius:9px;
    white-space:nowrap;
    font-size:12px;
  }
  .sidebar-service {
    margin:0;
    border:0;
    border-radius:0;
    padding:9px 14px;
    border-bottom:1px solid var(--line);
    color:var(--ink);
  }
  .content {
    padding:22px 14px 36px;
  }
  .menu-heading h1 {
    font-size:28px;
  }
  .category-nav {
    top:60px;
    margin:0 -14px 15px;
    padding:10px 14px;
  }
  .products {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .product-card {
    border-radius:13px;
  }
  .product-card img {
    height:auto;
    aspect-ratio:4/3;
  }
  .product-copy {
    min-height:87px;
    padding:10px;
  }
  .product-name {
    font-size:12px;
  }
  .product-price {
    font-size:12px;
  }
  .category-title {
    font-size:18px;
  }
  .category-section {
    scroll-margin-top:112px;
  }
}

@media(max-width:380px) {
  .product-card img {
    height:130px;
  }
  .brand small {
    font-size:8px;
  }
}
