/* Raider's Diner — public menu
   Palette and layout follow the printed menu: red and blue ink on cream paper. */

:root {
  --paper: #f6e9d9;
  --card: #fbf2e6;
  --cream: #f2dbbf;
  --ink: #012743;
  --blue: #00405f;
  --blue-deep: #00324d;
  --red: #b90d14;
  --red-hot: #cf1a20;
  --red-dark: #8d0a10;
  --muted: #47596a;
  --line: rgba(1, 39, 67, .16);
  --w: 560px;
  --pad: 12px;

  --f-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-script: "Yellowtail", "Brush Script MT", cursive;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

html[lang="ar"] {
  --f-display: "Lalezar", "Anton", "Tahoma", sans-serif;
  --f-cond: "Cairo", "Tahoma", sans-serif;
  --f-body: "Cairo", "Tahoma", system-ui, sans-serif;
  --f-script: "Cairo", "Tahoma", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-cart { padding-bottom: 84px; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico { width: 22px; height: 22px; flex: none; }
.spark { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------ masthead */

.mast {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  max-width: var(--w);
  margin: 0 auto;
  padding: 12px var(--pad) 0;
  direction: ltr;                      /* the lockup is artwork: same in both languages */
}
.mast__brand {
  flex: 0 0 clamp(108px, 29.5%, 176px);
  padding-bottom: 12px;
  text-decoration: none;
}
.mast__logo { width: 100%; }
.mast__tagline {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font: 700 clamp(7px, 1.92vw, 11.5px)/1 var(--f-cond);
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="ar"] .mast__tagline { letter-spacing: 0; font-size: clamp(8px, 2.3vw, 13px); text-align: center; }
.mast__art {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  margin-right: calc(var(--pad) * -1 + 2px);
  align-self: flex-end;
}
.mast__menu {
  position: absolute;
  top: 10px;
  right: 6px;
  display: grid;
  gap: 5px;
  place-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
}
.mast__menu span {
  display: block;
  width: 28px;
  height: 4.5px;
  border-radius: 3px;
  background: var(--red-hot);
}

/* --------------------------------------------------------------------- tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: var(--w);
  margin: 0 auto;
  padding: 2px var(--pad) 6px;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 1.42;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid;
  border-radius: 12px;
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(1, 39, 67, .16), 0 10px 16px -12px rgba(1, 39, 67, .6);
}
.tile::after {                         /* printed-paper grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--grain);
  mix-blend-mode: multiply;
  opacity: .7;
  pointer-events: none;
}
.tile--red   { background: radial-gradient(120% 100% at 50% 18%, #cb161d 0%, #b40b13 55%, #9c0810 100%); border-color: #f1c4b8; }
.tile--blue  { background: radial-gradient(120% 100% at 50% 18%, #0a5478 0%, #00405f 55%, #002f48 100%); border-color: #a3c5d2; }
.tile--cream { background: radial-gradient(120% 100% at 50% 18%, #f9ead4 0%, #f2dbbf 60%, #e8cba6 100%); border-color: #fdf5e8; color: var(--ink); }
.tile--neon  { background: radial-gradient(95% 85% at 50% 45%, #0b5b82 0%, #00324d 68%, #00243a 100%); border-color: #a3c5d2; }

.tile__spark {
  position: absolute;
  z-index: 2;
  top: 9%;
  inset-inline-start: 7%;
  width: 14%;
  height: auto;
}
.tile--cream .tile__spark { color: var(--blue); }

.tile__img {
  position: absolute;
  z-index: 1;
  top: 4%;
  left: 50%;
  width: auto;
  max-width: 86%;
  height: 65%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .3));
}
.tile--long .tile__img { height: 52%; }
.tile--tall .tile__img {
  top: 7%;
  left: auto;
  inset-inline-end: 9%;
  height: 84%;
  transform: none;
}

.tile__label {
  position: absolute;
  z-index: 3;
  inset-inline-start: 8%;
  bottom: 7%;
  max-width: 84%;
  font: 400 clamp(17px, 5.3vw, 31px)/.94 var(--f-display);
  letter-spacing: .012em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}
.tile--cream .tile__label { text-shadow: none; }
.tile--icon .tile__label { max-width: 66%; font-size: clamp(15px, 4.5vw, 27px); }
.tile--long .tile__label { max-width: 64%; font-size: clamp(11.5px, 3.4vw, 20px); line-height: 1; }
html[lang="ar"] .tile__label { letter-spacing: 0; line-height: 1.05; }

.tile__icon {
  position: absolute;
  z-index: 2;
  inset-inline-end: 6%;
  bottom: 7%;
  width: 20%;
  height: auto;
  stroke-width: 1.5;
}
.tile--tall .tile__icon { display: none; }
.tile--tall .tile__label { max-width: 60%; }
html[lang="ar"] .tile--tall .tile__label { font-size: clamp(13.5px, 4vw, 23px); }
html[lang="ar"] .tile__label { font-size: clamp(15px, 4.5vw, 26px); }
html[lang="ar"] .tile--long .tile__label { font-size: clamp(12px, 3.5vw, 19px); }

/* glowing artwork tile ("Raider's Specials") */
.tile--art .tile__img {
  top: 50%;
  width: 82%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -54%) rotate(-5deg);
  filter: drop-shadow(0 0 4px rgba(255, 70, 70, .8)) drop-shadow(0 0 13px rgba(255, 40, 40, .4));
}
.tile--neon .tile__label:not(.sr-only) {
  inset: 0;
  display: grid;
  place-items: center;
  max-width: none;
  font-family: var(--f-script);
  text-transform: none;
  text-align: center;
  text-shadow: 0 0 6px rgba(255, 70, 70, .9), 0 0 16px rgba(255, 40, 40, .6);
}
.tile--neon .tile__spark { top: 12%; width: 11%; }
.tile--neon .tile__spark--b { top: auto; bottom: 12%; inset-inline-start: 14%; width: 8%; }
.tile--neon .tile__icon { width: 15%; bottom: 10%; }

/* -------------------------------------------------------------- sticky chips */

.chips {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(246, 233, 217, .96);
  border-bottom: 2px solid var(--blue-deep);
  transform: translateY(-105%);
  transition: transform .22s ease;
}
.chips.is-on { transform: none; }
.chips__row {
  display: flex;
  gap: 6px;
  max-width: var(--w);
  margin: 0 auto;
  padding: 8px var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.chips__row::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 5px 13px 6px;
  border: 1.5px solid var(--blue-deep);
  border-radius: 999px;
  color: var(--blue-deep);
  font: 700 15px/1.2 var(--f-cond);
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="ar"] .chip { letter-spacing: 0; }
.chip.is-on { background: var(--blue-deep); color: var(--paper); }

/* ------------------------------------------------------------------ sections */

main { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }

.sec { padding-top: 12px; scroll-margin-top: 50px; }

.sec__art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 14px;
  color: var(--blue);
}
.sec__art img { width: min(72%, 330px); }

.banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 8px 14px 7px;
  border-radius: 10px;
  background: linear-gradient(180deg, #063c59 0%, var(--blue-deep) 100%);
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(246, 233, 217, .14), 0 2px 0 rgba(1, 39, 67, .25);
  overflow: hidden;
  isolation: isolate;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  mix-blend-mode: screen;
  opacity: .5;
}
.banner__title {
  font: 400 clamp(21px, 6vw, 29px)/1.05 var(--f-display);
  letter-spacing: .018em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="ar"] .banner__title { letter-spacing: 0; line-height: 1.25; }
.banner__rule { flex: 1 1 14px; height: 1.5px; min-width: 14px; background: currentColor; opacity: .75; }
.banner__tag {
  margin-inline-start: auto;
  font: 400 clamp(16px, 4.3vw, 21px)/1.1 var(--f-script);
  white-space: nowrap;
}
html[lang="ar"] .banner__tag { font-weight: 600; font-size: 14px; }
.banner__spark { width: 20px; height: 20px; }

/* --------------------------------------------------------------------- cards */

.cards { display: grid; gap: 10px; margin-top: 10px; }

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 41%) minmax(0, 1fr) auto;
  min-height: 114px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(128, 92, 46, .16), 0 2px 0 rgba(128, 92, 46, .16), 0 12px 18px -16px rgba(1, 39, 67, .6);
  cursor: pointer;
}
.card__photo { position: relative; background: #a30c13; }
.card__photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card--contain .card__photo { background: #fff; }
.card--contain .card__photo > img { object-fit: contain; padding: 8px; }
.card__noimg { position: absolute; inset: 0; margin: auto; width: 38%; height: auto; color: rgba(246, 233, 217, .55); }

.card__body { align-self: center; min-width: 0; padding: 11px 2px 12px; padding-inline-start: 13px; }
.card__tag {
  margin: 0 0 2px;
  color: var(--blue);
  font: 700 12px/1.2 var(--f-cond);
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[lang="ar"] .card__tag { letter-spacing: 0; }
.card__name {
  margin: 0;
  color: var(--ink);
  font: 700 clamp(18px, 4.9vw, 23px)/1.05 var(--f-cond);
  letter-spacing: .005em;
}
html[lang="ar"] .card__name { line-height: 1.3; font-size: 18px; letter-spacing: 0; }
.card__price {
  margin: 3px 0 4px;
  color: var(--red);
  font: 400 clamp(20px, 5.5vw, 27px)/1.1 "Anton", "Impact", sans-serif;
  letter-spacing: .01em;
}
.card__desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;                      /* the full text is in the item sheet */
}
html[lang="ar"] .card__desc { font-size: 12.5px; line-height: 1.55; }

.plus {
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-inline: 4px 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red-hot);
  color: #fff;
  box-shadow: 0 2px 0 var(--red-dark), inset 0 0 0 2px rgba(255, 255, 255, .13);
  transition: transform .12s ease;
}
.plus svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: none; }
.plus:active { transform: scale(.92); }
.plus:focus-visible { outline-offset: 3px; border-radius: 50%; }

