/* ==========================================================================
   Feeravun Cafe — dijital menü
   Editorial / printed-menu look: paper, ink, hairline rules, one warm accent.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f4eee3;
  --paper: #fbf8f2;
  --wash: #eadfcd;
  --ink: #1e1611;
  --ink-2: #4a3b30;
  --muted: #6e5e52;
  --rule: #d6c7b2;
  --accent: #a4441c;
  --on-accent: #fbf8f2;
  --on-ink: #f4eee3;
  --danger: #b3261e;
  --scrim: rgb(30 22 17 / 0.48);
  --shadow: 0 18px 50px rgb(30 22 17 / 0.16);
  --grain-opacity: 0.4;

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  --gutter: 16px;
  --tabs-h: 54px;
  --dock: 0px; /* height of the bottom "adisyon" bar, set from JS */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191817;
    --paper: #22201e;
    --wash: #2d2925;
    --ink: #f1e9dd;
    --ink-2: #d3c7b8;
    --muted: #a29486;
    --rule: #3a3531;
    --accent: #e8915f;
    --on-accent: #191817;
    --on-ink: #191817;
    --danger: #ffb4ab;
    --scrim: rgb(0 0 0 / 0.6);
    --shadow: 0 18px 50px rgb(0 0 0 / 0.5);
    --grain-opacity: 0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #191817;
  --paper: #22201e;
  --wash: #2d2925;
  --ink: #f1e9dd;
  --ink-2: #d3c7b8;
  --muted: #a29486;
  --rule: #3a3531;
  --accent: #e8915f;
  --on-accent: #191817;
  --on-ink: #191817;
  --danger: #ffb4ab;
  --scrim: rgb(0 0 0 / 0.6);
  --shadow: 0 18px 50px rgb(0 0 0 / 0.5);
  --grain-opacity: 0;
  color-scheme: dark;
}

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

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(88px + var(--dock) + var(--safe-b));
  -webkit-font-smoothing: antialiased;
}

/* paper grain: a fixed overlay above everything, so sticky/solid surfaces share it */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

[hidden] {
  display: none !important;
}

[role="list"] {
  list-style: none;
  padding: 0;
}

