/* ==========================================================================
   Temur.uz — do'kon uslublari (mobil birinchi)
   ========================================================================== */

:root {
  --ink: #10201b;
  --ink-2: #33433d;
  --muted: #5f6d68;
  --line: #dfe6e3;
  --line-2: #edf1ef;
  --paper: #f2f5f3;
  --card: #ffffff;

  --brand: #0e7c66;
  --brand-600: #0b6856;
  --brand-700: #08473b;
  --brand-800: #06362d;
  --brand-50: #e8f4f0;
  --brand-100: #cfe8e0;

  --accent: #ff6a3d;
  --accent-ink: #b23a10;   /* matn uchun (AA kontrast) */
  --accent-50: #fff1eb;
  --on-accent: #1f0c04;

  --danger: #c8321f;
  --danger-50: #fdeeec;
  --ok: #11845c;
  --ok-50: #e6f5ee;
  --warn: #9a6200;
  --warn-50: #fff5df;
  --info: #2059c7;
  --info-50: #eaf1fd;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(16, 32, 27, .06), 0 2px 8px rgba(16, 32, 27, .05);
  --shadow-2: 0 10px 30px -8px rgba(8, 71, 59, .25);
  --shadow-up: 0 -6px 24px rgba(16, 32, 27, .10);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1280px;
  --gutter: 16px;
  --hdr-h: 64px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(14, 124, 102, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.main { min-height: 60vh; padding: 16px 0 40px; outline: none; }
.muted { color: var(--muted); }
.muted-count { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.ok { color: var(--ok); }
.bad { color: var(--danger); }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.1;
  text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #ff7e57; color: var(--on-accent); }
.btn-ghost { background: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); color: var(--ink); }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 22px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 0; color: var(--ink);
}
.icon-btn:hover { background: var(--line-2); }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; background: none; border: 0;
  color: var(--muted); font-weight: 600; font-size: 14px;
}
.link-btn:hover { color: var(--danger); text-decoration: none; }
.link-btn .ico { width: 18px; height: 18px; }
.link-btn.danger { color: var(--danger); }