.card--out { cursor: default; }
.card--out .card__photo > img { filter: grayscale(.9) contrast(.9); opacity: .7; }
.card--out .card__name, .card--out .card__price { opacity: .55; }
.card__out {
  align-self: center;
  margin-inline: 6px 12px;
  padding: 4px 10px;
  border: 1.5px solid var(--muted);
  border-radius: 999px;
  color: var(--muted);
  font: 700 13px/1.2 var(--f-cond);
  text-transform: uppercase;
  white-space: nowrap;
}

/* starburst seal */
.seal {
  position: absolute;
  z-index: 2;
  top: -3px;
  inset-inline-start: -3px;
  width: 64px;
  height: 64px;
  transform: rotate(-14deg);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}
.seal svg { width: 100%; height: 100%; }
.seal__burst { fill: var(--red-hot); stroke: #fbe6d8; stroke-width: 1.6; stroke-linejoin: round; }
.seal__ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-linejoin: round; }
.seal--new .seal__burst { fill: var(--blue); }
.seal__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: 400 11px/1.02 var(--f-display);
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}
html[lang="ar"] .seal__text { font-size: 12px; letter-spacing: 0; line-height: 1.1; }

.empty, .noscript { max-width: var(--w); margin: 40px auto; padding: 0 var(--pad); text-align: center; }

