/* Mackbear Batıkent — müşteri menüsü */

html { scroll-behavior: smooth; }

:root { --wide: 1080px; }

/* Hero: logo ve orman sırtları ---------------------------------------- */

.hero { max-width: var(--col); margin: 0 auto; padding: max(34px, env(safe-area-inset-top)) var(--gutter) 0; text-align: center; }

.hero-brand { display: grid; justify-items: center; gap: 4px; }
.hero-logo { width: min(290px, 74vw); height: auto; }
.hero-branch { margin-top: 8px; color: var(--honey); font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em; }

.ridge {
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  height: auto;
  margin: 14px calc(-1 * var(--gutter)) 0;
  aspect-ratio: 390 / 150;
}

/* Geniş ekranda sırtların kenarları sisle kaybolsun */
@media (min-width: 720px) {
  .ridge {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  }
}

.ridge .moon { transform-box: fill-box; transform-origin: center; animation: moonrise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.ridge .layer-far { animation: settle 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ridge .layer-mid { animation: settle 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both; }

@keyframes moonrise { from { transform: translateY(40px); } }
@keyframes settle { from { transform: translateY(16px); } }

/* Arama --------------------------------------------------------------- */

.search { max-width: var(--col); margin: 0 auto; padding: 4px var(--gutter) 10px; }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; color: var(--lichen); transform: translateY(-50%); pointer-events: none; }
.search-box .input { padding-left: 44px; background: var(--pine); border-color: transparent; border-radius: 999px; }
.search-box .input:focus { border-color: var(--honey); }
.search-box .input::-webkit-search-cancel-button { filter: invert(0.7); }

/* Kategori barı ------------------------------------------------------- */

.cats {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 32, 27, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.cats-inner {
  position: relative;
  display: flex; gap: 2px;
  max-width: var(--col); margin: 0 auto;
  padding: 0 calc(var(--gutter) - 12px);
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
}
.cats-inner::-webkit-scrollbar { display: none; }

.cat-link {
  position: relative; flex: none;
  padding: 15px 12px;
  background: none; border: 0;
  color: var(--lichen); font-size: 0.95rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cat-link:hover, .cat-link[aria-current="true"] { color: var(--oat); }
.cat-link[aria-current="true"]::after {
  content: ""; position: absolute; right: 12px; bottom: 0; left: 12px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--honey);
}
.cat-link:focus-visible { outline-offset: -4px; border-radius: 10px; }

/* Menü ---------------------------------------------------------------- */

.menu { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter) 150px; }

.menu-status { padding: 48px 0; color: var(--lichen); text-align: center; }
.menu-status .btn { margin-top: 16px; }

/* Her kategori: fotoğraf bir yanda (kaydırırken sabit), liste diğer yanda */
.cat {
  display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 0 14px; align-items: start;
  padding-top: 34px; scroll-margin-top: 36px;
}

.cat-photo { position: sticky; top: 62px; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--pine); border-radius: 12px; }
.cat-photo picture { display: block; width: 100%; height: 100%; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }

.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 10px; }
.cat-title { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; letter-spacing: 0.005em; }
.cat-note { margin-top: 6px; color: var(--lichen); font-size: 0.85rem; }

.size-head { display: flex; margin-left: auto; padding-bottom: 2px; color: var(--lichen); font-size: 0.72rem; font-weight: 600; }
.size-head span { width: 3rem; text-align: right; }

.items { margin: 6px 0 0; padding: 0; list-style: none; }
.item { padding: 8px 0; }

.item-line { display: flex; align-items: flex-start; gap: 8px; }
.item-name { flex: 1 1 auto; min-width: 0; font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.leader { display: none; flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--line-strong); transform: translateY(-5px); }

.item-prices { display: flex; flex: none; align-items: baseline; }
.price {
  color: var(--honey);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.05;
  font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
}
.price small { margin-left: 1px; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; }
.item-prices.sized .price { width: 3rem; }
.price-note { color: var(--lichen); font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; }

.item-desc { max-width: 48ch; margin-top: 2px; color: var(--lichen); font-size: 0.84rem; line-height: 1.4; }

/* Geniş ekran: daha büyük fotoğraf, noktalı çizgili menü satırları */
@media (min-width: 860px) {
  .cats-inner, .menu { max-width: var(--wide); }
  .cat { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 48px; padding-top: 64px; }
  .cat-photo { top: 76px; aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .cat-body { padding-top: 2px; }
  .cat-title { font-size: 2.35rem; }
  .cat-note { font-size: 0.92rem; }
  .size-head { padding-bottom: 3px; font-size: 0.8rem; }
  .size-head span, .item-prices.sized .price { width: 3.6rem; }
  .items { margin-top: 10px; }
  .item { padding: 11px 0; }
  .item-line { align-items: baseline; gap: 10px; }
  .item-name { flex: 0 1 auto; font-size: 1.04rem; line-height: 1.3; }
  .leader { display: block; }
  .price { font-size: 1.45rem; line-height: 1; }
  .price small { margin-left: 2px; font-size: 0.74rem; }
  .price-note { font-size: 0.75rem; }
  .item-desc { margin-top: 3px; font-size: 0.92rem; line-height: 1.5; }
}

.no-results { padding: 48px 0 8px; color: var(--lichen); text-align: center; }

/* Görüş butonu -------------------------------------------------------- */

.feedback-bar {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 20;
  padding: 28px var(--gutter) max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--night) 45%, rgba(20, 32, 27, 0));
  pointer-events: none;
}
.feedback-bar .btn {
  display: flex; width: 100%; max-width: calc(var(--col) - 2 * var(--gutter)); min-height: 56px; margin: 0 auto;
  font-size: 1.02rem; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

/* Görüş formu (alttan açılan panel) ----------------------------------- */

.sheet {
  width: 100%; max-width: var(--col); max-height: min(92dvh, 900px);
  margin: auto auto 0; padding: 0;
  background: var(--pine); color: var(--oat);
  border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(5, 9, 7, 0.66); }
.sheet[open] { animation: sheet-in 0.32s cubic-bezier(0.2, 0.9, 0.25, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(48px); } }

@media (min-width: 720px) {
  .sheet { max-width: 560px; margin: auto; border-radius: var(--radius-lg); }
  .sheet-grip { display: none; }
}

.sheet-body { padding: 10px var(--gutter) max(24px, env(safe-area-inset-bottom)); }
.sheet-grip { width: 44px; height: 5px; margin: 0 auto 16px; border-radius: 5px; background: var(--line-strong); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-title { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 0.95; }

.fb-form { display: grid; gap: 18px; margin-top: 22px; }

.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  position: relative; display: grid; gap: 2px; align-content: start;
  padding: 14px 14px 13px;
  background: var(--night);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background-color 0.15s;
}
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice-title { font-size: 1.05rem; font-weight: 700; }
.choice-desc { color: var(--lichen); font-size: 0.85rem; line-height: 1.35; }
.choice:has(input:checked) { background: rgba(227, 166, 60, 0.1); border-color: var(--honey); }
.choice:has(input:checked) .choice-title { color: var(--honey); }
.choice:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { display: grid; justify-items: center; gap: 12px; padding: 20px 0 4px; text-align: center; }
.done:focus { outline: none; }
.done-mark { width: 110px; height: 64px; }
.done-text { max-width: 36ch; color: var(--lichen); }
.done .btn { margin-top: 12px; }
