/* Ana sayfa ürün demosu (js/hero-demo.js) stilleri. Yalnız ana sayfa yükler.
   Demo lacivert sahnenin içinde durur; sahnenin kendisi css/ana-sayfa.css içindedir.
   Düzen: üstte kayan haplı sekme, altında ürün penceresi (Restoran ve Perakende yatay, Kiosk dikey).
   Pencere içi: tek çizgi rengi, 12 px köşeli paneller, 8-10 px köşeli düğmeler, turuncu yalnız
   ana eylemde ve seçimde. Telefonda katalog ve adisyon ayrı görünümlerdir. */
.home-hero-demo {
  --hd-ink: #0b1120;
  --hd-ink-2: #5d626c;
  --hd-line: #e3e3de;
  --hd-paper: #f7f7f5;
  --hd-white: #ffffff;
  --hd-accent: #fc6800;
  --hd-peach: #fff0e5;
  --hd-track: rgba(11, 17, 32, .055);
  --hd-ease: cubic-bezier(.2, .7, .2, 1);
  --hd-h: clamp(475px, 50cqw, 510px);
  position: relative;
  z-index: 1;
  container-type: inline-size;
}
.home-hero-static { display: none; }
.hd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Sekmeler: tek ray, içinde kayan turuncu hap ---------- */
.hd-tabs {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 4px;
  background: var(--hd-ink);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
}
.hd-tab {
  min-width: 0;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  font: 500 14px/1 var(--font-sans);
  letter-spacing: -.005em;
  cursor: pointer;
  transition: color 160ms var(--hd-ease);
}
.hd-tab:hover { color: var(--hd-white); }
.hd-tab.is-active { background: var(--hd-accent); color: var(--hd-white); }
.hd-tab:focus-visible { outline: 2px solid var(--hd-white); outline-offset: 2px; }
.hd-tab-pill { display: none; position: absolute; top: 0; left: 0; z-index: -1; background: var(--hd-accent); border-radius: 999px; transform-origin: 0 0; pointer-events: none; }
.is-ready .hd-tab-pill { display: block; inset: 4px auto 4px 4px; width: calc((100% - 8px)/3); transition: transform 220ms var(--hd-ease); }
[data-screen="perakende"] .hd-tab-pill { transform: translateX(100%); }
[data-screen="kiosk"] .hd-tab-pill { transform: translateX(200%); }
.is-ready .hd-tab.is-active { background: transparent; }