/* -------------------------------------------------------------------- footer */

.foot {
  max-width: var(--w);
  margin: 30px auto 0;
  padding: 26px var(--pad) 34px;
  border-top: 2px solid var(--blue-deep);
  text-align: center;
}
.foot__logo { width: 124px; margin: 0 auto 12px; }
.foot__service {
  margin: 0;
  color: var(--blue);
  font: 700 15px/1.3 var(--f-cond);
  letter-spacing: .07em;
  text-transform: uppercase;
}
html[lang="ar"] .foot__service { letter-spacing: 0; }
.foot__phone {
  display: inline-block;
  margin: 2px 0;
  color: var(--red);
  font: 400 38px/1.15 "Anton", "Impact", sans-serif;
  text-decoration: none;
}
.foot__hours { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--blue-deep);
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
}
.foot__links .ico { width: 18px; height: 18px; }

/* ------------------------------------------------------------------- dialogs */

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(1, 25, 43, .58); }

.xbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(1, 39, 67, .08);
  color: var(--ink);
}
.xbtn .ico { stroke-width: 2.2; }

/* side menu */
.drawer {
  width: min(330px, 88vw);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  margin-inline-start: auto;
  padding: 16px 18px 24px;
  border: 0;
  border-inline-start: 3px solid var(--blue-deep);
  background: var(--paper) var(--grain);
}
.drawer[open] { animation: drawer-in .22s ease; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
html[dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__head img { width: 118px; }
.drawer__status {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blue-deep);
  color: var(--paper);
  font-size: 13.5px;
  line-height: 1.45;
}
.drawer__status strong { font: 400 19px/1.2 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
html[lang="ar"] .drawer__status strong { letter-spacing: 0; }
.drawer__status--closed { background: var(--red); }
.drawer__links { margin: 0; padding: 0; list-style: none; }
.drawer__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1.5px solid var(--line);
  font-weight: 500;
  text-decoration: none;
}
.drawer__links .ico { color: var(--red); }

/* bottom sheets: item options and the order */
.sheet {
  width: min(560px, 100%);
  max-width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper) var(--grain);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } }

