/* ===== QR Menü — mobil öncelikli ===== */
:root {
  --bg: #fffbf7;
  --ink: #1f1a16;
  --soft: #5f564e;
  --faint: #9a8f84;
  --line: #f3e7da;
  --accent: #eb6f00;
  --accent-2: #fdeee0;
  --accent-ink: #a95000;
  --accent-dark: #b85700;
  --gold: #ffb020;
  --max: 640px;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(120, 60, 0, .05), 0 10px 26px -14px rgba(120, 60, 0, .28);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --accent-2: color-mix(in srgb, var(--accent) 10%, #fff);
    --accent-ink: color-mix(in srgb, var(--accent) 72%, #000);
    --accent-dark: color-mix(in srgb, var(--accent) 78%, #000);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.sheet-lock { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.14em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 2px; }

/* ----- Üst alan ----- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: max(24px, env(safe-area-inset-top)) 20px 84px;
  border-radius: 0 0 34px 34px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 340px; height: 340px; right: -130px; top: -170px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 66%); }
.hero::after { width: 280px; height: 280px; left: -120px; bottom: -150px; background: radial-gradient(circle, rgba(255, 176, 32, .38), transparent 66%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: var(--max); margin: 0 auto; }
.hero-brand { margin: 0; font-weight: 400; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-logo { height: 84px; width: auto; max-width: 80vw; object-fit: contain; }
.hero-name { font: 600 30px/1.1 var(--font-head); }
.hero-tag { font: italic 500 15px var(--font-head); color: rgba(255, 255, 255, .92); }
.table-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
}

/* ----- Ana kap ----- */
.wrap { position: relative; z-index: 2; max-width: var(--max); margin: -56px auto 0; padding: 0 16px 8px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 12px 14px;
  background: #fff8ec; border: 1px solid #f0dfbf; color: #6b4e17; border-radius: 16px; font-size: 13.5px; font-weight: 500;
}
.notice .i { margin-top: 2px; }

.welcome {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: 20px 20px 18px; text-align: center;
}
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--accent-ink);
  background: var(--accent-2); padding: 6px 12px; border-radius: 999px;
}
.welcome h2 { font: 600 25px/1.15 var(--font-head); margin: 12px 0 6px; }
.welcome p { margin: 0; color: var(--soft); font-size: 14px; }

/* ----- Arama + görünüm ----- */
.toolbar { display: flex; gap: 10px; margin: 18px 0 4px; }
.search { position: relative; flex: 1; display: block; }
.search > .i { position: absolute; left: 15px; top: 50%; translate: 0 -50%; font-size: 18px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 42px 0 43px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 15px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-2); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; background: transparent; color: var(--faint); border-radius: 50%; display: grid; place-items: center; }
.view-toggle { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 3px; gap: 2px; }
.view-toggle button { width: 42px; border: 0; background: transparent; border-radius: 12px; display: grid; place-items: center; color: var(--soft); font-size: 18px; }
.view-toggle button.on { background: var(--accent); color: #fff; }

/* ----- Kategori çubuğu ----- */
.cats {
  position: sticky; top: 0; z-index: 30; margin: 10px -16px 0; padding: 10px 16px;
  background: rgba(255, 251, 247, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .2s;
}
.cats.stuck { box-shadow: 0 6px 18px -12px rgba(25, 22, 19, .35); }
.cats-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-behavior: smooth; }
.cats-track::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--soft);
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.pill-count { margin-left: 7px; font-size: 11px; font-weight: 700; opacity: .6; }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pill.active .pill-count { opacity: .85; }

/* ----- Kategori bölümü ----- */
.cat { margin-top: 26px; scroll-margin-top: 66px; }
.cat-head::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 12px; }
.cat-kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.cat-count { color: var(--faint); letter-spacing: .06em; margin-left: auto; }
.cat-head h2 { font: 600 28px/1.1 var(--font-head); margin: 6px 0 4px; }
.cat-head p { margin: 0; color: var(--soft); font-size: 13.5px; }
.list { display: grid; gap: 12px; margin-top: 16px; }

/* ----- Ürün kartı (liste) ----- */
.card {
  display: flex; gap: 14px; padding: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  -webkit-user-select: none; user-select: none;
}
.card:active { transform: scale(.985); }
.card-media {
  position: relative; display: block; flex: 0 0 140px; aspect-ratio: 947 / 712; align-self: center;
  border-radius: 12px; overflow: hidden; background: #fff;
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #fff; }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--accent); opacity: .55;
  background: linear-gradient(135deg, var(--accent-2), #fff);
}
.tag-sig {
  position: absolute; left: 6px; top: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px 3px 6px; border-radius: 999px;
  color: #4a2b00; background: linear-gradient(135deg, var(--gold), #ffe3a3); box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.tag-sig .i { fill: currentColor; stroke: none; }
.tag-sold {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; text-align: center; padding: 4px;
  background: rgba(25, 22, 19, .8); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 2px 0 0; }
.card-name { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.card-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--soft);
}
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; font-weight: 500; color: var(--faint); }
.card-meta .i { margin-right: 3px; }
.price { font: 700 19px/1 var(--font-head); color: var(--accent); white-space: nowrap; }
.is-soldout .card-media img { filter: grayscale(1); opacity: .5; }
.is-soldout .card-name { color: var(--faint); }
.is-soldout .price { color: var(--faint); text-decoration: line-through; }

