/* =====================================================================
   Yoolaz UI — vahid dizayn sistemi (bütün tətbiqlər və modullar)
   Əsas: Yoolaz Delivery dizaynı. Səhifələrdə rəng YAZILMIR — yalnız tokenlər.
   ===================================================================== */

/* ---------- 1. Tokenlər ---------- */
:root {
  /* Brend */
  --yz-primary: #ff5a1f;
  --yz-primary-dark: #e04a12;
  --yz-primary-soft: #fff1eb;
  --yz-dark: #1a1a2e;
  --yz-accent: var(--yz-primary);          /* modul öz rəngini verə bilər */

  /* Neytral */
  --yz-text: #1f2937;
  --yz-muted: #6b7280;
  --yz-subtle: #9ca3af;
  --yz-border: #e5e7eb;
  --yz-line: #f3f4f6;
  --yz-bg: #f7f7f9;
  --yz-surface: #ffffff;

  /* Vəziyyət */
  --yz-success: #16a34a;
  --yz-success-soft: #ecfdf5;
  --yz-warning: #d97706;
  --yz-warning-soft: #fffbeb;
  --yz-danger: #dc2626;
  --yz-danger-soft: #fef2f2;
  --yz-info: #2563eb;
  --yz-info-soft: #eff6ff;

  /* Forma */
  --yz-radius-sm: 10px;
  --yz-radius: 14px;
  --yz-radius-lg: 20px;
  --yz-radius-xl: 28px;
  --yz-shadow-sm: 0 1px 3px rgba(17, 24, 39, .06);
  --yz-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  --yz-shadow-lg: 0 16px 48px rgba(17, 24, 39, .14);

  /* Şüşə */
  --yz-glass-bg: rgba(255, 255, 255, .78);
  --yz-glass-border: rgba(255, 255, 255, .5);
  --yz-glass-blur: 14px;

  /* Tipoqrafiya */
  --yz-font: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --yz-ease: cubic-bezier(.16, 1, .3, 1);

  /* Ölçülər */
  --yz-header-h: 60px;
  --yz-tabbar-h: 64px;
  --yz-safe-top: env(safe-area-inset-top, 0px);
  --yz-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- 2. Baza ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--yz-font); font-size: 15px; line-height: 1.5; color: var(--yz-text);
  background: var(--yz-bg); min-height: 100vh; overflow-x: hidden;
  animation: yz-fade .35s var(--yz-ease);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yz-primary); text-decoration: none; }
a:hover { color: var(--yz-primary-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--yz-dark); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { color: var(--yz-text); }
.yz-muted { color: var(--yz-muted); }
.yz-subtle { color: var(--yz-subtle); font-weight: 400; }
.yz-small { font-size: 13px; }
.yz-center { text-align: center; }
:focus-visible { outline: 2.5px solid var(--yz-primary); outline-offset: 2px; border-radius: 6px; }

/* ---------- 3. Animasiyalar ---------- */
@keyframes yz-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yz-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes yz-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes yz-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .35); } 50% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } }
@keyframes yz-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes yz-spin { to { transform: rotate(360deg); } }
@keyframes yz-sheet { from { transform: translateY(100%); } to { transform: none; } }