/* ---------- Yuqori chiziq va header ---------- */
.topstrip { display: none; background: var(--brand-700); color: #d5ebe4; font-size: 13px; }
.topstrip-in { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topstrip-note { display: inline-flex; align-items: center; gap: 8px; }
.topstrip .ico { width: 17px; height: 17px; }
.topstrip-links { display: flex; gap: 22px; }
.topstrip-links a { color: #d5ebe4; display: inline-flex; align-items: center; gap: 6px; }
.topstrip-links a:hover { color: #fff; }
.topstrip-phone { font-weight: 700; color: #fff !important; }

.hdr { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.hdr-in {
  display: grid; align-items: center; column-gap: 8px; row-gap: 8px; padding-top: 8px; padding-bottom: 10px;
  grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo actions" "search search search";
}
.hdr-menu { grid-area: menu; margin-left: -8px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none !important; }
.logo img { width: 34px; height: 34px; }
.logo-word { font-weight: 800; font-size: 21px; letter-spacing: -.04em; color: var(--brand-700); }
.btn-catalog { grid-area: catalog; display: none; }
.search { grid-area: search; position: relative; display: flex; }
.search input {
  width: 100%; height: 44px; padding: 0 52px 0 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); outline: none; transition: border-color .15s, background-color .15s; -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus { border-color: var(--brand); background: #fff; }
.search-btn {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 9px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.search-btn:hover { background: var(--brand-600); }
.search-btn .ico { width: 20px; height: 20px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-2); padding: 6px; max-height: 70vh; overflow: auto;
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--paper); }
.suggest img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--paper); }
.suggest .s-t { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-p { font-weight: 800; font-size: 14px; white-space: nowrap; }
.suggest .s-cat { font-weight: 700; }
.suggest .s-all { color: var(--brand); font-weight: 700; justify-content: center; }
.suggest .s-empty { padding: 12px; color: var(--muted); font-size: 14px; }

.hdr-actions { grid-area: actions; display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.hdr-act {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px;
  padding: 6px 8px; border-radius: 12px; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none !important;
  cursor: pointer; list-style: none;
}
.hdr-act::-webkit-details-marker { display: none; }
.hdr-act:hover { background: var(--line-2); color: var(--ink); }
.hdr-act span { display: none; }
.hdr-fav, .hdr-admin { display: none; }
.count {
  position: absolute; top: 0; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.usermenu { position: relative; }
.usermenu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-2); padding: 6px; z-index: 60;
}
.usermenu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; display: grid; }
.usermenu-head span { font-size: 13px; color: var(--muted); }
.usermenu-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.usermenu-pop a:hover { background: var(--paper); }
.usermenu-pop .ico { width: 19px; height: 19px; color: var(--muted); }
.usermenu-out { color: var(--danger) !important; }

.catbar { display: none; border-top: 1px solid var(--line-2); }
.catbar-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; padding-bottom: 4px; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a {
  flex: none; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.catbar a:hover, .catbar a[aria-current] { background: var(--brand-50); color: var(--brand-700); }
.catbar .catbar-sale { color: var(--accent-ink); }
.catbar .ico { width: 17px; height: 17px; }

.adminbar { background: #1f2937; }
.adminbar .wrap { display: flex; gap: 20px; padding: 10px 16px; align-items: center; flex-wrap: wrap; }
.adminbar a { color: #e5e7eb; }
.adminbar .right { margin-left: auto; }
.demo-tag { background: var(--accent); color: var(--on-accent); font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 700; }

/* ---------- Drawer (kategoriyalar menyusi) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 30, 25, .45); animation: fade .2s ease; }
.drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: #fff; display: flex; flex-direction: column;
  box-shadow: 8px 0 40px rgba(0, 0, 0, .18); animation: slide-in .25s cubic-bezier(.2, .8, .2, 1); outline: none;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line-2); }
.drawer-body { overflow-y: auto; padding: 10px 12px 24px; flex: 1; overscroll-behavior: contain; }
.drawer-title { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 14px 8px 6px; }
.drawer-cats, .drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-cats a, .drawer-links a {
  display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none;
}
.drawer-cats a:hover, .drawer-links a:hover { background: var(--paper); }
.dc-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; font-size: 20px; flex: none; overflow: hidden; }
.dc-ico img { width: 100%; height: 100%; object-fit: cover; }
.dc-ico .ico { width: 20px; height: 20px; color: var(--brand); }
.dc-sale { background: var(--accent-50); }
.dc-sale .ico { color: var(--accent-ink); }
.drawer-links .ico { width: 20px; height: 20px; color: var(--muted); margin: 0 9px; }
.drawer-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.drawer .btn-block { margin-top: 18px; }
@keyframes slide-in { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
body.no-scroll { overflow: hidden; }

/* ---------- Pastki tab-bar (mobil) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: var(--safe-b);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.tabbar a {
  position: relative; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none;
}
.tabbar a[aria-current] { color: var(--brand); }
.tabbar a[aria-current]::before {
  content: ""; position: absolute; top: 6px; left: calc(50% + 10px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.tabbar .ico { width: 24px; height: 24px; }
.tabbar .count { top: 5px; right: calc(50% - 22px); }

/* ---------- Footer ---------- */
.ftr { background: var(--brand-800); color: #b9d3cb; margin-top: 48px; padding: 40px 0 24px; font-size: 14px; }
.ftr-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; }
.ftr-brand p { max-width: 36ch; margin: 14px 0; }
.logo-inv .logo-word { color: #fff; }
.ftr-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 17px; }
.ftr-phone:hover { color: #fff; }
.ftr-col { display: flex; flex-direction: column; gap: 9px; }
.ftr-col h2 { font-size: 14px; color: #fff; margin-bottom: 4px; letter-spacing: 0; }
.ftr-col a { color: #b9d3cb; }
.ftr-col a:hover { color: #fff; }
.paylogos { display: flex; flex-wrap: wrap; gap: 8px; }
.paylogo {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .08);
  color: #fff; font-weight: 800; font-size: 13px;
}
.paylogo .ico { width: 17px; height: 17px; }
.pl-click::before, .pl-payme::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #39a0ff; }
.pl-payme::before { background: #33cccc; }
.ftr-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 32px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8fb3a8;
}
.ftr-demo { background: rgba(255, 106, 61, .2); color: #ffc2ac; padding: 2px 10px; border-radius: 6px; font-weight: 700; }

/* ---------- Toastlar ---------- */
.toasts {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; padding: 12px 8px 12px 14px;
  background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); font-weight: 600; font-size: 14.5px;
  animation: toast-in .3s cubic-bezier(.2, .9, .3, 1.2);
}
.toast > .ico { color: #6fe0bd; }
.toast-err { background: #5b130a; }
.toast-err > .ico { color: #ffb19a; }
.toast span { flex: 1; }
.toast a { color: #9ff0d6; font-weight: 700; }
.toast-x { background: none; border: 0; color: rgba(255, 255, 255, .7); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.toast-x .ico { width: 18px; height: 18px; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- Umumiy bloklar ---------- */
.sec { margin-top: 32px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sec-link .ico { width: 17px; height: 17px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 18px; border: 1px solid var(--line-2); }
.panel > h2 { font-size: 17px; margin-bottom: 14px; }

.crumbs { margin: 0 0 12px; font-size: 13px; overflow: hidden; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: #b4c0bb; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; }

.empty { text-align: center; padding: 48px 16px; max-width: 440px; margin: 0 auto; }
.empty-ico {
  width: 84px; height: 84px; border-radius: 26px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
  margin: 0 auto 18px; position: relative;
}
.empty-ico::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--brand-50); }
.empty-ico .ico { width: 38px; height: 38px; stroke-width: 1.6; }
.empty h2 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
.empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.alert {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 14.5px;
  background: var(--info-50); color: #183f86;
}
.alert > .ico { margin-top: 1px; }
.alert-err { background: var(--danger-50); color: #7e1d10; }
.alert-err a { color: #7e1d10; font-weight: 700; text-decoration: underline; }
.alert-info { background: var(--brand-50); color: var(--brand-800); }
.alert-info > .ico { color: var(--brand); }
.alert-links { display: inline-flex; gap: 6px; margin-left: 4px; font-weight: 700; }
.alert small { display: block; color: var(--muted); margin-top: 2px; font-size: 13px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip .ico { width: 15px; height: 15px; }
.chip b { font-weight: 800; color: var(--muted); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on b { color: #b8c7c1; }

.chip-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-new { background: var(--info-50); color: var(--info); }
.st-confirmed { background: var(--brand-50); color: var(--brand-600); }
.st-ordered { background: #f1edfd; color: #5b3cc4; }
.st-shipped { background: var(--warn-50); color: var(--warn); }
.st-delivered { background: var(--ok-50); color: var(--ok); }
.st-cancelled { background: var(--danger-50); color: var(--danger); }

/* ---------- Mahsulot kartasi ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard-media {
  position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #e9eeeb;
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #a9b7b1; }
.pcard-noimg .ico { width: 40px; height: 40px; }
.pcard-badge {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; background: var(--accent); color: var(--on-accent);
  font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
}
.pcard-out { position: absolute; inset: auto 8px 8px auto; padding: 3px 8px; border-radius: 8px; background: rgba(16, 32, 27, .78); color: #fff; font-size: 12px; font-weight: 700; }
.pcard.is-out .pcard-media img { opacity: .55; }
.pcard-fav { position: absolute; top: 6px; right: 6px; z-index: 2; }
.fav-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .9);
  color: var(--ink-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); transition: transform .15s, color .15s;
}
.fav-btn .ico { width: 20px; height: 20px; }
.fav-btn:hover { color: var(--accent-ink); }
.fav-btn.is-on { color: #e8432a; }
.fav-btn.is-on .ico { fill: currentColor; }
.fav-btn.pop { animation: bump .35s ease; }
.pcard-body { padding: 8px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.pcard-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.pcard-price b { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pcard-price s { font-size: 12.5px; color: var(--muted); }
.pcard-title { font-size: 13.5px; font-weight: 500; line-height: 1.35; margin: 0; letter-spacing: 0; }
.pcard-title a {
  color: var(--ink-2); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-title a:hover { color: var(--ink); }
.pcard-meta { font-size: 12px; color: var(--muted); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid rgba(14, 124, 102, .5); outline-offset: 3px; }

/* Gorizontal karusel (rail) */
.rail { position: relative; margin: 0 calc(var(--gutter) * -1); }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; padding: 0 var(--gutter) 4px;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: start; min-width: 0; }
.rail-btn {
  display: none; position: absolute; top: calc(50% - 50px); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-1); place-items: center; color: var(--ink);
}
.rail-btn:hover { border-color: var(--brand); color: var(--brand); }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-btn.prev { left: -6px; }
.rail-btn.next { right: -6px; }

/* ---------- Bosh sahifa ---------- */
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-700); margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 9; }
.slide-link, .slide-link:hover { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px;
  padding: 20px 20px 34px; color: #fff; background: linear-gradient(0deg, rgba(4, 36, 30, .78), rgba(4, 36, 30, 0) 70%);
}
.slide-text h2 { color: #fff; font-size: 22px; max-width: 18ch; }
.slide-text p { margin: 0; opacity: .9; max-width: 40ch; font-size: 14px; }
.slide-text .btn { margin-top: 6px; min-height: 40px; }
.slider-btn {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); place-items: center;
}
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; gap: 2px;
  padding: 0 6px; border-radius: 999px; background: rgba(6, 30, 25, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.slider-dots button { width: 24px; height: 24px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.slider-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .55); transition: width .25s, background-color .25s; }
.slider-dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }

.hero {
  position: relative; overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 28px var(--gutter) 26px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(32, 168, 135, .55), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(255, 106, 61, .16), transparent 70%),
    var(--brand-700);
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { color: #fff; font-size: 30px; line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin-bottom: 12px; text-wrap: balance; }
.hero-copy > p { color: #cfe6df; font-size: 15.5px; max-width: 46ch; margin-bottom: 20px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--brand-700); }
.hero .btn-primary:hover { background: var(--brand-50); }
.hero .btn-light { background: rgba(255, 255, 255, .12); color: #fff; }
.hero .btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.route { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.route::before {
  content: ""; position: absolute; left: 6px; right: calc(33.33% - 6px); top: 6px; height: 0;
  border-top: 2px dashed rgba(255, 255, 255, .35);
}
.route li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-right: 8px; font-size: 13px; }
.route b { margin-top: 12px; font-weight: 700; color: #fff; line-height: 1.25; }
.route small { color: #9fc9bc; font-size: 12.5px; }
.route-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); position: relative; z-index: 1; }
.route-dot.is-end { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 61, .28); }
.hero-show { display: none; }

.trust {
  list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.trust li { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--r); padding: 10px; border: 1px solid var(--line-2); }
.trust .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.trust b { display: block; font-size: 13px; line-height: 1.25; }
.trust span { display: none; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }

.cats {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; scroll-snap-type: x proximity;
}
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none !important; scroll-snap-align: start; padding: 4px 0; border-radius: var(--r); }
.cat-ico {
  width: 72px; height: 72px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); display: grid; place-items: center;
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.cat:hover .cat-ico { border-color: var(--brand-100); transform: translateY(-2px); }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-ico .ico { width: 30px; height: 30px; color: var(--brand); }
.cat-emoji { font-size: 34px; line-height: 1; }
.cat-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.25; overflow-wrap: anywhere; }

.app-teaser {
  margin-top: 40px; border-radius: var(--r-xl); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 24px 20px 0;
  display: grid; gap: 16px; overflow: hidden;
}
.app-copy h2 { font-size: 22px; margin-bottom: 8px; color: var(--brand-800); }
.app-copy p { color: var(--ink-2); max-width: 52ch; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.store-badge small { display: block; font-size: 11px; font-weight: 500; color: #b8c7c1; line-height: 1; margin-bottom: 2px; }
.store-badge > span { line-height: 1.1; }
.app-phone {
  justify-self: center; width: 220px; height: 190px; border-radius: 34px 34px 0 0; background: var(--ink); padding: 10px 10px 0; align-self: end;
}
.app-screen { height: 100%; border-radius: 26px 26px 0 0; background: #fff; padding: 18px 16px; display: flex; flex-direction: column; gap: 9px; }
.app-line { height: 9px; border-radius: 5px; background: var(--line); }
.app-line.w80 { width: 80%; } .app-line.w60 { width: 55%; }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.app-cards i { height: 34px; border-radius: 9px; background: var(--brand-50); }
.app-cards i:nth-child(2) { background: var(--accent-50); }
.app-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--brand-700); margin-top: 2px; }
.app-status .route-dot { width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }

/* ---------- Katalog ---------- */
.cat-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-count { color: var(--muted); font-size: 14px; font-weight: 600; }
.catalog { display: block; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.btn-filter { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.dot-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.sorts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sorts::-webkit-scrollbar { display: none; }
.sort {
  flex: none; padding: 8px 13px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none !important;
  background: var(--card); border: 1px solid var(--line);
}
.sort:hover { border-color: var(--brand); color: var(--brand); }
.sort.is-on { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

.fsheet { position: fixed; inset: 0; z-index: 95; display: none; }
.fsheet.is-open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 30, 25, .45); animation: fade .2s; }
.fsheet-in {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + var(--safe-b)); animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain;
}
.fsheet-in::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 6px; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.fsheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.fsheet-top h2 { font-size: 18px; }
.fgroup { padding: 14px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.fgroup h3 { font-size: 14.5px; }
.fcats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow: auto; }
.fcats a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.fcats a:hover { background: var(--paper); }
.fcats a[aria-current] { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.price-range input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 12px; background: #fff; outline: none; font-variant-numeric: tabular-nums; }
.price-range input:focus { border-color: var(--brand); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pg {
  min-width: 42px; height: 42px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none !important;
}
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg .ico { width: 20px; height: 20px; }
.pg-gap { color: var(--muted); padding: 0 4px; }

/* ---------- Mahsulot sahifasi ---------- */
.page-product .main { padding-top: 0; }
.page-product .crumbs { margin-top: 12px; }
.pd { display: grid; gap: 16px; }
.gallery { margin: 0 calc(var(--gutter) * -1); min-width: 0; }
.gallery-main { position: relative; background: #fff; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; outline: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: center; background: #fff; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-empty { display: grid; place-items: center; color: #a9b7b1; }
.gallery-empty .ico { width: 56px; height: 56px; }
.pd-badge { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(16, 32, 27, .7); color: #fff;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.gallery-nav {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .95); place-items: center; color: var(--ink);
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav:hover { color: var(--brand); border-color: var(--brand); }
.gthumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter) 2px; }
.gthumbs::-webkit-scrollbar { display: none; }
.gthumb {
  flex: none; width: 60px; height: 60px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff;
  opacity: .75; transition: opacity .15s, border-color .15s;
}
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb:hover { opacity: 1; }
.gthumb.is-on { border-color: var(--brand); opacity: 1; }

.pd-info { min-width: 0; }
.pd-title-row { display: flex; gap: 12px; align-items: flex-start; }
.pd-title { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; flex: 1; }
.pd-fav .fav-btn { width: 44px; height: 44px; background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 14px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pd-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pd-meta .ico { width: 17px; height: 17px; }
.pd-meta .ico[aria-hidden] { color: inherit; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); }
.pd-price b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-price s { color: var(--muted); font-size: 15px; }
.pd-save { flex-basis: 100%; font-size: 13px; font-weight: 700; color: var(--accent-ink); }

.buy { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.variants { border: 0; padding: 0; margin: 0; min-width: 0; }
.variants legend { font-size: 14px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.variants legend b { color: var(--ink); }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { position: relative; cursor: pointer; }
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant-box {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; transition: border-color .15s, box-shadow .15s;
}
.variant.has-img .variant-box { padding-left: 4px; }
.variant-box img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.variant:hover .variant-box { border-color: #a8bab3; }
.variant input:checked + .variant-box { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-50); }
.variant input:focus-visible + .variant-box { outline: 3px solid rgba(14, 124, 102, .45); outline-offset: 2px; }
.variant input:disabled + .variant-box { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.vgroup + .vgroup { margin-top: 14px; }
.variant.is-na .variant-box { opacity: .5; border-style: dashed; }
.vg-na { color: var(--accent-ink); font-weight: 700; margin: 8px 0 0; }

.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-label { font-size: 14px; color: var(--muted); }
.qty-stock { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.stepper button:hover:not([disabled]) { background: var(--paper); color: var(--brand); }
.stepper button[disabled] { color: #b9c4c0; cursor: not-allowed; }
.stepper .ico { width: 18px; height: 18px; }
.stepper input, .stepper output {
  width: 44px; height: 44px; border: 0; text-align: center; font-weight: 800; background: none; outline: none; display: grid; place-items: center;
  -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm button, .stepper-sm output { width: 36px; height: 36px; }
.buy-actions { display: none; grid-template-columns: 1fr 1fr; gap: 10px; }

.pd-perks { list-style: none; margin: 18px 0 0; padding: 4px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); }
.pd-perks li { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.pd-perks li + li { border-top: 1px solid var(--line-2); }
.pd-perks .ico { color: var(--brand); margin-top: 1px; }
.pd-perks b { display: block; font-size: 14px; }
.pd-perks span { display: block; font-size: 13px; color: var(--muted); }

.pd-desc { margin-top: 32px; background: var(--card); border-radius: var(--r-lg); padding: 20px 18px; border: 1px solid var(--line-2); }
.pd-desc h2 { margin-bottom: 12px; }
.collapsible { position: relative; }
.collapsible.is-clamped { max-height: 480px; overflow: hidden; }
.collapsible.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.more-btn { margin-top: 12px; }
.more-btn .ico { width: 18px; height: 18px; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  padding: 10px var(--gutter) calc(10px + var(--safe-b)); background: #fff; box-shadow: var(--shadow-up); border-top: 1px solid var(--line-2);
}
.buybar-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.buybar-price b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.buybar-price s { font-size: 12px; color: var(--muted); }
.buybar .btn { min-height: 46px; padding: 0 14px; font-size: 14.5px; }
.page-product, .page-checkout { padding-bottom: calc(70px + var(--safe-b)); }
.page-checkout { padding-bottom: 0; }
.page-product .toasts, .page-checkout .toasts { bottom: calc(80px + var(--safe-b)); }

/* ---------- Matn (tavsif, ma'lumot sahifalari) ---------- */
.prose { font-size: 15px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.prose img { height: auto; border-radius: 10px; margin: 10px auto; }
.prose h2 { font-size: 19px; margin: 26px 0 10px; color: var(--ink); }
.prose h3, .prose h4 { font-size: 16.5px; margin: 20px 0 8px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 12px 0; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose blockquote { margin: 12px 0; padding: 4px 16px; border-left: 3px solid var(--brand-100); color: var(--muted); }
.prose .lead { font-size: 17px; color: var(--ink); line-height: 1.6; }
.prose p { margin: 0 0 12px; }

/* ---------- Savat va rasmiylashtirish ---------- */
.cart { display: grid; gap: 16px; }
.cart-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr; grid-template-areas: "img info" "img qty" "sum sum"; gap: 6px 14px; padding: 16px;
}
.cart-item + .cart-item { border-top: 1px solid var(--line-2); }
.ci-img { grid-area: img; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--paper); display: grid; place-items: center; color: #a9b7b1; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-title { color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-var { font-size: 13px; color: var(--muted); }
.ci-unit { font-size: 13px; color: var(--muted); }
.ci-qty { grid-area: qty; display: flex; align-items: center; gap: 10px; }
.ci-remove span { display: none; }
.ci-sum { grid-area: sum; display: none; font-weight: 800; font-size: 16px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.summary { background: var(--card); border-radius: var(--r-lg); padding: 18px; border: 1px solid var(--line-2); align-self: start; }
.summary h2 { font-size: 18px; margin-bottom: 12px; }
.sum-rows { margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.sum-total dt { color: var(--ink) !important; font-weight: 700; }
.sum-total dd { font-size: 21px; font-weight: 800 !important; letter-spacing: -.02em; }
.sum-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.sum-note .ico { width: 18px; height: 18px; flex: none; color: var(--brand); }
.sum-back { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.sum-back .ico { width: 17px; height: 17px; }
.sum-items { list-style: none; padding: 8px 8px 0 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow: auto; }
.sum-items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.si-img { position: relative; width: 48px; height: 48px; border-radius: 10px; background: var(--paper); }
.si-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.si-img b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }
.si-t { line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.si-t small { display: block; color: var(--muted); }
.si-p { font-weight: 700; white-space: nowrap; }

.mobile-cta {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); z-index: 20; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; box-shadow: 0 8px 30px rgba(16, 32, 27, .16); border: 1px solid var(--line-2);
}
.mobile-cta span { display: block; font-size: 12px; color: var(--muted); }
.mobile-cta b { font-size: 18px; font-weight: 800; }

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 4px 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 22px; height: 2px; background: var(--line); border-radius: 2px; }
.steps .done a { color: var(--brand); }
.steps .cur { color: var(--ink); }
.page-checkout h1 { margin-bottom: 16px; }

.checkout { display: grid; gap: 16px; }
.co-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout fieldset.panel { margin: 0; min-width: 0; }
.checkout legend { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.checkout legend + * { clear: both; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-size: 14px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.fields { display: grid; gap: 14px; }
/* Uy | Xonadon — telefonda ham yonma-yon (qisqa raqamlar) */
.addr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr-pair .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6d68' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.field input:hover, .field select:hover { border-color: #b9c7c1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 124, 102, .14); }
.field input:disabled { background: var(--paper); color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(200, 50, 31, .14); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.field-err { margin: 0; font-size: 13px; color: var(--danger); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field-err::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.pass { position: relative; }
.pass input { padding-right: 52px; }
.pass-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 40px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 9px; }
.pass-eye:hover { color: var(--ink); background: var(--paper); }
.pass-eye[aria-pressed="true"] { color: var(--brand); }

.paycards { display: grid; gap: 10px; }
.paycard { position: relative; cursor: pointer; }
.paycard input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.paycard-box {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, background-color .15s, box-shadow .15s; height: 100%;
}
.paycard:hover .paycard-box { border-color: #a8bab3; }
.paycard input:checked + .paycard-box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.paycard input:focus-visible + .paycard-box { outline: 3px solid rgba(14, 124, 102, .45); outline-offset: 2px; }
.paycard-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--brand); flex: none; }
.pc-click .paycard-ico { color: #1a73d9; background: #e9f2fd; }
.pc-payme .paycard-ico { color: #0c9c9c; background: #e5f7f7; }
.paycard-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.paycard-txt b { font-size: 15px; }
.paycard-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.paycard-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.paycard-check .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.paycard input:checked + .paycard-box .paycard-check { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Buyurtma sahifasi ---------- */
.narrow-wide { max-width: 980px; }
.success { text-align: center; padding: 20px 0 24px; }
.success-mark {
  width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 16px;
  position: relative; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.success-mark::after { content: ""; position: absolute; right: -2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); animation: pop .5s .25s both cubic-bezier(.2, 1.4, .4, 1); }
.success-mark .ico { width: 38px; height: 38px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success h1 { font-size: 26px; margin-bottom: 10px; }
.success > p { max-width: 52ch; margin: 0 auto 16px; color: var(--ink-2); }
.code-box {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 12px 12px 12px 18px; border-radius: 16px;
  background: var(--card); border: 1.5px dashed var(--brand-100); margin-bottom: 14px;
}
.code-box span { font-size: 13px; color: var(--muted); }
.code-box b { font-size: 22px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.order-date { margin-top: -8px; margin-bottom: 16px; font-size: 14px; }
.order-status { margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--brand); }
.tl-dot {
  position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none;
  display: grid; place-items: center; color: #fff;
}
.tl-dot .ico { width: 15px; height: 15px; stroke-width: 2.8; }
.done .tl-dot { background: var(--brand); border-color: var(--brand); }
.cur .tl-dot { border-color: var(--accent); }
.cur .tl-dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl-txt { display: flex; flex-direction: column; padding-top: 3px; }
.tl-txt b { font-size: 14.5px; color: var(--muted); }
.done .tl-txt b, .cur .tl-txt b { color: var(--ink); }
.tl-txt small { font-size: 12.5px; color: var(--muted); }
.tl-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 16px 0 0; }
.tl-note .ico { width: 18px; height: 18px; }
.tracking { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--brand-50); }
.tracking span { display: block; font-size: 12.5px; color: var(--brand-700); }
.tracking b { font-size: 17px; letter-spacing: .02em; }
.tracking-act { display: flex; gap: 8px; }
.order-grid { display: grid; gap: 16px; }
.order-items { list-style: none; padding: 0; margin: 0; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "img t s" "img q s"; gap: 2px 12px; padding: 10px 0; align-items: center; }
.order-items li + li { border-top: 1px solid var(--line-2); }
.oi-img { grid-area: img; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--paper); }
.oi-img img { width: 100%; height: 100%; object-fit: cover; }
.oi-t { grid-area: t; font-size: 14px; line-height: 1.35; min-width: 0; }
.oi-t a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oi-t small { color: var(--muted); display: block; }
.oi-q { grid-area: q; font-size: 13px; color: var(--muted); }
.oi-s { grid-area: s; font-weight: 800; white-space: nowrap; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 6px; }
.order-total b { font-size: 21px; font-weight: 800; }
.order-side h2 { font-size: 16px; margin-bottom: 10px; }
.order-side h2 + .kv + h2 { margin-top: 18px; }
.kv { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.kv > div { display: grid; grid-template-columns: 116px 1fr; gap: 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv .ok { display: inline-flex; align-items: center; gap: 4px; }
.kv .ok .ico { width: 16px; height: 16px; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.page-order .alert-info { margin-top: 16px; }

/* ---------- Kabinet ---------- */
.acc-head {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg);
  background: var(--brand-700); color: #fff; position: relative; overflow: hidden;
}
.acc-head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(32, 168, 135, .35); }
.acc-avatar {
  width: 56px; height: 56px; border-radius: 18px; background: #fff; color: var(--brand-700); display: grid; place-items: center; font-weight: 800; font-size: 20px;
  position: relative; z-index: 1;
}
.acc-avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--brand-700); }
.acc-who { position: relative; z-index: 1; min-width: 0; }
.acc-who h1 { color: #fff; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-who span { color: #b9d9cf; font-size: 14px; }
.acc-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; position: relative; z-index: 1; }
.acc-stats > div { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column-reverse; }
.acc-stats dt { font-size: 12.5px; color: #b9d9cf; }
.acc-stats dd { margin: 0; font-size: 20px; font-weight: 800; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 18px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 12px 12px; color: var(--muted); font-weight: 700; font-size: 14.5px;
  text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a .ico { width: 19px; height: 19px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--brand-700); border-bottom-color: var(--brand); }
.tabs-out { margin-left: auto; }
.tabs-out:hover { color: var(--danger) !important; }
.olist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ocard { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--line-2); transition: border-color .15s; }
.ocard:hover { border-color: var(--brand-100); }
.ocard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ocard-code { display: block; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.ocard-date { font-size: 13px; color: var(--muted); }
.ocard-mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; }
.ocard-imgs { display: flex; }
.ocard-imgs img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; background: var(--paper); }
.ocard-imgs img + img { margin-left: -12px; }
.ocard-sum { text-align: right; }
.ocard-sum span { display: block; font-size: 12.5px; color: var(--muted); }
.ocard-sum b { font-size: 17px; font-weight: 800; }
.ocard-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 12px; font-weight: 700; font-size: 14px; }
.ocard-link .ico { width: 17px; height: 17px; }
.profile-grid { display: grid; gap: 16px; align-items: start; }
.profile-grid .panel h2 { font-size: 18px; margin-bottom: 0; }
.profile-grid .muted { font-size: 13.5px; margin: -6px 0 2px; }
.profile-grid .btn { align-self: flex-start; }
.profile-grid .link-btn { align-self: flex-start; }

/* ---------- Kirish / ro'yxatdan o'tish ---------- */
.auth { display: grid; gap: 20px; max-width: 440px; margin: 8px auto 0; }
.auth-card { background: var(--card); border-radius: var(--r-xl); padding: 26px 20px; border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
.auth-ico { width: 54px; height: 54px; border-radius: 17px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; position: relative; }
.auth-ico::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.auth-ico .ico { width: 26px; height: 26px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.auth-alt a { font-weight: 700; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.auth-perks .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--card); color: var(--brand); border: 1px solid var(--line-2); }

/* ---------- Ma'lumot sahifalari ---------- */
.info { display: grid; gap: 16px; }
.info-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.info-nav::-webkit-scrollbar { display: none; }
.info-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.info-nav a .ico { width: 18px; height: 18px; color: var(--muted); }
.info-nav a[aria-current] { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.info-nav a[aria-current] .ico { color: var(--brand); }
.info-body { background: var(--card); border-radius: var(--r-lg); padding: 22px 18px; border: 1px solid var(--line-2); max-width: 820px; min-width: 0; }
.info-body h1 { font-size: 26px; margin-bottom: 14px; }
.steps-v { list-style: none; counter-reset: s; padding: 0 !important; }
.steps-v li { counter-increment: s; position: relative; padding: 0 0 14px 44px; margin: 0 !important; }
.steps-v li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700);
  font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.steps-v li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--line-2); }
.steps-v li:last-child::after { display: none; }
.pay-grid { display: grid; gap: 10px; margin: 16px 0 8px; }
.pay-card { display: block; padding: 16px; border-radius: 16px; background: var(--paper); color: var(--ink-2); text-decoration: none !important; }
.pay-card .ico { width: 26px; height: 26px; color: var(--brand); }
.pay-card h3 { margin: 10px 0 4px; font-size: 16px; }
.pay-card p { margin: 0; font-size: 14px; color: var(--muted); }
.contact-card:hover { background: var(--brand-50); }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 32px 0 16px; max-width: 560px; margin: 0 auto; }
.nf-art { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.nf-art span { font-size: 108px; font-weight: 800; letter-spacing: -.06em; color: var(--brand-700); line-height: 1; }
.nf-art img { width: 96px; height: 96px; transform: rotate(-8deg); }
.nf h1 { font-size: 26px; margin-bottom: 10px; }
.nf p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }
.nf-search { display: flex; gap: 8px; max-width: 440px; margin: 0 auto 16px; }
.nf-search input { flex: 1; min-width: 0; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; outline: none; }
.nf-search input:focus { border-color: var(--brand); }
.nf-search .btn { min-height: 48px; }
.nf-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 559px) {
  .tabs a { flex: 1 1 0; justify-content: center; padding: 12px 6px; font-size: 14px; }
  .tabs .tabs-out { display: none; }
}
@media (max-width: 899px) {
  .page-cart .summary > .btn { display: none; }
}

/* ==========================================================================
   Planshet va desktop
   ========================================================================== */
@media (min-width: 560px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
  .rail-track { grid-auto-columns: 30%; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust li { flex-direction: column; align-items: flex-start; padding: 12px; }
  .trust span { display: block; }
  .trust .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .fields .span2 { grid-column: 1 / -1; }
  .paycards { grid-template-columns: repeat(3, 1fr); }
  .paycard-box { flex-direction: column; align-items: flex-start; position: relative; }
  .paycard-check { position: absolute; right: 12px; top: 12px; }
  .pay-grid { grid-template-columns: repeat(3, 1fr); }
  .ftr-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .ftr-brand { grid-column: auto; }
  .cart-item { grid-template-columns: 96px 1fr auto; grid-template-areas: "img info sum" "img qty sum"; }
  .ci-img { width: 96px; height: 96px; }
  .ci-sum { display: block; align-self: center; }
  .ci-remove span { display: inline; }
  .slide { aspect-ratio: 21 / 9; }
  .slide-text { padding: 28px 40px 44px; }
  .slide-text h2 { font-size: 30px; }
  .olist { grid-template-columns: 1fr 1fr; }
  .acc-head { grid-template-columns: auto 1fr auto; padding: 22px 24px; }
  .acc-stats { grid-column: auto; margin: 0; grid-template-columns: auto auto; }
  .acc-stats > div { min-width: 110px; }
  .timeline { flex-direction: row; }
  .timeline li { flex: 1; flex-direction: column; gap: 10px; padding: 0 8px 0 0; }
  .timeline li::before { left: 28px; right: 0; top: 13px; bottom: auto; width: auto; height: 2px; }
  .tl-txt { padding-top: 0; }
  .auth-card { padding: 32px 30px; }
}

@media (min-width: 900px) {
  :root { --gutter: 24px; --hdr-h: 72px; }
  body { padding-bottom: 0; font-size: 15.5px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .main { padding: 20px 0 56px; }
  .tabbar, .buybar, .mobile-cta { display: none; }
  .toasts { left: auto; right: 24px; top: 96px; bottom: auto; align-items: flex-end; }
  .page-product .toasts, .page-checkout .toasts { bottom: auto; }
  .page-product, .page-checkout { padding-bottom: 0; }
  .topstrip { display: block; }
  .hdr-in {
    grid-template-columns: auto auto 1fr auto; grid-template-areas: "logo catalog search actions"; column-gap: 14px; padding-top: 12px; padding-bottom: 12px;
  }
  .hdr-menu { display: none; }
  .logo img { width: 40px; height: 40px; }
  .logo-word { font-size: 24px; }
  .btn-catalog { display: inline-flex; min-height: 46px; margin-left: 10px; }
  .btn-catalog { background: var(--brand); color: #fff; }
  .btn-catalog:hover { background: var(--brand-600); color: #fff; }
  .search input { height: 46px; }
  .hdr-act span { display: block; }
  .hdr-fav, .hdr-admin { display: inline-flex; }
  .hdr-act { padding: 6px 10px; }
  .count { right: 8px; }
  .catbar { display: block; }

  .slider { margin: 0; border-radius: var(--r-xl); }
  .slider-btn { display: grid; }
  .hero {
    margin: 0; border-radius: var(--r-xl); padding: 48px 48px 44px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center;
    min-height: 400px;
  }
  .hero h1 { font-size: 46px; }
  .hero-copy > p { font-size: 17px; }
  .route { max-width: 520px; }
  .hero-show { display: block; position: relative; height: 330px; }
  .hero-tile {
    position: absolute; width: 190px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .45);
    text-decoration: none !important; transition: transform .3s;
  }
  .hero-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
  .hero-tile span { display: block; padding: 9px 12px 11px; font-weight: 800; color: var(--ink); font-size: 15px; }
  .hero-tile.t1 { left: 4%; top: 30px; transform: rotate(-6deg); z-index: 2; }
  .hero-tile.t2 { left: 36%; top: 0; transform: rotate(3deg); z-index: 3; width: 210px; }
  .hero-tile.t3 { right: 0; top: 70px; transform: rotate(9deg); z-index: 1; }
  .hero-tile.t2 span::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

  .trust { margin-top: 16px; gap: 12px; }
  .trust li { flex-direction: row; align-items: center; padding: 16px; }
  .trust b { font-size: 14.5px; }
  .trust span { font-size: 13px; }
  .sec { margin-top: 44px; }
  .cats { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin: 0; padding: 0; gap: 10px; }
  .cat-ico { width: 88px; height: 88px; border-radius: 26px; }
  .cat-name { font-size: 13.5px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 18px; }
  .rail { margin: 0; }
  .rail-track { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; padding: 0 0 4px; scroll-padding: 0; }
  .rail-btn { display: grid; }
  .pcard-price b { font-size: 18px; }
  .pcard-title { font-size: 14px; }
  .app-teaser { grid-template-columns: 1.4fr 1fr; padding: 36px 48px 0; align-items: center; }
  .app-copy { padding-bottom: 36px; }
  .app-copy h2 { font-size: 28px; }
  .app-phone { width: 260px; height: 220px; }

  .catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
  .fsheet { display: block; position: sticky; top: 140px; inset: auto; z-index: 1; max-height: calc(100vh - 160px); overflow: auto; }
  .sheet-backdrop, .fsheet-top .icon-btn, .fsheet-in::before { display: none; }
  .fsheet-in { position: static; max-height: none; border-radius: var(--r-lg); padding: 18px; animation: none; border: 1px solid var(--line-2); overflow: visible; }
  .fsheet-top { margin-bottom: 8px; }
  .fsheet-top h2 { font-size: 17px; }
  .btn-filter { display: none; }
  .catalog .pgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  .page-product .main { padding-top: 16px; }
  .page-product .crumbs { margin-top: 0; }
  .pd { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { margin: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 140px; }
  .gallery-main { grid-column: 2; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); }
  .gthumbs { grid-column: 1; grid-row: 1; flex-direction: column; padding: 0; overflow-y: auto; max-height: 560px; }
  .gthumb { width: 76px; height: 76px; }
  .gallery-nav { display: grid; }
  .gallery-count { display: none; }
  .pd-title { font-size: 26px; letter-spacing: -.02em; }
  .pd-price b { font-size: 34px; }
  .pd-save { flex-basis: auto; }
  .buy-actions { display: grid; }
  .pd-desc { padding: 28px 32px; }

  .cart { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .summary { position: sticky; top: 140px; padding: 22px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .panel { padding: 22px 24px; }

  .order-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .profile-grid { grid-template-columns: 1.4fr 1fr; }
  .olist { grid-template-columns: 1fr 1fr; }

  .auth { grid-template-columns: 440px 260px; max-width: 740px; align-items: center; gap: 40px; margin-top: 24px; }
  .auth-perks li { font-size: 15px; }
  .info { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
  .info-nav { flex-direction: column; margin: 0; padding: 0; position: sticky; top: 140px; }
  .info-nav a { background: transparent; border-color: transparent; }
  .info-nav a:hover { background: var(--card); }
  .info-body { padding: 32px 40px; }
  .info-body h1 { font-size: 32px; }
  .nf-art span { font-size: 150px; }
  .nf-art img { width: 130px; height: 130px; }
  .ftr { margin-top: 64px; padding-top: 56px; }
}

@media (min-width: 1200px) {
  .catalog .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero h1 { font-size: 52px; }
}

@media (hover: none) {
  .pcard:hover .pcard-media img { transform: none; }
  .rail-btn { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Eski (admin) sahifalar uchun moslik klasslari — admin panel o'z uslubiga o'tguncha
   ========================================================================== */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.table th { background: var(--paper); font-weight: 700; color: var(--muted); font-size: 13px; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a, .filters select { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.filters a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.narrow { max-width: 440px; margin: 0 auto; }
.form label { font-size: 13.5px; font-weight: 700; }
.form > input, .form > select, .form > textarea {
  min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border-radius: var(--r); padding: 16px; border: 1px solid var(--line-2); }
.stat-n { font-size: 26px; font-weight: 800; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--line-2); }
.status.s-new { background: var(--info-50); color: var(--info); }
.status.s-confirmed { background: var(--brand-50); color: var(--brand-600); }
.status.s-shipped { background: var(--warn-50); color: var(--warn); }
.status.s-delivered { background: var(--ok-50); color: var(--ok); }
.status.s-cancelled { background: var(--danger-50); color: var(--danger); }
.flash { padding: 12px 16px; border-radius: var(--r); background: var(--ok-50); color: var(--ok); margin-bottom: 16px; }
.flash.err { background: var(--danger-50); color: var(--danger); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }

/* ---------- Yetkazib berish usuli va Uzum topshirish punktlari (checkout) ---------- */
.dc-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-50); color: var(--accent-ink); font-size: 11.5px; font-weight: 800; font-style: normal; vertical-align: 2px; }
.dc-pickup_uzum .paycard-ico { color: #7000ff; background: #f1e9ff; }
.co-delivery .pickup-box { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); gap: 10px; }
.co-delivery[data-dtype="pickup_uzum"] .pickup-box,
.co-delivery:has(input[name="delivery_type"][value="pickup_uzum"]:checked) .pickup-box { display: flex; }
.pickup-head { display: flex; flex-direction: column; gap: 8px; }
.pickup-head label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pickup-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pickup-views { display: inline-flex; padding: 3px; gap: 3px; background: var(--bg-2, #eef3f1); border-radius: 999px; }
.pickup-views[hidden] { display: none; }
.pickup-views .pv { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; min-height: 34px; }
.pickup-views .pv .ico { width: 16px; height: 16px; }
.pickup-views .pv[aria-pressed="true"] { background: #fff; color: var(--brand-700); box-shadow: 0 1px 3px rgba(16, 32, 27, .15); }
.pickup-views .pv:focus-visible { outline: 3px solid rgba(14, 124, 102, .45); outline-offset: 1px; }
.pickup-list[hidden], .pickup-mapwrap[hidden] { display: none; }
.pickup-mapwrap { display: flex; flex-direction: column; gap: 8px; }
.pickup-map { height: 400px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; z-index: 0; background: #e9efec; }
@media (max-width: 600px) { .pickup-map { height: 340px; } }
.pickup-near { align-self: flex-start; }
.pickup-more { align-self: flex-start; }
.pickup-more[hidden] { display: none; }
.pickup-sel { margin: 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.pickup-sel.on { color: var(--ink); background: var(--brand-50); border: 1px solid var(--brand); border-radius: 12px; padding: 10px 12px; }
.pickup-sel .ico { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; }
.pp-pin { background: none; border: 0; }
.pickup-map .marker-cluster { background: rgba(14, 124, 102, .22); }
.pickup-map .marker-cluster div { background: var(--brand); color: #fff; font-weight: 800; }
.pp-pin span { display: block; width: 26px; height: 26px; margin: 1px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #7a2bd6; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.pp-pin span::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pp-pin.on span { background: var(--brand); transform: rotate(-45deg) scale(1.2); }
.pp-pop { display: flex; flex-direction: column; gap: 4px; font: 13px/1.4 inherit; }
.pp-pop b { font-size: 14px; }
.pp-pop small { color: var(--muted); }
.pp-pop .btn { margin-top: 6px; }
.pickup-search { position: relative; }
.pickup-search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field .pickup-search input { padding-left: 40px; }
.pickup-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: 0 -2px; border-radius: 14px; }
.pickup-list[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--danger); }
.pickup-list[aria-busy="true"] { opacity: .55; }
.pp { position: relative; cursor: pointer; }
.pp[hidden] { display: none; }
.pp input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pp-box { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; position: relative; transition: border-color .15s, background-color .15s; }
.pp-box::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #a8bab3; background: #fff; }
.pp:hover .pp-box { border-color: #a8bab3; }
.pp input:checked + .pp-box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.pp input:checked + .pp-box::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px #fff; background: var(--brand); }
.pp input:focus-visible + .pp-box { outline: 3px solid rgba(14, 124, 102, .45); outline-offset: 2px; }
.pp-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pp-t b { font-size: 14.5px; }
.pp-near { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--brand-700); background: var(--brand-100); padding: 1px 8px; border-radius: 999px; }
.pp-a { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.pp-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.pp-m .ico { width: 14px; height: 14px; vertical-align: -2px; }
.pp-m:empty { display: none; }
.pp-empty { margin: 0; padding: 14px; border-radius: 12px; background: var(--warn-50); color: var(--warn); font-size: 13.5px; font-weight: 600; }
/* Pochta bo'limlari (Uzum punktlari ro'yxati bilan bir xil ko'rinish) */
.co-delivery .post-box { display: none; flex-direction: column; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); gap: 10px; }
.co-delivery[data-dtype="post"] .post-box,
.co-delivery:has(input[name="delivery_type"][value="post"]:checked) .post-box { display: flex; }
.co-delivery:has(input[name="delivery_type"][value="pickup_uzum"]:checked) .post-box { display: none; }
.pp-idx { font: 600 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); background: var(--line); padding: 2px 7px; border-radius: 6px; }
.post-box > .hint { display: flex; gap: 6px; align-items: flex-start; }
.post-box > .hint .ico { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.field input[readonly] { background: var(--line); color: var(--ink-2); cursor: default; }
.pickup-box > .hint { display: flex; gap: 6px; align-items: flex-start; }
.pickup-box > .hint .ico { width: 15px; height: 15px; flex: none; margin-top: 1px; }
@media (min-width: 560px) {
  .paycards.dcards { grid-template-columns: 1fr 1fr; }
}

/* buyurtma sahifasi: punkt */
.pickup-note { display: flex; gap: 12px; align-items: flex-start; text-align: left; max-width: 520px; margin: 4px auto 0; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--brand-100); }
.pickup-note > .ico { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.pickup-note div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pickup-note small { color: var(--muted); }
.kv-pickup { display: flex; flex-direction: column; gap: 2px; }
.kv-pickup span { font-weight: 500; color: var(--ink-2); }
.kv-pickup small { font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.kv-pickup small .ico { width: 14px; height: 14px; }

/* ==========================================================================
   Ko'p tillilik, xususiyatlar, sharhlar (docs/I18N_CONTRACT.md)
   ========================================================================== */
.langsw { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.langsw a { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #d5ebe4; text-decoration: none; }
.langsw a:hover { color: #fff; }
.langsw a.is-on { background: #fff; color: var(--brand-700); }
.topstrip-in .langsw-top { margin-left: 18px; flex-shrink: 0; }
.langsw-drawer { background: var(--paper); margin-bottom: 14px; }
.langsw-drawer a, .langsw-ftr a { color: var(--ink-2); }
.langsw-drawer a.is-on { background: var(--brand); color: #fff; }
.langsw-ftr { margin-top: 16px; }
.langsw-ftr a.is-on { background: #fff; color: var(--brand-700); }
.langsw-ftr a { color: #d5ebe4; }
@media (max-width: 559px) { .topstrip-in .langsw-top { margin-left: auto; } }

.drawer-sub { list-style: none; margin: 0 0 4px 46px; padding: 0; }
.drawer-sub a { padding: 6px 10px !important; font-size: 14px; color: var(--muted); }
.fcats-sub { list-style: none; margin: 2px 0 4px 12px; padding: 0 0 0 8px; border-left: 2px solid var(--line-2); }
.fcats-sub a { font-size: 13.5px; padding: 6px 10px; }
.subcats { margin: -4px 0 16px; }

.pd-rating { color: var(--ink-2); }
.pd-rating b { color: #b26b00; }

.pd-specs { margin-top: 32px; background: var(--card); border-radius: var(--r-lg); padding: 20px 18px; border: 1px solid var(--line-2); }
.pd-specs h2 { margin-bottom: 12px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0 32px; }
.specs > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 900px) { .specs { grid-template-columns: 1fr 1fr; } .pd-specs { padding: 28px 32px; } }

.desc-imgs { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.desc-imgs img { max-width: 100%; height: auto; border-radius: 10px; margin: 0; }

.pd-reviews { margin-top: 32px; }
.rev-note { display: flex; align-items: center; gap: 6px; margin: -4px 0 14px; font-size: 13.5px; }
.rev-note .ico { width: 16px; height: 16px; flex-shrink: 0; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.review { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; color: var(--muted); }
.review-author { color: var(--ink); }
.review-date { margin-left: auto; }
.review-sku { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.review-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.review-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-imgs a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); }
.review-imgs img { display: block; width: 72px; height: 72px; object-fit: cover; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
.stars-lg { font-size: 20px; }
.own-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.own-sum b { font-size: 18px; }
.own-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; font-size: 13.5px; }
.review-verified { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-weight: 600; }
.review-verified .ico { width: 14px; height: 14px; }
.order-items li .rev-form { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--paper); scroll-margin-top: 90px; }
.rev-form textarea { width: 100%; min-height: 60px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); resize: vertical; }
.rev-form-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev-hint { margin: 10px 0 0; font-size: 13.5px; }
.rate-field { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rate-field legend { float: left; padding: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.rate-input { display: inline-flex; flex-direction: row-reverse; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { font-size: 26px; line-height: 1; padding: 2px 3px; color: var(--line); cursor: pointer; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: #f5a623; }
.rate-input input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 4px; }
.stars { --r: 0; position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; color: var(--line); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; overflow: hidden; width: calc(var(--r) / 5 * 100%); color: #f5a623; }

.zoom { position: fixed; inset: 0; z-index: 200; background: rgba(6, 20, 16, .88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.zoom-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.zoom-x .ico { width: 22px; height: 22px; }
.zoom img { max-height: calc(100vh - 32px); object-fit: contain; }
.zoom-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.zoom-nav[hidden] { display: none; }
.zoom-nav:hover, .zoom-x:hover { background: rgba(255, 255, 255, .28); }
.zoom-nav.prev { left: 12px; }
.zoom-nav.next { right: 12px; }
.zoom-nav .ico { width: 24px; height: 24px; }
.zoom-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 700;
  background: rgba(0, 0, 0, .35); padding: 4px 10px; border-radius: 999px; }
.zoom-count:empty { display: none; }

/* Balans (docs/WALLET_REVIEW_CONTRACT.md) */
.wallet-card { display: grid; gap: 6px; padding: 20px; }
.wallet-sum { font-size: 30px; font-weight: 800; color: var(--brand-700); }
.wallet-h { margin: 24px 0 10px; font-size: 18px; }
.wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wtx { display: flex; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.wtx-main { display: grid; gap: 2px; min-width: 0; }
.wtx-note { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.wtx-sum { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.wtx-sum .pos { color: var(--ok); }
.wtx-sum .neg { color: var(--danger); }
.paycard.is-disabled { opacity: .55; }
.status-note { margin: 0 0 6px; }
