/* Palmiera menu — HARC-style list, site header kept */

.menu-app {
  --m-ink: #1a1a1a;
  --m-muted: #8a8a8a;
  --m-line: #e6e6e6;
  --m-chip-bg: #fff;
  --m-chip-border: #d8d8d8;
  --m-chip-active: #1a1a1a;
  --m-surface: #fafafa;
  --m-allergen-bg: #f4ebe4;
  --m-allergen-text: #8a5f4a;
  --m-allergen-border: #e6d5c8;
  --gutter: clamp(1.1rem, 3.2vw, 2.4rem);
}

.menu-app {
  background: var(--m-surface);
}

.menu-hero {
  padding-bottom: 0 !important;
}

.menu-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-hero__top .eyebrow {
  margin: 0;
}

.menu-hero__lead {
  max-width: 48ch;
  margin: .85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.menu-body.fk-section {
  padding-top: .85rem !important;
}

.m-lang {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  flex: none;
  align-self: center;
}

.m-lang__label {
  display: none;
}

.m-lang__select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 1px solid var(--m-chip-border);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right .75rem center;
  background-size: 10px;
  color: var(--m-ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.35;
  padding: .72rem 2.1rem .72rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  height: auto;
  min-height: 2.85rem;
  width: auto;
  min-width: 0;
  overflow: visible;
}

.m-lang__select:focus {
  outline: none;
  border-color: #bdbdbd;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.m-lang.is-busy .m-lang__select {
  opacity: .7;
}

.m-lang__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.m-shell {
  width: min(980px, 100%);
  margin-inline: auto;
  padding-bottom: clamp(2.4rem, 5vw, 4.8rem);
}

/* Header: pad-top + content pad + logo + pad-bottom + küçük boşluk */
.m-chips {
  --m-chips-top: calc(
    env(safe-area-inset-top, 0px)
    + clamp(1.4rem, 2vw, 2.2rem)
    + 1.6rem
    + clamp(42px, 4.6vw, 52px)
    + 0.4rem
    + 0.55rem
  );
  position: sticky;
  top: var(--m-chips-top);
  z-index: 20;
  display: grid;
  gap: .4rem;
  padding: .45rem 0 .75rem;
  margin: 0 calc(-1 * var(--gutter)) 0;
  padding-inline: var(--gutter);
  background: color-mix(in oklab, var(--m-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m-line);
}

@media (max-width: 1080px) {
  .m-chips {
    /* Mobil header content padding: .7rem × 2 */
    --m-chips-top: calc(
      env(safe-area-inset-top, 0px)
      + clamp(1.4rem, 2vw, 2.2rem)
      + 1.4rem
      + clamp(42px, 4.6vw, 52px)
      + 0.4rem
      + 0.55rem
    );
  }
}

.m-chips__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: center;
  min-width: 0;
}

.m-chips__track {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: .1rem;
  min-width: 0;
}

.m-chips__track::-webkit-scrollbar {
  display: none;
}

.m-chip {
  box-sizing: border-box;
  flex: none;
  scroll-snap-align: start;
  border: 1px solid var(--m-chip-border);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  padding: .85rem 1.2rem;
  border-radius: 10px;
  background: var(--m-chip-bg);
  color: var(--m-ink);
  white-space: nowrap;
  height: 2.85rem;
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.m-chip.is-active {
  background: var(--m-chip-active);
  border-color: var(--m-chip-active);
  color: #fff;
}

.m-chips__nav {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--m-chip-border);
  background: #fff;
  color: var(--m-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  flex: none;
  transition: opacity .18s ease, background .18s ease;
}

.m-chips__nav[hidden] {
  display: none !important;
}

.m-chips__nav:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.m-chips__nav:hover:not(:disabled) {
  background: #f3f3f3;
}

.m-section {
  margin-top: 1.8rem;
}

.m-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
  padding: 0 .15rem .85rem;
  border-bottom: 1px solid var(--m-line);
}

.m-section__head h2 {
  font-size: 1.35rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  color: var(--m-ink);
}

.m-section__head span {
  font-size: 1.05rem;
  color: var(--m-muted);
}

.m-section__list {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.m-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.4rem .1rem;
  border-bottom: 1px solid var(--m-line);
  background: transparent;
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background .18s ease;
}

.m-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .85rem 1.1rem;
}

.m-item__price {
  flex: none;
}