.yz-anim-up { animation: yz-up .5s var(--yz-ease) both; }
.yz-anim-scale { animation: yz-scale .4s var(--yz-ease) both; }
.yz-stagger > * { animation: yz-up .5s var(--yz-ease) both; }
.yz-stagger > *:nth-child(1) { animation-delay: .02s; }
.yz-stagger > *:nth-child(2) { animation-delay: .06s; }
.yz-stagger > *:nth-child(3) { animation-delay: .10s; }
.yz-stagger > *:nth-child(4) { animation-delay: .14s; }
.yz-stagger > *:nth-child(5) { animation-delay: .18s; }
.yz-stagger > *:nth-child(6) { animation-delay: .22s; }
.yz-stagger > *:nth-child(7) { animation-delay: .26s; }
.yz-stagger > *:nth-child(n+8) { animation-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 4. Layout ---------- */
.yz-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.yz-narrow { max-width: 440px; margin: 0 auto; }
.yz-page { padding: 24px 0 calc(40px + var(--yz-safe-bottom)); }
.yz-stack { display: flex; flex-direction: column; gap: 12px; }
.yz-row { display: flex; align-items: center; gap: 12px; }
.yz-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yz-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.yz-grow { flex: 1; min-width: 0; }

/* ---------- 5. Başlıq (şüşə) ---------- */
.yz-header {
  position: sticky; top: 0; z-index: 100;
  padding-top: var(--yz-safe-top);
  background: var(--yz-glass-bg);
  backdrop-filter: blur(var(--yz-glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--yz-glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--yz-glass-border);
}
.yz-header-inner { height: var(--yz-header-h); display: flex; align-items: center; gap: 14px; }
.yz-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--yz-dark); letter-spacing: -.03em; }
.yz-logo img { width: 32px; height: 32px; border-radius: 9px; }
.yz-logo span { color: var(--yz-primary); }
.yz-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- 6. Düymələr ---------- */
.yz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px; border: none;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: background .15s, color .15s, transform .1s, box-shadow .15s; text-align: center; white-space: nowrap;
  -webkit-user-select: none; user-select: none;
}
.yz-btn:active { transform: scale(.97); }
.yz-btn[disabled], .yz-btn.is-loading { opacity: .6; pointer-events: none; }
.yz-btn-primary { background: var(--yz-primary); color: #fff; box-shadow: 0 6px 18px rgba(255, 90, 31, .28); }
.yz-btn-primary:hover { background: var(--yz-primary-dark); color: #fff; }
.yz-btn-dark { background: var(--yz-dark); color: #fff; }
.yz-btn-dark:hover { background: #0f0f1d; color: #fff; }
.yz-btn-light { background: var(--yz-line); color: var(--yz-dark); }
.yz-btn-light:hover { background: var(--yz-border); color: var(--yz-dark); }
.yz-btn-outline { background: transparent; border: 1.5px solid var(--yz-border); color: var(--yz-dark); }
.yz-btn-outline:hover { border-color: var(--yz-primary); color: var(--yz-primary); }
.yz-btn-ghost { background: transparent; color: var(--yz-muted); }
.yz-btn-ghost:hover { color: var(--yz-dark); background: var(--yz-line); }
.yz-btn-danger { background: var(--yz-danger-soft); color: var(--yz-danger); }
.yz-btn-telegram { background: #229ed9; color: #fff; }
.yz-btn-telegram:hover { background: #1b8bc0; color: #fff; }
.yz-btn-block { display: flex; width: 100%; }
.yz-btn-lg { min-height: 54px; font-size: 16px; padding: 14px 26px; }
.yz-btn-sm { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.yz-btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.yz-btn.is-loading::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: yz-spin .7s linear infinite;
}

/* ---------- 7. Kartlar ---------- */
.yz-card {
  background: var(--yz-surface); border-radius: var(--yz-radius-lg); padding: 20px;
  box-shadow: var(--yz-shadow-sm); border: 1px solid rgba(17, 24, 39, .04);
}
.yz-card-glass {
  background: var(--yz-glass-bg); border: 1px solid var(--yz-glass-border);
  backdrop-filter: blur(var(--yz-glass-blur)); -webkit-backdrop-filter: blur(var(--yz-glass-blur));
  box-shadow: 0 8px 32px rgba(31, 41, 55, .08);
}
.yz-card-hover { transition: transform .15s var(--yz-ease), box-shadow .15s; }
.yz-card-hover:hover { transform: translateY(-3px); box-shadow: var(--yz-shadow); }
.yz-card-title { font-size: 17px; font-weight: 800; color: var(--yz-dark); margin-bottom: 12px; }

/* ---------- 8. Formalar ---------- */
.yz-field { display: flex; flex-direction: column; gap: 6px; }
.yz-label { font-size: 13px; font-weight: 600; color: var(--yz-muted); }
.yz-input, .yz-select, .yz-textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--yz-text);
  background: var(--yz-line); border: 2px solid transparent; border-radius: var(--yz-radius);
  transition: border-color .15s, background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.yz-textarea { min-height: 110px; resize: vertical; }
.yz-input::placeholder, .yz-textarea::placeholder { color: var(--yz-subtle); }
.yz-input:focus, .yz-select:focus, .yz-textarea:focus {
  outline: none; background: #fff; border-color: var(--yz-primary); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12);
}
.yz-input.is-invalid { border-color: var(--yz-danger); background: var(--yz-danger-soft); }
.yz-hint { font-size: 12.5px; color: var(--yz-muted); }
.yz-error-text { font-size: 13px; color: var(--yz-danger); font-weight: 600; }
.yz-input-group { position: relative; }
.yz-input-group .yz-input { padding-right: 52px; }
.yz-input-group .yz-input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--yz-muted); border-radius: 50%; cursor: pointer; font-size: 18px;
}
.yz-code-input { letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 800; }
.yz-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.yz-check input { width: 20px; height: 20px; accent-color: var(--yz-primary); flex: none; margin-top: 1px; }

/* ---------- 9. Bildiriş zolaqları ---------- */
.yz-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--yz-radius); font-size: 14px; font-weight: 500; }
.yz-alert i { font-size: 18px; line-height: 1.2; }
.yz-alert-error { background: var(--yz-danger-soft); color: #991b1b; }
.yz-alert-success { background: var(--yz-success-soft); color: #065f46; }
.yz-alert-warning { background: var(--yz-warning-soft); color: #92400e; }
.yz-alert-info { background: var(--yz-info-soft); color: #1e40af; }

/* ---------- 10. Nişanlar ---------- */
.yz-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--yz-line); color: var(--yz-muted); }
.yz-badge-primary { background: var(--yz-primary-soft); color: var(--yz-primary); }
.yz-badge-success { background: var(--yz-success-soft); color: var(--yz-success); }
.yz-badge-warning { background: var(--yz-warning-soft); color: var(--yz-warning); }
.yz-badge-danger { background: var(--yz-danger-soft); color: var(--yz-danger); }
.yz-badge-dark { background: var(--yz-dark); color: #fff; }

/* ---------- 11. Siyahılar (ayarlar menyusu tipli) ---------- */
.yz-list { background: var(--yz-surface); border-radius: var(--yz-radius-lg); overflow: hidden; box-shadow: var(--yz-shadow-sm); }
.yz-list-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--yz-text);
  border-bottom: 1px solid var(--yz-line); transition: background .12s;
}
.yz-list-item:last-child { border-bottom: 0; }
a.yz-list-item:hover, button.yz-list-item:hover { background: #fafafa; color: var(--yz-text); }
button.yz-list-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.yz-list-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--yz-primary-soft); color: var(--yz-primary); font-size: 19px;
}
.yz-list-title { font-weight: 600; }
.yz-list-sub { font-size: 13px; color: var(--yz-muted); }
.yz-list-chevron { margin-left: auto; color: var(--yz-subtle); }

/* ---------- 12. Xidmət plitələri (super-tətbiq ana ekranı) ---------- */
.yz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.yz-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 120px;
  padding: 16px; border-radius: var(--yz-radius-lg); background: var(--yz-surface); color: var(--yz-dark);
  box-shadow: var(--yz-shadow-sm); overflow: hidden; transition: transform .15s var(--yz-ease), box-shadow .15s;
}
.yz-tile:hover { transform: translateY(-3px); box-shadow: var(--yz-shadow); color: var(--yz-dark); }
.yz-tile-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: var(--tile-color, var(--yz-primary)); }
.yz-tile-name { font-weight: 800; font-size: 16px; margin-top: 14px; }
.yz-tile.is-soon { opacity: .65; }
.yz-tile.is-soon::after { content: 'Tezliklə'; position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--yz-line); color: var(--yz-muted); }

