/* ====================================================================
   The Nook Cafe — Müşteri Menüsü (Light, sade, Apple-inspired)
   ==================================================================== */

:root {
  --bg: #fbf9f4;             /* warm white */
  --surface: #ffffff;
  --surface-2: #f5f2eb;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-soft: rgba(0, 0, 0, 0.05);

  --ink: #1c1a17;            /* primary text */
  --ink-soft: #57544f;       /* secondary */
  --ink-mute: #8e8a82;       /* tertiary */

  --accent: #5fb8a4;         /* mint — logo primary */
  --accent-soft: #a8dcd0;
  --accent-bg: #eaf6f2;

  --accent-2: #dda77b;       /* tan — logo secondary */
  --accent-2-soft: #ebc4a3;
  --accent-2-bg: #fbf0e6;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --shadow: 0 8px 24px -12px rgba(0,0,0,0.12), 0 2px 6px -2px rgba(0,0,0,0.04);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --maxw: 1100px;
  --topbar-h: 60px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Inter, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100dvh; }

img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }

/* ---------- Top bar ----------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-soft);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topbar__brand .topbar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__brand-link { display: flex; align-items: center; }
.topbar__logo-img {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.topbar__actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.topbar__logo {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em;
}
.topbar__name { font-weight: 600; font-size: 15px; letter-spacing: -0.005em; }
.topbar__name small {
  display: block;
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.icon-btn:hover { background: #ebe7de; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Hero --------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 22px 24px;
}
.hero__title {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.hero__sub {
  margin: 0;
  max-width: 540px;
  color: var(--ink-soft);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
}

/* ---------- Sticky category chips ---------------------------------- */
.catbar-wrap {
  position: sticky; top: var(--topbar-h);
  z-index: 40;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-soft);
  position: -webkit-sticky;
}
.catbar-wrap::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(251,249,244,0), rgba(251,249,244,0.95));
}
.catbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.catbar::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.cat-chip:hover { color: var(--ink); background: var(--surface-2); }
.cat-chip.active {
  background: var(--ink);
  color: #fbf9f4;
}

/* ---------- Search overlay ----------------------------------------- */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  padding: 22px;
  background: rgba(28, 26, 23, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.search-overlay.open { display: block; animation: fade .15s var(--ease); }
.search-overlay__panel {
  max-width: 640px; margin: 8vh auto 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-size: 20px;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--hairline);
}
.search-overlay__input::placeholder { color: var(--ink-mute); }
.search-results { margin-top: 14px; max-height: 50vh; overflow-y: auto; }
.search-result {
  display: flex; gap: 12px; align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.search-result:hover { background: var(--surface-2); }
.search-result__thumb {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface-2);
  object-fit: cover;
}
.search-result__name { font-weight: 500; color: var(--ink); }
.search-result__cat { color: var(--ink-mute); font-size: 12px; }
.search-result__price { margin-left: auto; color: var(--accent); font-weight: 600; }

/* ---------- Section / grid ----------------------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 22px 4px;
  scroll-margin-top: 130px;
}
.section__head { margin-bottom: 18px; }
.section__title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.section__title span {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 0.6em;
  margin-left: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

/* ---------- Product card ------------------------------------------- */
.card { position: relative; height: 100%; }
.card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.card__inner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card__inner:active { transform: scale(0.99); }
.card__inner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-2) center/cover no-repeat;
  flex-shrink: 0;
}
.card__media--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f7f3eb, #ece6da);
  color: var(--ink-mute);
}
.card__media--placeholder svg { width: 32%; opacity: 0.55; }

.card__body {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  flex: 1;
}
.card__name {
  display: -webkit-box;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(14.5px * 1.3 * 2);
}
.card__price {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent);
  letter-spacing: 0.005em;
}

