html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
/*END OF CSS RESET*/
:root {
  /* --primary-color stays the single override point for menu-themes/*.css —
     dark.css and warm.css only redefine this one variable, so every other
     token below is derived from it with color-mix() to keep those themes
     working without edits. */
  --primary-color: #dc2626;
  --color-on-primary: #ffffff;
  --color-accent: #a16207;
  --color-on-accent: #ffffff;
  --color-background: #fef2f2;
  --color-surface: #ffffff;
  --color-foreground: #2b1c1c;
  --color-muted: #6b5b5b;
  --color-border: #f1d9d9;

  --primary-color-hover: color-mix(in srgb, var(--primary-color) 88%, black);
  --primary-color-soft: color-mix(in srgb, var(--primary-color) 12%, white);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary-color) 35%, transparent);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.14);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
}
html {
  background-color: var(--color-background);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
.increaseMealCount:focus-visible,
.decreaseMealCount:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
@font-face {
  font-family: "Yekan Bakh Fat";
  src: url("../fonts/YekanBakh-Fat.eot");
  src: local("../fonts/YekanBakh-Fat"),
    url("../fonts/YekanBakh-Fat.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Fat.woff2") format("woff2"),
    url("../fonts/YekanBakh-Fat.woff") format("woff"),
    url("../fonts/YekanBakh-Fat.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Medium.eot");
  src: local("../fonts/YekanBakh-Medium"),
    url("../fonts/YekanBakh-Medium.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Medium.woff2") format("woff2"),
    url("../fonts/YekanBakh-Medium.woff") format("woff"),
    url("../fonts/YekanBakh-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Bold.eot");
  src: local("../fonts/YekanBakh-Bold"),
    url("../fonts/YekanBakh-Bold.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Bold.woff2") format("woff2"),
    url("../fonts/YekanBakh-Bold.woff") format("woff"),
    url("../fonts/YekanBakh-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Light.eot");
  src: local("../fonts/YekanBakh-Light"),
    url("../fonts/YekanBakh-Light.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Light.woff2") format("woff2"),
    url("../fonts/YekanBakh-Light.woff") format("woff"),
    url("../fonts/YekanBakh-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Heavy.eot");
  src: local("../fonts/YekanBakh-Heavy"),
    url("../fonts/YekanBakh-Heavy.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Heavy.woff2") format("woff2"),
    url("../fonts/YekanBakh-Heavy.woff") format("woff"),
    url("../fonts/YekanBakh-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Thin.eot");
  src: local("../fonts/YekanBakh-Thin"),
    url("../fonts/YekanBakh-Thin.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Thin.woff2") format("woff2"),
    url("../fonts/YekanBakh-Thin.woff") format("woff"),
    url("../fonts/YekanBakh-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Regular.eot");
  src: local("../fonts/YekanBakh-Regular"),
    url("../fonts/YekanBakh-Regular.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Regular.woff2") format("woff2"),
    url("../fonts/YekanBakh-Regular.woff") format("woff"),
    url("../fonts/YekanBakh-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh Hairline";
  src: url("../fonts/YekanBakh-Hairline.eot");
  src: local("../fonts/YekanBakh-Hairline"),
    url("../fonts/YekanBakh-Hairline.eot?#iefix") format("embedded-opentype"),
    url("../fonts/YekanBakh-Hairline.woff2") format("woff2"),
    url("../fonts/YekanBakh-Hairline.woff") format("woff"),
    url("../fonts/YekanBakh-Hairline.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

body {
  direction: rtl;
  font-size: 16px;
  font-family: var(--font-family-base, "Yekan Bakh");
  font-weight: normal;
  color: var(--color-foreground);
  line-height: 1.6;
}
*::-webkit-scrollbar {
  display: initial;
  -webkit-appearance: none;
  width: 7px;
}
*::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.35);
  -webkit-box-shadow: 0 0 1px #3a3a3a;
}
/* HEADER */
header {
  padding-bottom: 0.5rem;
}
header > a {
  display: block;
  width: 10%;
  margin: 1rem auto 0 auto;
  text-align: center;
  background-color: var(--primary-color);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}
header > a:hover {
  transform: translateY(-1px);
}
header > a img {
  width: 4rem;
}
/* FOOTER */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  /* currentColor-based so this reads correctly under menu-themes/*.css too,
     which only redefine body's `color`, not a dedicated border token. */
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  margin-top: 2rem;
}
/* One wrapping, centered row (copyright · designer credit · AI tagline) instead of three
   full-width stacked blocks — on a restaurant with only one or two dishes, the old footer
   was taller than the menu it sat under. */
.footerCredit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, currentColor 55%, transparent);
  text-align: center;
}
.footerCredit > span:not(:last-child)::after {
  content: "·";
  margin-inline-start: 0.75rem;
  color: color-mix(in srgb, currentColor 35%, transparent);
}
.createdBy a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}
.createdBy a:hover {
  color: var(--primary-color-hover);
}
/* SHARED STYLES */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-container {
  /* Neutral by default: the previous hard-coded storefront photo belonged to one
     specific restaurant and was being shown on every tenant's public page. */
  background: linear-gradient(#00000082, #000000c7);
  background-color: #2b2b2b;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  height: 70dvh;
  margin: 0;
}

.main-container > div {
  position: absolute;
  top: 10rem;
  left: 50%;
  width: 85%;
  height: 30dvh;
  transform: translate(-50%, -50%);
  background-color: #ffffffe8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.main-container > div > h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-foreground);
  text-align: center;
}

.main-container > div > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  overflow-y: auto;
  width: 100%;
}

