/* ==========================================================================
   Endirim kataloqu — «Gecə qızılı» (Kassa Uçotu / AlphaTime ailəsi)
   Tokenlər Kassa app.css-dən (bax ~/.claude/kassa-ucotu-istinad.md §2).
   Mobil-öncəli: müştəri telefondan baxır.
   ⚠️ Tünd tema İKİ blokdadır (default + [data-theme="dark"]) — eyni dəyərlər.
      Bu saytda DEFOLT TÜNDDÜR (sifarişçi: «tünd fon, şampan-qızılı vurğu»);
      gündüz yalnız istifadəçi özü seçəndə ([data-theme="light"]).
   ========================================================================== */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/lora-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/lora-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #121419;
  --surface: #1b1f27;
  --surface-2: #20242d;
  --border: #2c313b;
  --border-strong: #3d434f;
  --text: #e9e3d8;
  --text-soft: #a7a196;
  --text-faint: #958f84;
  --brand: #d8b779;
  --brand-bg: #161920;
  --brand-soft: #2a2519;
  --brand-text: #1a140a;
  --ok: #7fd1a8;
  --ok-bg: #15291f;
  --warn: #e9b45c;
  --warn-bg: #2b2312;
  --bad: #ef8a7f;
  --bad-bg: #2c1817;
  --ok-text: #1a140a;
  --bad-text: #1a140a;
  --info: #9db7f0;
  --info-bg: #18213a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.45);
  --hero: linear-gradient(160deg, #2e2719 0%, #1a1a1b 45%, #121419 100%);
  --tile: #f7f3ec;          /* loqo plitəsi: loqolar tünd yazılıdır, açıq fonda oxunur */
  --img-bg: #f7f3ec;        /* məhsul şəkli ağ fonludur — kart içində də açıq qalır */

  --radius: 12px;
  --radius-sm: 8px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  accent-color: var(--brand);
  color-scheme: dark;
}

