/**
 * Genel / masa QR menü — [Etipak / Menu Burada tarzı](https://etipak.menumburada.com/) ilhamlı düzen.
 */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --pm-bg: #ffffff;
  --pm-bg-soft: #f6f6f6;
  --pm-ink: #1a1a1a;
  --pm-ink-muted: #5c5c5c;
  --pm-accent: #c41e3a;
  --pm-line: rgba(0, 0, 0, 0.08);
  --pm-card: #ffffff;
  --pm-radius: 16px;
  --pm-radius-sm: 12px;
  --pm-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --pm-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --pm-font: "DM Sans", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.pm-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--pm-bg);
  color: var(--pm-ink);
  font-family: var(--pm-font);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* --- Üst çubuk: TR | EN --- */
.pm-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--pm-bg);
  border-bottom: 1px solid var(--pm-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.pm-bar a.pm-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.pm-bar img.pm-logo-img {
  max-height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.pm-bar .pm-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.pm-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.pm-lang a {
  color: var(--pm-ink);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.pm-lang a:hover {
  background: var(--pm-bg-soft);
}
.pm-lang a.pm-lang-active {
  color: var(--pm-accent);
}
.pm-lang .pm-lang-sep {
  color: #bbb;
  font-weight: 400;
  user-select: none;
}

/* --- Ana başlık --- */
.pm-hero-title-wrap {
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
}
.pm-hero-title-wrap h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pm-ink);
}

/* --- Kategori grid (görsel kutular) --- */
.pm-cat-grid-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 0.75rem 1.5rem;
}
.pm-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pm-tile {
  position: relative;
  display: block;
  border-radius: var(--pm-radius);
  overflow: hidden;
  aspect-ratio: 1;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--pm-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pm-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--pm-shadow-lg);
}
.pm-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.pm-tile-fallback {
  background: linear-gradient(145deg, #4a4a4a 0%, #2d2d2d 100%);
}
.pm-tile-fallback.pm-f0 {
  background: linear-gradient(145deg, #8b4513 0%, #5c2e0a 100%);
}
.pm-tile-fallback.pm-f1 {
  background: linear-gradient(145deg, #1e5631 0%, #0d2818 100%);
}
.pm-tile-fallback.pm-f2 {
  background: linear-gradient(145deg, #6b2d5c 0%, #3d1740 100%);
}
.pm-tile-fallback.pm-f3 {
  background: linear-gradient(145deg, #b8860b 0%, #6b4f04 100%);
}
.pm-tile-fallback.pm-f4 {
  background: linear-gradient(145deg, #2c5282 0%, #1a365d 100%);
}
.pm-tile-fallback.pm-f5 {
  background: linear-gradient(145deg, #c05621 0%, #7c2d12 100%);
}
.pm-tile-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 72%);
  pointer-events: none;
}
.pm-tile h2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.85rem 0.65rem;
  font-size: clamp(0.8rem, 3.2vw, 0.95rem);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* --- Ürün bölümleri --- */
.pm-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0.75rem clamp(5rem, 14vw, 6.5rem);
}

.pm-cat-section {
  scroll-margin-top: 72px;
  margin-top: 2rem;
}
.pm-cat-section:first-of-type {
  margin-top: 0.5rem;
}
.pm-cat-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pm-ink);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pm-ink);
}

.pm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-item {
  background: var(--pm-card);
  border-radius: var(--pm-radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--pm-line);
  box-shadow: var(--pm-shadow);
}

.pm-row {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.4rem;
  width: 100%;
}
.pm-name {
  flex: 0 1 auto;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--pm-ink);
  line-height: 1.35;
}
.pm-lead {
  flex: 1 1 auto;
  min-width: 1rem;
  border-bottom: 1px dotted #ccc;
  height: 0;
  margin-bottom: 0.15em;
  align-self: flex-end;
}
.pm-price {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--pm-accent);
  white-space: nowrap;
}

.pm-desc {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--pm-ink-muted);
  line-height: 1.4;
}

