/* İşletme siteleri: ana sayfa, menü, masa kartı. Renkler her sitenin /{slug}/tema.css dosyasından gelir. */

@font-face { font-family: "Bricolage Grotesque"; src: url(/static/fonts/bricolage-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/static/fonts/bricolage-latin-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url(/static/fonts/fraunces-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; src: url(/static/fonts/fraunces-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F5F6F7; --surface: #FFFFFF; --ink: #16191D; --muted: #61676F; --brand: #2F4FD8; --on-brand: #FFFFFF; --line: #E1E4E8;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 118px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- demo şeridi */
.ribbon { background: var(--ink); color: var(--bg); font-size: 13.5px; padding: 7px 0; }
.ribbon .wrap { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; }
.ribbon a { color: var(--bg); font-weight: 700; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- ana sayfa */
.site-top { padding: 14px 0; }
.site-top .wrap { display: flex; align-items: center; gap: 12px; }
.site-top .logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--surface); }
.site-top .name { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langs { margin-left: auto; display: flex; gap: 6px; }
.langs a { text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); white-space: nowrap; }

.cover { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.intro { padding: 22px 0 6px; }
.intro h1 { font-family: var(--display); font-weight: 650; font-size: 40px; line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
@media (min-width: 640px) { .intro h1 { font-size: 56px; } }
.intro .tagline { margin: 10px 0 0; font-size: 18px; color: var(--muted); max-width: 34em; }
.intro .badge { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: var(--surface); margin-bottom: 16px; border: 1px solid var(--line); }
.plate { background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: 34px 22px 28px; }
.plate h1 { color: var(--on-brand); }
.plate .tagline { color: var(--on-brand); opacity: .85; }

.cta { display: grid; gap: 10px; margin: 22px 0 0; }
.cta .main { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 12px; background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 18px; text-decoration: none; }
.plate + .cta .main { background: var(--ink); color: var(--bg); }
.cta .main svg { width: 22px; height: 22px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.quick a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 15px; }
.quick svg { width: 20px; height: 20px; color: var(--brand); }

.info { margin: 28px 0 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.info li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.info li:first-child { border-top: 0; }
.info svg { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.info b { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.info span { overflow-wrap: anywhere; }
.info a { text-underline-offset: 3px; }

.block { margin-top: 34px; }
.block h2 { font-family: var(--display); font-weight: 650; font-size: 26px; letter-spacing: -0.015em; margin: 0 0 12px; }
.block p { margin: 0; color: var(--muted); font-size: 17px; max-width: 36em; }
.picks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(172px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none; list-style: none; }
.picks::-webkit-scrollbar { display: none; }
.picks a { text-decoration: none; }
@media (min-width: 640px) { .picks { grid-auto-columns: minmax(200px, 31%); } }
.picks li { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.picks img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.picks .t { padding: 12px 12px 14px; display: grid; gap: 4px; }
.picks .t b { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.25; }
.picks .t span { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }

.site-foot { margin: 48px 0 0; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 6px; }
.site-foot a { color: var(--muted); }

/* ---------------------------------------------------------------- menü */
.mbar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.mbar .row1 { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.iconbtn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none; }
.iconbtn svg { width: 20px; height: 20px; }
.mbar .title { font-family: var(--display); font-weight: 650; font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; margin: 0; }
.mbar .langs { margin-left: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.chips a.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.search { display: flex; gap: 8px; padding: 0 0 10px; }
.search input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 16px; }
.search input:focus { outline: 2px solid var(--brand); outline-offset: 0; }

.cat { padding-top: 26px; }
.cat > h2 { font-family: var(--display); font-weight: 650; font-size: 25px; letter-spacing: -0.015em; margin: 0 0 4px; }
.item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .body { flex: 1; min-width: 0; }
.item .row, .vars li { display: flex; align-items: baseline; gap: 8px; }
.item h3 { font-family: var(--display); font-weight: 600; font-size: 17.5px; line-height: 1.3; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lead { flex: 1; min-width: 12px; border-bottom: 1.5px dotted color-mix(in srgb, var(--muted) 55%, transparent); transform: translateY(-4px); }
.price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.vars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 15.5px; }
.vars .price { font-weight: 600; }
.tags { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--ink); }
.tag.out { background: var(--ink); color: var(--bg); }
.item.out h3, .item.out .price, .item.out .desc, .item.out .vars { opacity: .5; }
.item.out .price { text-decoration: line-through; }
.thumb { flex: none; width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--surface); order: 2; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.notes { margin-top: 26px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- mesaj */
.msg { padding: 64px 0 24px; }
.msg h1 { font-family: var(--display); font-size: 32px; line-height: 1.1; margin: 0 0 10px; }
.msg p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.msg a.main { display: inline-flex; min-height: 50px; align-items: center; padding: 0 20px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; }

/* ---------------------------------------------------------------- masa kartı */
.card-page { background: #E9EBEE; }
.toolbar { padding: 18px 0; }
.toolbar .wrap { display: grid; gap: 12px; }
.toolbar h1 { margin: 0; font-size: 22px; }
.toolbar p { margin: 0; color: #4A5260; }
.toolbar .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar button, .toolbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid #C9CDD3; background: #fff;
  color: #16191D; font-weight: 600; text-decoration: none; cursor: pointer; }
.toolbar .primary { background: #16191D; color: #fff; border-color: #16191D; }
.toolbar svg { width: 20px; height: 20px; }
.sheet { width: min(100% - 32px, 210mm); margin: 0 auto 40px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .4); }
.tcard { container-type: inline-size; aspect-ratio: 105 / 148.5; border: 1px dashed #C4C8CE; margin: -0.5px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6cqw 7cqw; background: var(--surface); color: var(--ink); }
.tcard .clogo { width: 22cqw; height: 22cqw; object-fit: contain; margin-bottom: 3cqw; }
.tcard .cname { font-family: var(--display); font-weight: 650; font-size: 8.4cqw; line-height: 1.08; margin: 0 0 4cqw; overflow-wrap: anywhere; }
.tcard .scan { font-weight: 700; font-size: 6.2cqw; margin: 0; line-height: 1.15; }
.tcard .scan2 { font-size: 4.4cqw; color: var(--muted); margin: 0.8cqw 0 0; }
.tcard .qr { width: 58cqw; height: 58cqw; margin: 4.5cqw 0; padding: 2.4cqw; background: #fff; border-radius: 3cqw; border: 0.8cqw solid var(--brand); }
.tcard .hint { font-size: 4cqw; color: var(--muted); margin: 0; }
.tcard .wifi { font-size: 4.2cqw; margin: 2.6cqw 0 0; font-weight: 600; }
.tcard .curl { font-size: 3.6cqw; color: var(--muted); margin: 2.4cqw 0 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .sheet { grid-template-columns: 1fr; } .sheet .tcard:nth-child(n+2) { display: none; } }
@media print {
  @page { size: A4; margin: 0; }
  html, body, .card-page { background: #fff; }
  .toolbar, .ribbon { display: none !important; }
  .sheet { width: 210mm; height: 297mm; margin: 0; box-shadow: none; grid-template-rows: 1fr 1fr; }
  .sheet .tcard { display: flex !important; aspect-ratio: auto; height: 148.5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

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