/* Mackbear Akkent — 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; }

.cat.no-photo { grid-template-columns: minmax(0, 1fr); }
.promo-link { color: var(--honey); }

/* İndirim: eski fiyat üstü çizili, yeni fiyatın üstünde */
.item-prices:has(.stacked) { align-items: flex-end; }
.price.stacked { display: inline-flex; flex-direction: column; align-items: flex-end; }
.price-was {
  color: var(--lichen);
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; line-height: 1.2;
  text-decoration-thickness: 1.5px;
}
.price-was small { font-size: 0.9em; }
.price-size { color: var(--lichen); font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; line-height: 1.3; }
.sale-badge {
  display: inline-block; padding: 0 6px;
  background: var(--honey); color: var(--honey-ink); border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; line-height: 1.55; vertical-align: 2px; white-space: nowrap;
}

.item.sold-out .item-name, .item.sold-out .item-desc, .item.sold-out .item-thumb { opacity: 0.5; }
.price-note.sold { color: var(--berry); }

/* Ürün fotoğrafı: dokununca büyür. Telefonda dar sütunda adı daraltmasın diye
   ad satırının altında, açıklamanın yanında durur. */
.item-main { min-width: 0; }
.item.has-photo { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 10px; align-items: start; }
.item.has-photo .item-main { display: contents; }
.item.has-photo .item-line { grid-column: 1 / -1; }
.item.has-photo .item-desc { grid-row: 2; grid-column: 2; margin-top: 0; }
.item-thumb {
  grid-row: 2; grid-column: 1;
  display: block; width: 44px; height: 44px; padding: 0; overflow: hidden;
  background: var(--pine); border: 0; border-radius: 10px; cursor: zoom-in;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.photo-view {
  width: min(92vw, 560px); padding: 0; overflow: hidden;
  background: var(--pine); color: var(--oat);
  border: 0; border-radius: var(--radius-lg);
}
.photo-view::backdrop { background: rgba(5, 9, 7, 0.82); }
.photo-view figure { margin: 0; }
.photo-view img { width: 100%; max-height: 72dvh; object-fit: contain; background: var(--night); }
.photo-view figcaption { padding: 14px 18px 16px; font-size: 1.1rem; font-weight: 700; }
.photo-view .icon-btn { position: absolute; top: 10px; right: 10px; background: rgba(20, 32, 27, 0.72); }

/* Kampanyalar: menünün başında Instagram story gibi yana kayan dikey kartlar */
.cat.promo { display: block; }
.story-rail {
  display: flex; gap: 12px;
  margin: 14px calc(var(--gutter) * -1) 0; padding: 6px var(--gutter) 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  list-style: none; scrollbar-width: none;
}
.story-rail::-webkit-scrollbar { display: none; }
.story-rail li { flex: none; scroll-snap-align: start; }
.story-card {
  position: relative; display: block; width: clamp(148px, 42vw, 200px); aspect-ratio: 9 / 16;
  padding: 0; overflow: hidden;
  background: linear-gradient(160deg, var(--moss), var(--pine));
  border: 0; border-radius: 18px;
  /* görülmemiş kampanya: bal rengi halka */
  box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--honey);
  color: var(--oat); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s, box-shadow 0.18s;
}
.story-card.seen { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--line-strong); }
.story-card:hover { transform: translateY(-2px); }
.story-card:active { transform: scale(0.98); }
.story-card:focus-visible { outline: 2px solid var(--oat); outline-offset: 6px; }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card .story-mark { position: absolute; top: 30%; left: 50%; width: 64%; aspect-ratio: 1.7; opacity: 0.35; transform: translateX(-50%); }
.story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 13, 0.35) 0%, transparent 28%, transparent 45%, rgba(10, 16, 13, 0.92) 100%); }
.story-when {
  position: absolute; top: 10px; left: 10px; padding: 2px 8px;
  background: var(--honey); color: var(--honey-ink); border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; line-height: 1.5;
}
.story-text { position: absolute; right: 12px; bottom: 12px; left: 12px; display: grid; gap: 4px; }
.story-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 0.98; overflow-wrap: anywhere; text-wrap: balance; }
.story-meta { color: var(--honey); font-size: 0.78rem; font-weight: 700; }