.m-item:hover {
  background: color-mix(in oklab, #fff 70%, transparent);
}
.m-item:focus-visible {
  outline: 2px solid var(--m-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.m-item:last-child {
  border-bottom: 1px solid var(--m-line);
}

.m-item__media {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
}

.m-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-item__media--icon {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.m-item__media--icon img {
  width: 58%;
  height: 58%;
  max-width: 64px;
  max-height: 64px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0);
}

.m-item__name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Manrope", var(--font-sans), sans-serif;
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
  line-height: 1.2;
  margin: 0;
  color: var(--m-ink);
}

.m-item__desc {
  margin: .5rem 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-style: normal;
  font-size: 1.12rem;
  color: var(--m-muted);
  line-height: 1.45;
  letter-spacing: .01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.m-price {
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1.25;
  color: var(--m-ink);
}

.m-price__tl {
  font-size: .85em;
  font-weight: 500;
  margin-left: .15em;
}

.m-price--empty {
  min-width: 3.5rem;
}

.m-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--m-muted);
}

/* Product detail modal */
.m-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}
.m-modal[hidden] { display: none !important }
.m-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.m-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(88vh, 88dvh);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(17, 17, 17, .22);
  animation: m-modal-in .22s ease;
}
@keyframes m-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.97) }
  to { opacity: 1; transform: translateY(0) scale(1) }
}
.m-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--m-ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.m-modal__close:hover { background: #fff }
.m-modal__media {
  aspect-ratio: 1;
  background: #eee;
  overflow: hidden;
}
.m-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-modal__media--icon {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.m-modal__media--icon img {
  width: min(42%, 180px);
  height: min(42%, 180px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0);
}
.m-modal__body {
  padding: 1.25rem 1.3rem 1.5rem;
  display: grid;
  gap: .55rem;
}
.m-modal__cat {
  margin: 0;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m-muted);
}
.m-modal__title {
  margin: 0;
  font-family: "Manrope", var(--font-sans), sans-serif;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
  line-height: 1.18;
  color: var(--m-ink);
}
.m-modal__desc {
  margin: .15rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #555;
}
.m-modal__desc:empty { display: none }
.m-modal__allergens {
  margin-top: .35rem;
  display: grid;
  gap: .45rem;
}
.m-modal__allergens[hidden] { display: none !important }
.m-modal__allergens-label {
  margin: 0;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m-muted);
}
.m-allergen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.m-allergen-list li {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--m-allergen-border);
  background: var(--m-allergen-bg);
  color: var(--m-allergen-text);
  font-size: .82rem;
  font-weight: 600;
}
.m-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: .35rem 0 .1rem;
}
.m-item__tags[hidden] { display: none !important }
.m-modal__tags { margin: .25rem 0 .55rem }
.m-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0 .6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tag-color, #81C784) 55%, #fff);
  background: color-mix(in srgb, var(--tag-color, #81C784) 42%, #fff);
  color: color-mix(in srgb, var(--tag-color, #81C784) 42%, #3a322c);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}
.m-item__allergens {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}
.m-item__allergens span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0 .5rem;
  border-radius: 999px;
  border: 1px solid var(--m-allergen-border);
  background: var(--m-allergen-bg);
  color: var(--m-allergen-text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}
.m-modal__price {
  margin: .55rem 0 0;
  font-size: 1.45rem;
  justify-self: start;
}
body.m-modal-open,
body.m-promo-open { overflow: hidden }

/* Menü sayfası açılış pop-up (panelden yönetilir) */
.m-promo {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}
.m-promo[hidden] { display: none !important }
.m-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.m-promo__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(86vh, 86dvh);
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(17, 17, 17, .28);
  animation: m-promo-in .24s ease;
}
@keyframes m-promo-in {
  from { opacity: 0; transform: translateY(12px) scale(.96) }
  to { opacity: 1; transform: translateY(0) scale(1) }
}
.m-promo__close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--m-ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
.m-promo__close:hover { background: #fff }
.m-promo__stage {
  position: relative;
  margin: 0;
  max-height: min(86vh, 86dvh);
  overflow: hidden;
  background: #111;
}
.m-promo__slide {
  display: none;
  margin: 0;
}
.m-promo__slide.is-active { display: block }
.m-promo__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 78dvh);
  object-fit: contain;
  background: #111;
}
.m-promo__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .65rem .75rem .8rem;
  background: #fff;
}
.m-promo__nav[hidden] { display: none !important }
.m-promo__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--m-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.m-promo__arrow:hover { background: #f6f6f6 }
.m-promo__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: 1;
}
.m-promo__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  cursor: pointer;
}
.m-promo__dot.is-active { background: var(--m-ink, #111) }

@media (max-width: 700px) {
  .menu-app {
    --gutter: 1rem;
  }

  .m-chips {
    margin-inline: calc(-1 * var(--gutter));
  }

  .m-chips__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .4rem;
  }

  .m-chips__nav {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1rem;
  }

  .m-lang__select {
    font-size: 1rem;
    line-height: 1.35;
    padding: .68rem 1.95rem .68rem 1.05rem;
    height: auto;
    min-height: 2.65rem;
  }
  .menu-body.fk-section { padding-top: .7rem !important }

  .m-chip {
    font-size: 1.05rem;
    padding: .82rem 1.15rem;
    height: 2.7rem;
    min-height: 2.7rem;
  }

  .m-section__head h2 {
    font-size: 1.3rem;
  }

  .m-section__head span {
    font-size: 1.02rem;
  }

  .m-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1.05rem;
    padding: 1.25rem .05rem;
  }

  .m-item__media {
    width: 104px;
    height: 104px;
    border-radius: 12px;
  }
  .m-item__media--icon img {
    max-width: 58px;
    max-height: 58px;
  }

  .m-item__name {
    font-size: 1.38rem;
  }

  .m-item__desc {
    font-size: 1.06rem;
  }

  .m-price {
    font-size: 1.28rem;
  }

  .m-modal__dialog {
    width: min(100%, 420px);
  }

  .m-modal__media { aspect-ratio: 4 / 3 }
  .m-modal__body { padding: 1.2rem 1.2rem 1.45rem }

  .m-promo__dialog {
    width: min(100%, 380px);
  }
}