:root[data-theme="dark"] {
  --bg: #121419;
  --surface: #1b1f27;
  --surface-2: #20242d;
  --border: #2c313b;
  --border-strong: #3d434f;
  --text: #e9e3d8;
  --text-soft: #a7a196;
  --text-faint: #958f84;
  --brand: #d8b779;
  --brand-bg: #161920;
  --brand-soft: #2a2519;
  --brand-text: #1a140a;
  --ok: #7fd1a8;
  --ok-bg: #15291f;
  --warn: #e9b45c;
  --warn-bg: #2b2312;
  --bad: #ef8a7f;
  --bad-bg: #2c1817;
  --ok-text: #1a140a;
  --bad-text: #1a140a;
  --info: #9db7f0;
  --info-bg: #18213a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #faf6ef;
  --border: #e6ded0;
  --border-strong: #cfc4b1;
  --text: #15171d;
  --text-soft: #6c665c;
  --text-faint: #6c665c;
  --brand: #8a6828;
  --brand-bg: #1b1f27;
  --brand-soft: #f7f0e4;
  --brand-text: #ffffff;
  --ok: #2f7a55;
  --ok-bg: #ebf4ee;
  --warn: #91600f;
  --warn-bg: #f8eedb;
  --bad: #a8382e;
  --bad-bg: #f8e7e4;
  --ok-text: #ffffff;
  --bad-text: #ffffff;
  --info: #3a5bb8;
  --info-bg: #edf1fa;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 12px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 8px 28px rgba(16, 24, 40, 0.12);
  --tile: #ffffff;
  --img-bg: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- düymə / xana */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; min-height: 42px;
  font: inherit; font-size: 0.92rem; font-weight: 600;
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
button:hover:not(:disabled), .btn:hover { border-color: var(--brand); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); border-color: var(--brand); }
.btn-ok { background: var(--ok-bg); color: var(--ok); border-color: currentColor; }
.btn-bad { background: var(--bad-bg); color: var(--bad); border-color: currentColor; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { border-color: var(--border-strong); }
.btn-sm { min-height: 34px; padding: 6px 11px; font-size: .85rem; }
.btn-ikon { min-width: 42px; padding: 0; }

input[type="text"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; min-width: 0;
  padding: 10px 12px; min-height: 44px;
  font: inherit; font-size: 16px; /* iOS zoom etməsin */
  color: var(--text); background: var(--surface-2);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
textarea { resize: vertical; min-height: 70px; }
label, .label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-soft); margin-bottom: 5px; }
.sahe { margin-bottom: 12px; min-width: 0; }
.hint { color: var(--text-soft); font-size: .85rem; margin: 6px 0 0; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge-yeni { background: var(--info-bg); color: var(--info); }
.badge-hazirlanir { background: var(--warn-bg); color: var(--warn); }
.badge-gonderildi { background: var(--ok-bg); color: var(--ok); }
.badge-legv { background: var(--bad-bg); color: var(--bad); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid currentColor; margin: 10px 0; font-size: .92rem; }
.alert > div { flex: 1 1 auto; min-width: 0; }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert ul { margin: 0; padding-left: 18px; }
.alert-x { min-height: 26px; min-width: 26px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; }

mark.isiq { background: var(--warn-bg); color: var(--warn); font-weight: 700; border-radius: 3px; padding: 0 1px; }

/* ---------------------------------------------------------------- giriş (hero) */
.hero {
  background: var(--hero);
  color: #e9e3d8;
  padding: 14px 16px 22px;
  border-bottom: 1px solid #2c313b;
}
.hero-ic { max-width: 1280px; margin-inline: auto; }
.hero-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-marka { display: flex; align-items: center; gap: 8px; color: #d8b779; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; min-width: 0; }
.hero-marka svg { width: 22px; height: 22px; flex: none; }
.hero-marka span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .tema-btn { color: #d9d3c7; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.hero-esas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; }
.hero-metn { flex: 1 1 260px; min-width: 0; }
.hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); color: #f1dcb0; }
.hero-alt { margin: 6px 0 0; color: #c9c2b5; font-size: .98rem; }
.hero-faiz {
  flex: none; display: grid; place-items: center; text-align: center;
  width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f1dcb0, #d8b779 55%, #a8843f);
  color: #1a140a; box-shadow: 0 8px 26px rgba(216,183,121,.25);
}
.hero-faiz b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; }
.hero-faiz span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.loqolar { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.loqo-tile {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 52px; min-width: 76px; padding: 6px 12px;
  background: var(--tile); border: 0; border-radius: 10px; min-height: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.loqo-tile:hover:not(:disabled) { box-shadow: 0 0 0 2px #d8b779; }
.loqo-tile img { max-height: 40px; max-width: 120px; width: auto; height: auto; display: block; }
.loqo-tile .loqo-ad { color: #1a1a1b; font-weight: 800; letter-spacing: .04em; font-size: .9rem; }

/* ---------------------------------------------------------------- alət zolağı */
.zolaq-ust {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.zolaq-ic { max-width: 1280px; margin-inline: auto; padding: 10px 16px 8px; }
.zolaq-sira { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.axtar-qutu { position: relative; flex: 1 1 320px; min-width: 0; }
.axtar-qutu .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.axtar-qutu input { padding-left: 40px; height: 46px; }
.sira-qutu { flex: 0 1 260px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.sira-qutu label { margin: 0; white-space: nowrap; }
.sira-qutu select { height: 46px; }
.cipler { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; scrollbar-width: thin; }
.cip {
  flex: none; min-height: 34px; padding: 5px 12px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; background: var(--surface); color: var(--text-soft);
  border: 1.5px solid var(--border-strong);
}
.cip[aria-pressed="true"] { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.cip[aria-pressed="true"]:hover:not(:disabled) { border-color: var(--brand); filter: brightness(1.06); }
.cip .say { opacity: .75; font-weight: 500; margin-left: 2px; }
.say-metn { color: var(--text-soft); font-size: .85rem; margin: 4px 0 0; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- kataloq */
.kataloq { max-width: 1280px; margin-inline: auto; padding: 8px 16px 110px; }
.firma-bolme { margin-top: 18px; }
.firma-bas { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; min-width: 0; }
.firma-bas .loqo-tile { height: 40px; min-width: 60px; padding: 4px 10px; box-shadow: none; border: 1px solid var(--border); }
.firma-bas .loqo-tile img { max-height: 30px; max-width: 96px; }
.firma-bas h2 { font-size: 1.2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firma-bas .say { color: var(--text-soft); font-size: .88rem; white-space: nowrap; }
.tor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .tor { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .tor { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .tor { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.kart {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.kart.sebetde { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.kart-sekil {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; min-height: 0;
  background: var(--img-bg); border: 0; border-radius: 0; cursor: zoom-in; overflow: hidden;
}
.kart-sekil img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kart-sekil.bos { cursor: default; color: #b8b0a2; }
.kart-sekil.bos .ico { width: 40px; height: 40px; }
.endirim-nisan {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 4px 9px; border-radius: 999px;
  background: #a8382e; color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sebet-nisan {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-text);
  font-weight: 700; font-size: .78rem;
}
.sebet-nisan .ico { width: 14px; height: 14px; }
.kart-ic { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; flex: 1 1 auto; min-width: 0; }
.kart-ad { font-size: .9rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kart-kod { color: var(--text-faint); font-size: .78rem; font-family: var(--mono); overflow-wrap: anywhere; }
.qiymet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.qiymet-yeni { font-size: 1.15rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qiymet-kohne { color: var(--text-faint); text-decoration: line-through; font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qaliq { color: var(--text-soft); font-size: .8rem; }
.qaliq b { color: var(--text); font-variant-numeric: tabular-nums; }
.kart-alt { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 7px; }

.say-qutu { display: flex; align-items: stretch; min-width: 0; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.say-qutu button { flex: none; width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 1.2rem; }
.say-qutu button:hover:not(:disabled) { background: var(--brand-soft); }
.say-qutu input[type="number"] {
  flex: 1 1 auto; width: 0; min-width: 0; min-height: 40px; padding: 0 2px; text-align: center;
  border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0;
  font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.say-qutu input::-webkit-outer-spin-button, .say-qutu input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.say-qutu input:focus { box-shadow: none; }
/* Dar ekranda (320px) «Səbətdə: 1500» / «Səbəti yenilə (1500)» bir sətrə sığmırdı (ölçüldü) - sətrə bölünür */
.kart-alt .btn-primary, .kart-alt .btn-ok { width: 100%; min-height: 40px; padding: 7px 8px; font-size: .86rem; white-space: normal; line-height: 1.2; text-align: center; }
.bos-netice { text-align: center; color: var(--text-soft); padding: 50px 10px; }

/* ---------------------------------------------------------------- səbət zolağı */
.sebet-zolaq {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.sebet-zolaq button { display: flex; width: 100%; max-width: 560px; margin-inline: auto; min-height: 52px; justify-content: space-between; font-size: 1rem; box-shadow: var(--shadow-lg); }
.sebet-zolaq .sol { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sebet-zolaq .sag { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- pəncərə */
.modal-fon {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 15, 22, 0.62);
}
@media (min-width: 700px) { .modal-fon { align-items: center; padding: 20px; } }
.modal {
  width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (min-width: 700px) { .modal { border-radius: 16px; max-height: 88vh; } }
.modal-wide { max-width: 820px; }
.modal-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.modal-bas h2 { font-size: 1.15rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-ic { padding: 14px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* səbət sətirləri */
.sebet-setir { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sebet-setir:first-child { padding-top: 2px; }
.sebet-thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--img-bg); overflow: hidden; display: grid; place-items: center; color: #b8b0a2; }
.sebet-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sebet-ad { font-weight: 600; font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.sebet-meta { color: var(--text-soft); font-size: .8rem; font-variant-numeric: tabular-nums; }
.sebet-idare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.sebet-idare .say-qutu { width: 132px; }
.sebet-mebleg { font-weight: 800; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.sebet-sil { color: var(--bad); }
.cem-setir { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 0 6px; font-size: 1.05rem; }
.cem-setir b { font-size: 1.35rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.qenaet { color: var(--ok); font-size: .88rem; margin: 0 0 8px; text-align: right; }
.form-bas { font-size: 1rem; margin: 16px 0 10px; font-family: var(--font); font-weight: 700; }
.iki-sutun { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 560px) { .iki-sutun { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gonder-btn { width: 100%; min-height: 50px; font-size: 1rem; margin-top: 4px; }

/* şəkil böyük */
.isiq-fon { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: rgba(5, 6, 8, 0.94); }
.isiq-ust { display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px) 16px; color: #e9e3d8; padding-top: calc(10px + env(safe-area-inset-top)); }
.isiq-ust .ad { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isiq-ust button { color: #e9e3d8; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.isiq-sekil { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; touch-action: pinch-zoom; }
.isiq-sekil img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 10px; }
.isiq-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); color: #e9e3d8; }
.isiq-alt .qiymet-yeni { color: #d8b779; font-size: 1.3rem; }
.isiq-alt .qiymet-kohne { color: #a7a196; }

/* təsdiq */
.tesdiq { text-align: center; padding: 10px 4px 4px; }
.tesdiq-ikon { width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.tesdiq-ikon .ico { width: 38px; height: 38px; stroke-width: 2.4; }
.tesdiq h2 { font-size: 1.4rem; }
.tesdiq-nomre { display: inline-block; margin: 14px 0 6px; padding: 10px 22px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-family: var(--serif); font-size: 1.8rem; font-weight: 600; letter-spacing: .02em; }
.tesdiq p { color: var(--text-soft); margin: 6px 0; }

/* ---------------------------------------------------------------- admin */
.adm-bas { background: var(--brand-bg); color: #d9d3c7; border-bottom: 1px solid #2c313b; }
.adm-bas-ic { max-width: 1400px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; }
.adm-marka { display: flex; align-items: center; gap: 8px; color: #d8b779; font-weight: 700; margin-right: auto; min-width: 0; }
.adm-marka svg { width: 22px; height: 22px; flex: none; }
.adm-bas button, .adm-bas .btn { color: #d9d3c7; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.adm-nav { display: flex; gap: 6px; flex-wrap: wrap; order: 3; width: 100%; }
@media (min-width: 860px) { .adm-nav { order: 0; width: auto; } }
.adm-nav button { min-height: 38px; }
.adm-nav button[aria-selected="true"] { background: rgba(216,183,121,.16); color: #f1dcb0; border-color: rgba(216,183,121,.5); }
.adm-nav .say { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d8b779; color: #1a140a; font-size: .74rem; font-weight: 800; }
.adm-esas { max-width: 1400px; margin-inline: auto; padding: 16px; }
.adm-esas h1 { font-size: 1.4rem; margin-bottom: 12px; }
.kart-blok { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.kart-blok-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.kart-blok-bas h2 { font-size: 1.05rem; margin-right: auto; }
.kart-blok-ic { padding: 14px 16px; min-width: 0; }
.adm-zolaq { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.adm-zolaq .axtar-qutu { flex: 1 1 260px; }
.adm-zolaq .axtar-qutu input { height: 42px; min-height: 42px; }

.cedvel-qab { overflow-x: auto; }
table.cedvel { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cedvel th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); padding: 9px 10px; border-bottom: 2px solid var(--brand); background: var(--surface-2); white-space: nowrap; }
.cedvel td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cedvel td.r, .cedvel th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cedvel tbody tr.klik { cursor: pointer; }
.cedvel tbody tr.klik:hover td { background: var(--brand-soft); }
.cedvel tr.yeni-setir td:first-child { box-shadow: inset 3px 0 0 var(--info); }
.cedvel .solgun { color: var(--text-faint); }
.cedvel .ad-sutun { min-width: 200px; }

/* Telefonda cədvəl = kart (Kassa qaydası) */
@media (max-width: 767px) {
  table.cedvel.kartli thead { display: none; }
  table.cedvel.kartli, table.cedvel.kartli tbody, table.cedvel.kartli tr, table.cedvel.kartli td { display: block; width: 100%; }
  table.cedvel.kartli tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; background: var(--surface); }
  table.cedvel.kartli td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 10px; text-align: right; }
  table.cedvel.kartli td::before { content: attr(data-label); color: var(--text-soft); font-size: .8rem; font-weight: 600; text-align: left; flex: none; }
  table.cedvel.kartli td.r { white-space: normal; }
  table.cedvel.kartli td > * { min-width: 0; overflow-wrap: anywhere; }
}

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.seg button[aria-pressed="true"]:hover:not(:disabled) { border-color: var(--brand); filter: brightness(1.06); }
.melumat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 16px; margin-bottom: 14px; }
@media (min-width: 600px) { .melumat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.melumat div { min-width: 0; }
.melumat dt { font-size: .78rem; color: var(--text-soft); font-weight: 600; }
.melumat dd { margin: 0; overflow-wrap: anywhere; }
.tarixce { list-style: none; padding: 0; margin: 0; font-size: .86rem; color: var(--text-soft); }
.tarixce li { padding: 3px 0; }
.bolme-bas { font-size: .95rem; font-family: var(--font); font-weight: 700; margin: 16px 0 8px; }
.toast-qab { position: fixed; right: 16px; left: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 480px; width: 100%; padding: 12px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-text); font-weight: 700; box-shadow: var(--shadow-lg); }
.giris-fon { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; background: var(--hero); }
.giris-kart { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; box-shadow: var(--shadow-lg); }
.giris-kart h1 { font-size: 1.5rem; margin-bottom: 4px; }
.giris-kart .btn-primary { width: 100%; min-height: 48px; margin-top: 6px; }
.deyisen-qiymet { color: var(--warn); font-weight: 700; }
.oxla { color: var(--text-faint); margin: 0 3px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.giris-izah { margin: 0 0 16px; }
/* Telefon linki (tel:) toxunma hədəfi - ölçüldü 93x20, telefonda ≥36 olmalıdır */
.melumat dd a { display: inline-flex; align-items: center; min-height: 36px; }