/* Kampanya penceresi: telefonda tam ekran story, geniş ekranda ortada dikey kart */
.story {
  width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  overflow: hidden; background: var(--night); color: var(--oat); border: 0;
  touch-action: pan-y;
}
.story[open] { display: flex; flex-direction: column; animation: story-in 0.26s cubic-bezier(0.2, 0.9, 0.25, 1); }
@keyframes story-in { from { opacity: 0; transform: scale(0.96); } }
.story::backdrop { background: rgba(5, 9, 7, 0.86); }
.story-progress {
  position: absolute; z-index: 3; top: max(10px, env(safe-area-inset-top)); right: 64px; left: 12px;
  display: flex; gap: 4px;
}
.story-progress span { flex: 1; height: 3px; background: rgba(240, 233, 219, 0.3); border-radius: 3px; }
.story-progress span.seen { background: var(--oat); }
.story-close { position: absolute; z-index: 3; top: max(4px, calc(env(safe-area-inset-top) - 6px)); right: 8px; background: rgba(20, 32, 27, 0.6); border-color: transparent; }
.story-media { position: relative; flex: none; height: min(52dvh, 120vw); background: var(--pine); }
.story-media::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 72px; background: linear-gradient(rgba(10, 16, 13, 0.6), transparent); pointer-events: none; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-tap { position: absolute; z-index: 2; top: 0; bottom: 0; padding: 0; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.story-tap.prev { left: 0; width: 35%; }
.story-tap.next { right: 0; width: 65%; }
.story-tap:disabled { cursor: default; }
.story-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px var(--gutter) 20px; }
.story-media .story-mark { display: none; }
.story.no-media .story-media { height: min(30dvh, 240px); background: linear-gradient(160deg, var(--moss), var(--pine)); }
.story.no-media .story-mark { display: block; position: absolute; top: 54%; left: 50%; width: 120px; aspect-ratio: 1.7; opacity: 0.4; transform: translate(-50%, -50%); }
.story-title { margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 0.95; overflow-wrap: anywhere; }
.story-desc { margin-top: 10px; color: var(--oat); font-size: 1rem; line-height: 1.55; white-space: pre-line; }
.story-sub { margin-top: 20px; color: var(--lichen); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.story-body .promo-items { margin-top: 6px; border-top: 1px solid var(--line); }
.promo-when { color: var(--honey); font-size: 0.8rem; font-weight: 700; }
.story-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.story-foot .btn { gap: 4px; padding: 0 12px; }
.story-foot .btn svg { width: 16px; height: 16px; }
.story-foot .btn:disabled { opacity: 0.3; cursor: default; }
.story-count { color: var(--lichen); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

@media (min-width: 600px) {
  .story { width: min(440px, 92vw); height: min(88dvh, 860px); margin: auto; border-radius: var(--radius-lg); }
  .story-media { height: 50%; }
  .story-progress { top: 12px; }
  .story-close { top: 6px; }
}

/* 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; }
  .item.on-sale .item-line { align-items: flex-end; }
  .price-was { font-size: 0.82rem; }
  .price-size { font-size: 0.7rem; }
  .item.has-photo { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .item.has-photo .item-main { display: block; }
  .item.has-photo .item-desc { margin-top: 3px; }
  .item-thumb { grid-row: auto; width: 64px; height: 64px; border-radius: 12px; }
  .story-rail { gap: 16px; margin-inline: 0; padding-inline: 4px; scroll-padding-inline: 4px; }
}

.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; }
.choice-wide { grid-column: 1 / -1; }

/* Çalışan puanlama: çalışan seçimi ve yıldızlar */
.rating-fields { display: grid; gap: 18px; }
.emp-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.emp-choice {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 2px;
  padding: 12px 6px 10px;
  background: var(--night);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background-color 0.15s;
}
.emp-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.emp-face {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; overflow: hidden;
  background: var(--moss); border-radius: 50%;
  color: var(--honey); font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
}
.emp-face img { width: 100%; height: 100%; object-fit: cover; }
.emp-name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.emp-role { color: var(--lichen); font-size: 0.78rem; line-height: 1.3; }
.emp-choice:has(input:checked) { background: rgba(227, 166, 60, 0.1); border-color: var(--honey); }
.emp-choice:has(input:checked) .emp-name { color: var(--honey); }
.emp-choice:has(input:checked) .emp-face { box-shadow: 0 0 0 2px var(--honey); }
.emp-choice:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }

.star-input { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.star-input label { position: relative; display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.star-input input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.star-input svg { width: 38px; height: 38px; fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-linejoin: round; transition: fill 0.12s, stroke 0.12s, transform 0.12s; }
.star-input label.on svg { fill: var(--honey); stroke: var(--honey); }
.star-input label:has(input:checked) svg { transform: scale(1.08); }
.star-input label:has(input:focus-visible) { outline: 2px solid var(--honey); outline-offset: -2px; border-radius: 10px; }
.star-word { margin-left: 8px; color: var(--honey); font-weight: 700; }

.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; }