/* ---------- 13. Mobil alt menyu ---------- */
.yz-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: none;
  height: calc(var(--yz-tabbar-h) + var(--yz-safe-bottom)); padding-bottom: var(--yz-safe-bottom);
  background: var(--yz-glass-bg); border-top: 1px solid var(--yz-glass-border);
  backdrop-filter: blur(var(--yz-glass-blur)) saturate(160%); -webkit-backdrop-filter: blur(var(--yz-glass-blur)) saturate(160%);
}
.yz-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--yz-muted); }
.yz-tabbar a i { font-size: 21px; }
.yz-tabbar a.active { color: var(--yz-primary); }
@media (max-width: 860px) {
  .yz-tabbar { display: flex; }
  body.has-tabbar { padding-bottom: calc(var(--yz-tabbar-h) + var(--yz-safe-bottom)); }
  .yz-hide-mobile { display: none !important; }
}
@media (min-width: 861px) { .yz-hide-desktop { display: none !important; } }

/* ---------- 14. Avatar ---------- */
.yz-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--yz-primary); color: #fff; font-weight: 800; font-size: 16px; overflow: hidden;
}
.yz-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yz-avatar-lg { width: 72px; height: 72px; font-size: 28px; }

/* ---------- 15. Alt pəncərə (bottom sheet) və toast ---------- */
.yz-sheet-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(15, 15, 29, .45); animation: yz-fade .2s; }
.yz-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 901; max-height: 90vh; overflow: auto;
  background: var(--yz-surface); border-radius: var(--yz-radius-xl) var(--yz-radius-xl) 0 0;
  padding: 10px 20px calc(24px + var(--yz-safe-bottom)); animation: yz-sheet .35s var(--yz-ease);
}
.yz-sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--yz-border); margin: 0 auto 16px; }
@media (min-width: 861px) {
  .yz-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; transform: translate(-50%, -50%); border-radius: var(--yz-radius-xl); animation: yz-scale .3s var(--yz-ease); }
  .yz-sheet::before { display: none; }
}
.yz-toast-wrap { position: fixed; left: 50%; top: calc(16px + var(--yz-safe-top)); transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.yz-toast { background: var(--yz-dark); color: #fff; padding: 12px 18px; border-radius: var(--yz-radius); font-size: 14px; font-weight: 600; box-shadow: var(--yz-shadow-lg); animation: yz-scale .25s var(--yz-ease); }
.yz-toast.is-error { background: var(--yz-danger); }

/* ---------- 16. Skeleton (yüklənmə) ---------- */
.yz-skeleton { border-radius: var(--yz-radius-sm); background: linear-gradient(90deg, #eee 0, #f6f6f6 40%, #eee 80%); background-size: 800px 100%; animation: yz-shimmer 1.2s infinite linear; }

/* ---------- 17. Giriş ekranları (id.yoolaz.com) ---------- */
.yz-auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px calc(24px + var(--yz-safe-bottom));
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(255, 90, 31, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(26, 26, 46, .10), transparent 60%),
    var(--yz-bg);
}
.yz-auth-card { width: 100%; max-width: 420px; padding: 32px 28px; border-radius: var(--yz-radius-xl); animation: yz-scale .45s var(--yz-ease) both; }
.yz-auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.yz-auth-logo img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px rgba(255, 90, 31, .25); }
.yz-auth h1 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.yz-auth .yz-lead { text-align: center; color: var(--yz-muted); margin-bottom: 24px; }
.yz-divider { display: flex; align-items: center; gap: 12px; color: var(--yz-subtle); font-size: 13px; margin: 18px 0; }
.yz-divider::before, .yz-divider::after { content: ''; flex: 1; height: 1px; background: var(--yz-border); }
.yz-auth-footer { text-align: center; margin-top: 18px; font-size: 14px; color: var(--yz-muted); }

/* ---------- 18. Boş vəziyyət, xəta səhifələri ---------- */
.yz-empty { text-align: center; padding: 48px 20px; color: var(--yz-muted); }
.yz-empty i { font-size: 44px; color: var(--yz-border); display: block; margin-bottom: 12px; }
.yz-error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.yz-error-code { font-size: 88px; font-weight: 900; letter-spacing: -.05em; color: var(--yz-primary); line-height: 1; }

/* ---------- 19. Cədvəllər (admin, biznes) ---------- */
.yz-table-wrap { overflow-x: auto; border-radius: var(--yz-radius-lg); background: var(--yz-surface); box-shadow: var(--yz-shadow-sm); }
.yz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.yz-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--yz-muted); padding: 12px 16px; background: #fafafa; border-bottom: 1px solid var(--yz-line); white-space: nowrap; }
.yz-table td { padding: 12px 16px; border-bottom: 1px solid var(--yz-line); vertical-align: middle; }
.yz-table tr:last-child td { border-bottom: 0; }
.yz-table tbody tr:hover td { background: #fcfcfd; }

/* ---------- 20. Super-tətbiq başlığı ---------- */
.yz-addr-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 46vw; padding: 7px 12px;
  border-radius: 999px; background: var(--yz-line); color: var(--yz-dark); font-weight: 700; font-size: 14px;
}
.yz-addr-chip:hover { color: var(--yz-dark); background: var(--yz-border); }
.yz-addr-chip i:first-child { color: var(--yz-primary); }
.yz-addr-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yz-topnav { padding: 8px 14px; border-radius: 999px; color: var(--yz-muted); font-weight: 700; font-size: 14px; }
.yz-topnav:hover { color: var(--yz-dark); background: var(--yz-line); }
.yz-topnav.active { color: var(--yz-dark); background: var(--yz-line); }
.yz-bell { position: relative; }
.yz-dot {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--yz-primary); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
a.yz-avatar:hover { color: #fff; }

/* ---------- 21. Ana ekran ---------- */
.yz-hello { margin: 4px 0 18px; }
.yz-hello h1 { font-size: 26px; }
.yz-tiles-main { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.yz-tiles-main .yz-tile:first-child { grid-row: span 2; min-height: 252px; }
.yz-tile-desc { font-size: 13px; color: var(--yz-muted); margin-top: 2px; }
.yz-tile-bg { position: absolute; right: -14px; bottom: -18px; font-size: 96px; opacity: .12; color: var(--tile-color, var(--yz-primary)); }
@media (min-width: 861px) {
  .yz-tiles-main { grid-template-columns: repeat(4, 1fr); }
  .yz-tiles-main .yz-tile:first-child { grid-row: auto; grid-column: span 2; min-height: 160px; }
}
.yz-section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }

/* ---------- 22. Xəritə (ünvan seçimi) ---------- */
.yz-map { position: relative; height: 320px; border-radius: var(--yz-radius-lg); overflow: hidden; background: var(--yz-line); z-index: 0; }
.yz-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; font-size: 40px; color: var(--yz-primary); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); transition: transform .15s; }
.yz-map.is-moving .yz-map-pin { transform: translate(-50%, -115%); }
.yz-map-locate { position: absolute; right: 12px; bottom: 12px; z-index: 500; box-shadow: var(--yz-shadow); background: #fff; }
.yz-search-results { position: relative; }
.yz-search-results .yz-list { position: absolute; left: 0; right: 0; top: 6px; z-index: 600; max-height: 300px; overflow: auto; box-shadow: var(--yz-shadow-lg); }
.yz-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.yz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--yz-line); font-weight: 700; font-size: 14px; color: var(--yz-dark); cursor: pointer; border: 2px solid transparent; }
.yz-chip input { display: none; }
.yz-chip:has(input:checked) { background: var(--yz-primary-soft); border-color: var(--yz-primary); color: var(--yz-primary); }

