@font-face {
  font-family: "HV Carlo Monaco";
  src: url("../assets/fonts/HV-Carlo-Monaco.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0B0F;
  --panel: #15151A;
  --panel-soft: rgba(21, 21, 26, 0.78);
  --panel-glass: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(212, 168, 92, 0.48);
  --gold: #D4A85C;
  --gold-soft: rgba(212, 168, 92, 0.16);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --green: #55B96F;
  --red: #E05B57;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  --header-height: 72px;
  --strip-height: 104px;
  --font-heading: "HV Carlo Monaco", "Cormorant Garamond", serif;
  color-scheme: dark;
}

body.login-locked {
  overflow: hidden;
}

body.login-locked .menu-header,
body.login-locked .search-panel,
body.login-locked .category-strip,
body.login-locked .menu-status,
body.login-locked .menu-layout {
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
}

.cove-login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cove-login-modal[hidden] {
  display: none;
}

.cove-login-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(212, 168, 92, 0.18), transparent 34rem),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cove-login-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 30px;
  border: 1px solid rgba(212, 168, 92, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(21, 21, 26, 0.92), rgba(10, 10, 15, 0.84));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 70px rgba(212, 168, 92, 0.12);
  animation: coveLoginIn 0.32s ease both;
}

@keyframes coveLoginIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cove-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 700;
}

.cove-login-logo {
  width: auto;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cove-login-logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.cove-auth-step h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1;
  color: var(--text);
}

.cove-auth-step p {
  margin: 0 0 22px;
  color: var(--muted);
}

.cove-auth-form {
  display: grid;
  gap: 16px;
}

