:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #14b8a6;
  --accent: #ccfbf1;
  --accent-soft: rgba(204, 251, 241, 0.35);
  --surface: #ffffff;
  --text-on-primary: #ffffff;
  --text-muted-on-primary: rgba(255, 255, 255, 0.75);
  --shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-pill: 12px;
  --font: 'Quicksand', system-ui, sans-serif;
  --topbar-h: 56px;
  --bottombar-h: auto;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--primary);
  color: var(--text-on-primary);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Dil */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle:active {
  transform: scale(0.97);
}

/* Karşılama */
.welcome {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 18%, #16857b 0%, var(--primary) 42%, var(--primary-dark) 100%);
}

/* Arka plan ışıltısı */
.welcome__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 30%, rgba(204, 251, 241, 0.18), transparent 70%),
    radial-gradient(closest-side at 85% 12%, rgba(20, 184, 166, 0.28), transparent 60%),
    radial-gradient(closest-side at 12% 88%, rgba(20, 184, 166, 0.22), transparent 60%);
  animation: glowPulse 7s ease-in-out infinite;
}

.welcome__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.welcome__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.5rem 0 2rem;
}

.welcome__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  animation: fadeInDown 0.5s ease both;
}

/* Logonun arkasında yumuşak parlayan halka */
.welcome__logo-wrap::before {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 251, 241, 0.22) 0%, transparent 68%);
  animation: haloPulse 4.5s ease-in-out infinite;
}

.welcome__logo {
  position: relative;
  width: 168px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.3));
}

.welcome__title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  animation: fadeInDown 0.5s ease both;
  animation-delay: 0.08s;
}

/* Zarif ayraç */
.welcome__divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.1rem 0 0.2rem;
  color: var(--accent);
  animation: fadeInDown 0.5s ease both;
  animation-delay: 0.16s;
}

.welcome__divider span {
  display: block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 251, 241, 0.7));
}

.welcome__divider span:last-child {
  background: linear-gradient(90deg, rgba(204, 251, 241, 0.7), transparent);
}

.welcome__divider svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.welcome__tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeInDown 0.5s ease both;
  animation-delay: 0.22s;
}

.welcome__text {
  font-size: 0.98rem;
  color: var(--text-muted-on-primary);
  max-width: 300px;
  line-height: 1.55;
  animation: fadeInDown 0.5s ease both;
  animation-delay: 0.28s;
}

.welcome__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.95rem 2.1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(204, 251, 241, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  animation: fadeInUp 0.5s ease both, ctaBreath 3.2s ease-in-out infinite;
  animation-delay: 0.34s, 1s;
}

.welcome__cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s;
}

.welcome__cta:hover svg {
  transform: translateX(3px);
}

.welcome__cta:active {
  transform: scale(0.97);
}

.welcome__foot {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: env(safe-area-inset-bottom);
  animation: fadeIn 0.8s ease both;
  animation-delay: 0.5s;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(204, 251, 241, 0.12); }
  50% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26), 0 0 0 10px rgba(204, 251, 241, 0.16); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome__glow,
  .welcome__logo-wrap::before,
  .welcome__cta { animation: none; }
}

/* Menü ekranı */
.menu-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--primary);
  animation: fadeIn 0.35s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.75rem;
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.topbar__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.topbar__back svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.topbar__brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.topbar__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.topbar__name {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kategori şeridi */
.category-strip-wrap {
  position: sticky;
  top: var(--topbar-h);
  z-index: 40;
  background: var(--primary);
  padding: 0.75rem 0 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-strip {
  display: flex;
  gap: 0.65rem;
  padding: 0 0.85rem 0.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 104px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  animation: fadeInDown 0.4s ease;
}

.category-pill__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.category-pill__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--text-muted-on-primary);
  max-width: 104px;
  word-break: break-word;
}

.category-pill.active .category-pill__img {
  border-color: var(--accent);
  transform: scale(1.04);
}

.category-pill.active .category-pill__label {
  color: #fff;
}

/* Ürün listesi */
.menu-content {
  flex: 1;
  padding: 0.75rem 0.85rem 4.25rem;
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 120px);
  transition: padding-bottom 0.25s ease;
}

.menu-screen.footer-open .menu-content {
  padding-bottom: 14rem;
}

.menu-panel {
  animation: fadeInDown 0.35s ease;
}

.menu-panel__title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
}

.menu-panel__subtitle {
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted-on-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.subcategory-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
  padding-left: 0.25rem;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-card {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 88px;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInDown 0.4s ease;
}

.product-card__img-wrap {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  align-self: center;
  background: rgba(0, 0, 0, 0.15);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.15rem 0;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-card__name-en {
  font-size: 0.75rem;
  color: var(--text-muted-on-primary);
  line-height: 1.35;
}

.product-card__price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.15rem;
}

/* İçecek / şarap listesi */
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-item:last-child {
  border-bottom: none;
}

.compact-item__name {
  font-size: 0.92rem;
  font-weight: 700;
}

.compact-item__name-en {
  font-size: 0.72rem;
  color: var(--text-muted-on-primary);
  margin-top: 0.15rem;
}

.compact-item__price {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

/* Alt bar */
.bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 calc(0.5rem + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(0.5rem + env(safe-area-inset-left));
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.bottombar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.bottombar__chevron {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.bottombar--open .bottombar__chevron {
  transform: rotate(180deg);
}

.bottombar__panel {
  padding: 0 0.75rem 0.85rem;
  animation: fadeInDown 0.25s ease;
}

.bottombar__panel[hidden] {
  display: none;
}

.bottombar__maps {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
  text-align: left;
  max-width: 360px;
}

.bottombar__maps svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  margin-top: 2px;
}

.bottombar__phones {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bottombar__review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 0.7rem;
  padding: 0.6rem 0.9rem;
  max-width: 340px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.bottombar__review svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  flex-shrink: 0;
}

.bottombar__note {
  font-size: 0.68rem;
  color: var(--text-muted-on-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.bottombar__social {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bottombar__copy {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted-on-primary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .menu-content {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .category-strip {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