/* ---------- Detail sheet ------------------------------------------- */
.sheet {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  background: rgba(28, 26, 23, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sheet.open { display: block; animation: fade 0.2s var(--ease); }
.sheet__panel {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translate(-50%, 0);
  width: min(640px, 100%);
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 18px 24px calc(28px + env(safe-area-inset-bottom));
  max-height: 90dvh;
  overflow-y: auto;
  animation: sheet-up 0.3s var(--ease);
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,0.25);
}
@media (min-width: 720px) {
  .sheet__panel {
    bottom: auto; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    animation: sheet-pop 0.25s var(--ease);
  }
}
.sheet__grab {
  width: 40px; height: 4px;
  background: var(--hairline);
  border-radius: 4px;
  margin: 0 auto 16px;
}
@media (min-width: 720px) { .sheet__grab { display: none; } }
.sheet__media {
  width: 100%;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}
.sheet__media.is-ready { background: transparent; min-height: 0; }
.sheet__media-img {
  display: none;
  max-width: 100%;
  max-height: 60dvh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
}
.sheet__media.is-ready .sheet__media-img { display: block; }
.sheet__name {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.sheet__cat {
  color: var(--ink-mute);
  font-size: 13px;
  margin-bottom: 14px;
}
.sheet__desc {
  color: var(--ink-soft);
  line-height: 1.55;
  white-space: pre-line;
  font-size: 15px;
}
.sheet__price {
  margin-top: 20px;
  font-size: 24px;
  color: var(--accent);
  font-weight: 600;
}
.sheet__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-soft);
  cursor: pointer;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes sheet-pop { from { transform: translate(-50%, -45%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

/* ---------- Skeleton / shimmer ------------------------------------ */
.skeleton {
  position: relative;
  background-color: #eee6d6;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-position: -200% 0;
  animation: shimmer 1.4s linear infinite;
  color: transparent !important;
}
.skeleton * { visibility: hidden; }
@keyframes shimmer {
  0%   { background-position: -150% 0; }
  100% { background-position: 250% 0; }
}

/* Image skeleton wrapper (kart görseli yüklenirken) */
.card__media.is-loading,
.sheet__media.is-loading,
.search-result__thumb.is-loading {
  background-color: #eee6d6;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: shimmer 1.4s linear infinite;
}

/* Fade-in once image attaches */
.card__media.is-ready,
.sheet__media.is-ready {
  animation: img-in 0.35s var(--ease);
}
@keyframes img-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Top banners (kapalı / kampanya) ------------------------ */
.topbanner {
  padding: 10px 22px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--hairline-soft);
  position: relative;
  z-index: 49;
}
.topbanner strong { font-weight: 600; }
.topbanner .muted { color: var(--ink-soft); }
.topbanner--closed {
  background: #fcebea;
  color: #76211f;
  border-bottom-color: rgba(184,66,63,0.18);
}
.topbanner--closed .muted { color: #b2655f; }
.topbanner--campaign {
  background: var(--accent-bg);
  color: #6d4b1e;
  border-bottom-color: rgba(95,184,164,0.2);
}
.topbanner--campaign .muted { color: #9a7240; }

/* ---------- Dil seçici ---------------------------------------------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  padding: 2px;
}
.lang-switch__btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.active {
  background: var(--ink);
  color: #fbf9f4;
}

/* ---------- Hero story butonu --------------------------------------- */
.hero__story {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fbf9f4;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.hero__story:hover { background: #2a2622; }
.hero__story:active { transform: scale(0.97); }
.hero__story-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--ink);
}
.hero__story-icon svg { width: 12px; height: 12px; margin-left: 2px; }
.hero__story .muted { color: rgba(251,249,244,0.6); }

/* ---------- Kart rozetleri ----------------------------------------- */
.card__badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex; flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 16px);
  z-index: 1;
}
.card-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  color: var(--ink);
  white-space: nowrap;
}
.badge-sale     { background: #fdecec; color: #b8423f; border-color: rgba(184,66,63,0.25); }
.badge-day      { background: var(--accent-2-bg); color: #a06a40; border-color: rgba(221,167,123,0.4); }
.badge-chefs    { background: var(--accent-bg); color: var(--accent); border-color: rgba(95,184,164,0.3); }
.badge-popular  { background: #fde9e0; color: #b44d18; border-color: rgba(180,77,24,0.25); }
.badge-new      { background: #e9f6ec; color: #2f8f5e; border-color: rgba(47,143,94,0.3); }

/* card kartında konteyner ihtiyacı için relative */
.card__inner { position: relative; }

/* ---------- Fiyat satırı ------------------------------------------- */
.card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.card__price-orig {
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: line-through;
}

.sheet__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
}
.sheet__price {
  font-size: 24px;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.sheet__price-orig {
  color: var(--ink-mute);
  text-decoration: line-through;
  font-size: 16px;
}

/* ---------- Footer iletişim ---------------------------------------- */
.foot { gap: 16px; flex-wrap: wrap; }
.foot__social {
  display: flex; gap: 8px;
  margin-left: auto;
}
.foot__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-soft);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.foot__icon:hover { background: var(--accent-bg); color: var(--accent); }
.foot__icon svg { width: 18px; height: 18px; }

/* ---------- Story modu --------------------------------------------- */
.story {
  position: fixed; inset: 0;
  z-index: 300;
  display: none;
  background: #0a0908;
  overflow: hidden;
}
.story.open { display: block; }
.story__bars {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; gap: 4px;
  z-index: 5;
}
.story__bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.story__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
  transition: none;
}
.story__bar.done .story__bar-fill { width: 100%; transition: none; }
.story__bar.active .story__bar-fill { animation: story-fill 5s linear forwards; }
.story__bar.paused .story__bar-fill { animation-play-state: paused; }
@keyframes story-fill { from { width: 0; } to { width: 100%; } }

.story__close {
  position: absolute; top: 28px; right: 14px;
  width: 38px; height: 38px;
  z-index: 5;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  border: none;
}
.story__slides {
  position: absolute; inset: 0;
}
.story__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.story__slide.active { opacity: 1; visibility: visible; }
.story__bg {
  position: absolute; inset: 0;
  background-color: #111;
  background-position: center;
  background-size: cover;
}
.story__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
}
.story__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 28px calc(40px + env(safe-area-inset-bottom));
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
}
.story__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #1c1206;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.story__cat {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.story__name {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.story__desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story__price-row {
  display: flex; align-items: baseline; gap: 12px;
}
.story__price {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
}
.story__price-orig {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  text-decoration: line-through;
}
.story__nav {
  position: absolute; top: 0; bottom: 0;
  width: 38%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 4;
}
.story__nav--prev { left: 0; }
.story__nav--next { right: 0; }

/* ---------- Popup --------------------------------------------------- */
.nook-popup {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 250;
  pointer-events: none;
  display: none;
}
.nook-popup.open {
  display: block;
  animation: fade 0.2s var(--ease);
}
.nook-popup__card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.2);
  pointer-events: auto;
  position: relative;
  animation: popup-up 0.35s var(--ease);
}
@keyframes popup-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nook-popup__close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: var(--surface-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  border: none;
}
.nook-popup__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--surface-2);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.nook-popup__icon svg { width: 32px; height: 32px; }
.nook-popup__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.nook-popup__body {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.nook-popup__wifi {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.nook-popup__featured {
  background: var(--surface-2);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
}
.nook-popup__featured-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  overflow: hidden;
}
.nook-popup__featured-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nook-popup__featured-info {
  padding: 12px 14px 14px;
}
.nook-popup__featured-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.nook-popup__featured-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nook-popup__featured-price {
  font-size: 15px;
  color: var(--accent);
}
.nook-popup__featured-price-orig {
  color: var(--ink-mute);
  text-decoration: line-through;
  margin-right: 4px;
  font-size: 13px;
}
.nook-popup__newsletter { margin-bottom: 14px; }
.nook-popup__newsletter .input { font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.nook-popup__actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.nook-popup__actions .btn { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.nook-popup__actions .btn--primary { background: var(--ink); color: #fbf9f4; }
.nook-popup__actions .btn--ghost { color: var(--ink-soft); border-color: transparent; }

/* Yardımcı: text class */
.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s var(--ease);
}
.input:focus { border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.12s var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn--primary { background: var(--ink); color: #fbf9f4; border-color: var(--ink); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }

/* ---------- Kampanya popup ----------------------------------------- */
.campaign-popup {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  background: rgba(28, 26, 23, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  align-items: center;
  justify-content: center;
}
.campaign-popup.open { display: flex; animation: fade 0.2s var(--ease); }
.campaign-popup__card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  width: min(420px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35);
  position: relative;
  animation: campaign-pop 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
@keyframes campaign-pop {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.campaign-popup__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  cursor: pointer;
  border: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.campaign-popup__media {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface-2) center/cover no-repeat;
  position: relative;
  flex-shrink: 0;
}
.campaign-popup__media--bare {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-bg), #fff5e0);
}
.campaign-popup__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px;
  background: var(--ink);
  color: #fbf9f4;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.campaign-popup__badge-lg {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.campaign-popup__body {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.campaign-popup__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.campaign-popup__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.campaign-popup__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  margin-top: 4px;
}
.campaign-popup__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ---------- Top progress bar (page transition) -------------------- */
#nook-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
#nook-progress.active { opacity: 1; }
#nook-progress.done   { width: 100% !important; opacity: 0; }

/* ---------- Footer ------------------------------------------------- */
.foot {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 28px 22px 36px;
  border-top: 1px solid var(--hairline-soft);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-mute);
  font-size: 13px;
}
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .topbar { padding: 0 14px; height: 56px; }
  :root { --topbar-h: 56px; }
  .topbar__logo { width: 28px; height: 28px; font-size: 13px; }
  .topbar__name { font-size: 14px; }
  .topbar__name small { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-switch__btn { padding: 4px 8px; font-size: 11px; }
  .topbanner { padding: 8px 14px; font-size: 13px; }
  .topbanner .muted { display: none; }
  .hero { padding: 28px 16px 12px; }
  .hero__title { font-size: clamp(28px, 8vw, 40px); }
  .hero__sub { font-size: 14px; }
  .hero__story { margin-top: 14px; padding: 9px 14px 9px 10px; font-size: 13px; }
  .section { padding: 24px 16px 4px; }
  .section__title { font-size: clamp(20px, 5vw, 24px); }
  .catbar { padding: 10px 14px; gap: 6px; }
  .cat-chip { padding: 7px 12px; font-size: 13px; }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card__name { font-size: 13.5px; min-height: calc(13.5px * 1.3 * 2); }
  .card__price { font-size: 13.5px; }
  .card__price-row { gap: 6px; }
  .card__price-orig { font-size: 11px; }
  .card__body { padding: 10px 12px 12px; }
  .card__badges { top: 6px; left: 6px; gap: 3px; max-width: calc(100% - 12px); }
  .card-badge { font-size: 10px; padding: 2px 7px; }
  .foot { flex-direction: column; gap: 14px; text-align: center; padding: 24px 18px 32px; }
  .foot__social { margin: 0 auto; }
  .search-overlay { padding: 14px; }
  .search-overlay__panel { padding: 16px; margin-top: 6vh; }
  .search-overlay__input { font-size: 18px; }
  .sheet__panel { padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); }
  .sheet__name { font-size: 22px; }
  .sheet__price { font-size: 22px; }

  /* Kampanya popup mobil */
  .campaign-popup { padding: 12px; }
  .campaign-popup__body { padding: 16px 18px 18px; }
  .campaign-popup__title { font-size: 18px; }
  .campaign-popup__badge { font-size: 13px; padding: 5px 10px; }
  .campaign-popup__badge-lg { font-size: 38px; }

  /* Nook-popup mobil */
  .nook-popup__card { padding: 18px 18px 14px; }
  .nook-popup__icon { width: 48px; height: 48px; }
  .nook-popup__title { font-size: 16px; }

  /* Story modu mobil — close butonu safe-area */
  .story__close { top: calc(20px + env(safe-area-inset-top)); right: 10px; width: 36px; height: 36px; }
  .story__bars { top: calc(8px + env(safe-area-inset-top)); }
  .story__content { padding: 28px 22px calc(34px + env(safe-area-inset-bottom)); }
  .story__name { font-size: clamp(24px, 6vw, 32px); }
  .story__desc { font-size: 14px; -webkit-line-clamp: 3; }
  .story__price { font-size: 24px; }
}
@media (max-width: 360px) {
  .grid { gap: 8px; }
  .card__body { padding: 8px 10px 10px; }
  .topbar__name small { display: none; }
  .topbar__name { font-size: 13px; }
  .lang-switch { display: none; }
}