.cove-auth-form label {
  display: grid;
  gap: 8px;
  color: rgba(243, 239, 230, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.cove-auth-form label[hidden],
.cove-auth-submit[hidden] {
  display: none;
}

.cove-phone-row {
  display: grid;
  grid-template-columns: minmax(102px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
}

.cove-auth-form input,
.cove-auth-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cove-auth-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(243, 239, 230, 0.72) 50%), linear-gradient(135deg, rgba(243, 239, 230, 0.72) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.cove-auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cove-auth-form input:focus,
.cove-auth-form select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(212, 168, 92, 0.12);
}

.cove-auth-submit,
.cove-auth-back {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.cove-auth-submit {
  margin-top: 4px;
  color: #1a120a;
  background: linear-gradient(135deg, var(--gold), #f0cf8a);
  box-shadow: 0 14px 32px rgba(212, 168, 92, 0.28);
}

.cove-auth-submit:hover,
.cove-auth-back:hover {
  transform: translateY(-1px);
}

.cove-auth-submit:disabled,
.cove-auth-back:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.cove-auth-back {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.cove-auth-message {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cove-auth-message.error {
  color: #f3b1ad;
}

.cove-auth-message.success {
  color: #cdeed8;
}

.cove-auth-debug {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
}

.cove-auth-debug summary {
  cursor: pointer;
  color: rgba(243, 239, 230, 0.88);
  font-weight: 800;
}

.cove-auth-debug dl {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cove-auth-debug div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.cove-auth-debug dt {
  color: rgba(243, 239, 230, 0.72);
  font-weight: 700;
}

.cove-auth-debug dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .cove-login-card {
    max-height: calc(100dvh - 24px);
  }

  .cove-phone-row {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at top left, rgba(212, 168, 92, 0.09), transparent 34rem),
    linear-gradient(180deg, #0B0B0F 0%, #08080B 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.menu-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 44px 44px;
  align-items: center;
  gap: 10px;
  padding: 14px max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
  background: rgba(11, 11, 15, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(212, 168, 92, 0.12);
}

.icon-button .logo {
  width: auto;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.icon-button .logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.category-select {
  position: relative;
  min-width: 0;
}

.category-select select {
  width: 100%;
  height: 44px;
  appearance: none;
  border: 1px solid rgba(212, 168, 92, 0.26);
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(212, 168, 92, 0.16), rgba(255, 255, 255, 0.045));
  padding: 0 42px 0 14px;
  outline: 0;
  font-weight: 700;
}

.category-select i {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gold);
}

.veg-toggle {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.veg-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  width: 34px;
  height: 20px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 180ms ease;
}

.toggle-track span {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease;
}

.veg-toggle input:checked + .toggle-track {
  background: rgba(85, 185, 111, 0.76);
}

.veg-toggle input:checked + .toggle-track span {
  transform: translateX(14px);
}

.veg-toggle strong {
  font-size: 13px;
}

.search-panel {
  position: sticky;
  top: var(--header-height);
  z-index: 45;
  padding: 10px 14px;
  background: rgba(11, 11, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.search-box {
  max-width: 1120px;
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(212, 168, 92, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0 14px;
}

.search-box i {
  color: var(--gold);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--faint);
}

#clearSearch {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.category-strip {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  min-height: var(--strip-height);
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.96), rgba(11, 11, 15, 0.82));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

body.search-open .category-strip {
  top: calc(var(--header-height) + 69px);
}

.category-scroll {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar,
.subcategory-list::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 190px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(212, 168, 92, 0.32);
}

.category-card.active {
  color: var(--text);
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(212, 168, 92, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow: 0 14px 34px rgba(212, 168, 92, 0.14);
}

.category-image,
.subcategory-image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.category-image {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.category-image img,
.subcategory-image img,
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 35% 25%, rgba(212, 168, 92, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.category-card span:last-child {
  min-width: max-content;
  max-width: none;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  hyphens: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.menu-status {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.menu-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 14px 72px;
}

.subcategory-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--strip-height) + 18px);
  align-self: start;
  width: 112px;
  max-height: calc(100svh - var(--header-height) - var(--strip-height) - 30px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.search-open .subcategory-sidebar {
  top: calc(var(--header-height) + var(--strip-height) + 87px);
  max-height: calc(100svh - var(--header-height) - var(--strip-height) - 99px);
}

.subcategory-list {
  max-height: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-width: none;
}

.subcategory-card {
  min-height: 92px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.subcategory-card:hover,
.subcategory-card.active {
  color: var(--text);
  border-color: rgba(212, 168, 92, 0.38);
  background: var(--gold-soft);
}

.subcategory-card:hover {
  transform: translateY(-1px);
}

.subcategory-image {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.subcategory-card strong {
  max-width: 88px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.13;
  overflow-wrap: anywhere;
}

.menu-content {
  min-width: 0;
}

.subcategory-section {
  scroll-margin-top: calc(var(--header-height) + var(--strip-height) + 18px);
  padding: 0 0 34px;
}

body.search-open .subcategory-section {
  scroll-margin-top: calc(var(--header-height) + var(--strip-height) + 87px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text);
}

.section-heading span {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.menu-card {
  position: relative;
  min-height: 176px;
  display: grid;
  grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  text-align: left;
  overflow: hidden;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(212, 168, 92, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 190ms ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 92, 0.36);
  box-shadow: var(--shadow);
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card.unavailable {
  opacity: 0.82;
  border-color: rgba(226, 106, 106, 0.35);
}

.menu-card.unavailable .menu-card-image img {
  filter: grayscale(0.35) brightness(0.72);
}

.menu-card-image {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 148px;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background:
    radial-gradient(circle at 35% 25%, rgba(212, 168, 92, 0.18), transparent 44%),
    rgba(255, 255, 255, 0.055);
}

.menu-card-image img,
.menu-card-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.menu-card-image img {
  object-fit: cover;
  transition: transform 220ms ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.04);
}

.menu-card-image-fallback {
  background:
    radial-gradient(circle at 36% 28%, rgba(212, 168, 92, 0.28), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #15151A;
}

.menu-card-details {
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.card-top,
.card-title-line,
.card-footer {
  position: relative;
  z-index: 1;
}

.card-top,
.card-title-line,
.card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-title-line {
  align-items: center;
}

.card-indicator {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.food-dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1.8px solid var(--green);
  border-radius: 4px;
}

.food-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.food-dot.nonveg {
  border-color: var(--red);
}

.food-dot.nonveg::after {
  background: var(--red);
}

.tap-hint {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.price {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.description {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1B1309;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.sold-out {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.badge.nonveg {
  color: var(--text);
  background: rgba(224, 91, 87, 0.62);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.card-footer {
  margin-top: auto;
  align-items: center;
}

.know-more {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.empty-state,
.error-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  text-align: center;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.loading-card {
  height: 168px;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -220%;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal[hidden] {
  display: none;
}

.modal-shell {
  position: relative;
  width: min(900px, 100%);
  max-height: min(760px, calc(100svh - 44px));
}

.modal-card {
  width: 100%;
  max-height: inherit;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1fr;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(212, 168, 92, 0.28);
  border-radius: 24px;
  background: rgba(21, 21, 26, 0.94);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
}

.modal-image {
  min-height: 430px;
  background: rgba(255, 255, 255, 0.045);
}

.modal-image.no-image {
  display: none;
}

.modal-content {
  min-width: 0;
  overflow: visible;
  padding: 30px;
}

.modal-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.modal-title-row h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.modal-title-row strong {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.modal-content p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.detail-list div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-list dt {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.whatsapp-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 16px;
  color: #171006;
  background: linear-gradient(135deg, var(--gold), #F2D38F);
  text-decoration: none;
  font-weight: 900;
}

#modalDescription {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.whatsapp-button.disabled,
.whatsapp-button[aria-disabled="true"] {
  pointer-events: none;
  color: #f3efe6;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(226, 106, 106, 0.42);
}

@media (max-width: 900px) {
  :root {
    --strip-height: 100px;
  }

  .menu-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .subcategory-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--strip-height));
    z-index: 35;
    width: auto;
    max-height: none;
    border-radius: 18px;
  }

  body.search-open .subcategory-sidebar {
    top: calc(var(--header-height) + var(--strip-height) + 69px);
    max-height: none;
  }

  .subcategory-list {
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    padding: 9px;
  }

  .subcategory-card {
    flex: 0 0 92px;
  }

  .subcategory-section,
  body.search-open .subcategory-section {
    scroll-margin-top: 250px;
  }
}

@media (max-width: 720px) {
  :root {
    --strip-height: 122px;
  }

  .menu-header {
    grid-template-columns: 42px minmax(0, 1fr) auto 42px;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .veg-toggle {
    min-width: 76px;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
  }

  .veg-toggle strong {
    display: block;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
  }

  .category-card {
    flex: 0 0 clamp(188px, 52vw, 224px);
    min-width: 188px;
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .category-image {
    flex: 0 0 58px;
    width: 58px;
    height: 66px;
    border-radius: 14px;
  }

  .category-card span:last-child {
    flex: 1 0 96px;
    min-width: 96px;
    max-width: none;
    font-size: 14px;
    line-height: 1.22;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
    hyphens: none;
    text-wrap: pretty;
  }

  .items-grid,
  .loading-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 164px;
    grid-template-columns: minmax(126px, 36%) minmax(0, 1fr);
    gap: 12px;
  }

  .menu-card-image {
    min-height: 136px;
  }

  .menu-card-details {
    gap: 10px;
  }

  .modal {
    padding: 12px;
  }

  .modal-shell {
    max-height: calc(100svh - 24px);
  }

  .modal-card {
    max-height: inherit;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .modal-image {
    min-height: 240px;
    max-height: 320px;
  }

  .modal-content {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  :root {
    --strip-height: 128px;
  }

  .menu-header {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .veg-toggle {
    min-width: 70px;
    padding: 0 6px;
  }

  .category-select select {
    padding-left: 11px;
    font-size: 13px;
  }

  .category-strip {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .category-scroll {
    gap: 12px;
    padding-bottom: 6px;
  }

  .category-card {
    flex: 0 0 176px;
    min-width: 176px;
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
  }

  .category-image {
    flex-basis: 54px;
    width: 54px;
    height: 62px;
    border-radius: 13px;
  }

  .category-card span:last-child {
    flex: 1 0 90px;
    min-width: 90px;
    max-width: none;
    font-size: 13px;
    line-height: 1.22;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
    hyphens: none;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading span {
    display: none;
  }

  .menu-card {
    grid-template-columns: minmax(106px, 35%) minmax(0, 1fr);
    gap: 10px;
    min-height: 146px;
    padding: 10px;
  }

  .menu-card-image {
    width: auto;
    min-height: 126px;
    aspect-ratio: auto;
    border-radius: 13px;
  }

  .menu-card-details {
    gap: 7px;
  }

  .card-title-line {
    align-items: flex-start;
    gap: 8px;
  }

  .menu-card h3 {
    font-size: 14px;
    line-height: 1.22;
  }

  .price {
    font-size: 20px;
  }

  .tap-hint {
    font-size: 10px;
  }

  .description {
    font-size: 12px;
    line-height: 1.36;
  }
}

@media (max-width: 360px) {
  .menu-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .menu-card-image {
    min-height: 120px;
  }

  .card-top {
    gap: 6px;
  }

  .tap-hint {
    font-size: 9px;
  }

  .badge {
    min-height: 21px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .menu-card h3 {
    font-size: 13px;
  }

  .price {
    font-size: 18px;
  }
}
