/* QR menü — Cadının Evi tarzı, petrol + altın */
:root {
  --petrol: #0c3d42;
  --petrol-deep: #072c30;
  --petrol-mid: #14545a;
  --gold: #c9a227;
  --gold-bright: #e0c35a;
  --gold-deep: #9a7b1a;
  --gold-grad: linear-gradient(135deg, #8a6d14 0%, #c9a227 40%, #f0d978 52%, #c9a227 70%, #a6851c 100%);
  --bg: #f7f9f8;
  --surface: #ffffff;
  --ink: #0a2e31;
  --muted: #4d6568;
  --line: rgba(12, 61, 66, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body.qr-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes qr-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* Açılış splash */
.qr-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(201, 162, 39, 0.28), transparent 60%),
    linear-gradient(165deg, #0c3d42 0%, #072c30 100%);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.qr-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.qr-splash-inner {
  text-align: center;
  animation: qr-splash-rise 0.7s var(--ease) both;
}

.qr-splash-logo {
  display: block;
  margin: 0 auto;
  height: clamp(4.2rem, 18vw, 6rem);
  width: auto;
  max-width: min(340px, 82vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.qr-splash-tagline {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  color: rgba(240, 217, 120, 0.92);
}

.qr-splash-pulse {
  display: block;
  width: 2.2rem;
  height: 2px;
  margin: 1.35rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e0c35a, transparent);
  animation: qr-splash-pulse 1.1s ease-in-out infinite;
}

@keyframes qr-splash-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes qr-splash-pulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.7); }
  50% { opacity: 1; transform: scaleX(1); }
}

body.qr-splash-pending .qr-topbar,
body.qr-splash-pending .qr-hero,
body.qr-splash-pending .qr-main,
body.qr-splash-pending .qr-engage {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .qr-splash-inner,
  .qr-splash-pulse { animation: none; }
  .qr-splash { transition-duration: 0.15s; }
}

/* Üst bar */
.qr-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  animation: qr-in 0.5s var(--ease) both;
}

.qr-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--petrol);
  white-space: nowrap;
}

.qr-topbar-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Logo hero */
.qr-hero {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 1.35rem 1.25rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% 20%, rgba(201, 162, 39, 0.22), transparent 60%),
    linear-gradient(180deg, #e8f2f1 0%, #f7f9f8 100%);
  animation: qr-in 0.55s var(--ease) 0.05s both;
}

.qr-hero-logo {
  display: inline-block;
  line-height: 0;
}

.qr-hero-logo img {
  height: clamp(4.2rem, 16vw, 5.6rem);
  width: auto;
  max-width: min(340px, 86vw);
  object-fit: contain;
}

.qr-hero-tagline {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-deep);
}

.qr-hero-badge {
  display: inline-block;
  margin: 0.65rem 0 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--petrol-deep);
  background: var(--gold-grad);
}

.qr-main {
  position: relative;
  z-index: 5;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.35rem 1rem 0.5rem;
}

/* Kategori kartları — diagonal */
.qr-cat-grid {
  display: grid;
  gap: 0.85rem;
}

.qr-cat-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 7.4rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 28px rgba(12, 61, 66, 0.12);
  animation: qr-in 0.55s var(--ease) both;
  background: var(--petrol);
}

.qr-cat-card:nth-child(2) { animation-delay: 0.06s; }
.qr-cat-card:nth-child(3) { animation-delay: 0.1s; }

.qr-cat-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--petrol) 0%, var(--petrol) 38%, rgba(12, 61, 66, 0.35) 52%, transparent 62%),
    var(--cat-img) right center / cover no-repeat;
}

.qr-cat-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 7.4rem;
  padding: 1.1rem 1.2rem;
  max-width: 52%;
  color: #fff;
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.qr-cat-card:active {
  transform: scale(0.985);
}

/* Döner alt kategorileri */
.qr-subcat-grid {
  display: grid;
  gap: 0.65rem;
}

.qr-subcat-card {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: 0 6px 18px rgba(12, 61, 66, 0.06);
  animation: qr-in 0.45s var(--ease) both;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.qr-subcat-card:nth-child(2) { animation-delay: 0.04s; }
.qr-subcat-card:nth-child(3) { animation-delay: 0.08s; }
.qr-subcat-card:nth-child(4) { animation-delay: 0.12s; }
.qr-subcat-card:nth-child(5) { animation-delay: 0.16s; }

.qr-subcat-card:active {
  transform: scale(0.985);
}

.qr-subcat-photo {
  grid-row: 1 / span 2;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 0.75rem;
  background:
    linear-gradient(145deg, rgba(12, 61, 66, 0.15), transparent 55%),
    var(--cat-img) center / cover no-repeat;
  background-color: var(--petrol);
}

.qr-subcat-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--petrol);
  letter-spacing: 0.01em;
}