.main-container > div > div > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-foreground);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  cursor: pointer;
}

.main-container > div > div > a:hover,
.main-container > div > div > a:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.hidden {
  display: none !important;
}
/* Present for assistive tech, invisible for everyone else — unlike .hidden's display:none,
   which would pull the element (and any aria-live announcement written into it) out of the
   accessibility tree entirely. Standard clip-based visually-hidden pattern. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* END OF SHARED STYLES */

.resaurant {
  font-size: 1.35rem;
  font-weight: 600;
}
.restaurantMenu {
  font-size: 1rem;
  line-height: normal;
  font-weight: 600;
}
.category-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.category-swiper-container {
  width: 90%;
  margin: 1rem auto 0 auto;
}
.scrolledSwiper {
  position: sticky;
  top: 0;
  z-index: 85;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  width: 100%;
  margin: 0;
}
.category-swiper-container.scrolledSwiper .category-slide {
  justify-content: center;
  gap: 0.5rem;
}
.category-swiper-container.scrolledSwiper .category-slide > img {
  width: 1.5rem;
}
.category-swiper-container.scrolledSwiper .category-slide > span {
  font-size: 0.9rem;
  width: 100%;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.category-swiper-container.scrolledSwiper .swiper-slide:has(.category-slide) {
  height: fit-content;
  border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 0;
}
.category-swiper-container.scrolledSwiper .category-btns {
  display: none;
}
.swiper-slide:has(.category-slide) {
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  height: 6rem;
  padding: 0.5rem 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}
.swiper-slide:has(.category-slide):hover {
  box-shadow: var(--shadow-sm);
}
/* Swiper marks the currently-centered slide with .swiper-slide-active; use it
   to show which category the diner is browsing without any JS changes. */
.swiper-slide-active:has(.category-slide) {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color) inset;
}
.swiper-slide-active .category-slide > span {
  color: var(--primary-color);
  font-weight: 700;
}
.category-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
}
.category-slide > img {
  width: 3rem;
  height: auto;
  object-fit: contain;
}
/* Swapped in by script.js when a chip's image (and its full-size fallback) both fail to
   load — seeded junk data ("string" instead of a real path) rather than a real 404, so
   retrying gains nothing. A first-letter monogram beats a permanent broken-image icon. */