/* ----- Izgara görünümü ----- */
.wrap[data-view="grid"] .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wrap[data-view="grid"] .card { flex-direction: column; gap: 10px; padding: 8px 8px 12px; }
.wrap[data-view="grid"] .card-media { flex: none; width: 100%; aspect-ratio: 947 / 712; align-self: auto; }
.wrap[data-view="grid"] .card-body { padding: 0 4px; }
.wrap[data-view="grid"] .card-name { font-size: 14.5px; }
.wrap[data-view="grid"] .card-desc { font-size: 12px; -webkit-line-clamp: 2; }
.wrap[data-view="grid"] .card-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
.wrap[data-view="grid"] .price { font-size: 18px; }

.empty-all { text-align: center; color: var(--soft); padding: 40px 0; }

/* ----- Alt bilgi ----- */
.foot {
  margin-top: 36px; color: #fff; text-align: center;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  padding: 36px 20px calc(30px + env(safe-area-inset-bottom)); border-radius: 32px 32px 0 0;
}
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot-logo { height: 70px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.foot-name { font: 600 24px var(--font-head); margin-bottom: 8px; }
.foot-text { margin: 0 0 8px; opacity: .85; font-size: 14px; }
.foot-line { display: flex; gap: 8px; justify-content: center; align-items: flex-start; margin: 6px 0; font-size: 13.5px; opacity: .85; text-align: left; }
.foot-line .i { margin-top: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 6px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-weight: 600; font-size: 14px; }
.foot-links a:active { background: rgba(255, 255, 255, .22); }
.foot-copy { margin: 18px 0 0; font-size: 12px; opacity: .6; }

.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 20px;
  display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45);
}

/* ----- Ürün detay penceresi ----- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(40, 20, 4, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s;
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0 auto; max-width: 560px; max-height: 93dvh;
  background: #fff; border-radius: 28px 28px 0 0; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .34s cubic-bezier(.2, .85, .25, 1);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5);
}
.sheet.open { transform: none; }
.sheet-grab { position: sticky; top: 0; z-index: 3; height: 26px; margin-bottom: -26px; display: flex; justify-content: center; padding-top: 9px; touch-action: none; }
.sheet-grab span { width: 42px; height: 5px; border-radius: 5px; background: rgba(25, 22, 19, .22); }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 4; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.sheet-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; }
.sheet-gallery::-webkit-scrollbar { display: none; }
.sheet-gallery img, .sheet-ph { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 947 / 712; width: 100%; object-fit: cover; background: #fff; }
.sheet-ph { display: grid; place-items: center; font-size: 64px; color: var(--accent); opacity: .5; background: linear-gradient(135deg, var(--accent-2), #fff); }
.dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.dots i.on { background: var(--accent); width: 18px; border-radius: 6px; }
.sheet-body { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.sheet-body h3 { font: 600 28px/1.12 var(--font-head); margin: 6px 0 12px; }
.sheet-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.sheet-price { font: 700 26px/1 var(--font-head); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--accent-2); color: var(--accent-ink); }
.chip.gold { background: #fff1d6; color: #8a5a00; }
.chip.dark { background: #2a2420; color: #fff; }
.chip .i { fill: none; }
.chip.gold .i { fill: currentColor; stroke: none; }
.detail { margin-top: 16px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.detail + .detail { margin-top: 10px; }
.detail-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.detail p { margin: 6px 0 0; font-size: 14.5px; color: var(--soft); line-height: 1.55; }
.sheet-hint { margin: 16px 2px 0; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ----- Geniş ekran ----- */
@media (min-width: 760px) {
  :root { --max: 1080px; }
  .hero { padding-bottom: 96px; }
  .hero-logo { height: 96px; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .wrap[data-view="grid"] .list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .welcome { padding: 26px 40px 24px; }
  .cats-track { justify-content: flex-start; }
  .sheet {
    top: 50%; bottom: auto; left: 50%; right: auto; width: 560px; margin: 0; border-radius: 28px;
    transform: translate(-50%, -46%); opacity: 0; transition: transform .3s cubic-bezier(.2, .85, .25, 1), opacity .25s;
  }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grab { display: none; }
  .sheet-gallery { border-radius: 28px 28px 0 0; }
}
@media (min-width: 1100px) {
  .wrap[data-view="grid"] .list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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