@charset "UTF-8";

/* Menü sayfası (/mavisehir/, /buca/) — önce telefon, sonra geniş ekran */

:root {
  /* Girişteki renkler: koyu (#111b1e) ve beyaz */
  --accent: var(--dark);
  --accent-dark: #000000;
  --ring-mid: #5d7378;
  --ring-light: #c5cfd0;
  --page: #f4f5f5;
  --surface: #ffffff;
  --chip: #e8ebec;
  --text: #111b1e;
  --muted: #5f6b6e;
  --line: rgba(17, 27, 30, 0.08);
  --tabbar-h: 64px;
  --gutter: 14px;
}

body {
  --cerez-alt: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 18px);
  background: var(--page);
  color: var(--text);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
}

/* ---------- Geçiş ve giriş animasyonları ---------- */

/* Sayfa değişirken üst çubuk ve alt menü yerinde kalır, yalnızca içerik geçiş yapar */
.header { view-transition-name: ust-cubuk; }
.tabbar { view-transition-name: alt-menu; }

::view-transition-old(ust-cubuk), ::view-transition-new(ust-cubuk),
::view-transition-old(alt-menu), ::view-transition-new(alt-menu) { animation: none; }

/* Kartlar sayfa açılınca sırayla, hafifçe belirir (--i: sıra, JS verir).
   backwards: animasyon bitince iz bırakmaz; kalıcı katman telefonda yazıyı bulanıklaştırır */
.catlist > li,
.grid > li {
  animation: icerik-gir 0.3s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
}

@keyframes icerik-gir { from { opacity: 0; transform: translateY(4px); } }

/* Dokunma tepkisi */
/* Ölçekleme yerine saydamlık: ölçeklenen yazı telefonda bulanıklaşıyor */
.card, .catcard { transition: opacity 0.18s ease; }
.card:active, .catcard:active { opacity: 0.88; }

/* ---------- Üst: logo + şube + dil ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 12px;
}

.header__logo { flex-shrink: 0; display: block; }

.header__logo img {
  display: block;
  width: auto;
  height: 50px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(17, 27, 30, 0.04);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.pill__icon { flex-shrink: 0; }
.pill--branch .pill__icon { color: var(--accent); }
.pill__text { overflow: hidden; text-overflow: ellipsis; }
.pill__chevron { flex-shrink: 0; opacity: 0.7; }

/* Görünmez yerel seçim kutusu: telefonda sistemin kendi seçicisi açılır */
.pill select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* iOS'ta odaklanınca yakınlaştırmasın */
}

.pill:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Dil: iki küçük bayrak, çerçevesiz; seçili olan tam renkli, altında ince çizgi */
.lang {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.lang__opt {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  opacity: 0.4;
  filter: grayscale(0.6);
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.lang__opt svg {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  clip-path: circle(50%);
}

.lang__opt:hover { opacity: 0.75; }

.lang__opt[aria-current] { opacity: 1; filter: none; }

.lang__opt[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 12px;
  height: 2px;
  margin-left: -6px;
  border-radius: 1px;
  background: var(--accent);
}

@media (max-width: 400px) {
  .pill__extra { display: none; }
}

/* Çok dar telefonlar (≈320 px): şube adı kesilmesin diye logo ve boşluklar küçülür */
@media (max-width: 350px) {
  .header { gap: 6px; }
  .header__logo img { height: 40px; }
  .header__actions { gap: 6px; }
  .pill { gap: 4px; padding: 0 9px; font-size: 14px; }
  .pill__chevron { display: none; }
}

/* ---------- Karşılama görseli ---------- */

.hero {
  position: relative;
  max-width: calc(1120px - 2 * var(--gutter));
  margin: 0 var(--gutter);
  height: 168px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--dark);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(17, 27, 30, 0.92) 0%, rgba(17, 27, 30, 0.7) 42%, rgba(17, 27, 30, 0.05) 85%);
}

.hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 80%;
  padding: 0 20px;
  color: #fff;
}

.hero__marka {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}

.hero__marka span { font-weight: 600; }

.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 8vw, 34px);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__title + p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.92;
}

.hero__text::after {
  content: "";
  width: 30px;
  height: 2px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.85);
}

/* ---------- Ana sayfa: kategoriler alt alta ---------- */

.menu > .section__head { margin-top: 18px; }

.catlist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Kart 2:1: fotoğraf (3:2) karta tam oturur, yalnızca üstten-alttan az kırpılır; kart çok büyümez */
.catcard {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  aspect-ratio: 2 / 1;
  padding: 16px 18px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 8px 22px -14px rgba(17, 27, 30, 0.6);
}

.catcard__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transition: transform 0.6s var(--ease);
}

.catcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Yalnızca altta karartma: yazı okunur, fotoğraf açık kalır */
  background: linear-gradient(to top, rgba(17, 27, 30, 0.88) 0%, rgba(17, 27, 30, 0.5) 32%, rgba(17, 27, 30, 0) 62%);
}

@media (hover: hover) { .catcard:hover .catcard__img { transform: scale(1.04); } }
.catcard:active .catcard__img { transform: scale(1.02); }

.catcard__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.catcard__eyebrow {
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.catcard__name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.catcard__count {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.85;
}

.catcard__go {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
}

/* ---------- Kategori sayfası ---------- */

.crumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.crumb__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.next-cat { margin-top: 28px; }

/* ---------- Bölümler ve ürün kartları ---------- */

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

.section { padding-top: 18px; }

.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--text);
}

.section__titles { flex: 1; min-width: 0; }

.section__eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__title {
  margin-top: 1px;
  font-size: clamp(22px, 6.6vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section__count {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}


.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(17, 27, 30, 0.06), 0 6px 18px -12px rgba(17, 27, 30, 0.25);
  cursor: pointer;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--chip);
}

.card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.35;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 12px 12px;
}

/* Kartlar yan yana duran kartla aynı boyda olur (ızgara satırı); fiyat satırı hep en altta */

.card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

/* Açıklama her kartta tam 2 satır: kısa metin 2 satırlık yer kaplar, uzun metin taşmaz */
.card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted);
}

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.price {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1.1;
}

.price__main {
  display: block;
  font-size: 19px;
  font-weight: 700;
}

.price__free {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17, 27, 30, 0.07);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.price__alt {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.card__add {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.card__add:active { transform: scale(0.92); }
.card__add:hover { background: var(--accent-dark); }

/* ---------- Footer: tasarımcı imzası ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1120px;
  margin: 36px auto 0;
  padding: 0 var(--gutter);
}

.footer__site {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.footer__site svg { opacity: 0.6; transition: transform 0.15s ease; }
.footer__site:hover svg { transform: translate(1px, -1px); }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.footer__link:hover { opacity: 1; }

.footer__link img {
  display: block;
  width: auto;
  height: 15px;
}

/* ---------- Alt sekme çubuğu ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--tabbar-h);
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.tabbar__item.is-active { color: var(--accent); font-weight: 600; }

/* ---------- Alttan açılan paneller ---------- */

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.sheet[open] { animation: sheet-up 0.35s var(--ease); }

.sheet::backdrop {
  background: rgba(17, 27, 30, 0.5);
  animation: fade-in 0.25s ease;
}

@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }

.sheet__body {
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet__body--padded { padding: 22px 20px calc(16px + env(safe-area-inset-bottom)); }

.sheet__title { font-size: 26px; font-weight: 600; margin-bottom: 12px; }

.sheet__close {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.sheet__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

.wifi-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.wifi-row strong { font-weight: 600; user-select: all; }

.wifi-copy {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.wifi-copy + .sheet__close { margin-top: 10px; }

/* Ürün detayı: ekranın ortasında açılan pencere */
.sheet--center {
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: calc(100dvh - 48px);
  margin: auto;
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(17, 27, 30, 0.55);
}

.sheet--center[open] { animation: popup-in 0.2s ease-out; }
.sheet--center .sheet__body { max-height: calc(100dvh - 48px); padding-bottom: 0; }
.sheet--center .detail__content { padding-bottom: 24px; }

@keyframes popup-in { from { opacity: 0; transform: translateY(8px); } }


/* Panel açılınca odak gövdeye gelir; dokunmayla açılışta çerçeve görünmesin, klavyede belirgin olsun */
.sheet__body:focus { outline: none; }
.sheet :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sheet.is-dragging { transition: none; }
.sheet.is-returning { transition: transform 0.25s var(--ease); }

.detail__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--chip);
}

.detail__media img,
.detail__media .card__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Üstte hafif karartma: sürükleme çubuğu ve kapatma butonu her fotoğrafta seçilsin */
.detail__media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 90px;
  background: linear-gradient(rgba(17, 27, 30, 0.35), transparent);
  pointer-events: none;
}


.detail__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 14px -4px rgba(17, 27, 30, 0.4);
  cursor: pointer;
}

.detail__content { padding: 20px 22px calc(26px + env(safe-area-inset-bottom)); }