.sheet__photo { position: relative; flex: none; height: clamp(150px, 26vh, 220px); background: #a30c13; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__photo--contain { background: #fff; }
.sheet__photo--contain img { object-fit: contain; padding: 12px; }
.sheet__topbar { display: flex; justify-content: flex-end; }
.sheet__close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: rgba(246, 233, 217, .94); }

.sheet__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 2px solid var(--blue-deep);
}
.sheet__title { margin: 0; font: 400 26px/1.1 var(--f-display); letter-spacing: .015em; text-transform: uppercase; }
html[lang="ar"] .sheet__title { letter-spacing: 0; }

.sheet__scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 16px; }
.sheet__name { margin: 0; font: 700 27px/1.05 var(--f-cond); }
html[lang="ar"] .sheet__name { line-height: 1.3; font-size: 23px; }
.sheet__price { margin: 2px 0 6px; color: var(--red); font: 400 26px/1.1 "Anton", "Impact", sans-serif; }
.sheet__desc { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }

.group { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.group__title {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: var(--blue-deep);
  font: 700 17px/1.2 var(--f-cond);
  letter-spacing: .04em;
  text-transform: uppercase;
}
html[lang="ar"] .group__title { letter-spacing: 0; }

.opt {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  font-weight: 500;
  cursor: pointer;
}
.opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.opt:has(input:checked) { border-color: var(--red); background: #fdebe2; }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

.field { display: block; margin-top: 12px; }
.field__label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13.5px; }
.input {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid rgba(1, 39, 67, .34);
  border-radius: 11px;
  background: #fffaf3;
  font-size: 16px;                    /* 16px stops iOS zooming into the field */
  line-height: 1.4;
}
textarea.input { min-height: 74px; resize: vertical; }
.input::placeholder { color: #8a97a3; }
.input:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--red-hot); background: #fff1ec; }
.error { margin: 6px 0 0; color: var(--red); font-weight: 600; font-size: 13.5px; }

.sheet__foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1.5px solid var(--line);
  background: var(--card);
}

.qty { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.qty button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--blue-deep);
  border-radius: 50%;
  background: none;
  color: var(--blue-deep);
  font: 400 24px/1 "Anton", "Impact", sans-serif;
}
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { min-width: 30px; font: 400 23px/1 "Anton", "Impact", sans-serif; text-align: center; }
.qty--sm button { width: 32px; height: 32px; font-size: 19px; }
.qty--sm output { min-width: 24px; font-size: 19px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 50px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--red-hot);
  color: #fff;
  font: 400 19px/1.1 var(--f-display);
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--red-dark);
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 20px; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost {
  background: none;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1.5px var(--blue-deep);
}
.btn--ghost:active { box-shadow: inset 0 0 0 1.5px var(--blue-deep); }
.btn--block { width: 100%; margin-top: 16px; }

