/* ==========================================================================
   Müşteri Arayüzü (qrmenu) — Mobile-first
   ========================================================================== */

body[data-app="qrmenu"] {
  padding-bottom: calc(96px + var(--safe-bottom));
}

.qm-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: max(16px, var(--safe-left)) max(16px, var(--safe-right));
}

/* --------------------------------------------------------------------------
   Header + category rail
   -------------------------------------------------------------------------- */
.qm-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: var(--safe-top);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.qm-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.35);
}

.qm-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
}

.qm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qm-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.qm-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.qm-brand-name {
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-brand-sub {
  font-size: var(--text-2xs);
  color: var(--fg-subtle);
  font-weight: 500;
}

.qm-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.qm-cats {
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.qm-cats-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 0;
  scroll-padding-inline: 16px;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
}

.qm-cats-track::-webkit-scrollbar {
  display: none;
}

.qm-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px 0 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease-out);
  flex-shrink: 0;
}

.qm-cat:first-child {
  margin-left: 2px;
}

.qm-cat .icon {
  width: 15px;
  height: 15px;
}

.qm-cat:hover {
  color: var(--fg);
  background: var(--surface-3);
}

.qm-cat.is-active {
  color: var(--primary-fg);
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.qm-hero {
  position: relative;
  padding: 28px 0 22px;
  isolation: isolate;
}

.qm-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.qm-hero-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 50% at 18% 30%, var(--aurora-1), transparent 70%),
    radial-gradient(35% 45% at 82% 20%, var(--aurora-2), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, var(--aurora-3), transparent 70%);
  filter: blur(8px);
  animation: aurora-drift 18s ease-in-out infinite;
}

.qm-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}

.qm-hero-title {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  line-height: 1.02;
  margin-top: 8px;
}

.qm-hero-tagline {
  margin-top: 10px;
  font-size: var(--text-md);
  color: var(--fg-muted);
  max-width: 520px;
}

.qm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.qm-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg-muted);
  box-shadow: var(--shadow-xs);
}

.qm-pill .icon {
  width: 14px;
  height: 14px;
}

.qm-pill.is-open .dot {
  background: var(--success-strong);
}

.qm-pill.is-closed .dot {
  background: var(--danger-strong);
}

.qm-pill.is-table {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Wi-Fi & garson çağrı popover içerikleri (bkz. .qm-bill-menu)
   -------------------------------------------------------------------------- */
.qm-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}


.qm-card-title {
  font-size: var(--text-sm);
  font-weight: 650;
}

.qm-card-sub {
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

.qm-cred {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.qm-cred + .qm-cred {
  margin-top: 8px;
}

.qm-cred-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.qm-cred-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-cred-value.is-masked {
  letter-spacing: 0.18em;
}

.qm-cred .icon-btn {
  width: 34px;
  height: 34px;
}

/* --------------------------------------------------------------------------
   Live activity (sipariş takibi)
   -------------------------------------------------------------------------- */
.qm-live {
  margin-top: 12px;
  padding: 16px;
  overflow: hidden;
  animation: fade-up var(--dur-slow) var(--ease-out) both;
}

.qm-live::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kds-pending), var(--kds-preparing), var(--kds-ready));
  opacity: 0.9;
}

.qm-live-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qm-live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success-strong);
  flex-shrink: 0;
}

.qm-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.qm-live-title {
  font-size: var(--text-sm);
  font-weight: 650;
}

.qm-live-sub {
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

.qm-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.qm-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-faint);
  min-width: 0;
}

.qm-step-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.qm-step-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--fg);
  border-radius: inherit;
  transition: transform 0.6s var(--ease-out);
}

.qm-step.is-done {
  color: var(--fg-muted);
}

.qm-step.is-done .qm-step-bar::after {
  transform: scaleX(1);
}

.qm-step.is-current {
  color: var(--fg);
}

.qm-step.is-current .qm-step-bar::after {
  transform: scaleX(1);
  background: repeating-linear-gradient(-45deg, var(--fg) 0 7px, color-mix(in srgb, var(--fg) 60%, transparent) 7px 14px);
  background-size: 28px 100%;
  animation: stripes 0.9s linear infinite;
}

.qm-step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   Toolbar (arama + filtre)
   -------------------------------------------------------------------------- */
.qm-toolbar {
  display: flex;
  gap: 8px;
  margin: 24px 0 8px;
}

.qm-search {
  flex: 1;
}

.qm-search .input {
  height: 44px;
  border-radius: var(--r-md);
  font-size: var(--text-base);
  background: var(--surface);
}

.qm-filter-btn {
  height: 44px;
  border-radius: var(--r-md);
  position: relative;
}

.qm-filter-btn .count-badge {
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: var(--primary-fg);
}

.qm-active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Featured bento
   -------------------------------------------------------------------------- */
.qm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}