.detail__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail__title {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.detail__desc {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* Fiyatlar: etiket solda, fiyat sağda; satırlar ince çizgiyle ayrılır */
.detail__prices {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.detail__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail__price span { font-size: 15px; color: var(--muted); }
.detail__price strong { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.detail__price .price__free { font-size: 14px; }

.detail__allergen { margin-top: 18px; }

.detail__allergen-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail__tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 13.5px;
  font-weight: 500;
}

/* Ürün değişince yeni içerik kaydırma yönünden gelir */
.detail.is-next .detail__media img,
.detail.is-next .detail__content { animation: urun-sagdan 0.2s ease-out; }
.detail.is-prev .detail__media img,
.detail.is-prev .detail__content { animation: urun-soldan 0.2s ease-out; }

@keyframes urun-sagdan { from { opacity: 0.4; transform: translateX(12px); } }
@keyframes urun-soldan { from { opacity: 0.4; transform: translateX(-12px); } }

/* ---------- Geniş ekran ---------- */

@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .header__logo img { height: 64px; }
  .hero { height: 260px; margin: 0 auto; }
  .hero__text { padding: 0 44px; }
  .hero__marka { font-size: 15px; }
  .hero__title { font-size: 48px; }
  .hero__title + p { font-size: 19px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .catlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .catcard { padding: 24px; }
  .catcard__name { font-size: 32px; }
  .section__title { font-size: 32px; }
  .tabbar { left: 0; right: 0; margin-inline: auto; width: min(560px, 100%); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
  .sheet { margin-bottom: auto; border-radius: 20px; }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .catlist > li, .grid > li { animation: none; }
  .card, .catcard { transition: none; }
  .sheet[open], .sheet--center[open], .sheet::backdrop,
  .detail.is-next .detail__media img, .detail.is-next .detail__content,
  .detail.is-prev .detail__media img, .detail.is-prev .detail__content { animation: none; }
}

/* ---------- İkramlarımız: hikâye halkaları ---------- */

.stories {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 0 4px;
}

/* Kategoriler başlığıyla aynı görünüm; şerit tam genişlikte kaydığı için başlık kenar boşluğu alır */
.stories__head {
  margin: 0 var(--gutter) 2px;
}

.stories__viewport {
  overflow: hidden;
  /* Kenarlarda yumuşak solma */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}

.stories__list {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 10px 0 6px;
  list-style: none;
  animation: serit-kay var(--kayma-suresi, 40s) linear infinite;
}

/* Boşluk her öğenin sağında: iki kopya tam yarıda birleşir, kayma kesintisiz olur */
.stories__list > li { padding-right: 14px; }

.stories__list:hover,
.stories__list.is-paused { animation-play-state: paused; }

@keyframes serit-kay { to { transform: translateX(-50%); } }

.story-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 80px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

/* Halka: sabit açık gri zemin üzerinde sürekli dönen koyu bir ışık yayı */
.story-btn__ring {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: 50%;
  isolation: isolate;
}

.story-btn__ring::before,
.story-btn__ring::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
}

.story-btn__ring::before { background: #d3d9da; }

.story-btn__ring::after {
  background: conic-gradient(from 0deg, transparent 0 40%, var(--ring-light) 62%, var(--ring-mid) 80%, var(--accent) 100%);
  animation: ring-spin 2.4s linear infinite;
}

.story-btn__ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--page);
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.25s var(--ease);
}

.story-btn:active .story-btn__ring img { transform: scale(0.92); }


/* İsim en çok 2 satır, ortalı: "Dondurmalı İrmik" gibi uzun adlar kesilmeden okunur */
.story-btn__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  max-width: 100%;
  padding-bottom: 1px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ---------- Tam ekran hikâye görüntüleyici ---------- */

.story {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.story::backdrop { background: #000; }
.story[open] { animation: story-in 0.3s var(--ease); }

@keyframes story-in { from { opacity: 0; } }

.story__frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.story__bg {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px) brightness(0.55) saturate(1.2);
}

/* Fotoğraf kırpılmadan, tamamı görünür */
.story__img {
  position: absolute;
  top: 50%;
  left: 16px;
  width: calc(100% - 32px);
  max-height: 60%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(-58%);
}

.story__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: max(10px, env(safe-area-inset-top)) 12px 28px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
}

.story__bars { display: flex; gap: 4px; }

.story__bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.story__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.story__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.story__label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.story__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

/* Sol üçte bir: önceki, gerisi: sonraki. Basılı tutunca durur. */
.story__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.story__nav--prev { left: 0; width: 33%; }
.story__nav--next { right: 0; width: 67%; }

.story__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 80px 20px calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.story__price {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.story__name {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

.story__desc {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.45;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .stories__list > li { padding-right: 20px; }
  .story-btn { width: 88px; }
  .story-btn__ring { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-btn__ring::after, .story[open], .stories__list { animation: none; }
  .stories__viewport { overflow-x: auto; scrollbar-width: none; }
  .stories__list { padding-left: var(--gutter); }
  .stories__list > li[aria-hidden="true"] { display: none; }
}