/* the order */
.lines { margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
.line:first-child { padding-top: 0; }
.line__name { margin: 0; font: 700 19px/1.15 var(--f-cond); }
html[lang="ar"] .line__name { font-size: 17px; line-height: 1.4; }
.line__price { font: 400 18px/1.2 "Anton", "Impact", sans-serif; color: var(--red); }
.line__mods { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.line__mods li::before { content: "– "; }
.line__tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.linkbtn { padding: 4px 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn--danger { color: var(--red); }
.line__tools .qty { margin-inline-start: auto; }

.totals { margin: 12px 0 0; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .totals__grand { margin-top: 4px; padding-top: 8px; border-top: 2px solid var(--blue-deep); font: 400 24px/1.2 var(--f-display); text-transform: uppercase; }
.totals .totals__grand dd { color: var(--red); font-family: "Anton", "Impact", sans-serif; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1.5px solid var(--blue-deep); border-radius: 999px; overflow: hidden; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: block; padding: 10px 8px; color: var(--blue-deep); font: 700 17px/1.2 var(--f-cond); letter-spacing: .04em; text-align: center; text-transform: uppercase; }
html[lang="ar"] .seg span { letter-spacing: 0; }
.seg input:checked + span { background: var(--blue-deep); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--red-hot); outline-offset: -3px; }

.notice { margin: 0 0 14px; padding: 10px 13px; border-radius: 11px; background: var(--cream); font-size: 13.5px; }
.notice--warn { background: #fde2d6; color: #7a0a10; }

.geo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 13.5px; }
.geo__ok { color: #156a3a; font-weight: 600; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { padding: 26px 20px 8px; text-align: center; }
.done .spark { width: 34px; height: 34px; margin: 0 auto 6px; color: var(--red-hot); }
.done__title { margin: 0 0 8px; font: 400 32px/1.1 var(--f-display); text-transform: uppercase; }
.done__body { margin: 0 auto 4px; max-width: 34ch; }

.emptycart { padding: 26px 8px 14px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ cart bar */

.cartbar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(536px, calc(100% - 24px));
  min-height: 58px;
  padding: 8px 20px 8px 9px;
  border: 2px solid #f1c4b8;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  transform: translateX(-50%);
  box-shadow: 0 3px 0 var(--red-dark), 0 16px 26px -10px rgba(70, 0, 4, .7);
}
html[dir="rtl"] .cartbar { padding: 8px 9px 8px 20px; }
.cartbar__count {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--red);
  font: 400 20px/1 "Anton", "Impact", sans-serif;
}
.cartbar__label { font: 400 20px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
html[lang="ar"] .cartbar__label { letter-spacing: 0; }
.cartbar__total { margin-inline-start: auto; font: 400 21px/1 "Anton", "Impact", sans-serif; }
.cartbar.bump { animation: bump .3s ease; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.045); } }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(340px, calc(100% - 32px));
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 13.5px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ larger screens */

@media (min-width: 700px) {
  .sheet { margin: auto; border-radius: 22px; max-height: 88vh; }
  .card__desc { font-size: 13px; }
}

@media (min-width: 940px) {
  :root { --w: 1080px; --pad: 24px; }
  .mast { padding-top: 20px; }
  .mast__brand { flex-basis: 250px; padding-bottom: 26px; }
  .mast__tagline { font-size: 16.3px; }
  .mast__art { flex: 0 1 620px; width: auto; margin-left: auto; margin-right: 46px; }
  .mast__menu { top: 22px; right: 18px; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding-top: 8px; }
  .tile__label, .tile--icon .tile__label { font-size: 24px; }
  .tile--long .tile__label { font-size: 17px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
  .card { min-height: 150px; }
  .sec { padding-top: 22px; }
  .banner { padding: 11px 18px 10px; }
  .chips__row { justify-content: center; }
}

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