/* ---------- Pencere ---------- */
.hd-stage { position: relative; display: flex; align-items: center; justify-content: center; height: calc(var(--hd-h) + var(--hd-bar)); }
.hd-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 100%;
  height: calc(var(--hd-h) + var(--hd-bar));
  overflow: hidden;
  background: var(--hd-white);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
  color: var(--hd-ink);
  font: 500 12px/1.35 var(--font-sans);
  transform: translateZ(0);
  transform-origin: 0 0;
}
.home-hero-demo[data-screen="kiosk"] .hd-frame { width: min(100%, 400px); }
/* Pencere çubuğu: üç düğme ve ortada uygulama adı. Kioskta yok (kiosk bir cihaz ekranıdır, pencere değil). */
.home-hero-demo { --hd-bar: 32px; }
.hd-bar { position: relative; display: flex; align-items: center; flex: 0 0 var(--hd-bar); padding: 0 13px; background: linear-gradient(180deg, #f4f4f1, #ebebe8); border-bottom: 1px solid var(--hd-line); }
.hd-lights { display: flex; gap: 8px; }
.hd-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(11, 17, 32, .22); }
.hd-lights i:nth-child(1) { background: #c53232; }
.hd-lights i:nth-child(2) { background: #f68838; }
.hd-lights i:nth-child(3) { background: #2ead6b; }
.hd-bar-title { position: absolute; left: 50%; color: var(--hd-ink-2); font-size: 12px; font-weight: 500; letter-spacing: -.005em; translate: -50% 0; }
.home-hero-demo[data-screen="kiosk"] { --hd-bar: 0px; }
.home-hero-demo[data-screen="kiosk"] .hd-bar { display: none; }
.home-hero-demo[data-screen="kiosk"] .hd-frame { border-radius: 18px; }
/* Demo hareketleri (js/hero-demo.js): eklenen ürünün küçük resmi adisyona uçar. */
.hd-fly { position: fixed; z-index: 60; margin: 0; padding: 4px 9px; pointer-events: none; background: var(--hd-ink); border-radius: 999px; box-shadow: 0 10px 22px -10px rgba(11, 17, 32, .5); color: var(--hd-white); font: 600 12px/1.25 var(--font-sans); white-space: nowrap; transform-origin: 0 50%; }
/* Kiosk görünüm geçişleri: eski görünüm kısa süre arkada (ya da üstte) kalır. */
#hdKiosk { isolation: isolate; overflow: hidden; }
.hd-ghost { position: absolute; inset: 0; z-index: -2; display: inherit; flex-direction: inherit; gap: inherit; padding: inherit; background: var(--hd-paper); pointer-events: none; }
.hd-ghost.is-top { z-index: 5; box-shadow: 0 18px 30px -14px rgba(11, 17, 32, .45); border-radius: 0 0 16px 16px; }
.hd-sheet-bg { position: absolute; inset: 0; z-index: -1; background: var(--hd-paper); border-radius: 0 0 16px 16px; box-shadow: 0 18px 30px -14px rgba(11, 17, 32, .45); pointer-events: none; }
/* Onay işareti: şeftali dairenin çevresinde turuncu halka dolar, lacivert tik çizilir. */
.hd-ok { display: block; flex: 0 0 auto; width: 56px; height: 56px; margin: 0 auto 6px; }
.hd-ok svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hd-ok-ring { fill: var(--hd-peach); stroke: var(--hd-accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50% 50%; animation: hdRing 620ms cubic-bezier(.45, 0, .2, 1) 160ms backwards; }
.hd-ok-tick { fill: none; stroke: var(--hd-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: hdTick 340ms cubic-bezier(.3, .7, .2, 1) 640ms backwards; }
.hd-ok { animation: hdOkPop 520ms cubic-bezier(.2, .9, .25, 1) 160ms backwards; }
@keyframes hdRing { from { stroke-dashoffset: 1; fill: rgba(255, 240, 229, 0); } }
@keyframes hdTick { from { stroke-dashoffset: 1; } }
@keyframes hdOkPop { from { opacity: 0; transform: scale(.7); } }
.hd-order-no b { color: var(--hd-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-detail.is-done .hd-detail-inner { position: relative; }
.hd-detail.is-done .hd-detail-inner > h2 { margin-top: 66px; text-align: center; }
.hd-detail.is-done .hd-ok { position: absolute; left: 50%; top: 20px; margin: 0 0 0 -28px; }
:where(.hd-frame) :is(button, input, summary) { font: inherit; color: inherit; }
.hd-frame button { cursor: pointer; }
.hd-frame button:disabled { cursor: default; }
.hd-frame [hidden] { display: none !important; }
.hd-frame :is(button, summary, input):focus-visible { outline: 2px solid var(--hd-ink); outline-offset: -2px; }

.hd-head { display: flex; align-items: center; gap: 12px; flex: 0 0 48px; padding: 0 16px; border-bottom: 1px solid var(--hd-line); }
.hd-brand { font-family: 'Moderna', serif; font-size: 21px; font-weight: 400; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.hd-brand > span { margin-left: 1px; color: var(--hd-accent); font-family: var(--font-sans); font-size: .7em; font-weight: 600; letter-spacing: 0; }
#hdContext { min-width: 0; margin-left: auto; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.hd-action-toggle { display: none; }

.hd-body, .hd-screens { display: flex; flex: 1; min-width: 0; min-height: 0; }
.hd-screens { position: relative; }
.hd-screen { position: absolute; inset: 0; display: none; gap: 10px; padding: 10px; background: var(--hd-paper); }
:is(#hdRestoran, #hdPerakende) { grid-template-columns: 76px minmax(0, .86fr) minmax(0, 1.14fr); grid-template-rows: minmax(0, 1fr); }
:is(#hdRestoran, #hdPerakende).is-active { display: grid; }
#hdKiosk.is-active { display: flex; }

/* ---------- Simgeler: tek renk, düğmenin yazı rengini alır ---------- */
:where(.hd-action, .hd-btn, .hd-keypad summary > span:last-child, .hd-barcode label:first-child)::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--hd-ic) center / contain no-repeat;
  mask: var(--hd-ic) center / contain no-repeat;
}
.hd-action { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Masa Değiştir"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h15m-3.5-3.5 3.5 3.5-3.5 3.5M20 15.5H5m3.5-3.5L5 15.5 8.5 19'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Müşteri"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M5 20c.7-3.6 3.5-5.6 7-5.6s6.3 2 7 5.6'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Genel İndirim"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='7.5' r='2.4'/%3E%3Ccircle cx='16.5' cy='16.5' r='2.4'/%3E%3Cpath d='M18.5 5.5l-13 13'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Servis Ücreti"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 18.5h17M5.5 15.5a6.5 6.5 0 0 1 13 0ZM12 9V6.5M10.5 6.5h3'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Beklet"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M10 9v6M14 9v6'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Hesap"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-2-1.4-2 1.4-2-1.4-2 1.4-2-1.4-2 1.4ZM9 8h6M9 11.5h6M9 15h3'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Fatura"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h7.5l3.5 3.5v13.5h-11ZM14 3.5V7h3.5M9.5 11.5h5M9.5 14.5h5M9.5 17.5h2.5'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="İade"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 5.5 4.5 9.5l4 4M4.5 9.5h10a5 5 0 0 1 0 10H11'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Son fiş"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8.5v-5h10v5M7 16.5H4.5v-8h15v8H17M7 13.5h10v7H7Z'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Açık Fişler"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3.5 8.5 12 13l8.5-4.5ZM4.5 12.5l7.5 4 7.5-4M4.5 16l7.5 4 7.5-4'/%3E%3C/svg%3E"); }
.hd-action[data-pos-action="Fiyat Gör"] { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.5v-9h9l8 8-9 9ZM8 8h.01'/%3E%3C/svg%3E"); }
:is(#hdPay, #hdRetailPay) { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h18v11H3Z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6.5 10v4M17.5 10v4'/%3E%3C/svg%3E"); }
#hdCardPay { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M6.5 14.5h4'/%3E%3C/svg%3E"); }
#hdAdd { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 3.5 10 14M20.5 3.5l-6.5 17-4-6.5-6.5-4Z'/%3E%3C/svg%3E"); }
.hd-keypad summary > span:last-child { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='6' cy='6' r='1.7'/%3E%3Ccircle cx='12' cy='6' r='1.7'/%3E%3Ccircle cx='18' cy='6' r='1.7'/%3E%3Ccircle cx='6' cy='12' r='1.7'/%3E%3Ccircle cx='12' cy='12' r='1.7'/%3E%3Ccircle cx='18' cy='12' r='1.7'/%3E%3Ccircle cx='6' cy='18' r='1.7'/%3E%3Ccircle cx='12' cy='18' r='1.7'/%3E%3Ccircle cx='18' cy='18' r='1.7'/%3E%3C/svg%3E"); }
.hd-barcode label:first-child { --hd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6v12M8 6v12M11 6v12M15 6v12M18 6v12M20.5 6v12' /%3E%3C/svg%3E"); }

/* ---------- Sol sütun: işlemler ---------- */
.hd-action-column {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding: 4px;
  overflow: hidden;
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 12px;
}
.hd-action {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 0;
  padding: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hd-ink-2);
  font-size: 10.5px;
  line-height: 1.15;
  text-align: center;
  transition: background-color 160ms var(--hd-ease), color 160ms var(--hd-ease), transform 100ms var(--hd-ease);
}
.hd-action:hover { background: var(--hd-paper); color: var(--hd-ink); }
.hd-action:active { transform: scale(.97); }

/* ---------- Adisyon ve fiş ---------- */
.hd-receipt {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 12px;
}
.hd-receipt-head { flex-shrink: 0; padding: 13px 14px 12px; border-bottom: 1px solid var(--hd-line); font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.hd-lines { flex: 1; min-height: 0; margin: 0; padding: 0 14px; overflow: hidden; list-style: none; }
.hd-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--hd-line); }
.hd-lines li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-lines small { display: block; margin-top: 2px; color: var(--hd-ink-2); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.hd-lines li > strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-lines li.is-new { margin-inline: -14px; padding-inline: 14px; animation: hdLineIn 1400ms var(--hd-ease) both; }
.hd-lines li.hd-empty { display: block; padding: 14px 0; border: 0; color: var(--hd-ink-2); }
@keyframes hdLineIn {
  0% { background: var(--hd-peach); opacity: 0; transform: translateY(4px); }
  18% { opacity: 1; transform: none; }
  60% { background: var(--hd-peach); }
  100% { background: rgba(255, 240, 229, 0); }
}
.hd-sums { flex-shrink: 0; padding: 12px 14px; border-top: 1px solid var(--hd-line); }
.hd-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hd-total > span { min-width: 0; }
.hd-total small { display: block; margin-top: 1px; overflow: hidden; color: var(--hd-ink-2); font-size: 10.5px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.hd-total strong { font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-roll > span { display: inline-block; }
.hd-receipt-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; flex-shrink: 0; padding: 0 10px 10px; }
.hd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--hd-accent);
  border-radius: 10px;
  background: var(--hd-accent);
  color: var(--hd-white) !important;
  font-size: 12px;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background-color 160ms var(--hd-ease), border-color 160ms var(--hd-ease), color 160ms var(--hd-ease), transform 100ms var(--hd-ease);
}
.hd-btn::before { width: 16px; height: 16px; }
.hd-btn:hover:not(:disabled) { background: var(--hd-ink); border-color: var(--hd-ink); }
.hd-btn:is(:active, .is-press):not(:disabled) { transform: scale(.97); }
.hd-btn-ghost { background: var(--hd-white); border-color: var(--hd-line); color: var(--hd-ink) !important; }
.hd-btn-ghost:hover:not(:disabled) { background: var(--hd-white); border-color: var(--hd-ink); }
.hd-btn-ghost.is-press { border-color: var(--hd-ink); }
.hd-btn:disabled { background: var(--hd-paper); border-color: var(--hd-line); color: var(--hd-ink-2) !important; opacity: .7; }
#hdAdd, #hdRetailPay { grid-column: 1 / -1; }

/* Barkod satırı (perakende) */
.hd-barcode { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 5px 8px; flex-shrink: 0; padding: 12px 14px; border-bottom: 1px solid var(--hd-line); }
.hd-barcode label { display: flex; align-items: center; gap: 5px; color: var(--hd-ink-2); font-size: 10.5px; line-height: 1.2; }
.hd-barcode label:first-child::before { width: 14px; height: 14px; }
.hd-barcode input {
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--hd-line);
  border-radius: 8px;
  background: var(--hd-paper);
  box-shadow: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms var(--hd-ease), background-color 160ms var(--hd-ease);
}
.hd-barcode input::placeholder { color: var(--hd-ink-2); opacity: .7; }
.hd-barcode input:focus { background: var(--hd-white); border-color: var(--hd-ink); outline: 0; }
.hd-receipt > .hd-seg { margin: 10px 10px 2px; }

@keyframes hdFlashIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Ürün alanı ---------- */
.hd-map, .hd-retail-catalog { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
/* Bölmeli seçicide beyaz işaret seçili düğmeye kayar. */
.hd-seg { display: flex; gap: 2px; flex-shrink: 0; padding: 3px; background: var(--hd-track); border-radius: 10px; }
.hd-seg > button {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hd-ink-2);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms var(--hd-ease);
}
.hd-seg > button:hover { color: var(--hd-ink); }
.hd-seg > button.is-active { background: var(--hd-white); box-shadow: 0 0 0 1px var(--hd-line); color: var(--hd-ink); }
/* Hızlı ürün tuşları: masaüstünde 3 × 4 tuş bir grubu tam doldurur; "Tümü" gibi uzun liste kendi içinde kayar. */
.hd-products {
  --hd-tile-rows: 4;
  --hd-tile-gap: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: calc((100% - (var(--hd-tile-rows) - 1) * var(--hd-tile-gap)) / var(--hd-tile-rows));
  gap: var(--hd-tile-gap);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.hd-products::-webkit-scrollbar { display: none; }
.hd-item, .hd-menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 9px 10px 8px;
  overflow: hidden;
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  text-align: left;
  transition: border-color 160ms var(--hd-ease), transform 100ms var(--hd-ease);
}
/* Tuş: üstte ad (en çok iki satır), altta fiyat; ürün görseli, ölçü ve barkod yok. Sepete giren ürünün kenarı turuncuya döner, sağ üstte adet belirir. */
:is(.hd-item, .hd-menu-card).is-in { border-color: var(--hd-accent); box-shadow: inset 0 0 0 1px var(--hd-accent); }
.hd-qty { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; background: var(--hd-accent); border-radius: 10px; color: var(--hd-white); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.hd-qty[hidden] { display: none; }
.hd-item:hover, .hd-item.is-press { border-color: var(--hd-ink); }
.hd-item:is(:active, .is-press) { transform: scale(.975); }
:is(.hd-item, .hd-menu-card) > strong { flex-shrink: 0; margin: 0; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hd-item.is-in > strong { margin-right: 20px; }
.hd-item > em { flex-shrink: 0; margin: auto 0 0; padding-top: 3px; color: var(--hd-ink-2); font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hd-tile-add, .hd-plus, .hd-minus {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--hd-line);
  border-radius: 50%;
  background: var(--hd-white);
  color: var(--hd-ink);
  font-size: 0 !important;
  transition: background-color 160ms var(--hd-ease), border-color 160ms var(--hd-ease), color 160ms var(--hd-ease), transform 100ms var(--hd-ease);
}
:is(.hd-tile-add, .hd-plus, .hd-minus)::before,
:is(.hd-tile-add, .hd-plus)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; border-radius: 1px; }
:is(.hd-tile-add, .hd-plus)::after { transform: rotate(90deg); }
.hd-tile-add { position: absolute; right: 9px; bottom: 9px; }
.hd-item:is(:hover, .is-press) .hd-tile-add, .hd-plus:is(:hover, .is-press) { background: var(--hd-ink); border-color: var(--hd-ink); color: var(--hd-white); }
:is(.hd-plus, .hd-minus):is(:active, .is-press) { transform: scale(.92); }
.hd-minus:hover { border-color: var(--hd-ink); }

/* Adet ve tuş takımı */
.hd-keypad { position: relative; flex-shrink: 0; background: var(--hd-white); border: 1px solid var(--hd-line); border-radius: 10px; }
.hd-keypad summary { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--hd-ink-2); font-size: 11.5px; list-style: none; cursor: pointer; }
.hd-keypad summary::-webkit-details-marker { display: none; }
.hd-keypad output { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; background: var(--hd-paper); border-radius: 6px; color: var(--hd-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-keypad summary > span:last-child { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--hd-ink); }
.hd-keypad summary > span:last-child::before { width: 14px; height: 14px; }
.hd-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 6px; }
.hd-keypad:not([open]) > .hd-keys { display: none; }
.hd-keypad[open] > .hd-keys {
  position: absolute;
  right: -1px;
  bottom: calc(100% + 6px);
  left: -1px;
  z-index: 6;
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  box-shadow: 0 16px 32px -16px rgba(11, 17, 32, .28);
  animation: hdFlashIn 200ms var(--hd-ease);
}
.hd-key { min-width: 0; height: 32px; padding: 0; border: 1px solid var(--hd-line); border-radius: 8px; background: var(--hd-white); font-size: 12px; font-weight: 600 !important; font-variant-numeric: tabular-nums; transition: border-color 160ms var(--hd-ease), transform 100ms var(--hd-ease); }
.hd-key:hover { border-color: var(--hd-ink); }
.hd-key:active { transform: scale(.95); }
.hd-key:last-child { background: var(--hd-ink); border-color: var(--hd-ink); color: var(--hd-white) !important; font-size: 10.5px; }

/* ---------- Alt durum satırı ---------- */
.hd-strip { display: flex; align-items: center; gap: 8px; flex: 0 0 34px; padding: 0 16px; border-top: 1px solid var(--hd-line); background: var(--hd-white); color: var(--hd-ink-2); font-size: 11.5px; line-height: 1.3; transition: background-color 240ms var(--hd-ease), color 240ms var(--hd-ease); }
.hd-strip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-check { flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: var(--hd-accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.hd-strip .hd-check { display: none; }
.hd-strip::before { content: ""; flex: 0 0 6px; height: 6px; margin-inline: 5px; background: var(--hd-line); border-radius: 50%; }
.hd-strip.is-sent { background: var(--hd-peach); color: var(--hd-ink); }
.hd-strip.is-sent::before { display: none; }
.hd-strip.is-sent .hd-check { display: block; animation: hdFlashIn 420ms var(--hd-ease); }

/* ---------- Kiosk ---------- */
#hdKiosk { flex-direction: column; gap: 10px; padding: 14px; background: var(--hd-white); }
.hd-kiosk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; min-height: 36px; }
.hd-kiosk-head > div:first-child { min-width: 0; }
.hd-kiosk-head > div > strong, .hd-kiosk-head > strong { display: block; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.hd-kiosk-head small { display: block; margin-top: 2px; overflow: hidden; color: var(--hd-ink-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hd-flags { display: flex; gap: 2px; flex-shrink: 0; padding: 3px; background: var(--hd-track); border-radius: 9px; }
.hd-flag { min-width: 34px; height: 26px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--hd-ink-2); font-size: 11px; font-weight: 600 !important; transition: color 160ms var(--hd-ease); }
.hd-flag.is-active { background: var(--hd-white); box-shadow: 0 0 0 1px var(--hd-line); color: var(--hd-ink); }
.hd-kiosk-catalog { display: flex; gap: 10px; flex: 1; min-height: 0; }
.hd-category-rail { display: flex; flex: 0 0 68px; flex-direction: column; gap: 2px; padding: 3px; background: var(--hd-track); border-radius: 12px; }
.hd-category-rail .hd-category {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  padding: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--hd-ink-2);
  font-size: 10px;
  line-height: 1.15;
  transition: color 160ms var(--hd-ease);
}
.hd-category-rail .hd-category:is(:hover, .is-active) { color: var(--hd-ink); }
.hd-category-rail .hd-category.is-active { background: var(--hd-white); box-shadow: 0 0 0 1px var(--hd-line); }
.hd-category-rail .hd-category > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Kiosk: her kategori 2 × 3 kartı tam doldurur; "Tümü" kendi içinde kayar. Müşteri ekranı olduğu için ekleme düğmesi durur. */
.hd-menu { --hd-tile-gap: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100% - 2 * var(--hd-tile-gap)) / 3); gap: var(--hd-tile-gap); flex: 1; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.hd-menu::-webkit-scrollbar { display: none; }
/* Kiosk kartında ad ve fiyat birlikte ortada durur, ekleme düğmesi sağda; arada boşluk kalmaz. */
.hd-menu-card { justify-content: center; padding: 8px 40px 8px 12px; }
.hd-menu-card > strong { font-size: 13px; }
.hd-menu-card > em { margin: 0; padding-top: 4px; color: var(--hd-ink); font-size: 12.5px; font-weight: 600; }
.hd-menu-card.is-in > strong { margin-right: 0; }
.hd-menu-card .hd-tile-add { right: 10px; top: calc(50% - 13px); }
.hd-menu-card .hd-qty { right: 8px; top: 8px; }
.hd-basket-name em { color: var(--hd-ink-2); font-size: 11.5px; font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-basket-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--hd-accent);
  color: var(--hd-white) !important;
  font-size: 12.5px;
  font-weight: 600 !important;
  transition: background-color 160ms var(--hd-ease), transform 100ms var(--hd-ease);
}
.hd-basket-bar:hover:not(:disabled) { background: var(--hd-ink); }
.hd-basket-bar:is(:active, .is-press):not(:disabled) { transform: scale(.98); }
.hd-basket-bar:disabled { background: var(--hd-track); color: var(--hd-ink-2) !important; }
.hd-basket-bar > span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.hd-basket-bar > strong { font-weight: 600; }
.hd-basket-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--hd-white); border-radius: 999px; color: var(--hd-ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.hd-basket-bar:disabled .hd-basket-count { background: var(--hd-white); color: var(--hd-ink-2); }
.hd-back, .hd-remove, .hd-clear { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 30px; height: 30px; padding: 0 10px; border: 1px solid var(--hd-line); border-radius: 9px; background: var(--hd-white); font-size: 11.5px; transition: border-color 160ms var(--hd-ease); }
:is(.hd-back, .hd-remove, .hd-clear):hover { border-color: var(--hd-ink); }
.hd-back { padding: 0; font-size: 15px; }
.hd-remove { padding: 0; }
.hd-remove svg { width: 15px; height: 15px; fill: none; stroke: var(--hd-ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hd-basket-lines { flex: 1; min-height: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.hd-basket-lines li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--hd-line); }
.hd-basket-lines li.hd-empty { display: block; padding: 16px 0; border: 0; color: var(--hd-ink-2); }
.hd-basket-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hd-basket-name > strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hd-quantity { display: flex; align-items: center; gap: 5px; }
.hd-checkout { flex-shrink: 0; padding: 12px; background: var(--hd-paper); border-radius: 14px; }
.hd-grand-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hd-grand-total > strong:first-child { font-weight: 500; }
.hd-grand-total > strong:last-child { font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hd-dining { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.hd-choice { flex: 1; min-height: 34px; padding: 0 10px; overflow: hidden; border: 1px solid var(--hd-line); border-radius: 10px; background: var(--hd-white); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; transition: border-color 160ms var(--hd-ease); }
.hd-choice:hover { border-color: var(--hd-ink); }
.hd-choice[aria-pressed="true"] { border-color: var(--hd-accent); box-shadow: inset 0 0 0 1px var(--hd-accent); font-weight: 600; }
.hd-confirmation { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; text-align: center; }
.hd-confirmation > span, .hd-confirmation > p { margin: 0; color: var(--hd-ink-2); font-size: 12px; }
.hd-confirmation > strong { font-size: 24px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hd-confirmation .hd-btn { margin-top: 14px; padding-inline: 18px; }
.home-hero-demo[data-screen="kiosk"] #hdContext { font-size: 10.5px; }
.home-hero-demo[data-screen="kiosk"] .hd-strip { font-size: 10.5px; }

/* ---------- Boşta tur imleci ---------- */
.hd-cursor { position: absolute; top: 0; left: 0; z-index: 8; width: 0; height: 0; opacity: 0; pointer-events: none; transition: transform 640ms cubic-bezier(.45, .05, .2, 1), opacity 260ms var(--hd-ease); }
.hd-cursor.is-on { opacity: 1; }
/* Tanıtım modu: basılan yerde turuncu halka açılır; telefonda ok yerine dokunma noktası görünür. */
.hd-tap { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border: 2px solid var(--hd-accent); border-radius: 50%; opacity: 0; }
.hd-cursor.is-touch svg { display: none; }
.hd-cursor.is-touch::after { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: rgba(11, 17, 32, .28); border: 2px solid var(--hd-white); border-radius: 50%; box-shadow: 0 2px 8px rgba(11, 17, 32, .3); }
.hd-cursor svg { position: absolute; top: -5px; left: -8px; width: 34px; height: 34px; overflow: visible; fill: var(--hd-ink); stroke: var(--hd-white); stroke-width: 1.5; stroke-linejoin: round; transform-origin: 8px 5px; transition: transform 120ms var(--hd-ease); }

/* ---------- Dar pencere (tablet ve küçük dizüstü) ---------- */
@container (max-width: 860px) {
  :is(#hdRestoran, #hdPerakende) { grid-template-columns: 62px minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; padding: 8px; }
  .hd-products { grid-template-columns: repeat(2, minmax(0, 1fr)); --hd-tile-rows: 5; }
  .hd-action { font-size: 10px; gap: 4px; }
  .hd-action::before { width: 16px; height: 16px; }
  .hd-receipt-head { padding: 10px 12px; }
  .hd-lines { padding: 0 12px; }
  .hd-lines li { padding: 7px 0; }
  .hd-lines li.is-new { margin-inline: -12px; padding-inline: 12px; }
  .hd-sums { padding: 10px 12px; }
  .hd-total strong { font-size: 20px; }
  .hd-btn { height: 32px; padding: 0 6px; gap: 5px; font-size: 11.5px; }
  .hd-btn::before { width: 14px; height: 14px; }
  .hd-barcode { padding: 10px 12px; grid-template-columns: minmax(0, 1fr) 50px; }
  .hd-seg > button { font-size: 11px; padding: 0 4px; }
  #hdKiosk { gap: 8px; padding: 10px; }
  .hd-category-rail { flex-basis: 54px; }
  .hd-category-rail .hd-category { font-size: 9px; }
  .hd-menu { gap: 6px; }
  .hd-menu-card { padding: 8px 34px 8px 9px; }
  .hd-menu-card .hd-tile-add { right: 7px; top: calc(50% - 11px); width: 22px; height: 22px; }
  .hd-menu-card > strong { font-size: 11.5px; }
  .hd-menu-card > em { font-size: 12px; }
  .hd-plus, .hd-minus { width: 22px; height: 22px; }
  .hd-kiosk-head > div > strong, .hd-kiosk-head > strong { font-size: 14px; }
  .hd-basket-bar { height: 38px; font-size: 11.5px; }
  .hd-basket-lines li { grid-template-columns: 32px minmax(0, 1fr) auto 26px; gap: 5px; }
  .hd-remove, .hd-back { min-width: 26px; height: 26px; }
}


/* Satış satırları ve kasa içindeki ayrıntı görünümü */
.hd-mobile-views { display: none; }
:is(.hd-seg, .hd-category-rail) { position: relative; isolation: isolate; gap: 0; }
:is(.hd-seg, .hd-category-rail)::before {
  content: ""; position: absolute; z-index: -1; inset: 3px auto 3px 3px;
  width: calc((100% - 6px) / var(--hd-segments, 3)); border-radius: 8px;
  background: var(--hd-white); box-shadow: 0 0 0 1px var(--hd-line);
  transform: translateX(calc(var(--hd-index, 0) * 100%)); transition: transform 180ms var(--hd-ease);
}
.hd-sale-tabs { --hd-segments: 2; }
.hd-category-rail::before { inset: 3px 3px auto; width: auto; height: calc((100% - 6px) / 4); transform: translateY(calc(var(--hd-index, 0) * 100%)); }
.hd-seg > button.is-active, .hd-category-rail .hd-category.is-active { background: transparent; box-shadow: none; }
.hd-demo-label { border-left: 1px solid var(--hd-line); padding-left: 12px; font-size: 11px; color: var(--hd-ink-2); }
.hd-brand > span { margin-left: 4px; color: var(--hd-ink-2); }
.hd-action-column { gap: 3px; }
.hd-action.has-value { background: var(--hd-peach); color: var(--hd-ink); }
.hd-action:disabled, .hd-clear:disabled { opacity: .45; }
.hd-action:disabled:hover { background: transparent; }
.hd-lines, .hd-basket-lines { overflow-y: auto; }
.hd-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 5px 10px; padding-block: 11px; }
.hd-lines .hd-quantity { grid-column: 1 / -1; }
.hd-quantity > span { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.hd-quantity .hd-remove { margin-left: auto; border: 0; }
.hd-quantity .hd-remove:hover { background: var(--hd-paper); }
.hd-quantity .hd-remove svg { pointer-events: none; }
.hd-adjustments { font-size: 11px; color: var(--hd-ink-2); font-variant-numeric: tabular-nums; }
.hd-adjustments > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.hd-adjustments:not(:empty) { margin-bottom: 9px; border-bottom: 1px solid var(--hd-line); }
.hd-barcode { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.hd-barcode label { grid-column: 1 / -1; }
.hd-barcode .hd-clear { height: 32px; }
.hd-detail { flex: 1; min-height: 0; overflow: auto; padding: 20px; background: var(--hd-paper); }
.hd-detail-inner { width: min(100%, 440px); margin: 0 auto; padding: 20px; background: var(--hd-white); border: 1px solid var(--hd-line); border-radius: 12px; }
/* Küçük pencere: tek seçimlik işlemler düğmenin yanında açılır; arkadaki ekran yerinde kalır, hafifçe kararır. */
.hd-detail.is-pop { position: absolute; inset: 0; z-index: 6; flex: none; padding: 0; overflow: hidden; background: rgba(11, 17, 32, .1); }
.hd-detail.is-pop .hd-detail-inner { position: absolute; width: 232px; margin: 0; padding: 14px; border-radius: 14px; box-shadow: 0 18px 36px -16px rgba(11, 17, 32, .4), 0 2px 6px rgba(11, 17, 32, .06); transform-origin: 0 20%; }
.hd-detail.is-pop h2 { margin-bottom: 10px; font-size: 14px; letter-spacing: -.01em; }
.hd-detail.is-pop #hdDetailContent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hd-detail.is-pop #hdDetailContent > p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--hd-ink-2); font-size: 11.5px; }
.hd-detail.is-pop .hd-option { min-height: 36px; padding: 0 8px; font-size: 12.5px; }
.hd-detail.is-pop #hdDetailContent > .hd-option:only-of-type, .hd-detail.is-pop #hdDetailContent > .hd-option:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }
.hd-detail.is-pop .hd-detail-actions { margin-top: 10px; }
.hd-detail-actions[hidden] { display: none; }
/* Düğme görünmüyorsa (telefon): pencere alttan açılan sayfa olur. */
.hd-detail.is-pop.is-sheet .hd-detail-inner { left: 8px; right: 8px; bottom: 8px; width: auto; }
.hd-detail h2 { margin: 0 0 14px; color: var(--hd-ink); font: 600 20px/1.2 var(--font-sans); letter-spacing: -.03em; }
.hd-detail h2:focus-visible { outline: 2px solid var(--hd-ink); outline-offset: 2px; }
#hdDetailContent { display: flex; flex-wrap: wrap; gap: 6px; }
#hdDetailContent > :is(p, ul, div) { width: 100%; }
#hdDetailContent p { margin: 0 0 8px; font-size: 12px; color: var(--hd-ink-2); }
.hd-option { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--hd-line); color: var(--hd-ink); background: var(--hd-white); }
.hd-option:hover { border-color: var(--hd-ink); }
.hd-option[aria-pressed="true"] { background: var(--hd-peach); border-color: var(--hd-accent); }
.hd-document { margin: 0; padding: 0; list-style: none; }
.hd-document li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hd-line); }
.hd-document strong { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-document small { display: block; margin-top: 3px; color: var(--hd-ink-2); font-variant-numeric: tabular-nums; }
.hd-detail .hd-grand-total { margin: 8px 0 0; }
.hd-detail-actions { display: flex; gap: 8px; margin-top: 18px; }
.hd-detail-actions .hd-btn { flex: 1; }
.hd-detail-actions .hd-btn::before, .hd-confirmation .hd-btn::before { content: none; }
.hd-basket-lines li { grid-template-columns: minmax(0, 1fr) auto; }
.hd-dining { flex-direction: row; margin-bottom: 10px; }
.hd-basket-bar:disabled { cursor: default; }
.hd-check { stroke: var(--hd-ink); }
.hd-strip.is-sent { background: var(--hd-paper); }

@media (max-width: 768px) {
  .ah .ah-stage-inner:has(#heroDemo.is-ready) .home-hero-static { display: none; }
  /* Demo hazır olana dek durağan çizim durur; yer, canlı demonun yüksekliği kadar baştan ayrılır ki demo gelince sayfa kaymasın. */
  @media (scripting: enabled) {
    .ah .ah-stage-inner:has(#heroDemo:not(.is-ready)) { min-height: 605px; }
  }
  .ah #heroDemo.is-ready { display: block !important; --hd-h: 495px; }
  .hd-stage .hd-frame, .home-hero-demo[data-screen="kiosk"] .hd-frame { width: min(100%, 520px); }
  .hd-tabs .hd-tab { height: 44px; padding-inline: 12px; }
  .hd-head { padding: 0 12px; gap: 8px; }
  .hd-brand { font-size: 19px; }
  #hdContext { font-size: 11px; }
  .hd-demo-label { display: none; }
  .hd-mobile-views { display: flex; align-items: stretch; padding: 0 10px; gap: 10px; background: var(--hd-white); border-bottom: 1px solid var(--hd-line); }
  .hd-mobile-views button, .hd-action-toggle { min-height: 44px; background: transparent; border: 0; padding: 0 6px; }
  .hd-mobile-views button { border-bottom: 2px solid transparent; color: var(--hd-ink-2); }
  .hd-mobile-views button[aria-pressed="true"] { border-color: var(--hd-accent); color: var(--hd-ink); }
  #hdCartCount { margin-left: 3px; font-variant-numeric: tabular-nums; }
  .hd-action-toggle { display: block; margin-left: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  :is(#hdRestoran,#hdPerakende).is-active { display: flex; flex-direction: column; padding: 8px; }
  .hd-map, .hd-retail-catalog, .hd-receipt { flex: 1; }
  .home-hero-demo[data-view="catalog"] .hd-receipt,
  .home-hero-demo[data-view="receipt"] :is(.hd-map,.hd-retail-catalog) { display: none; }
  .hd-screen .hd-action-column { display: none; }
  .hd-screen.hd-actions-open .hd-action-column { position: absolute; inset: 0; z-index: 7; display: grid; align-content: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 10px; border: 0; border-radius: 0; }
  .hd-screen.hd-actions-open > :not(.hd-action-column) { visibility: hidden; }
  .hd-action-column .hd-action { flex-direction: row; justify-content: flex-start; min-height: 48px; padding: 0 10px; gap: 8px; border: 1px solid var(--hd-line); font-size: 12px; }
  /* Telefonda iki sütun, dört sıra görünür; kalan tuşlar kaydırılarak açılır. */
  .hd-products { grid-template-columns: repeat(2,minmax(0,1fr)); --hd-tile-rows: 4; }
  .hd-products .hd-item { padding: 8px 9px 7px; }
  .hd-products .hd-item > strong { font-size: 12px; }
  .hd-products .hd-item > em { font-size: 11.5px; }
  .hd-seg > button, .hd-keypad summary, .hd-receipt-actions .hd-btn, .hd-detail .hd-btn, .hd-option, .hd-key { min-height: 44px; }
  .hd-receipt-actions { padding: 0 8px 8px; }
  .hd-receipt-head { padding: 8px 10px; }
  .hd-sums, .hd-barcode { padding: 6px 10px; }
  .hd-sale-tabs { margin-block: 4px; }
  .hd-keypad[open] > .hd-keys { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hd-basket-lines li { grid-template-columns: minmax(0,1fr) auto; }
  .hd-quantity :is(.hd-plus,.hd-minus,.hd-remove) { width: 44px; height: 44px; }
  .hd-lines li { align-items: center; gap: 2px 6px; padding-block: 7px; }
  .hd-lines li > strong { grid-column: 1; }
  .hd-lines .hd-quantity { grid-column: 2; grid-row: 1 / 3; gap: 2px; }
  .hd-kiosk-head small { white-space: normal; }
  .hd-detail { padding: 10px; }
  .hd-detail-inner { padding: 14px; }
  .hd-strip { padding-inline: 10px; min-height: 34px; }
  .hd-strip > span { white-space: normal; }
  .hd-kiosk-catalog { gap: 6px; }
  #hdKiosk { padding: 8px; }
  .hd-flag { min-width: 44px; min-height: 44px; }
  .hd-category-rail { flex-basis: 52px; }
  .hd-menu { gap: 5px; }
  .hd-menu-card { padding: 8px 32px 8px 9px; }
  .hd-menu-card .hd-tile-add { width: 22px; height: 22px; right: 6px; top: calc(50% - 11px); }
  .hd-choice, .hd-back, .hd-clear { min-height: 44px; }
}

@media (scripting: none) {
  .ah #heroDemo { display: none; }
  .ah .home-hero-static { display: block; max-width: 640px; margin-inline: auto; }
  .ah .home-hero-static img { display: block; width: 100%; height: auto; }
}

/* Mutfağa iletildi: düğme şeftali zemine geçer (simgesi aynı kalır). */
.hd-btn-ghost#hdAdd.is-sent { background: var(--hd-peach); border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .home-hero-demo *, .home-hero-demo *::before, .home-hero-demo *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hd-cursor { display: none; }
}
