/* Turkana Restoran — ana stil dosyası / main stylesheet.
   index.html'in sonunda yüklenir: açılış ekranının kendi stili <head>
   içinde satır içi kalır, böylece ilk boyama gecikmez.
   Loaded near the end of index.html; the boot screen keeps its own inline
   styles in <head> so first paint is never blocked.
   Sayfa: index.html */

:root {
  --bg: hsl(0 0% 98%);
  --bg-soft: hsl(220 14% 95%);
  --card: hsl(0 0% 100%);
  --fg: hsl(222 47% 11%);
  --muted: hsl(220 9% 46%);
  --border: hsl(220 13% 87%);
  --accent: #54bb1d;
  --accent-2: #54bb1d;
  --accent-hover: #54bb1d;
  /* --accent: #f97316;
  --accent-2: #fb923c;
  --accent-hover: #ea580c; */
  --accent-soft: rgba(249, 115, 22, 0.1);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.16);
  --header-h: 62px;
  --hero-op: 1;
}

html[data-theme="dark"] {
  --bg: hsl(222 47% 6%);
  --bg-soft: hsl(222 47% 8%);
  --card: hsl(222 47% 9%);
  --fg: hsl(210 40% 98%);
  --muted: hsl(215 20% 65%);
  --border: hsl(217 33% 17%);
  --accent-soft: rgba(249, 115, 22, 0.14);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
body.locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ---------------------------------------------------------------- header */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-inline-end: auto;
}

.brand-text {
  min-width: 0;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition:
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.icon-btn:active {
  transform: scale(0.94);
}

.top-order {
  display: none;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(
    to right,
    var(--accent-hover),
    var(--accent)
  );
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  box-shadow: 0 6px 18px var(--accent-soft);
  transition:
    transform 0.18s,
    filter 0.18s;
}
.top-order.on {
  display: inline-flex;
}
.top-order:hover {
  filter: brightness(1.06);
}
.top-order:active {
  transform: scale(0.96);
}
.top-order span.label {
  display: none;
}
@media (min-width: 560px) {
  .top-order span.label {
    display: inline;
  }
}

/* language menu */
.lang {
  position: relative;
  flex: 0 0 auto;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0 11px;
}
.lang-btn .flag {
  font-size: 16px;
  line-height: 1;
}
.lang-btn .code {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 176px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.16s,
    transform 0.16s,
    visibility 0.16s;
}
.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  text-align: start;
  transition: background 0.15s;
}
.lang-item:hover {
  background: var(--bg-soft);
}
.lang-item[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

/* ---------------------------------------------------------- hero/parallax */
.hero {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
@media (min-width: 768px) {
  .hero {
    height: 400px;
  }
}

/* The plates drift slower than the logo — that difference is the depth. */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  opacity: var(--hero-op);
  will-change: transform;
}
.hero-decor img {
  position: absolute;
  top: 50%;
  width: 112px;
  object-fit: contain;
  transform: translateY(-50%);
}
.hero-decor img.left {
  inset-inline-start: 0;
}
.hero-decor img.right {
  inset-inline-end: 0;
}
@media (min-width: 768px) {
  .hero-decor img {
    width: 288px;
  }
}
html[data-theme="light"] .hero-decor {
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .hero-decor {
  opacity: calc(var(--hero-op) * 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  opacity: var(--hero-op);
  will-change: transform;
}
.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  animation: fadeIn 0.6s ease both;
}
@media (min-width: 768px) {
  .hero-logo {
    width: 240px;
    height: 240px;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.hero-welcome {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
}
@media (min-width: 768px) {
  .hero-welcome {
    font-size: 36px;
  }
}

/* ---------------------------------------------------------------- banner */
.banner-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
}
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.banner-track {
  display: flex;
  cursor: grab;
  touch-action: pan-y;
}
.banner-track.dragging {
  cursor: grabbing;
}

.slide {
  position: relative;
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
  /* Resim inerken görünen renk: her banner için siyah. Resim gelince
     üstünde yumuşakça belirir, renk sıçraması olmaz.
     Shown while the picture downloads — black for every banner. The image
     then fades in on top of it, so there is no colour jump. */
  background: #000;
}
@media (min-width: 768px) {
  .slide {
    aspect-ratio: 2 / 1;
  }
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  /* Siyahın üstünde yumuşakça açılır / eases open over the black. */
  opacity: 0;
  transition: opacity 0.45s ease;
}
.slide.ok img {
  opacity: 1;
}
.slide .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0.08) 55%,
    transparent
  );
}
.slide .txt {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 16px;
}
.slide .txt b {
  display: block;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.slide .txt span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.dots {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 14px;
  display: flex;
  gap: 6px;
}
.dots button {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition:
    width 0.22s,
    background 0.22s;
}
.dots button[aria-current="true"] {
  width: 20px;
  background: #fff;
}

/* --------------------------------------------------------- Google review */
.review {
  max-width: 1180px;
  margin: 6px auto 18px;
  padding: 0 16px;
}
.review-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 18px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(251, 188, 5, 0.16), transparent 55%),
    radial-gradient(110% 90% at 0% 100%, rgba(84, 187, 29, 0.14), transparent 55%),
    var(--card);
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #fbbc05, transparent 40%, transparent 60%, var(--accent));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.review-gift {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 30px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
  animation: reviewFloat 3.2s ease-in-out infinite;
}
.review-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(251, 188, 5, 0.16);
  color: #d99a00;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-theme="dark"] .review-badge {
  color: #fbbc05;
}
.review-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 14px 0 6px;
  font-size: 26px;
  line-height: 1;
  color: #fbbc05;
}
.review-stars span {
  display: inline-block;
  text-shadow: 0 2px 10px rgba(251, 188, 5, 0.45);
  animation: reviewStar 2.8s ease-in-out infinite;
}
.review-stars span:nth-child(2) { animation-delay: 0.12s; }
.review-stars span:nth-child(3) { animation-delay: 0.24s; }
.review-stars span:nth-child(4) { animation-delay: 0.36s; }
.review-stars span:nth-child(5) { animation-delay: 0.48s; }
.review-title {
  margin: 10px 0 8px;
  font-size: clamp(20px, 5.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
.review-text {
  margin: 0 auto 22px;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  min-height: 52px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: clamp(14px, 4vw, 15.5px);
  line-height: 1.2;
  white-space: nowrap;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(84, 187, 29, 0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.review-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(84, 187, 29, 0.42);
}
.review-btn:active {
  transform: translateY(0) scale(0.98);
}
.review-btn:focus-visible {
  outline: 3px solid #fbbc05;
  outline-offset: 3px;
}
.review-g {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.review-btn > span:nth-child(2) {
  flex: 1;
}
.review-arrow {
  flex: none;
  transition: transform 0.18s ease;
}
.review-btn:hover .review-arrow {
  transform: translateX(3px);
}
@keyframes reviewFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-6px) rotate(6deg); }
}
@keyframes reviewStar {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.22); }
}
@media (prefers-reduced-motion: reduce) {
  .review-gift,
  .review-stars span {
    animation: none;
  }
}