/* =====================================================================
   23. Kataloq komponentləri (yemək, market və gələcək modullar)
   ===================================================================== */

/* Üfüqi sürüşən sıra (mobil) */
.yz-scroller { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.yz-scroller::-webkit-scrollbar { display: none; }
.yz-scroller > * { scroll-snap-align: start; flex: none; }

/* Kateqoriya düymələri (emoji ilə) */
.yz-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; padding: 10px 4px; border-radius: var(--yz-radius); color: var(--yz-dark); font-size: 12.5px; font-weight: 700; text-align: center; transition: background .15s; }
.yz-cat span { width: 54px; height: 54px; border-radius: 18px; background: var(--yz-surface); box-shadow: var(--yz-shadow-sm); display: flex; align-items: center; justify-content: center; font-size: 28px; transition: transform .15s var(--yz-ease); }
.yz-cat:hover { color: var(--yz-dark); }
.yz-cat:hover span { transform: translateY(-2px) scale(1.04); }
.yz-cat.active span { background: var(--yz-primary-soft); box-shadow: 0 0 0 2px var(--yz-primary); }

/* Axtarış sahəsi (ikonlu) */
.yz-search { position: relative; }
.yz-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--yz-subtle); font-size: 18px; pointer-events: none; }
.yz-search .yz-input { padding-left: 46px; background: var(--yz-surface); box-shadow: var(--yz-shadow-sm); }