.qr-subcat-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(12, 61, 66, 0.55);
}

.qr-gramaj {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--petrol);
  letter-spacing: 0.02em;
}

.qr-item.has-gramaj .qr-item-top h3 {
  margin: 0;
}

/* Kategori ürün listesi */
.qr-section[hidden] { display: none !important; }

.qr-section-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0.85rem;
}

.qr-back {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--petrol);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.qr-back svg {
  width: 1.1rem;
  height: 1.1rem;
}

.qr-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--petrol);
}

.qr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.qr-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.9rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  align-items: center;
  animation: qr-in 0.45s var(--ease) both;
}

.qr-item-media {
  position: relative;
  display: block;
  width: 108px;
  height: 108px;
  padding: 0;
  border: 0;
  border-radius: 0.95rem;
  overflow: hidden;
  cursor: zoom-in;
  background:
    linear-gradient(145deg, rgba(201, 162, 39, 0.22), transparent 45%),
    #0c3d42;
  box-shadow:
    inset 0 0 0 2px rgba(224, 195, 90, 0.45),
    0 8px 18px rgba(12, 61, 66, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.qr-item-media:hover,
.qr-item-media:focus-visible {
  transform: scale(1.04);
  outline: none;
}

.qr-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.qr-item-media.is-ekmek img { object-position: 50% 58%; transform: scale(1.18); }
.qr-item-media.is-lavas img { object-position: 42% 48%; transform: scale(1.22); }
.qr-item-media.is-porsiyon img { object-position: 50% 62%; transform: scale(1.2); }

.qr-item-media.is-ice {
  background: radial-gradient(circle at 50% 35%, #f7fbfa 0%, #e8f1f0 55%, #d5e4e3 100%);
}
.qr-item-media.is-ice img {
  object-fit: cover;
  object-position: center 40%;
  padding: 0;
  transform: scale(1.02);
}
.qr-item-media.is-ice.is-cutout img {
  object-fit: contain;
  object-position: center;
  padding: 0.15rem;
  transform: none;
}
.qr-item-media:hover img { transform: scale(1.28); }
.qr-item-media.is-ice:hover img { transform: scale(1.08); }
.qr-item-media.is-ice.is-cutout:hover img { transform: scale(1.05); }

.qr-zoom-badge {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.28rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  color: #072c30;
  background: linear-gradient(135deg, #e0c35a, #c9a227);
}

.qr-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.qr-item h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--petrol);
}

.qr-price {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold-deep);
}

.qr-item p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.qr-item.is-soldout { opacity: 0.55; }
.qr-soldout {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a33;
}

.qr-error {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

/* Alt: takip + görüş */
.qr-engage {
  position: relative;
  z-index: 5;
  max-width: 560px;
  margin: 1.25rem auto 0;
  padding: 0 1rem 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.qr-engage-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(12, 61, 66, 0.06);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.qr-engage-card:active { transform: scale(0.985); }

.qr-engage-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  color: var(--petrol-deep);
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.28), rgba(12, 61, 66, 0.08));
}

.qr-engage-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.qr-engage-card strong {
  display: block;
  font-size: 1rem;
  color: var(--petrol);
}

.qr-engage-card small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Lightbox */
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 1.25rem;
  background: rgba(7, 44, 48, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.qr-lightbox[hidden] { display: none !important; }

.qr-lightbox.is-open {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.qr-lightbox-close {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--petrol-deep);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.qr-lightbox-card {
  margin: 0;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-18px) scale(0.96);
  transition: transform 0.3s var(--ease);
}

.qr-lightbox.is-open .qr-lightbox-card { transform: none; }

.qr-lightbox-card img {
  display: block;
  width: 100%;
  max-height: min(62vh, 480px);
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #f7fbfa 0%, #e8f1f0 55%, #d5e4e3 100%);
}

.qr-lightbox-card figcaption {
  padding: 0.95rem 1.05rem 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.qr-lightbox-card strong {
  font-size: 1.15rem;
  color: var(--petrol);
}

.qr-lightbox-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .qr-item { grid-template-columns: 128px 1fr; }
  .qr-item-media { width: 128px; height: 128px; }
  .qr-cat-card,
  .qr-cat-label { min-height: 8.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qr-topbar,
  .qr-hero,
  .qr-cat-card,
  .qr-item {
    animation: none;
    opacity: 1;
  }
}