/* --------------------------------------------------------- category rail */
.catrail {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.catrail-inner {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catrail-inner::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--fg);
  white-space: nowrap;
  transition:
    border-color 0.18s,
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.chip.plain {
  padding-inline-start: 14px;
}
.chip img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}
.chip:hover {
  border-color: var(--accent);
}
.chip:active {
  transform: scale(0.96);
}
.chip[aria-selected="true"] {
  background: linear-gradient(
    to right,
    var(--accent-hover),
    var(--accent)
  );
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px var(--accent-soft);
}
.chip .count {
  font-size: 11.5px;
  opacity: 0.7;
}

/* ------------------------------------------------------------------ main */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 14px 0;
}

.section + .section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 2px 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head .n {
  font-size: 12.5px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* one card = one product div */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-align: start;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.card.in-cart {
  border-color: var(--accent);
}

.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card-img .ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  opacity: 0.35;
}

/* ------------------------------------------------ resim yükleme parıltısı
   Her resmin kendi bekleme animasyonu. Resim gelince (ya da hata verince)
   kapsayıcıya .ok sınıfı eklenir ve parıltı durur.
   Per-image loading shimmer. The container gets .ok once the picture has
   loaded — or failed — and the shimmer stops. */
.card-img::before,
.pop-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--bg-soft);
  background-image: linear-gradient(
    100deg,
    transparent 25%,
    rgba(0, 0, 0, 0.06) 45%,
    rgba(0, 0, 0, 0.06) 55%,
    transparent 75%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: sk-slide 1.15s linear infinite;
}
html[data-theme="dark"] .card-img::before,
html[data-theme="dark"] .pop-img::before {
  background-image: linear-gradient(
    100deg,
    transparent 25%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.07) 55%,
    transparent 75%
  );
}
.card-img.ok::before,
.pop-img.ok::before {
  display: none;
}
@keyframes sk-slide {
  from {
    background-position: 170% 0;
  }
  to {
    background-position: -70% 0;
  }
}
/* Resim, parıltının üstünde yumuşakça belirir / picture fades in above it */
.card-img img,
.pop-img img,
.chip img {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-img.ok img,
.pop-img.ok img,
.chip.ok img {
  opacity: 1;
}
.qty-flag,
.zoom {
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .card-img::before,
  .pop-img::before {
    animation: none;
  }
}

/* hint that the picture opens */
.zoom {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .zoom {
  opacity: 1;
}

.qty-flag {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  height: 24px;
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent-hover),
    var(--accent)
  );
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: none;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.card.in-cart .qty-flag {
  display: grid;
}

.card-body {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--accent);
  white-space: nowrap;
}