/* Restoran / mağaza kartı */
.yz-place-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.yz-place { display: block; color: var(--yz-dark); }
.yz-place:hover { color: var(--yz-dark); }
.yz-place-cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--yz-radius-lg); overflow: hidden; background: linear-gradient(135deg, #ffe7dc, #fff4ee); }
.yz-place-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--yz-ease); }
.yz-place:hover .yz-place-cover img { transform: scale(1.04); }
.yz-place-cover .yz-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.yz-place-logo { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: var(--yz-shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--yz-primary); }
.yz-place-logo img { width: 100%; height: 100%; object-fit: cover; }
.yz-place-eta { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12.5px; font-weight: 800; box-shadow: var(--yz-shadow-sm); }
.yz-place-closed { position: absolute; inset: 0; background: rgba(26,26,46,.55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 800; padding: 12px; }
.yz-place-closed small { font-weight: 600; opacity: .85; margin-top: 2px; }
.yz-place-info { padding: 10px 2px 0; }
.yz-place-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16.5px; font-weight: 800; }
.yz-place-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13.5px; font-weight: 800; }
.yz-place-rating i { color: #f59e0b; }
.yz-place-meta { color: var(--yz-muted); font-size: 13.5px; margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.yz-place-meta .sep::before { content: '·'; margin-right: 6px; }
.yz-place.is-off { opacity: .7; }

/* Məkan səhifəsinin başlığı */
.yz-hero { position: relative; border-radius: var(--yz-radius-xl); overflow: hidden; background: linear-gradient(135deg, #ffd9c7, #fff1eb 60%, #fff); min-height: 180px; }
.yz-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yz-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55)); }
.yz-hero-body { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 14px; padding: 90px 20px 18px; color: #fff; }
.yz-hero-body h1 { color: #fff; font-size: 26px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.yz-hero-logo { width: 72px; height: 72px; border-radius: 20px; background: #fff; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: var(--yz-primary); box-shadow: var(--yz-shadow-lg); }
.yz-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.yz-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.yz-fact { background: var(--yz-surface); border-radius: var(--yz-radius); padding: 10px 12px; box-shadow: var(--yz-shadow-sm); }
.yz-fact b { display: block; font-size: 15px; color: var(--yz-dark); }
.yz-fact span { font-size: 12px; color: var(--yz-muted); }
@media (max-width: 560px) { .yz-facts { grid-template-columns: repeat(2, 1fr); } }

/* Menyu tərtibatı: sol naviqasiya · məhsullar · sağ səbət (desktop) */
.yz-shop { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 1024px) { .yz-shop { grid-template-columns: 200px minmax(0, 1fr) 320px; } }
.yz-shop-nav { display: none; }
@media (min-width: 1024px) {
  .yz-shop-nav { display: block; position: sticky; top: calc(var(--yz-header-h) + 16px); align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
  .yz-shop-nav a { display: block; padding: 9px 12px; border-radius: var(--yz-radius-sm); color: var(--yz-muted); font-weight: 700; font-size: 14px; }
  .yz-shop-nav a:hover, .yz-shop-nav a.active { background: var(--yz-surface); color: var(--yz-dark); box-shadow: var(--yz-shadow-sm); }
}
.yz-shop-tabs { position: sticky; top: calc(var(--yz-header-h) + var(--yz-safe-top)); z-index: 50; margin: 0 -20px; padding: 8px 20px; background: var(--yz-glass-bg); backdrop-filter: blur(var(--yz-glass-blur)); -webkit-backdrop-filter: blur(var(--yz-glass-blur)); }
.yz-shop-tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--yz-muted); background: var(--yz-surface); white-space: nowrap; }
.yz-shop-tabs a.active { background: var(--yz-dark); color: #fff; }
@media (min-width: 1024px) { .yz-shop-tabs { display: none; } }
.yz-shop-section { scroll-margin-top: calc(var(--yz-header-h) + 70px); margin-bottom: 26px; }
.yz-shop-section h2 { font-size: 20px; margin-bottom: 12px; }

/* Məhsul kartı */
.yz-products { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .yz-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .yz-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yz-product { display: flex; flex-direction: column; background: var(--yz-surface); border-radius: var(--yz-radius-lg); overflow: hidden; box-shadow: var(--yz-shadow-sm); cursor: pointer; transition: transform .15s var(--yz-ease), box-shadow .15s; text-align: left; border: 0; font: inherit; color: inherit; padding: 0; }
.yz-product:hover { transform: translateY(-2px); box-shadow: var(--yz-shadow); }
.yz-product-img { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #fff1eb, #fafafa); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.yz-product-img img { width: 100%; height: 100%; object-fit: cover; }
.yz-product-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.yz-product-price { font-weight: 800; font-size: 16px; color: var(--yz-dark); }
.yz-product-price s { font-weight: 600; font-size: 13px; color: var(--yz-subtle); margin-left: 4px; }
.yz-product-name { font-size: 14px; line-height: 1.3; color: var(--yz-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yz-product-portion { font-size: 12.5px; color: var(--yz-subtle); }
.yz-product-add { margin-top: auto; padding-top: 8px; }
.yz-product-add span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-radius: 999px; background: var(--yz-line); font-weight: 800; font-size: 14px; color: var(--yz-dark); transition: background .15s; }
.yz-product:hover .yz-product-add span { background: var(--yz-primary-soft); color: var(--yz-primary); }
.yz-product.in-cart .yz-product-add span { background: var(--yz-primary); color: #fff; }
.yz-product.is-off { opacity: .55; cursor: default; }
.yz-product .yz-qty-badge { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; border-radius: 999px; background: var(--yz-primary); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 7px; box-shadow: var(--yz-shadow); }

/* Miqdar seçici */
.yz-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--yz-line); border-radius: 999px; padding: 3px; }
.yz-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; font-weight: 800; color: var(--yz-dark); cursor: pointer; box-shadow: var(--yz-shadow-sm); }
.yz-stepper button:active { transform: scale(.92); }
.yz-stepper span { min-width: 30px; text-align: center; font-weight: 800; }

/* Səbət paneli (desktop, sağda) */
.yz-cartpanel { display: none; }
@media (min-width: 1024px) {
  .yz-cartpanel { display: block; position: sticky; top: calc(var(--yz-header-h) + 16px); align-self: start; }
}
.yz-cart-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--yz-line); }
.yz-cart-line:last-child { border-bottom: 0; }
.yz-cart-line .nm { font-weight: 600; font-size: 14px; line-height: 1.3; }
.yz-cart-line .op { font-size: 12.5px; color: var(--yz-muted); }
.yz-cart-line .pr { font-weight: 800; font-size: 14px; white-space: nowrap; }
.yz-progress { height: 6px; border-radius: 999px; background: var(--yz-line); overflow: hidden; }
.yz-progress > i { display: block; height: 100%; background: var(--yz-primary); border-radius: inherit; transition: width .3s var(--yz-ease); }

/* Üzən səbət düyməsi (mobil, alt menyunun üstündə) */
.yz-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--yz-tabbar-h) + var(--yz-safe-bottom) + 10px); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--yz-primary); color: #fff; font-weight: 800; box-shadow: 0 10px 30px rgba(255, 90, 31, .4); animation: yz-up .35s var(--yz-ease); }
.yz-cartbar:hover { color: #fff; }
.yz-cartbar .cnt { min-width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.yz-cartbar .sum { margin-left: auto; }
.yz-cartbar[hidden] { display: none; }
@media (min-width: 1024px) { .yz-cartbar { display: none; } }
body.has-cartbar .yz-page { padding-bottom: 90px; }

/* Məhsul pəncərəsi (sheet) */
.yz-pd-img { margin: -10px -20px 14px; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #fff1eb, #fafafa); display: flex; align-items: center; justify-content: center; font-size: 72px; overflow: hidden; }
@media (min-width: 861px) { .yz-pd-img { margin: -24px -20px 14px; border-radius: var(--yz-radius-xl) var(--yz-radius-xl) 0 0; } }
.yz-pd-img img { width: 100%; height: 100%; object-fit: cover; }
.yz-opt-group { margin-top: 16px; }
.yz-opt-group h4 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.yz-opt { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--yz-line); cursor: pointer; font-size: 15px; }
.yz-opt input { width: 20px; height: 20px; accent-color: var(--yz-primary); }
.yz-opt .p { margin-left: auto; color: var(--yz-muted); font-weight: 600; }
.yz-sheet-actions { position: sticky; bottom: calc(-24px - var(--yz-safe-bottom)); margin: 16px -20px calc(-24px - var(--yz-safe-bottom)); padding: 12px 20px calc(16px + var(--yz-safe-bottom)); background: var(--yz-surface); border-top: 1px solid var(--yz-line); display: flex; gap: 12px; align-items: center; }