.pm-variants {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--pm-line);
}
.pm-variants-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-ink-muted);
  margin-bottom: 0.3rem;
}
.pm-var {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  padding: 0.15rem 0;
  color: var(--pm-ink);
}
.pm-var span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--pm-ink-muted);
  font-weight: 500;
}
.pm-base-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--pm-ink-muted);
}

/* --- Online: split item --- */
.pm-item.pm-item--split {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 420px) {
  .pm-item.pm-item--split {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.pm-item-body {
  flex: 1;
  min-width: 0;
}
.pm-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 7.5rem;
}
@media (min-width: 420px) {
  .pm-actions {
    align-items: flex-end;
  }
}

.pm-btn-cart {
  font-family: var(--pm-font);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.pm-btn-cart--add {
  background: #198754;
  box-shadow: 0 2px 10px rgba(25, 135, 84, 0.35);
}
.pm-btn-cart--add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(25, 135, 84, 0.45);
  background: #157347;
}
.pm-btn-cart--remove {
  background: #dc3545;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.35);
}
.pm-btn-cart--remove:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.45);
  background: #bb2d3b;
}

.pm-select {
  font-family: var(--pm-font);
  font-size: 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--pm-line);
  padding: 0.35rem 0.45rem;
  background: #fff;
  max-width: 100%;
}

.pm-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pm-line);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  padding: 0.65rem 0.75rem max(0.65rem, env(safe-area-inset-bottom));
  max-height: min(88vh, 560px);
  display: flex;
  flex-direction: column;
}
.pm-cart-inner {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.pm-cart-scroll {
  overflow-y: auto;
  max-height: 38vh;
  margin-bottom: 0.5rem;
  padding-right: 2px;
}
.pm-cart-head {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--pm-ink);
}
.pm-cart-line {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--pm-line);
  font-size: 0.86rem;
}
.pm-cart-line:last-child {
  border-bottom: none;
}
.pm-cart-line-main {
  flex: 1;
  min-width: 0;
}
.pm-cart-line-title {
  font-weight: 600;
  line-height: 1.25;
}
.pm-cart-line-meta {
  font-size: 0.78rem;
  color: var(--pm-ink-muted);
}
.pm-cart-line-note {
  width: 100%;
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  margin-top: 0.25rem;
  border: 1px solid var(--pm-line);
  border-radius: 8px;
}
.pm-cart-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
}
.pm-cart-line-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--pm-line);
  background: #fff;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}
.pm-cart-line-price {
  font-weight: 700;
  color: var(--pm-accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pm-cart-line-remove {
  border: none;
  background: transparent;
  color: #999;
  padding: 0.15rem;
  font-size: 1.1rem;
  line-height: 1;
}
.pm-cart-line-remove:hover {
  color: var(--pm-accent);
}
.pm-cart-grand {
  font-weight: 700;
  text-align: right;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.95rem;
}
.pm-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--pm-bg-soft);
}
.pm-item-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.pm-item-row .pm-item-body {
  flex: 1;
  min-width: 0;
}
.pm-cart .form-control {
  border-radius: 10px;
  border: 1px solid var(--pm-line);
  font-size: 0.88rem;
}
.pm-cart-submit {
  font-family: var(--pm-font);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.65rem;
  border: none;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  width: 100%;
}
.pm-muted {
  color: var(--pm-ink-muted);
  font-size: 0.85rem;
}

.pm-foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0.85rem max(0.75rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.78rem;
  color: var(--pm-ink-muted);
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--pm-line);
  line-height: 1.4;
}

.pm-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.pm-note-banner {
  text-align: center;
  padding: 0.75rem 1rem 0;
  font-size: 0.88rem;
  color: var(--pm-ink-muted);
}

.pm-main--home {
  min-height: 0;
}

.pm-back-wrap {
  padding: 0.35rem 1rem 0;
}

a.pm-back {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pm-accent);
  text-decoration: none;
}

a.pm-back:hover {
  text-decoration: underline;
}

@media (max-width: 380px) {
  .pm-lead {
    display: none;
  }
  .pm-row {
    flex-wrap: wrap;
  }
  .pm-price {
    width: 100%;
    text-align: right;
    margin-top: 0.2rem;
  }
}