.qm-section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  display: flex;
  align-items: center;
  gap: 10px;
}

.qm-section-title .icon {
  width: 20px;
  height: 20px;
  color: var(--fg-subtle);
}

.qm-section-desc {
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  margin-top: 3px;
}

.qm-section-count {
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qm-bento {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qm-bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 172px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.qm-bento-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qm-bento-tile:active {
  transform: scale(0.985);
}

.qm-bento-tile .art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.qm-bento-tile .art .icon {
  width: 34%;
  height: 34%;
  transform: translateY(-14%);
}

.qm-bento-tile:first-child {
  grid-column: span 2;
  min-height: 220px;
}

.qm-bento-tile:first-child .art .icon {
  width: 26%;
  height: 26%;
  transform: translate(40%, -18%);
}

.qm-bento-info {
  padding: 12px 14px 14px;
  background: linear-gradient(to top, var(--glass-strong) 55%, transparent);
}

.qm-bento-name {
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.25;
}

.qm-bento-tile:first-child .qm-bento-name {
  font-size: var(--text-lg);
}

.qm-bento-price {
  margin-top: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.qm-bento-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

@media (min-width: 720px) {
  .qm-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }
  .qm-bento-tile {
    min-height: 0;
  }
  .qm-bento-tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Product list
   -------------------------------------------------------------------------- */
.qm-category {
  scroll-margin-top: calc(118px + var(--safe-top));
}

.qm-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .qm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.qm-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-fast), box-shadow var(--dur), transform var(--dur-fast);
}

.qm-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.qm-item:active {
  transform: scale(0.99);
}

.qm-item.is-soldout {
  cursor: default;
}

.qm-item.is-soldout .qm-item-body,
.qm-item.is-soldout .art {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.qm-item.is-filtered {
  display: none;
}

.qm-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.qm-item-name {
  font-size: var(--text-base);
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.qm-item-desc {
  font-size: var(--text-sm);
  color: var(--fg-subtle);
  line-height: 1.42;
}

.qm-item-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.qm-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  flex-wrap: wrap;
}

.qm-price {
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.qm-kcal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
}

.qm-kcal .icon {
  width: 13px;
  height: 13px;
}

.qm-allergen-icons {
  display: inline-flex;
  gap: 3px;
}

.qm-allergen-icons span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.qm-allergen-icons .icon {
  width: 13px;
  height: 13px;
}

.qm-item-media {
  position: relative;
  width: 104px;
  align-self: start;
}

.qm-item-media .art {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}

.qm-add {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 0 0 3px var(--surface), var(--shadow-md);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast);
  z-index: 3;
}

.qm-add:hover {
  transform: scale(1.06);
}

.qm-add:active {
  transform: scale(0.92);
}

.qm-add .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.qm-add .qm-add-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  box-shadow: 0 0 0 2px var(--surface);
}

.qm-soldout-tag {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 3;
  white-space: nowrap;
}

/* Empty search */
.qm-no-results {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.qm-footer {
  margin-top: 40px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

.qm-powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fg-muted);
}

.qm-powered .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.qm-powered .brand-mark svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Action dock (Garson Çağır · Hesap İste · Sepet)
   -------------------------------------------------------------------------- */
.qm-dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: var(--z-dock);
  width: min(560px, calc(100vw - 20px));
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 22px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.qm-dock-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 74px;
  height: 56px;
  padding: 0 8px;
  border-radius: 16px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--fg-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.qm-dock-btn:hover {
  background: var(--surface-3);
  color: var(--fg);
}

.qm-dock-btn:active {
  transform: scale(0.96);
}

.qm-dock-btn .icon {
  width: 20px;
  height: 20px;
}

.qm-dock-btn.is-pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.qm-dock-btn.is-pending .icon {
  animation: pulse-soft 1.1s ease-in-out infinite;
}

.qm-dock-btn.is-bill-pending {
  color: var(--danger);
  background: var(--danger-soft);
}

.qm-dock-btn.is-acknowledged {
  color: var(--success);
  background: var(--success-soft);
}

.qm-dock-label {
  white-space: nowrap;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px 0 12px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-md);
  min-width: 0;
  transition: transform var(--dur) var(--ease-spring), opacity var(--dur);
}

.qm-cart-btn:active {
  transform: scale(0.98);
}

.qm-cart-btn.is-empty {
  opacity: 0.94;
}

.qm-cart-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

:root[data-theme="dark"] .qm-cart-icon {
  background: rgba(0, 0, 0, 0.08);
}

.qm-cart-icon .icon {
  width: 19px;
  height: 19px;
}

.qm-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--primary);
}

.qm-cart-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}

.qm-cart-label {
  font-size: var(--text-sm);
  font-weight: 650;
  white-space: nowrap;
}

.qm-cart-sub {
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
}