/* Soldaki geçiş yuvarlağı ile aynı dil: çerçeveli yuvarlak, dokununca
   dolar. / Same language as the switch circle on the left: an outlined
   ring that fills in on hover and press. */
.add {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.16s ease;
}
.add:hover {
  background: var(--accent);
  color: #fff;
}
.add:active {
  background: var(--accent);
  color: #fff;
  transform: scale(0.9);
}
.add:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Sepetteyken "+" düğmesinin yerini alır, o yüzden o da yuvarlak.
   Takes the "+" button's place once in the cart, so it is round too. */
.stepper {
  display: none;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 2px;
}
.card.in-cart .stepper {
  display: flex;
}
.card.in-cart .add {
  display: none;
}
.stepper button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition:
    background 0.15s,
    color 0.15s;
}
.stepper button:hover {
  background: var(--accent);
  color: #fff;
}
.stepper .q {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .big {
  font-size: 34px;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------------- fab */
/* Soldaki geçiş yuvarlağı ile aynı: çerçeveli halka + altında etiket.
   Same as the switch circle on the left: outlined ring + caption below. */
.fab {
  position: fixed;
  z-index: 45;
  inset-inline-end: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}
.fab-ring {
  position: relative; /* rozet buna göre durur / the badge anchors here */
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.fab-cap {
  max-width: 74px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.fab:hover {
  transform: translateY(-2px);
}
.fab:hover .fab-ring {
  background: var(--accent);
  color: #fff;
}
.fab:active {
  transform: scale(0.94);
}
.fab:focus-visible .fab-ring {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Sepete eklendi zıplaması artık sadece halkada — etiket sabit kalsın.
   The "added" bounce now runs on the ring alone, so the caption stays put. */
.fab.pulse .fab-ring {
  animation: pop 0.38s ease;
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}

.fab-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--bg);
  font-size: 12px;
  font-weight: 750;
  display: none;
  place-items: center;
}
.fab-badge.on {
  display: grid;
}

/* Dar telefonlarda sepet yuvarlağı biraz küçülür.
   The cart circle shrinks a little on narrow phones. */
@media (max-width: 360px) {
  .fab,
  .fab-ring {
    width: 54px;
  }
  .fab-ring {
    height: 54px;
  }
  .fab-ring svg {
    width: 23px;
    height: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fab,
  .fab-ring {
    transition: none;
  }
}

/* ----------------------------------------------------------- cart sheet */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 12, 22, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.backdrop.open {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  z-index: 55;
  inset-inline-end: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-height: 88vh;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(101%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet.open {
  transform: none;
}
@media (min-width: 720px) {
  .sheet {
    top: 0;
    bottom: 0;
    max-height: none;
    width: 420px;
    border-radius: 22px 0 0 22px;
    border: 1px solid var(--border);
    transform: translateX(101%);
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.sheet-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  margin-inline-end: auto;
}
.sheet-head .total-mini {
  font-size: 13px;
  color: var(--muted);
}

.sheet-body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
}

.line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
}
.line + .line {
  border-top: 1px solid var(--border);
}
.line-img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.line-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.line-main {
  min-width: 0;
  flex: 1;
}
.line-name {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-price {
  font-size: 12.5px;
  color: var(--muted);
}
.line-sum {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.fields {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.fields input,
.fields textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.fields input:focus,
.fields textarea:focus {
  border-color: var(--accent);
  background: var(--card);
}
.fields textarea {
  min-height: 62px;
}

.sheet-foot {
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  background: var(--card);
}
.totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.totals .t-label {
  font-size: 13px;
  color: var(--muted);
}
.totals .t-value {
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
}
.totals.sub .t-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(
    to right,
    var(--accent-hover),
    var(--accent)
  );
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 10px 26px var(--accent-soft);
  transition:
    transform 0.18s,
    filter 0.18s;
}
.cta:hover {
  filter: brightness(1.06);
}
.cta:active {
  transform: scale(0.985);
}
.cta:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* SMS düğmesi genişler, arama düğmesi kare kalır.
   The SMS button stretches; the call button stays a square. */
.cta-row {
  display: flex;
  gap: 10px;
}
.cta-row .cta {
  flex: 1;
  min-width: 0;
}
.cta-row .cta.call {
  flex: 0 0 52px;
  width: 52px;
  padding: 0;
  text-decoration: none;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.cta-row .cta.call:hover {
  background: var(--accent);
  color: #fff;
  filter: none;
}

.ghost {
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  transition:
    background 0.15s,
    color 0.15s;
}
.ghost:hover {
  background: var(--bg-soft);
  color: #ef4444;
}

/* --------------------------------------------------- product image popup */
.pop-back {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s,
    visibility 0.22s;
}
.pop-back.open {
  opacity: 1;
  visibility: visible;
}

.pop {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s,
    visibility 0.22s;
}
.pop.open {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 768px) {
  .pop {
    align-items: center;
    padding: 32px;
  }
}

.pop-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.pop.open .pop-card {
  transform: none;
}
@media (min-width: 768px) {
  .pop-card {
    max-width: 900px;
    border-radius: 26px;
    flex-direction: row;
    max-height: 620px;
  }
}

.pop-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  transition:
    background 0.16s,
    transform 0.16s;
}
.pop-close:hover {
  background: rgba(0, 0, 0, 0.62);
}
.pop-close:active {
  transform: scale(0.92);
}

.pop-img {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.pop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 0.5s ease both;
}
@keyframes zoomIn {
  from {
    transform: scale(1.06);
  }
}
.pop-img .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 54px;
  opacity: 0.3;
}
.pop-img .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    transparent 55%
  );
}
@media (min-width: 768px) {
  .pop-img {
    width: 55%;
    flex: 0 0 55%;
    aspect-ratio: auto;
    height: auto;
  }
  .pop-img .veil {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.35),
      transparent 60%
    );
  }
}

.pop-price-pill {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}
@media (min-width: 768px) {
  .pop-price-pill {
    display: none;
  }
}

.pop-body {
  display: flex;
  flex-direction: column;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  gap: 12px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}
@media (min-width: 768px) {
  .pop-body {
    padding: 30px 32px;
    justify-content: center;
  }
}

.pop-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pop-title {
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .pop-title {
    font-size: 28px;
  }
}

.pop-price-big {
  display: none;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
@media (min-width: 768px) {
  .pop-price-big {
    display: block;
  }
}

.pop-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) {
  .pop-actions {
    margin-top: 18px;
  }
}

.pop-stepper {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
}
.pop-stepper.on {
  display: flex;
}
.pop-stepper button {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--fg);
  transition:
    background 0.15s,
    color 0.15s;
}
.pop-stepper button:hover {
  background: var(--card);
  color: var(--accent);
}
.pop-stepper button:active {
  transform: scale(0.92);
}
.pop-stepper .q {
  min-width: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

/* ----------------------------------------------------------------- toast */
.toasts {
  position: fixed;
  z-index: 70;
  inset-inline: 0;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}
.toast {
  max-width: 340px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation:
    toastIn 0.22s ease,
    toastOut 0.25s ease 1.85s forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
}

/* -------------------------------------------------- sayfa altı / footer */
/* Alt boşluk sepet düğmesini (62px + 18px) temizler.
   The bottom padding clears the floating cart button. */
.sitefoot {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 22px 14px calc(104px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.foot-brand {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.visits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12.5px;
  color: var(--muted);
  animation: visitsIn 0.4s ease;
}
.visits[hidden] {
  display: none;
}
.visits-eye {
  font-size: 13px;
  opacity: 0.75;
}
.visits-num {
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
@keyframes visitsIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ------------------------------------------------------- aşamalı açılış
   Sayfa tek seferde değil, sırayla belirir: önce yükleyici, logo inince
   başlık, sonra banner, sonra menü. Gizleme yalnız html.staged varken
   uygulanır — o sınıfı boot betiği koyar, yani JS kapalıysa hiçbir şey
   gizli kalmaz.
   Staged reveal. The page arrives in order instead of all at once: loader
   first, then the header once the logo has downloaded, then the banner, then
   the menu. The hidden state applies only under html.staged, which the boot
   script sets, so nothing stays invisible when JS is off. */
html.staged [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
html.staged [data-reveal].shown {
  opacity: 1;
  transform: none;
}
/* Sepet yuvarlağı aşağıdan gelsin / the cart circle rises into place. */
html.staged .fab[data-reveal] {
  transform: translateY(24px) scale(0.9);
}
html.staged .fab[data-reveal].shown {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.staged [data-reveal],
  html.staged .fab[data-reveal] {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