svg {
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* small caps label used across the UI */
.kicker,
.hours,
.filters__label,
.tab__num,
.item__meta,
.legend__title,
.receipt__brand,
.quiz__count,
.dock__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Top bar ---------- */
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.wordmark__sub {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.table-badge {
  padding: 3px 9px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: var(--wash);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.theme-btn .i-sun,
.theme-btn[data-mode="dark"] .i-moon {
  display: none;
}

.theme-btn[data-mode="dark"] .i-sun {
  display: block;
}

/* ---------- Hero / masthead ---------- */
.hero {
  padding-top: 22px;
  padding-bottom: 8px;
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}

.kicker {
  color: var(--accent);
}

.hours {
  color: var(--muted);
}

.hero__title {
  margin: 6px 0 0 -0.04em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(6.5rem, 34vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero__lead {
  max-width: 32ch;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.hero__count {
  flex: none;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  white-space: nowrap;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__cta-spark svg {
  width: 14px;
  height: 14px;
}

.hero__cta-arrow {
  transition: transform 0.25s var(--ease);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
}

.hero__rule {
  margin-top: 22px;
  transform-origin: left;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin-top: 8px;
}

@media (min-width: 560px) {
  .filters__label {
    flex-basis: auto;
    margin-top: 0;
  }
}

.filters__label {
  flex-basis: 100%;
  margin-top: 10px;
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.toggle__box {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  transition: background-color 0.15s;
}

.toggle[aria-pressed="true"] .toggle__box {
  background: var(--ink);
}

.toggle[aria-pressed="true"] .toggle__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.toggle[aria-pressed="true"] {
  font-weight: 600;
}

.filters__clear {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.filters__count {
  min-height: 1.3em;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
}

/* ---------- Category tabs (sticky) ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 6px;
  background: var(--bg);
}

.tabs__wrap {
  position: relative;
}

.tabs__wrap::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  border-bottom: 1px solid var(--rule);
}

.tabs__track {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: center;
  min-height: var(--tabs-h);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.tabs__track::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.tab:hover,
.tab[aria-current="true"] {
  color: var(--ink);
}

.tab__num {
  color: var(--accent);
  font-size: 0.66rem;
}

.tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 1px;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}

/* ---------- Menu ---------- */
.menu {
  min-height: 60vh;
}

.menu:focus {
  outline: none;
}

.menu__status {
  padding: 32px 0;
  color: var(--muted);
}

.cat {
  padding-top: 40px;
  scroll-margin-top: calc(var(--tabs-h) + 2px);
}

.cat__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.cat__num {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
}

.cat__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.cat__art {
  width: 52px;
  height: 52px;
  color: var(--ink-2);
}

.cat__art svg {
  width: 100%;
  height: 100%;
}

.cat__empty {
  padding: 18px 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
}

.items {
  display: grid;
}

@media (min-width: 760px) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

/* ---------- Menu item ---------- */
.item {
  position: relative;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--tabs-h) + 16px);
  scroll-margin-bottom: calc(110px + var(--dock));
  transition: opacity 0.3s, background-color 0.4s, box-shadow 0.4s;
}

.item:focus {
  outline: none;
}

.item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.item__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.item__name {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.item__sig {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: 0.3em;
  white-space: nowrap;
}

.item__leader {
  flex: 1 1 16px;
  min-width: 16px;
  border-bottom: 1.5px dotted color-mix(in srgb, var(--muted) 55%, transparent);
  transform: translateY(-4px);
}

.item__price {
  flex: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.item__price small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.7em;
}

.add {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  align-self: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s;
}

/* enlarge the touch target without changing the visual size */
.add::after {
  content: "";
  position: absolute;
  inset: -6px;
}

.add svg {
  width: 16px;
  height: 16px;
}

.add:hover,
.add.has-qty {
  background: var(--ink);
  color: var(--on-ink);
}

.add.has-qty svg {
  display: none;
}

.item__desc {
  max-width: 46ch;
  margin-top: 4px;
  padding-right: 46px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.item__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.item__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 0.64rem;
}

.beans {
  display: inline-flex;
  gap: 2px;
  margin-right: 2px;
}

.beans svg {
  width: 9px;
  height: 11px;
  fill: transparent;
  stroke: var(--muted);
  stroke-width: 1;
}

.beans svg.on {
  fill: var(--accent);
  stroke: var(--accent);
}

.beans svg.on path {
  stroke: var(--bg);
}

.codes {
  display: inline-flex;
  gap: 4px;
}

.item .codes {
  margin-left: auto;
}

.codes li {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 1px solid var(--muted);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.item__flag {
  display: none;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
}

.item.is-dimmed > :not(.item__flag) {
  opacity: 0.32;
}

.item.is-dimmed .item__flag {
  display: block;
}

/* "Menüde göster": a soft wash that bleeds into the gutter, with an accent tick */
.item.is-highlight {
  margin-inline: -12px;
  padding-inline: 12px;
  border-radius: 6px;
  background: var(--wash);
}

.item.is-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.item.is-highlight:focus-visible {
  outline: none;
}

/* ---------- Allergen legend ---------- */
.legend {
  margin-top: 48px;
}

.legend__title {
  color: var(--muted);
}

.legend__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.legend__list > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend__note {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 56px;
  border-top: 1px solid var(--ink);
  overflow: hidden;
}

.footer__qr {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 0;
  color: var(--accent);
  font-weight: 600;
}

/* decorative wordmark, drawn as generated content so it isn't read as text */
.footer__mark::before {
  content: attr(data-mark);
}

.footer__mark {
  margin: 8px 0 0 -0.05em;
  color: var(--wash);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 26vw, 15rem); /* "Feeravun" ≈ 3.35em wide: fits the column */
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin-bottom: 0.16em; /* room for the "y" descender */
  user-select: none;
}

.footer__fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer__fine p:first-child {
  max-width: 52ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--outline:hover {
  background: var(--wash);
}

.btn--quiet {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Floating "Ne içsem?" button ---------- */
.fab {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: calc(14px + var(--dock) + var(--safe-b));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  transition: bottom 0.35s var(--ease), transform 0.15s;
}

.fab:active {
  transform: scale(0.96);
}

.fab__spark svg {
  width: 18px;
  height: 18px;
}

.fab.is-compact {
  gap: 0;
  width: 54px;
  padding: 0;
  justify-content: center;
}

.fab.is-compact .fab__label {
  display: none;
}

.fab.is-compact .fab__spark svg {
  width: 22px;
  height: 22px;
}

/* ---------- Bottom sheet (native <dialog>) ---------- */
body:has(dialog[open]) {
  overflow: hidden;
}

.sheet {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.sheet::backdrop {
  background: transparent;
}

/* the dialog box itself is the full-screen scrim (more reliable than ::backdrop) */
.sheet[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--scrim);
  transition: background-color 0.28s ease;
}

.sheet.is-closing {
  background: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .sheet[open]:not(.is-closing) {
    animation: scrim-in 0.3s ease;
  }
}

@keyframes scrim-in {
  from {
    background: transparent;
  }
}

.sheet__panel {
  width: 100%;
  max-width: 560px;
  max-height: min(92dvh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px calc(24px + var(--safe-b));
  border-radius: 20px 20px 0 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sheet__grip {
  width: 36px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: 99px;
  background: var(--rule);
}

.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sheet__title--quiz {
  font-style: italic;
  font-size: 2rem;
}

/* ---------- Quiz ---------- */
.quiz__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 20px;
}

.quiz__progress span {
  height: 2px;
  background: var(--rule);
  transition: background-color 0.3s;
}

.quiz__progress span.is-done {
  background: var(--ink);
}

.quiz__count {
  color: var(--accent);
}

.quiz__q {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.quiz__q:focus {
  outline: none;
}

.quiz__options {
  margin-top: 16px;
  border-top: 1px solid var(--ink);
}

.option {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  min-height: 68px;
  padding: 12px 6px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: left;
  transition: background-color 0.2s, padding 0.25s var(--ease);
}

.option:hover {
  background: var(--wash);
  padding-left: 12px;
}

.option__num {
  grid-row: span 2;
  align-self: start;
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}

.option__label {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.15;
}

.option__hint {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.85rem;
}

.option__arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s;
}

.option:hover .option__arrow,
.option[aria-pressed="true"] .option__arrow {
  color: var(--ink);
  transform: translateX(3px);
}

.option[aria-pressed="true"] {
  box-shadow: inset 3px 0 0 var(--accent);
}

.quiz__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quiz__back {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.quiz__note {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
}

.recs {
  margin-top: 14px;
  border-top: 1px solid var(--ink);
}

.rec {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.rec__rank {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
}

.rec__body {
  min-width: 0;
}

.rec .item__name {
  font-size: 1.35rem;
}

.rec__why {
  margin-top: 6px;
  font-size: 0.95rem;
}

.rec__note {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
}

.rec__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rec__marks li.is-match {
  color: var(--ink);
}

.rec__marks li.is-match::before {
  content: "✓ ";
  color: var(--accent);
}

.rec__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.rec__actions .btn {
  padding-inline: 8px;
  font-size: 0.85rem;
}

.pairing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--wash);
  font-size: 0.92rem;
}

.pairing__art {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--ink-2);
}

.pairing__label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pairing a {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ---------- Adisyon (receipt) ---------- */
.receipt__brand {
  color: var(--accent);
}

.receipt__table {
  margin-left: 10px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.6em;
  letter-spacing: 0;
}

.lines {
  margin-top: 16px;
  border-top: 1px dashed var(--muted);
}

.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4.6rem;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}

.line__name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
}

.line__unit {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.line__total {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.line .stepper__btn {
  width: 32px;
  height: 34px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
}

.stepper__btn:hover:not(:disabled) {
  background: var(--wash);
}

.stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper__value {
  min-width: 2.2ch;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.split {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.split__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.split__row strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.split__row--big {
  padding-top: 16px;
  border-top: 3px double var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.split__row--big strong {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}

.split .btn--quiet {
  justify-self: start;
}

.cart__empty {
  margin-top: 18px;
  padding: 22px 0;
  border-top: 1px dashed var(--muted);
  border-bottom: 1px dashed var(--muted);
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  text-align: center;
}

.cart__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* ---------- Adisyon dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: var(--ink);
  color: var(--on-ink);
}

.dock__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1040px;
  min-height: 58px;
  margin: 0 auto;
  padding: 8px var(--gutter) calc(8px + var(--safe-b));
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.dock__count {
  opacity: 0.75;
  font-size: 0.85rem;
}

.dock__leader {
  flex: 1;
  min-width: 12px;
  border-bottom: 1.5px dotted currentColor;
  opacity: 0.35;
  transform: translateY(4px);
}

.dock__total {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dock__chev {
  width: 18px;
  height: 18px;
}

/* ---------- QR page ---------- */
.qr-page {
  padding-bottom: calc(24px + var(--safe-b));
}

.qr {
  padding-top: 18px;
}

.qr:focus {
  outline: none;
}

.qr__back {
  display: inline-block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.qr__back:hover {
  color: var(--ink);
}

.qr .kicker {
  margin-top: 18px;
}

.qr__title {
  max-width: 14ch;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.qr__lead {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--ink-2);
}

.qr__grid {
  display: grid;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

@media (min-width: 780px) {
  .qr__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: start;
    gap: 56px;
  }
}

.field + .field {
  margin-top: 22px;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.field input:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1.5px 0 var(--accent);
}

.field input[aria-invalid="true"] {
  border-bottom-color: var(--danger);
}

.field__hint,
.field__error {
  margin-top: 6px;
  font-size: 0.82rem;
}

.field__hint {
  color: var(--muted);
}

.field__error {
  color: var(--danger);
  font-weight: 600;
}

.field__error:empty {
  display: none;
}

.qr__preview {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.qr__preview canvas {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.qr__encodes {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.qr__encodes code {
  color: var(--ink);
}

.qr__download {
  width: 100%;
  max-width: 320px;
}

.qr__download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