.category-slide__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-color-soft);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}
.category-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: rotate(180deg);
  margin-top: 0.5rem;
}
.category-button-next,
.category-button-prev {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
}
.category-button-next:hover,
.category-button-prev:hover {
  background-color: color-mix(in srgb, currentColor 8%, transparent);
}
.category-button-next > img,
.category-button-prev > img {
  width: 1.5rem;
  display: block;
}
.category-button-next.swiper-button-disabled,
.category-button-prev.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.category-button-next.swiper-button-disabled:hover,
.category-button-prev.swiper-button-disabled:hover {
  background-color: transparent;
}
.all-meals-container {
  display: flex;
  justify-content: space-between;
  width: 85%;
  margin: 0 auto;
}
.all-meals-container > div:first-of-type {
  width: 73%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.basket-full-page.desktopView {
  position: sticky;
  top: 5.5rem;
  height: fit-content;
  width: 25%;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  max-height: 25rem;
  z-index: 80;
}
.category-meal-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}
.category-meal-container > h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
}
.category-meal-container > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}
.meal-container {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.meal-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.meal-container > div:first-of-type {
  width: 100%;
  height: 70%;
  max-height: 288px;
  overflow: hidden;
  background-color: color-mix(in srgb, currentColor 5%, transparent);
}
.meal-container > div:first-of-type > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.meal-container:hover > div:first-of-type > img {
  transform: scale(1.04);
}
.meal-container > div:last-of-type {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}
.meal-container > div:last-of-type > h3 {
  font-weight: 600;
  font-size: 1.05rem;
}
.meal-container > div:last-of-type > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meal-container > div:last-of-type > div > span {
  font-weight: 700;
  color: var(--color-accent);
}
.meal-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.increaseMealCount,
.decreaseMealCount {
  /* These are real <button>s (for keyboard/screen-reader access — see aria-label on the
     markup), so the UA button stylesheet needs resetting to keep the exact circular chip
     look the old <span> had: no default background, no default padding, no default font. */
  appearance: none;
  background: none;
  padding: 0;
  font-family: inherit;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  color: var(--primary-color);
  width: 2.75rem;
  height: 2.75rem;
}
.increaseMealCount,
.decreaseMealCount,
.mealCount {
  user-select: none;
}
.increaseMealCount:hover,
.decreaseMealCount:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--color-on-primary);
}
.increaseMealCount:active,
.decreaseMealCount:active {
  transform: scale(0.92);
}
.mealCount {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}
.meal-full-page {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  height: 80%;
  transition: all 0.3s ease-in-out;
  display: none;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.meal-full-page > div:first-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  height: 3%;
}
.share img {
  filter: invert(0.5);
  width: 100%;
  display: block;
}
.close-btn,
.share {
  /* Real <button>s now (keyboard/screen-reader access), so the UA button stylesheet needs
     resetting — same reasoning as .increaseMealCount/.decreaseMealCount above. The
     width + padding + content-box combination is unchanged from when this sized the <img>
     directly; on the button it doubles as the tap target, landing close to the 44px minimum. */
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  width: 1.5rem;
  padding: 0.6rem;
  box-sizing: content-box;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.close-btn:hover,
.share:hover {
  background-color: color-mix(in srgb, currentColor 8%, transparent);
}
.meal-full-page > div:nth-child(2) {
  overflow: hidden scroll;
  height: 92%;
}
.meal-full-page > div:nth-child(2) > div:first-of-type {
  width: 100%;
  transition: all 0.2s ease-in-out;
}
.meal-full-page > div:nth-child(2) > div:first-of-type > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}
.meal-full-page > div:nth-child(2) > div:last-of-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
}
.meal-full-page > div:nth-child(2) > div:last-of-type > h3 {
  font-size: 1.4rem;
  font-weight: bold;
}
.meal-full-page > div:nth-child(2) > div:last-of-type > span {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.1rem;
}
.meal-full-page > div:nth-child(2) > div:last-of-type > p {
  width: 100%;
  color: color-mix(in srgb, currentColor 75%, transparent);
  line-height: 1.7;
}
.meal-full-page > div:last-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  height: 5%;
}
.meal-full-page > div:last-of-type > div:first-of-type {
  background-color: var(--primary-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--color-on-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.meal-full-page > div:last-of-type > div:first-of-type:hover {
  background-color: var(--primary-color-hover);
}
.meal-full-page > div:last-of-type > div:first-of-type:active {
  transform: scale(0.97);
}
.meal-full-page-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  display: none;
  background-color: #0000008a;
  backdrop-filter: blur(2px);
  z-index: 90;
}
.basket-container {
  /* Real <button> now (keyboard/screen-reader access) — reset the UA button stylesheet so
     it still reads as the same full-width bar it was as a <div>. */
  appearance: none;
  border: none;
  font-family: inherit;
  text-align: inherit;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100dvw;
  height: 4rem;
  background-color: var(--primary-color);
  color: var(--color-on-primary);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  z-index: 100;
}
.basket-container > div:first-of-type {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 40%;
}
.basket-container > div:first-of-type > img {
  width: 1.5rem;
  filter: invert(1);
}
.basket-container > div:last-of-type {
  width: 15%;
  background: #ffffff30;
  border-radius: var(--radius-pill);
  padding: 0.5rem;
  text-align: center;
  font-weight: 700;
}
.basket-full-page {
  position: fixed;
  top: 0;
  left: -1000%;
  width: 100dvw;
  height: 100dvh;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  z-index: 110;
}
.basket-full-page > div:first-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.basket-full-page > div:first-of-type > div {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.5rem;
}
.basket-full-page > div:first-of-type > div img {
  width: 1.5rem;
}
.added-food-list {
  overflow: hidden scroll;
  /* flex:1 instead of a fixed percentage — .basket-full-page is already a column flexbox,
     and this row now has two new siblings below it (.delete-basket, .basket-undo-bar) whose
     heights a percentage split can't account for. Letting flex distribute the remaining
     space is the layout this container was already using; min-height:0 is required for a
     flex child to actually shrink and scroll instead of overflowing its parent. */
  flex: 1 1 auto;
  min-height: 0;
}
.added-food-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 6%, transparent);
}
.added-food-list > div > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.added-food-list > div > div:first-of-type > span:first-of-type {
  font-weight: 700;
}
.added-food-list > div > div:first-of-type > span:last-of-type {
  color: var(--color-accent);
  font-weight: 600;
}
.basket-full-page > div:last-of-type {
  border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-weight: bold;
}
.final-price {
  font-weight: bolder;
  font-size: 1.15rem;
  color: var(--primary-color);
}
.checkout-entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-color);
  color: var(--color-on-primary);
  font-weight: 600;
  transition: transform var(--transition-fast);
}
.checkout-entry-btn:hover {
  transform: translateY(-1px);
}
.basket-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.close-basket-btn {
  /* Real <button> now (keyboard/screen-reader access) wrapping the close icon — same reset
     reasoning as .share/.close-btn in style.css above. */
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  width: 1.5rem;
  padding: 0.6rem;
  box-sizing: content-box;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.close-basket-btn:hover {
  background-color: color-mix(in srgb, currentColor 8%, transparent);
}
.close-basket-btn img {
  width: 100%;
  display: block;
}
/* Deliberately NOT in .basket-options any more, and deliberately NOT icon-sized — this used
   to be a same-size, same-styling icon 8px from "close", which is exactly the mistake that
   let a diner wipe a whole order while reaching to dismiss the sheet. A quiet, full-width
   text link below the item list reads as a distinct, lower-frequency action instead of a
   twin of the dismiss button. */
.delete-basket {
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  min-height: 44px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: color-mix(in srgb, red 55%, var(--color-muted));
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.delete-basket:hover {
  background-color: color-mix(in srgb, red 8%, transparent);
}
.basket-undo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.basket-undo-btn {
  appearance: none;
  border: none;
  background: var(--primary-color);
  color: var(--color-on-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  min-height: 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.basket-container {
  display: none;
}
.scroll-to-top {
  /* Real <button> now (keyboard/screen-reader access) — reset the UA button stylesheet;
     everything else below is unchanged from when this was a styled <div>. */
  appearance: none;
  border: none;
  font-family: inherit;
  color: inherit;
  padding: 0;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  z-index: 82;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}
.scroll-to-top:hover {
  transform: translateY(-2px);
}
/* RESPONSIVE */
@media screen and (max-width: 600px) {
  header > a {
    width: 20%;
  }

  header > a img {
    width: 3rem;
  }

  .main-container > div > h2 {
    font-size: 1.3rem;
  }

  .main-container > div > div > div {
    font-size: 1rem;
  }

  footer {
    /* footer's only children now are the always-row .footerCredit (and, for a custom
       template, .tpl-footer-inner above it) — neither needs the old 3-block column stack,
       which was sized for the three separate divs .footerCredit has since replaced. */
    padding-top: 0;
  }
  /* .category-meal-container > div {
    grid-template-columns: repeat(1, 1fr);
  } */
  /* # new style start */
  .category-meal-container > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    /* Equal-height cards across a row. Grid already stretches items by default; saying so
       explicitly is what the old "min-height: 100%" on the card was reaching for. That
       percentage resolved against the grid row here, but a custom theme that swaps this
       container to a flex column (see custom-themes/*/meals-view.css) made it resolve
       circularly against the whole list instead, inflating every card to ~3000px. Height
       belongs to the container, not the item. */
    align-items: stretch;
  }
  .meal-container{
    justify-content: space-between;
  }
  .meal-container > div:last-of-type{
    align-items: center;
  }
  .meal-container > div:last-of-type > h3{
    text-wrap: nowrap;
  }
  .meal-container > div:last-of-type > div{
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  /* # new style end */
  .meal-full-page {
    display: flex;
    bottom: -1000%;
    top: unset;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border-width: 0;
    transform: translate(0, 0);
    transition: all 0.3s ease-in-out;
  }
  .basket-container > div:last-of-type {
    width: 40%;
  }
  .basket-container {
    display: flex;
  }
  .basket-full-page.desktopView {
    display: none;
  }
  .all-meals-container,
  .all-meals-container > div:first-of-type {
    width: 100%;
  }
  .category-meal-container {
    width: 90%;
    margin: 0 auto;
  }
  .scroll-to-top {
    left: unset;
    right: 0.5rem;
    bottom: 1rem;
  }
  .mobileScroll {
    bottom: 5rem;
  }
  .meal-container > div:first-of-type {
    max-height: unset;
    overflow: auto;
  }
  /* The floating basket bar is fixed at the bottom, so without this the last ~64px of the
     page (footer credit, or the final card's add button) sits underneath it and can't be
     reached. Reserved only while the bar is actually on screen — it carries .hidden when
     the basket is empty. */
  body:has(.basket-container:not(.hidden)) {
    padding-bottom: 4.5rem;
  }
}
@media screen and (min-width: 601px) and (max-width: 768px) {
  .all-meals-container > div:first-of-type {
    width: 60%;
  }
  .category-meal-container > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .basket-full-page.desktopView {
    width: 38%;
  }
  .added-food-list > div {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  .final-price {
    font-size: 1rem;
  }
  .meal-full-page {
    width: 50%;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .all-meals-container > div:first-of-type {
    width: 65%;
  }
  .category-meal-container > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .basket-full-page.desktopView {
    width: 34%;
  }
  .added-food-list > div {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  .final-price {
    font-size: 1rem;
  }
  .meal-full-page {
    width: 50%;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1280px) {
  .category-meal-container > div {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==== Public page branding & states (added; all new selectors) ==== */

/* A restaurant's own logo shouldn't sit on the accent plaque the default mark needs. */
header.has-custom-logo > a {
  background-color: transparent;
  width: auto;
  max-width: 60%;
}
header.has-custom-logo > a img {
  width: auto;
  max-height: 4.5rem;
  max-width: 100%;
  object-fit: contain;
}

header .restaurant-name {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Logos on the restaurant / menu chooser cards. */
.entity-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.resaurant,
.restaurantMenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  line-height: 2;
}

/* A restaurant with its own image gets it as the hero; set via --restaurant-cover. */
.main-container.has-cover {
  background-image: linear-gradient(#00000082, #000000c7), var(--restaurant-cover);
  background-position: center;
}