.qm-cart-total {
  margin-left: auto;
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qm-cart-btn.is-bump {
  animation: bump 0.5s var(--ease-spring);
}

@media (max-width: 380px) {
  .qm-dock-btn {
    min-width: 60px;
  }
  .qm-cart-sub {
    display: none;
  }
}

/* Fly-to-cart */
.qm-fly {
  position: fixed;
  z-index: var(--z-toast);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  pointer-events: none;
}

/* Bill menu */
.qm-bill-menu {
  width: 100%;
  padding: 8px;
}

.qm-bill-head {
  padding: 8px 8px 12px;
}

.qm-bill-total {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

.qm-pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  border-radius: 12px;
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--dur-fast);
}

.qm-pay-option:hover,
.qm-pay-option:focus-visible {
  background: var(--surface-3);
}

.qm-pay-option .qm-card-icon {
  width: 38px;
  height: 38px;
}

.qm-pay-option small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-subtle);
}

/* --------------------------------------------------------------------------
   Product detail sheet
   -------------------------------------------------------------------------- */
.pd-modal .modal-body {
  padding: 0;
}

.pd-media {
  position: relative;
  height: 230px;
}

.pd-media .art {
  position: absolute;
  inset: 0;
}

.pd-media .art .icon {
  width: 30%;
  height: 30%;
}

.pd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--fg);
}

.pd-badges {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.pd-body {
  padding: 18px 20px 8px;
  display: grid;
  gap: 18px;
}

.pd-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

.pd-desc {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.pd-price {
  margin-top: 10px;
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pd-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pd-fact {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.pd-fact-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pd-fact-label .icon {
  width: 12px;
  height: 12px;
}

.pd-fact-value {
  margin-top: 4px;
  font-size: var(--text-md);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pd-section-title {
  font-size: var(--text-sm);
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.pd-section-title small {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-subtle);
}

.pd-nutrition {
  display: grid;
  gap: 10px;
}

.pd-nutrient {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
}

.pd-nutrient .progress {
  height: 6px;
}

.pd-nutrient-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 70px;
  text-align: right;
}

.pd-nutrient-value small {
  font-weight: 500;
  color: var(--fg-subtle);
  margin-left: 4px;
}

.pd-allergen-box {
  border-radius: var(--r-md);
  padding: 12px 14px;
  border: 1px solid var(--warning-border);
  background: var(--warning-soft);
}

.pd-allergen-box.is-clear {
  border-color: var(--success-border);
  background: var(--success-soft);
}

.pd-allergen-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--warning);
}

.pd-allergen-box.is-clear .pd-allergen-head {
  color: var(--success);
}

.pd-allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pd-allergen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--warning-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg);
}

.pd-allergen .icon {
  width: 14px;
  height: 14px;
  color: var(--warning);
}

.pd-allergen-note {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: var(--fg-muted);
}


.pd-option-price {
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pd-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pd-footer .btn {
  flex: 1;
}

.pd-footer-price {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Cart & orders sheets
   -------------------------------------------------------------------------- */
.cart-lines {
  display: grid;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-line:first-child {
  padding-top: 0;
}

.cart-line .art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.cart-line-name {
  font-size: var(--text-sm);
  font-weight: 650;
}

.cart-line-opts {
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  margin-top: 2px;
}

.cart-line-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-line-price {
  font-weight: 700;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.cart-line .stepper {
  height: 32px;
}

.cart-line .stepper button {
  width: 32px;
}

.cart-note {
  margin-top: 16px;
}




/* Table picker */
.table-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.table-picker button {
  height: 56px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--text-lg);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: all var(--dur-fast);
}

.table-picker button:hover,
.table-picker button.is-active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* Filter sheet */
.filter-group + .filter-group {
  margin-top: 20px;
}


.chip.is-exclude:has(input:checked) {
  background: var(--danger-strong);
  border-color: var(--danger-strong);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Alerji seçeneği (ürün detayı) ve alerjen filtresi açıklaması
   -------------------------------------------------------------------------- */
.pd-allergy {
  align-items: flex-start;
  margin-bottom: 10px;
}

.pd-allergy .option-radio {
  margin-top: 2px;
}

.pd-allergy:has(input:checked) {
  border-color: var(--danger-strong);
  box-shadow: 0 0 0 1px var(--danger-strong);
  background: var(--danger-soft);
}

.pd-allergy:has(input:checked) .option-check {
  background-color: var(--danger-strong);
  border-color: var(--danger-strong);
}

.pd-allergy-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pd-allergy-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--fg);
}

.pd-allergy-title .icon {
  width: 15px;
  height: 15px;
  color: var(--danger);
}

.pd-allergy-help {
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--fg-muted);
}

.pd-allergy-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--danger);
}

.pd-allergy-warn[hidden] {
  display: none;
}

.pd-allergy-warn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filter-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--info-soft);
  border: 1px solid var(--info-border);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--fg);
}

.filter-help .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--info);
}
