/* Yazdırılabilir fiyat listesi ve QR afişi (A4). Ekranda kâğıt önizlemesi gibi görünür. */

@page {
  size: A4;
  margin: 10mm 10mm 12mm;
  @bottom-right { content: "Sayfa " counter(page) " / " counter(pages); font: 8pt system-ui, Arial, sans-serif; color: #444; }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: #e9e4de; color: #111;
  font: 10pt/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, p, ul { margin: 0; padding: 0; }

.screen-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 10px 16px; background: #1e1612; color: #f4ebe0; font-size: 14px;
}
.screen-bar a { color: #f6d3ad; }
.screen-bar__opts { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; }
.screen-bar button, .screen-bar input {
  font: inherit; padding: 8px 16px; border-radius: 8px; border: 0;
}
.screen-bar button { background: #d6a06b; color: #1b1310; font-weight: 700; cursor: pointer; }

.sheet {
  width: 210mm; max-width: 100%; min-height: 297mm; margin: 16px auto; padding: 10mm;
  background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.sheet__head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #111; padding-bottom: 6px; }
.sheet__head img { width: 16mm; height: 16mm; }
.sheet__head h1 { font-size: 17pt; line-height: 1.1; }
.sheet__sub { font-size: 10pt; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet__date { margin-left: auto; text-align: right; font-size: 9pt; display: flex; flex-direction: column; }
.sheet__date strong { font-size: 10.5pt; }
.sheet__notes { margin: 5px 0 3px; font-size: 9pt; font-weight: 600; }
.sheet__key { margin: 0 0 6px; font-size: 7pt; color: #222; }
.sheet__key span { white-space: nowrap; margin-right: 4px; }
.frame { width: 100%; border-collapse: collapse; }
.frame > thead > tr > td, .frame > tbody > tr > td { padding: 0; vertical-align: top; }
.frame > thead { display: table-header-group; }

.list { column-count: 2; column-gap: 8mm; }
.one-col .list { column-count: 1; font-size: 12.5pt; }
.list__cat { break-inside: avoid-column; margin-bottom: 4mm; }
.list__cat h2 {
  font-size: 10.5pt; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid #111; margin-bottom: 1.2mm; padding-bottom: 0.6mm; break-after: avoid;
}
.one-col .list__cat h2 { font-size: 13pt; }
.list__note { font-size: 8.5pt; font-style: italic; margin-bottom: 1mm; }
.list ul { list-style: none; }
.list li { display: flex; align-items: baseline; gap: 4px; padding: 0.35mm 0; break-inside: avoid; }
.list__name { min-width: 0; }
.list__name small { font-size: 8pt; color: #333; }
.list__name sup { font-size: 6.5pt; color: #333; }
.list__dots { flex: 1; border-bottom: 1px dotted #888; transform: translateY(-3px); min-width: 4mm; }
.list__price { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.list__price small { font-weight: 400; font-size: 8pt; }

.sheet__foot { margin-top: 3mm; border-top: 1px solid #111; padding-top: 2mm; font-size: 7.5pt; color: #222; }
.sheet__foot p + p { margin-top: 1.2mm; }
.legend span { white-space: nowrap; margin-right: 6px; }

/* ---------------------------------------------------------------- alerjen tablosu */
.sheet--wide { width: 297mm; min-height: 210mm; }
.matrix { width: 100%; border-collapse: collapse; font-size: 7.5pt; margin-top: 2mm; }
.matrix th, .matrix td { border: 0.5px solid #999; padding: 0.8mm 1mm; vertical-align: middle; }
.matrix thead th { background: #f1ebe4; font-weight: 700; }
.matrix__name { text-align: left; width: 34%; }
.matrix__name em { font-style: normal; font-weight: 700; background: #111; color: #fff; padding: 0 1.2mm; margin-left: 1mm; }
.matrix__ingr { font-size: 6.8pt; color: #333; }
.matrix__ingr strong { color: #000; }
.matrix th.matrix__al { width: 4.2%; padding: 1mm 0; vertical-align: bottom; text-align: center; }
.matrix th.matrix__al span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 6.8pt; line-height: 1.1; }
.matrix td.matrix__al { text-align: center; font-size: 9pt; }
.matrix__kcal { width: 5%; text-align: center; }
.matrix thead .matrix__caption td { background: #fff; border: 0; text-align: left; font-size: 8pt; font-weight: 600; padding: 0 0 1mm; }
@media screen { .matrix__caption { display: none; } }
.matrix tbody th.matrix__name { font-weight: 400; background: none; }
.unverified { font-weight: 700; }
.matrix__cat th { background: #e2d6c9; text-align: left; font-size: 8pt; letter-spacing: 0.04em; break-after: avoid; }
.matrix tr { break-inside: avoid; }
.matrix thead { display: table-header-group; }

@page landscape-page { size: A4 landscape; margin: 8mm; }
.landscape .sheet { page: landscape-page; }

/* ---------------------------------------------------------------- sade nargile listesi (Satış ve Sunum Yön. md. 18) */
.plain-list { color: #000; background: #fff; font: 12pt/1.4 Arial, Helvetica, sans-serif; }
.plain-list h1 { font-size: 14pt; font-weight: 700; margin: 0 0 3mm; }
.plain-list p { font-size: 11pt; margin: 2mm 0; }
.plain-list table { width: 100%; border-collapse: collapse; font-size: 12pt; }
.plain-list td { padding: 1.2mm 0; border-bottom: 0.5px solid #000; }
.plain-list td + td { text-align: right; white-space: nowrap; }

/* ---------------------------------------------------------------- QR afişi */
.poster {
  width: 210mm; max-width: 100%; min-height: 297mm; margin: 16px auto; padding: 18mm 16mm;
  background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7mm;
}
.poster__logo { width: 42mm; height: 42mm; }
.poster h1 { font-size: 26pt; line-height: 1.1; }
.poster__lead { font-size: 17pt; font-weight: 700; }
.poster__qr { width: 95mm; height: 95mm; }
.poster__qr svg { width: 100%; height: 100%; display: block; }
.poster__url { font-size: 13pt; font-weight: 600; word-break: break-all; }
.poster__notes { font-size: 12pt; display: grid; gap: 2mm; }
.poster__date { font-size: 13pt; font-weight: 700; border: 2px solid #111; padding: 3mm 6mm; border-radius: 3mm; }
.screen-bar label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; }
.screen-bar input { flex: 1; min-width: 0; background: #fff; color: #111; font-size: 16px; }

@media print {
  body { background: #fff; }
  .screen-bar { display: none; }
  .sheet, .poster { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .poster { padding-top: 6mm; }
}
@media screen and (max-width: 820px) {
  .sheet, .poster { margin: 0; padding: 6mm; min-height: 0; box-shadow: none; }
  .list { column-count: 1; }
  .legend span, .sheet__key span { white-space: normal; display: inline; }
  .sheet--wide { overflow-x: auto; }
}
