[hidden]{display:none !important}
/* Café Online: mobile first, the café's colours (set from its brand), Arabic right to left */
:root {
  --ink: #3f0112;
  --acc: #7a1430;
  --bg: #f8f2ec;
  --card: #ffffff;
  --line: #e8dcd0;
  --mute: #6e5a52;
  --good: #1d6b34;
  --bad: #b3261e;
  --r: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #241014;
  font: 16px/1.5 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  padding-bottom: 90px;
}
button,
input,
textarea {
  font: inherit;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand img {
  height: 30px;
  background: #fff;
  border-radius: 8px;
  padding: 3px 8px;
}
.top nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.top nav a,
.lang {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.top nav a.on {
  background: rgba(255, 255, 255, 0.16);
}
.lang {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
}
h1 {
  font-size: 26px;
  margin: 6px 0 12px;
}
.cats {
  position: sticky;
  top: 52px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  background: var(--bg);
}
.cats a {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
h2.cat {
  font-size: 19px;
  margin: 20px 0 8px;
  color: var(--ink);
}
.item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: start;
  cursor: pointer;
  color: inherit;
}
.item b {
  font-size: 17px;
}
.item .pr {
  font-weight: 700;
  color: var(--acc);
  white-space: nowrap;
}
.item.off {
  opacity: 0.55;
  cursor: default;
}
.item .soldout {
  font-size: 13px;
  color: var(--bad);
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  cursor: pointer;
  font-weight: 600;
}
.btn.pri {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
.btn.wide {
  width: 100%;
}
.cartbtn {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 6;
  max-width: 728px;
  margin: 0 auto;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 8px 26px rgba(63, 1, 18, 0.3);
  cursor: pointer;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(20, 5, 8, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet > div {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow: auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px 24px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.ln {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}
.chk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
label.f {
  display: block;
  margin: 10px 0;
}
label.f span {
  display: block;
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 4px;
}
label.f input,
label.f textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 14px;
}
.qr {
  width: 230px;
  max-width: 70vw;
  margin: 10px auto;
  display: block;
}
.code {
  text-align: center;
  font: 700 22px/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: 2px;
}
.pts {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--acc);
}
.mute {
  color: var(--mute);
  font-size: 14px;
}
.err {
  color: var(--bad);
  font-weight: 600;
}
.big {
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  color: var(--acc);
  margin: 6px 0;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.tile span {
  display: block;
  color: var(--mute);
  font-size: 14px;
}
.tile b {
  font-size: 24px;
}
.tile.neg b {
  color: var(--bad);
}
.foot {
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

a {
  color: var(--acc);
}

/* ---------- the café's look: a Palatino-like serif for its Latin letters and figures (Velvet's mirrors and
   posters), cream paper, wine, a brass hairline ---------- */
@font-face {
  font-family: "Cafe Serif";
  src: url("/fonts/pagella.otf") format("opentype");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2212;
  font-display: swap;
}
:root {
  --brass: #b8975a;
}
.cat,
.pr,
.pts,
.big,
.code,
.lname,
.sums b,
#shopName {
  font-family: "Cafe Serif", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, serif;
}
.cat {
  border-bottom: 1px solid var(--brass);
  padding-bottom: 6px;
}
.brand img.light {
  background: none;
  padding: 0;
  height: 24px;
  border-radius: 0;
}
.center {
  text-align: center;
}
.good {
  color: var(--good);
}
/* the points a loyalty-card customer chooses to use */
.ptsbox {
  border: 1px solid var(--brass);
  border-radius: var(--r);
  padding: 12px 14px;
  margin: 12px 0;
  background: #fffaf2;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.sums {
  margin: 8px 0;
}
.sums .ln {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border: 0;
}
/* the loyalty card: wine like the café's cups, the QR on a white square */
.lcard {
  background: linear-gradient(150deg, var(--acc) 0%, var(--ink) 70%);
  color: #f6f1ea;
  border-radius: 22px;
  padding: 18px 20px 20px;
  box-shadow: 0 14px 30px rgba(63, 1, 18, 0.35);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.lcard::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 151, 90, 0.55);
  border-radius: 16px;
  pointer-events: none;
}
.lhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(184, 151, 90, 0.55);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.lhead img {
  height: 26px;
}
.lhead span {
  color: var(--brass);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.lbody {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.lbody small {
  display: block;
  opacity: 0.75;
  font-size: 13px;
}
.lname {
  font-size: 22px;
  margin-bottom: 8px;
}
.lcard .pts {
  font-size: 46px;
  line-height: 1.1;
  color: #fff;
}
.lqr {
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  flex-shrink: 0;
}
.lqr .qr svg {
  width: 132px;
  height: 132px;
  display: block;
}
.lqr .code {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lqr .qr {
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
}
.lbody > div:first-child {
  min-width: 0;
  flex: 1;
}
