:root {
  color-scheme: light;
  --brand: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --accent: #ef4444;
  --accent-soft: #fef2f2;

  --brand-hover: #123f34;
  --ring: color-mix(in srgb, var(--brand) 38%, transparent);

  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --surface-hover: #efeeec;
  --border: #ebe9e7;
  --border-strong: #d6d3d1;
  --scroll-thumb: rgba(12, 10, 9, 0.18);
  --scroll-thumb-hover: rgba(12, 10, 9, 0.34);
  --text: #0c0a09;
  --text-muted: #57534e;
  --text-soft: #a8a29e;

  --c-1: #3b82f6;
  --c-1-bg: #eff6ff;
  --c-2: #f97316;
  --c-2-bg: #fff7ed;
  --c-3: #10b981;
  --c-3-bg: #ecfdf5;
  --c-4: #ec4899;
  --c-4-bg: #fdf2f8;
  --c-5: #8b5cf6;
  --c-5-bg: #f5f3ff;
  --c-6: #6366f1;
  --c-6-bg: #eef2ff;
  --c-7: #eab308;
  --c-7-bg: #fefce8;
  --c-8: #06b6d4;
  --c-8-bg: #ecfeff;
  --c-9: #ef4444;
  --c-9-bg: #fef2f2;
  --c-10: #a855f7;
  --c-10-bg: #faf5ff;
  --c-11: #14b8a6;
  --c-11-bg: #f0fdfa;
  --c-12: #f59e0b;
  --c-12-bg: #fffbeb;

  --shadow-xs: 0 1px 2px rgba(12, 10, 9, 0.04);
  --shadow-sm: 0 2px 8px rgba(12, 10, 9, 0.04);
  --shadow: 0 8px 24px rgba(12, 10, 9, 0.06);
  --shadow-lg: 0 24px 56px rgba(12, 10, 9, 0.10);
  --shadow-brand: 0 8px 22px rgba(16, 185, 129, 0.22);
  --shadow-card: 0 1px 2px rgba(12, 10, 9, .04), 0 6px 16px rgba(12, 10, 9, .05);
  --shadow-card-hover: 0 2px 4px rgba(12, 10, 9, .05), 0 18px 40px rgba(12, 10, 9, .11);

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --t-fast: 140ms cubic-bezier(.4, 0, .2, 1);
  --t: 240ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 420ms cubic-bezier(.4, 0, .2, 1);

  --header-h: 56px;
  --container: 1320px;
  --bottom-nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  /* Brauzerning o'z elementlari — skroll, input, select, kalendar —
     mavzuga ergashsin; aks holda ular oq bo'lib qolib, almashish qo'pol
     ko'rinadi. */
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-elevated: #110f0e;
  --surface: #1c1917;
  --surface-2: #292524;
  --surface-hover: #34302e;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --scroll-thumb: rgba(255, 255, 255, 0.16);
  --scroll-thumb-hover: rgba(255, 255, 255, 0.30);
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --text-soft: #78716c;
  --brand-50: rgba(16, 185, 129, 0.12);
  --brand-100: rgba(16, 185, 129, 0.20);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px rgba(0, 0, 0, .35);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .55);
  --brand-hover: #0d9488;
  --c-1-bg: rgba(59, 130, 246, 0.14);
  --c-2-bg: rgba(249, 115, 22, 0.14);
  --c-3-bg: rgba(16, 185, 129, 0.14);
  --c-4-bg: rgba(236, 72, 153, 0.14);
  --c-5-bg: rgba(139, 92, 246, 0.14);
  --c-6-bg: rgba(99, 102, 241, 0.14);
  --c-7-bg: rgba(234, 179, 8, 0.14);
  --c-8-bg: rgba(6, 182, 212, 0.14);
  --c-9-bg: rgba(239, 68, 68, 0.14);
  --c-10-bg: rgba(168, 85, 247, 0.14);
  --c-11-bg: rgba(20, 184, 166, 0.14);
  --c-12-bg: rgba(245, 158, 11, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  transition: all ease 0.2s;
}

/* Mavzu almashayotgan lahza.

   Yuqoridagi `transition: all` sahifadagi har bir element uchun ishlaydi:
   mavzu almashganda mingta element bir vaqtda o'z rangini alohida-alohida
   surib boradi va ular bir xil payt tugamaydi — natijada rang sahifa
   bo'ylab "sudralib" o'tadi. Shuning uchun almashish lahzasida elementlar
   animatsiyasi butunlay o'chiriladi: rang bir zumda o'zgaradi, silliqlikni
   esa quyidagi view transition — butun sahifaning yagona erishi — beradi.

   View transition qo'llab-quvvatlanmasa (Firefox), almashish shunchaki
   bir zumda bo'ladi. Bu ham sudralishdan ko'ra toza ko'rinadi. */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  /* UA sukut bo'yicha `plus-lighter` bilan aralashtiradi — yorug' va
     qorong'i kadr qo'shilib, o'rtada oq yalt etadi. `normal` bilan yangi
     kadr eskisining ustiga tinch tushadi. */
  mix-blend-mode: normal;
  animation: none;
}

::view-transition-old(root) {
  z-index: 0;
}

::view-transition-new(root) {
  z-index: 1;
  /* Vaqt to'g'ridan-to'g'ri yozilgan: bu psevdo-element alohida daraxtda
     chiziladi va `--t-slow` kabi o'zgaruvchi u yerga yetib bormay qolsa,
     animatsiya butunlay tushib qolardi. */
  animation: theme-fade 320ms cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes theme-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation: none;
  }
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
  background-clip: padding-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t), color var(--t);
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

svg {
  flex-shrink: 0;
}

.inline-icon {
  width: 17px;
  height: 17px;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 42%, transparent);
  outline-offset: 3px;
}

::selection {
  background: var(--brand-100);
  color: var(--text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--text);
  color: var(--bg-elevated);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(12, 10, 9, 0.18);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--text);
}

.btn--telegram {
  padding: 10px 14px;
}

.btn--telegram svg {
  width: 21px;
  height: 21px;
  color: #229ed9;
  flex-shrink: 0;
}

.btn--telegram:hover {
  border-color: #229ed9;
  color: #229ed9;
}

.btn--white {
  background: #fff;
  color: #0c0a09;
}

.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t);
  position: relative;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn:hover,
.icon-btn--only:hover,
.sidebar .close:hover,
.drawer .close:hover,
.cat-dialog .close:hover,
.auth-dlg .nav-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.icon-btn--only {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t);
  flex-shrink: 0;
}

.icon-btn--only svg {
  width: 18px;
  height: 18px;
}

.icon-btn--menu {
  display: none;
}

.footer .theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
  font-family: inherit;
}

.footer .theme-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}


.pwa-bar {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 14px calc(7px + env(safe-area-inset-top, 0px));
  background: var(--brand-800);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .pwa-bar.is-shown {
    display: flex;
  }
}

.pwa-bar .ico {
  display: inline-flex;
  flex-shrink: 0;
}

.pwa-bar .ico img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.pwa-bar .text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.pwa-bar .install {
  flex-shrink: 0;
  min-height: 28px;
  padding: 5px 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-800);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.pwa-bar .install:active {
  background: var(--brand-100);
}

.pwa-bar .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-right: -6px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.pwa-bar .close:active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pwa-bar .close svg {
  width: 15px;
  height: 15px;
}

.push-setting {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.push-setting.is-shown {
  display: flex;
}

.push-setting > .ico {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--brand-600);
}

.push-setting > .ico svg {
  width: 20px;
  height: 20px;
}

.push-setting .txt {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.push-setting .txt strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--text);
}

.push-setting [data-push-state],
.push-setting [data-push-enable],
.push-setting [data-push-disable] {
  display: none;
}

.push-setting[data-state="off"] [data-push-state="off"],
.push-setting[data-state="on"] [data-push-state="on"],
.push-setting[data-state="blocked"] [data-push-state="blocked"] {
  display: block;
}

.push-setting[data-state="off"] [data-push-enable],
.push-setting[data-state="on"] [data-push-disable] {
  display: inline-flex;
}

.pwa-drawer {
  display: none;
  margin-top: auto;
  padding: 14px 16px calc(14px + var(--safe-b));
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.pwa-drawer.is-shown {
  display: block;
}

.pwa-drawer .top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}

.pwa-drawer .ico img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.pwa-drawer .txt {
  min-width: 0;
}

.pwa-drawer strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.pwa-drawer .sub {
  font-size: 11px;
  line-height: 1.2;
  display: block;
  color: var(--text-muted);
}

.pwa-drawer .install {
  width: 100%;
  min-height: 42px;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast);
}

.pwa-drawer .install:active {
  background: var(--brand-600);
}

[data-pwa][data-mode="prompt"] [data-pwa-text="ios"],
[data-pwa][data-mode="ios"] [data-pwa-text="prompt"],
[data-pwa][data-mode="ios"] [data-pwa-install] {
  display: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--t), background var(--t), border-color var(--t);
}

.header.is-stuck {
  box-shadow: 0 6px 24px rgba(12, 10, 9, .07);
  border-bottom-color: transparent;
}

@supports not (backdrop-filter: blur(4px)) {
  .header {
    background: var(--bg-elevated);
  }
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.035em;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 4px;
}

.logo .mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(16, 185, 129, .32);
  transition: transform var(--t);
}

.logo:hover .mark {
  transform: rotate(-6deg) scale(1.05);
}

.logo .text {
  color: var(--text);
}

.header .spacer {
  flex: 1;
}

.header .fav {
  position: relative;
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  flex-shrink: 0;
}

.lang-switch .option {
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--t-fast);
}

.lang-switch .option:hover {
  color: var(--text);
}

.lang-switch .option.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  cursor: no-drop;
}

.header .fav.is-active,
.detail-fav.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

[data-theme="dark"] .header .fav.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.header .fav.is-active svg,
.detail-fav.is-active svg {
  fill: currentColor;
}

.header .fav-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-elevated);
}

.header .fav-badge[hidden] {
  display: none;
}

.search-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.search-section .wrap {
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  height: 56px;
  overflow: visible;
  transition: border-color var(--t), box-shadow var(--t);
  position: relative;
  box-shadow: var(--shadow-xs);
}

.search-bar:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border-strong));
}

.search-bar:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}

.search-bar .query {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 16px;
  min-width: 0;
  height: 100%;
}

.search-bar .query>svg {
  color: var(--text-soft);
  flex-shrink: 0;
}

.search-bar .input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text);
}

.search-bar .input::placeholder {
  color: var(--text-soft);
}

.search-bar .sep {
  width: 1px;
  height: 26px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.search-bar .loc-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.search-bar .loc {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 180px;
  transition: color var(--t);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.search-bar .loc:hover {
  color: var(--brand-700);
}

.search-bar .loc>svg {
  color: var(--brand-600);
  flex-shrink: 0;
}

[data-theme="dark"] .search-bar .loc>svg {
  color: var(--brand);
}

.search-bar .loc-clear {
  width: 30px;
  height: 30px;
  margin-right: 4px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.search-bar .loc-clear:hover,
.detail-fav:hover,
.drawer .leaf:hover {
  background: var(--surface-2);
  color: var(--text);
}

.search-bar .submit {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 26px;
  height: 100%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 0 12px 12px 0;
  flex-shrink: 0;
  transition: background var(--t);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.search-bar .submit:hover {
  background: var(--brand-hover);
}

.loc-panel,
.select .panel,
.profile-dd .menu {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
}

.loc-panel.is-open,
.select.is-open .panel,
.profile-dd.is-open .menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.loc-panel {
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  z-index: 400;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.14s, visibility 0.14s, transform 0.14s;
  transform-origin: top left;
}

.loc-panel.is-open {
  visibility: visible;
}

.loc-panel .item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background var(--t-fast);
}

.loc-panel .item:hover {
  background: var(--surface-hover);
}

.loc-panel .item.is-active {
  border: 1.5px solid var(--brand-600);
  border-radius: 8px;
  margin: 4px 8px;
  width: calc(100% - 16px);
  padding: 10px 12px;
}

[data-theme="dark"] .loc-panel .item.is-active {
  border-color: var(--brand);
}

.loc-panel .item svg {
  color: var(--brand-600);
  flex-shrink: 0;
}

[data-theme="dark"] .loc-panel .item svg {
  color: var(--brand);
}

.loc-panel .item--region {
  justify-content: space-between;
}

.loc-panel .back {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast);
}

.loc-panel .back:hover {
  background: var(--surface-hover);
}

.loc-panel .back svg {
  color: var(--text-muted);
}

.loc-panel .group {
  padding: 8px 16px 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn--post-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--t);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.22);
}

.btn--post-main:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.36);
}

.btn--post-main svg {
  width: 14px;
  height: 14px;
}

.profile-dd {
  position: relative;
  flex-shrink: 0;
}

.profile-dd .trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
  font-family: inherit;
}

.profile-dd .trigger:hover {
  border-color: var(--text);
  background: var(--surface-hover);
}

.profile-dd.is-open .trigger {
  border-color: var(--text);
}

.profile-dd .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--t);
}

.profile-dd .avatar.is-named {
  background: var(--brand);
  color: #fff;
}

.profile-dd .label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-dd .caret {
  color: var(--text-soft);
  transition: transform var(--t);
}

.profile-dd.is-open .caret {
  transform: rotate(180deg);
}

.profile-dd .menu {
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  border-radius: 16px;
  padding: 6px;
  transform: translateY(-8px) scale(0.97);
  transition: opacity var(--t), transform var(--t);
  transform-origin: top right;
  z-index: 200;
}

.profile-dd .user-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 12px;
}

.profile-dd .user-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.profile-dd .user-name {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 1px;
}

.profile-dd .user-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.profile-dd .sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.profile-dd .item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast);
  font-family: inherit;
}

.profile-dd .item:hover {
  background: var(--surface-hover);
}

.profile-dd .item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-dd .item--out {
  color: var(--accent);
}

.profile-dd .item--out svg {
  color: var(--accent);
}

.profile-dd .item--out:hover {
  background: var(--accent-soft);
}

.profile-dd .badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.profile-dd .hint {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 12px 10px;
  line-height: 1.5;
}

.profile-dd form {
  display: block;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  max-width: 280px;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform var(--t-fast), background var(--t-fast);
}

.login-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-600);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-title {
  padding: 56px 0 34px;
  position: relative;
  isolation: isolate;
}

.page-title::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 40% at 16% 46%, color-mix(in srgb, var(--brand) 15%, transparent) 0%, transparent 70%),
    radial-gradient(34% 36% at 84% 34%, color-mix(in srgb, var(--c-6) 11%, transparent) 0%, transparent 70%);
}

.page-title .eyebrow,
.section-kicker {
  display: block;
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.page-title .text {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 720px;
}

.page-title .lead {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 560px;
}

.page-title .text span {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-section {
  padding: 0 0 40px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 74px;
}

.category-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cat, var(--brand));
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity var(--t), transform var(--t);
}

.category-card:hover {
  border-color: color-mix(in srgb, var(--cat, var(--brand)) 34%, var(--border));
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.category-card:hover::after {
  opacity: .5;
  transform: scaleX(1);
}

.category-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t), box-shadow var(--t);
  background: var(--cat-bg, var(--surface-2));
  color: var(--cat, var(--text-muted));
}

.category-card .icon svg {
  width: 20px;
  height: 20px;
}

.category-card:hover .icon {
  transform: scale(1.1);
}

.category-card .body {
  flex: 1;
  min-width: 0;
}

.category-card .name {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card .count {
  font-size: 11.5px;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
}

.cat-1 {
  --cat: var(--c-1);
  --cat-bg: var(--c-1-bg);
}

.cat-2 {
  --cat: var(--c-2);
  --cat-bg: var(--c-2-bg);
}

.cat-3 {
  --cat: var(--c-3);
  --cat-bg: var(--c-3-bg);
}

.cat-4 {
  --cat: var(--c-4);
  --cat-bg: var(--c-4-bg);
}

.cat-5 {
  --cat: var(--c-5);
  --cat-bg: var(--c-5-bg);
}

.cat-6 {
  --cat: var(--c-6);
  --cat-bg: var(--c-6-bg);
}

.cat-7 {
  --cat: var(--c-7);
  --cat-bg: var(--c-7-bg);
}

.cat-8 {
  --cat: var(--c-8);
  --cat-bg: var(--c-8-bg);
}

.cat-9 {
  --cat: var(--c-9);
  --cat-bg: var(--c-9-bg);
}

.cat-10 {
  --cat: var(--c-10);
  --cat-bg: var(--c-10-bg);
}

.cat-11 {
  --cat: var(--c-11);
  --cat-bg: var(--c-11-bg);
}

.cat-12 {
  --cat: var(--c-12);
  --cat-bg: var(--c-12-bg);
}

.banner-section {
  padding: 32px 0 44px;
}

.promo-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 16px;
}

.promo-slot--leaderboard {
  width: 100%;
  object-fit: contain;
  margin-bottom: 18px;
}

.banner-section--detail {
  padding: 0;
}

.promo-slot--rect {
  width: 100%;
  object-fit: contain;
}

.products-section>.container>.promo-slot--leaderboard {
  margin-bottom: 24px;
}

.sidebar .promo-slot--rect {
  margin-top: 4px;
  margin-bottom: 0;
}

.view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  flex-shrink: 0;
}

.view-switch .option {
  width: 32px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.view-switch .option svg {
  width: 16px;
  height: 16px;
}

.view-switch .option:hover {
  color: var(--text);
}

.view-switch .option.is-active,
.segmented .option.is-active,
.curr-switch button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.products.is-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.products.is-list .product {
  flex-direction: row;
}

.products.is-list .media {
  width: 230px;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
}

.products.is-list .body {
  padding: 16px 18px;
  justify-content: center;
}

.products.is-list .title {
  font-size: 15px;
  height: auto;
  max-height: calc(15px * 1.4 * 2);
  order: -1;
  margin-bottom: 8px;
}

.products.is-list .price {
  font-size: 19px;
  margin-bottom: 10px;
}

.products.is-list .meta {
  margin-top: 14px;
}

.side-rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.promo-slot--left {
  width: 100%;
  object-fit: contain;
}

[data-theme="dark"] .detail-fav.is-active {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.promo-slot .label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: .75;
}

.promo-slot .ph {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.promo-slot:has(.adsbygoogle) .ph {
  display: none;
}

.promo-slot.is-live {
  padding: 0;
  border: none;
  background: var(--surface-2);
  display: block;
}

.promo-slot.is-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-slot.is-live .label {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 5px;
  top: 8px;
  left: 8px;
  opacity: .9;
}

.promo-slot .adsbygoogle {
  display: block;
  width: 100%;
  height: 100%;
}

.products-section {
  padding: 0 0 72px;
}

.products-section .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.products-section .head--home {
  margin-bottom: 22px;
}

.products-section .head--home .section-kicker {
  margin-bottom: 4px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--t), gap var(--t);
}

.section-link:hover {
  color: var(--text);
  gap: 11px;
}

.products-section .heading {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.products-section .tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-section .tools .select {
  width: 180px;
}

.results-info {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.1;
  font-weight: 600;
}

.results-info strong {
  color: var(--text);
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  padding: 32px 0 8px;
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: all var(--t);
}

a.pagination__link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.pagination__link.is-active {
  background: var(--text);
  color: var(--bg-elevated);
  font-weight: 700;
}

.pagination__link--nav {
  padding: 0;
  font-size: 20px;
  color: var(--text);
  border-color: var(--border-strong);
}

a.pagination__link--nav:hover {
  border-color: var(--text);
}

.pagination__link--nav.is-disabled {
  color: var(--text-soft);
  border-color: var(--border);
  cursor: default;
}

.pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 40px;
  color: var(--text-soft);
  font-weight: 600;
  user-select: none;
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: flex-start;
}

.products-layout--home {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
}

.products-layout--home:not(:has(.side-rail)) {
  grid-template-columns: minmax(0, 1fr);
}

.products-layout--home .products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}

.sidebar-backdrop.is-show {
  opacity: 1;
  pointer-events: auto;
}

.filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
  font-size: 13.5px;
  transition: all var(--t);
}

.filter-btn:hover {
  border-color: var(--text);
}

.filter-btn svg {
  width: 15px;
  height: 15px;
}

.select {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select .trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: all var(--t);
  cursor: pointer;
  gap: 10px;
}

.select .trigger:hover {
  border-color: var(--border-strong);
}

.select.is-open .trigger {
  border-color: var(--text);
}

.select .value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select .caret {
  width: 15px;
  height: 15px;
  color: var(--text-soft);
  transition: transform var(--t);
}

.select.is-open .caret {
  transform: rotate(180deg);
}

.select .panel {
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border-radius: 13px;
  padding: 5px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  transform: translateY(-6px) scale(0.98);
  transition: opacity var(--t), transform var(--t);
  transform-origin: top center;
}

.select .option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  text-align: left;
  transition: background var(--t-fast);
  color: var(--text);
}

.select .option:hover {
  background: var(--surface-hover);
}

.select .option.is-selected {
  background: var(--text);
  color: var(--bg-elevated);
  font-weight: 600;
}

[data-theme="dark"] .select .option.is-selected {
  background: var(--bg-elevated);
  color: var(--text);
}

.select--multi .trigger {
  padding: 9px 12px;
  font-size: 13px;
}

.select--multi .value.is-placeholder {
  color: var(--text-soft);
}

.select--multi .option {
  gap: 9px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.select--multi .option input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: var(--brand-600);
  cursor: pointer;
}

.select--multi .option.is-selected {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

[data-theme="dark"] .select--multi .option.is-selected {
  background: var(--surface-hover);
  color: var(--brand);
}

.sidebar {
  align-self: stretch;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.sidebar .promo-slot--rect {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.applied[hidden] {
  display: none;
}

.applied .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 13px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t-fast);
}

[data-theme="dark"] .applied .pill {
  color: var(--brand);
}

.applied .pill svg {
  width: 13px;
  height: 13px;
  opacity: .65;
}

.applied .pill:hover {
  background: var(--brand-100);
  border-color: var(--brand);
}

.applied .pill:hover svg {
  opacity: 1;
}

.applied .clear-all {
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.applied .clear-all:hover {
  color: var(--text);
}

.filter-btn .count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-btn .count[hidden] {
  display: none;
}

.sidebar .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar .head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar .head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar .reset {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--t);
}

.sidebar .reset:hover {
  color: var(--text);
}

.sidebar .close {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--text-muted);
}

.filter-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.filter-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
  margin-bottom: 11px;
}

.filter-item .heading {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.cat-filter {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cat-filter .item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.cat-filter .item::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.cat-filter .item .name {
  flex: 1;
  min-width: 0;
}

.cat-filter .item .count {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.cat-filter .item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cat-filter .item.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

.cat-filter .item.is-active::before {
  opacity: 1;
}

.cat-filter .item.is-active .count {
  color: var(--brand-600);
}

[data-theme="dark"] .cat-filter .item.is-active,
[data-theme="dark"] .cat-filter .item.is-active .count {
  color: var(--brand);
}

.cat-filter .item--up {
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 4px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}

.cat-filter .item--up::before {
  display: none;
}

.cat-filter .item--up svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

.cat-filter .item--up:hover {
  color: var(--text);
}

.cat-filter .item[hidden] {
  display: none;
}

.cat-more {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 0 9px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--brand-600);
  cursor: pointer;
  transition: color var(--t-fast);
}

.cat-more[hidden] {
  display: none;
}

.cat-more:hover {
  color: var(--brand-700);
}

[data-theme="dark"] .cat-more,
[data-theme="dark"] .cat-more:hover {
  color: var(--brand);
}

.cat-more .chev {
  width: 13px;
  height: 13px;
  transition: transform var(--t-fast);
}

.cat-more[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.segmented {
  display: flex;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 3px;
}

.segmented .option {
  flex: 1;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 7px;
  transition: all var(--t);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segmented .option:hover {
  color: var(--text);
}

.range {
  position: relative;
  height: 28px;
  margin: 12px 0 16px;
}

.range .track {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 3px;
  background: var(--surface-2);
  border-radius: 2px;
  transform: translateY(-50%);
}

.range .fill {
  position: absolute;
  top: 50%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transform: translateY(-50%);
}

.range .input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range .input::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t);
}

.range .input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range .input::-moz-range-thumb {
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.price-inputs span {
  color: var(--text-soft);
  font-size: 13px;
}

.input-num {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t);
}

.input-num:focus {
  outline: none;
  border-color: var(--text);
}

.products-main {
  min-width: 0;
}

.market-sections {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 16px;
}

.market-sections::-webkit-scrollbar {
  display: none;
}

.market-sections .tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}

.market-sections .tab span {
  color: var(--text-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.market-sections .tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.market-sections .tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.market-sections .tab.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.quota {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 13px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-muted);
}

.quota strong {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.quota .until {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 12.5px;
}

.quota.is-premium {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.quota.is-premium strong {
  color: var(--brand-700);
}

[data-theme="dark"] .quota.is-premium strong {
  color: var(--brand);
}

.quota.is-full {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 11px;
}

.products.similar {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 9px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: fadeUp .4s cubic-bezier(.4, 0, .2, 1) backwards;
  position: relative;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.product:hover,
.product:has(.title a:focus-visible) {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}

.product:has(.title a:focus-visible) {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.product .title a:focus-visible {
  outline: none;
}

.product .media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  overflow: hidden;
}

.product .media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--surface-2) 25%,
      var(--surface-hover) 37%,
      var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.product .media.is-loaded::before {
  display: none;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.product .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: transform var(--t-slow), opacity var(--t);
}

.product .media.is-loaded .img {
  opacity: 1;
}

.product:hover .img {
  transform: scale(1.06);
}

.product .fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.product .fav svg {
  width: 16px;
  height: 16px;
}

.product .fav:hover {
  background: #fff;
  transform: scale(1.08);
}

.product .fav.active {
  color: var(--accent);
}

.product .fav.active svg {
  fill: currentColor;
}

[data-theme="dark"] .product .fav {
  background: rgba(28, 25, 23, 0.85);
  color: var(--text);
}

[data-theme="dark"] .product .fav:hover {
  background: var(--surface);
}

.product .media .cond {
  position: absolute;
  top: 11px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  text-shadow: 0 1px 12px rgba(12, 10, 9);
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2px 8px 3px;
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product .media .cond span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product .media .cond::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product .media .cond--new::before {
  background: var(--brand);
}

.product .media .cond--used::before {
  background: #d6d3d1;
}

.product .body {
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product .price {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.product .price .curr {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.product .price .tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
}

.product .title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(13.5px * 1.4 * 2);
  transition: color var(--t-fast);
}

.product .title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product:hover .title {
  color: var(--brand-700);
}

[data-theme="dark"] .product:hover .title {
  color: var(--brand);
}

.product .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 400;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.product .meta>span:last-child {
  white-space: nowrap;
  font-weight: 300;
  font-size: 10px;
}

.product .location {
  display: flex;
  align-items: center;
  gap: 4px;

}

.product .location svg {
  width: 10px;
  height: 10px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 28px;
  text-align: center;
  margin-top: 32px;
}

.empty .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty .icon svg {
  width: 22px;
  height: 22px;
}

.empty h3 {
  font-size: 19px;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.empty p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cta {
  margin-top: 16px;
  padding: 0 32px;
}

.cta .inner {
  background: var(--text);
  color: var(--bg-elevated);
  border-radius: var(--radius-2xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .cta .inner {
  background: var(--bg-elevated);
  color: var(--text);
}

.cta .inner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 65%);
  top: -150px;
  right: -100px;
}

.cta .text {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.cta .tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.cta .text h2 {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cta .text p {
  opacity: 0.7;
  font-size: 15px;
}

.cta .actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb span {
  color: var(--text-soft);
}

.breadcrumb a span,
.breadcrumb span[itemprop='itemListElement'] {
  color: inherit;
}

.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px;
}

.footer .inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 52px;
  margin-bottom: 44px;
}

.footer .brand {
  max-width: 340px;
}

.logo--footer {
  margin-bottom: 16px;
}

.footer .about {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.65;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast),
    border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--social);
  transition: color var(--t-fast);
}

.social:hover {
  background: var(--social);
  border-color: var(--social);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--social) 34%, transparent);
}

.social:hover svg {
  color: inherit;
}

.social:active {
  transform: none;
  box-shadow: none;
}

.social--tg {
  --social: #229ed9;
}

.social--ig {
  --social: #e4405f;
}

.footer .col h4 {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.footer .col a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 13.5px;
  transition: color var(--t);
}

.footer .col a:hover {
  color: var(--text);
}

.store-btn {
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 11px 15px !important;
  background: var(--surface-2);
  border-radius: 11px;
  margin-bottom: 8px;
  transition: all var(--t);
}

.store-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.store-btn strong {
  font-size: 13px;
  font-weight: 700;
}

.store-btn:hover {
  background: var(--surface-hover);
}

.footer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.footer .bottom>p {
  flex: 1;
}

.footer .links {
  display: flex;
  gap: 22px;
}

.footer .links a:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: var(--bg-elevated);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: all var(--t);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.detail-breadcrumb a {
  transition: color var(--t);
}

.detail-breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb .sep {
  color: var(--text-soft);
}

.breadcrumb svg.sep {
  width: 13px;
  height: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(20px, 3vw, 32px);
  align-items: flex-start;
  margin-bottom: 60px;
}

.detail-layout>* {
  min-width: 0;
}

.detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery .main {
  width: 100%;
  max-height: 450px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  cursor: zoom-in;
}

.gallery .main img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--t);
}

.gallery .main .blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  transform: scale(1.2);
  filter: blur(30px) saturate(1.4);
  opacity: 0.55;
  pointer-events: none;
}

[data-theme="dark"] .gallery .main .blur {
  opacity: 0.42;
}

.gallery .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  z-index: 2;
  border: none;
  cursor: pointer;
}

.gallery .nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.gallery .nav svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}

.gallery .nav--prev {
  left: 14px;
}

.gallery .nav--next {
  right: 14px;
}

[data-theme="dark"] .gallery .nav {
  background: rgba(28, 25, 23, 0.9);
}

.gallery .counter {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.gallery .full {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.gallery .full svg {
  width: 19px;
  height: 19px;
  color: var(--text);
}

.gallery .full:hover {
  background: #fff;
  transform: scale(1.06);
}

[data-theme="dark"] .gallery .full {
  background: rgba(28, 25, 23, 0.9);
}

.share-dd {
  position: relative;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.share-btn svg {
  width: 19px;
  height: 19px;
}

.share-btn:hover,
.share-dd.is-open .share-btn {
  background: var(--surface-2);
  color: var(--text);
}

.share-dd--card .share-btn {
  margin-top: -6px;
}

.gallery {
  position: relative;
}

.share-dd--gallery {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.share-dd--gallery .share-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.share-dd--gallery .share-btn:hover,
.share-dd--gallery.is-open .share-btn {
  background: #fff;
  transform: scale(1.06);
}

[data-theme="dark"] .share-dd--gallery .share-btn {
  background: rgba(28, 25, 23, 0.9);
}

[data-theme="dark"] .share-dd--gallery .share-btn:hover,
[data-theme="dark"] .share-dd--gallery.is-open .share-btn {
  background: var(--surface);
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 208px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity var(--t), transform var(--t);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.share-dd.is-open .share-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.share-menu .item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast);
}

.share-menu .item:hover {
  background: var(--surface-hover);
}

.share-menu .item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.share-menu .item .tg {
  color: #2aabee;
}

.share-menu .item .fb {
  color: #1877f2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(8, 7, 6, 0.94);
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 56px 28px 28px;
  animation: lbIn .18s ease-out;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lbIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox .stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox .img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
}

.lightbox .close svg {
  width: 22px;
  height: 22px;
}

.lightbox .close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
}

.lightbox .nav svg {
  width: 22px;
  height: 22px;
}

.lightbox .nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox .nav--prev {
  left: 20px;
}

.lightbox .nav--next {
  right: 20px;
}

.lightbox .counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}

.detail-info {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-card,
.place-card,
.seller-card,
.detail-description,
.spec-table,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.detail-card {
  padding: 20px 24px;
}

.detail-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-posted {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
}

.detail-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.detail-fav-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.detail-fav-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.detail-fav {
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.detail-fav svg {
  width: 22px;
  height: 22px;
}

.detail-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.1;
}

.detail-price .curr {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.detail-price .tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.detail-actions .btn {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 14px 16px;
  justify-content: center;
  font-size: 15px;
  white-space: normal;
  text-align: center;
}

.detail-actions .btn--telegram {
  flex: 0 0 auto;
  padding: 14px 16px;
  background: #229ed9;
}

.detail-actions .btn--telegram svg {
  fill: #fff;
}

.detail-actions .btn--primary {
  background: var(--brand);
  color: #fff;
}

.detail-actions .btn--primary:hover {
  background: var(--brand-hover);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-soft);
  font-size: 12.5px;
  margin-top: 20px;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-meta-item svg {
  width: 13px;
  height: 13px;
}

.place-card {
  padding: 26px 30px;
}

.place-card h3,
.seller-card .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.place>svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-soft);
}

.place .body {
  min-width: 0;
}

.place .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.place .line {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-soft);
}

.map-embed--place {
  aspect-ratio: 5 / 2;
  margin: 16px 0 0;
}

.map-embed--place #placeMap {
  width: 100%;
  height: 100%;
}

.place-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.place-actions .btn {
  padding: 9px 12px;
  font-size: 13px;
}

.place-actions .btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.seller-card {
  padding: 22px;
}

.seller-card.is-premium {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 120px),
    var(--surface);
}

.seller-card.is-premium::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
}

.seller-banner {
  margin: -22px -22px 16px;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--surface-2);
}

.seller-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.seller .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
  overflow: hidden;
}

.seller .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-card.is-premium .avatar {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--brand) 55%, transparent);
}

.seller .body {
  min-width: 0;
}

.seller .name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.seller .badge {
  width: 14px;
  height: 14px;
  color: var(--brand);
  flex-shrink: 0;
}

.seller .since,
.seller .online {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.seller-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--t-fast);
}

.seller-link svg {
  width: 17px;
  height: 17px;
  color: var(--text-soft);
  transition: transform var(--t-fast);
}

.seller-link:hover {
  color: var(--brand-700);
}

.seller-link:hover svg {
  transform: translateX(3px);
  color: var(--brand-600);
}

[data-theme="dark"] .seller-link:hover {
  color: var(--brand);
}

.bc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.bc-row .detail-breadcrumb {
  padding: 0;
  min-width: 0;
}

.detail-description {
  padding: 28px 30px;
}

.detail-description h3 {
  font-size: 19px;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.detail-description p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
  font-size: 15px;
}

.detail-description p:last-child {
  margin-bottom: 0;
}

.spec-table {
  padding: 26px 30px;
}

.spec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 16px;
}

.spec-table h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.spec-head .listing-id {
  color: var(--text-soft);
  font-size: 12.5px;
  white-space: nowrap;
}

.spec-head .listing-id b {
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.spec-full {
  margin: 21px 0 0;
}

.spec-full .spec-row {
  display: grid;
  grid-template-columns: 1fr 5fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-full .spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.spec-chip {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  min-width: 0;
}

.spec-key,
.spec-val {
  display: block;
  margin: 0;
  letter-spacing: 0.02em;
}

.spec-key {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  font-weight: 300;
}

.spec-val {
  font-weight: 600;
  font-size: 14px;
}

.spec-full .spec-key {
  font-size: inherit;
  white-space: normal;
}

.spec-full .spec-val {
  font-weight: 500;
  margin-top: 0;
}

.spec-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.spec-trail a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px dotted var(--text-soft);
  padding-bottom: 0;
  line-height: 1.5;
}

.spec-trail a:hover {
  color: var(--brand);
  border-color: var(--brand);

}

.spec-trail-sep {
  color: var(--text-soft);
  margin: 0 6px;
  font-weight: 400;
}

.seo-links {
  margin-top: 40px;
  padding: 0;
}

.seo-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-links a {
  display: inline-block;
  padding: 7px 13px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: all var(--t-fast);
}

.seo-links a:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  color: var(--text);
}

.section--tight {
  padding: 34px 0 10px;
}

.section .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section .heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 5px;
}

#attrFields {
  display: grid;
  grid-template-columns: minmax(50%, 0) auto;
  gap: 12px;
}

.field {
  margin-bottom: 14px;
}

.field .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.field .input-wrap {
  position: relative;
}

.field .input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--surface);
  font-size: 14.5px;
  transition: all var(--t);
}

.field .input:focus {
  outline: none;
  border-color: var(--text);
}

.field .input-wrap--icon .input {
  padding-left: 42px;
}

.field .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  width: 17px;
  height: 17px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
}

.remember input {
  accent-color: var(--text);
  width: 15px;
  height: 15px;
}


.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 480;
  height: calc(var(--bottom-nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(12, 10, 9, .06);
}

@supports not (backdrop-filter: blur(4px)) {
  .bottom-nav {
    background: var(--bg-elevated);
  }
}

.bottom-nav .inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: var(--bottom-nav-h);
  max-width: 560px;
  margin: 0 auto;
}

.bottom-nav .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  position: relative;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .item svg {
  width: 21px;
  height: 21px;
  transition: transform var(--t-fast);
}

.bottom-nav .item:active svg {
  transform: scale(.88);
}

.bottom-nav .item.is-active {
  color: var(--brand-600);
}

[data-theme="dark"] .bottom-nav .item.is-active {
  color: var(--brand);
}

.bottom-nav .item.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: currentColor;
}

.bottom-nav .badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-elevated);
}

.bottom-nav .badge[hidden] {
  display: none;
}

.bottom-nav .item--post {
  color: var(--brand-600);
}

[data-theme="dark"] .bottom-nav .item--post {
  color: var(--brand);
}

.bottom-nav .post-icon {
  width: 38px;
  height: 26px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, .34);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.bottom-nav .post-icon svg {
  width: 19px;
  height: 19px;
}

.bottom-nav .item--post:active .post-icon {
  transform: scale(.92);
  box-shadow: 0 1px 5px rgba(16, 185, 129, .3);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(12, 10, 9, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 601;
  width: min(340px, 88vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t) cubic-bezier(.32, .72, 0, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 1;
}

.drawer .close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface-2);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.drawer .close svg {
  width: 18px;
  height: 18px;
}

.drawer .tree,
.drawer .list {
  padding: 6px 10px 24px;
}

.drawer .node {
  border-bottom: 1px solid var(--border);
}

.drawer .node:last-child {
  border-bottom: none;
}

.drawer .node-head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
}

.drawer .leaf-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--cat-bg, var(--surface-2));
  color: var(--cat, var(--text-muted));
}

.drawer .leaf-icon svg {
  width: 17px;
  height: 17px;
}

.drawer .node-name {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer .leaf-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  flex-shrink: 0;
}

.drawer .chev {
  width: 17px;
  height: 17px;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform var(--t);
}

.drawer .node.is-open .chev {
  transform: rotate(180deg);
}

.drawer .node.is-open .node-name {
  color: var(--cat, var(--brand-600));
}

.drawer .node-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}

.drawer .node.is-open .node-body {
  grid-template-rows: 1fr;
}

.drawer .node-inner {
  overflow: hidden;
  min-height: 0;
  padding-left: 43px;
  border-left: 2px solid var(--border);
  margin-left: 21px;
}

.drawer .leaf {
  display: block;
  padding: 9px 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background var(--t-fast), color var(--t-fast);
}

.drawer .leaf--all {
  font-weight: 600;
  color: var(--text);
}

.drawer .node-inner> :last-child {
  margin-bottom: 8px;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 470;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t-fast);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.to-top svg {
  width: 19px;
  height: 19px;
  transform: rotate(-90deg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}


.market-banner {
  padding: 4px 0 26px;
}

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.market-cover {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(90% 150% at 8% -10%, var(--brand-100), transparent 58%),
    radial-gradient(70% 140% at 96% 0%, var(--brand-50), transparent 62%),
    linear-gradient(115deg, var(--brand-50), var(--surface-2) 78%);
}

.market-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding: 26px 24px;
}

.market-body .who {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.market-body .ava {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 4px solid var(--surface);
  background: linear-gradient(150deg, var(--brand), var(--brand-700));
  color: #fff;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.market-body .ava.is-premium {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--surface));
}

.market-body .ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-body .ident {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.market-body .name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.market-body .handle {
  margin-top: 1px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.07em;
}

.market-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  font-size: 12px;
  color: var(--text-soft);
}

.market-meta .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-meta svg {
  width: 13px;
  height: 13px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.market-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding-top: 20px;
}

.market-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.market-phone {
  padding: 11px 22px;
}

.market-phone svg {
  width: 17px;
  height: 17px;
}

.market-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  line-height: normal;
}

.market-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.market-stats .stat svg {
  width: 15px;
  height: 15px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.market-stats .stat strong {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: flex-start;
}

.profile-main {
  min-width: 0;
}

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.profile-card .ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-card .ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card .name {
  font-size: 16px;
  font-weight: 700;
}

.profile-card .since {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
}

.profile-card .menu {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-card .menu .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.profile-card .menu .item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.profile-card .menu .item.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

[data-theme="dark"] .profile-card .menu .item.is-active {
  background: var(--surface-hover);
  color: var(--brand);
}

.profile-card .menu .item svg {
  width: 16px;
  height: 16px;
}

.account-banner {
  position: relative;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(115deg, var(--brand-50), var(--surface-2) 78%);
}

.account-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-photo {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.account-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(150deg, var(--brand), var(--brand-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.account-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-banner .edit-btn,
.account-photo .edit-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg-elevated);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast);
}

.account-banner .edit-btn:hover,
.account-photo .edit-btn:hover {
  transform: scale(1.08);
}

.account-banner .edit-btn {
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
}

.account-banner .edit-btn svg {
  width: 17px;
  height: 17px;
}

.account-photo .edit-btn {
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--surface);
}

.account-photo .edit-btn svg {
  width: 13px;
  height: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--live {
  background: var(--brand-50);
  color: var(--brand-700);
}

[data-theme="dark"] .status-pill--live {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
}

.status-pill--pending {
  background: color-mix(in srgb, var(--c-2) 12%, transparent);
  color: var(--c-2);
}

.status-pill--expired {
  background: var(--surface-2);
  color: var(--text-soft);
}

.status-pill--archived {
  background: var(--surface-2);
  color: var(--text);
}

.archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
}

.archive-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.archive-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.products.is-compact .media {
  width: 96px;
  aspect-ratio: 1 / 1;
}

.products.is-compact .body {
  padding: 10px 14px;
}

.products.is-compact .title {
  font-size: 13.5px;
  margin-bottom: 6px;
}

.products.is-compact .price {
  font-size: 15px;
  margin-bottom: 6px;
}

.product .owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.product .owner-actions form {
  display: flex;
}

.product .owner-actions a,
.product .owner-actions button {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: all var(--t-fast);
}

.product .owner-actions a:hover,
.product .owner-actions button:hover {
  border-color: var(--text);
}

.product .owner-actions .danger {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.product .owner-actions .danger:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.product .owner-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}

.product .owner-actions .icon-btn svg {
  width: 17px;
  height: 17px;
}

.form-page {
  max-width: 820px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.form-page:has(.profile-layout) {
  max-width: 1060px;
}

.form-page-head {
  margin-bottom: 22px;
}

.form-page-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 5px;
}

.form-page-head p {
  font-size: 14px;
  color: var(--text-muted);
}

.form-card {
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.form-card .hint,
.form-actions .hint {
  font-size: 12.5px;
  color: var(--text-soft);
}

.form-card h3+.hint {
  margin: -8px 0 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.field textarea.input {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
  line-height: 1.55;
}

.hint--right {
  text-align: right;
  margin-top: 6px;
}

.input--price {
  padding-right: 118px;
}

.curr-switch {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 2px;
}

.curr-switch button {
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.field .input:disabled {
  background: var(--surface-2);
  opacity: 0.55;
  cursor: not-allowed;
}

.field .input[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: default;
}

.field .input[readonly]:focus {
  border-color: var(--border-strong);
}

.field select.input {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-errors {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.form-errors strong {
  display: block;
  margin-bottom: 3px;
}

.field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--accent);
}

.price-nego {
  padding: 12px 0;
}

.segmented--form {
  max-width: 320px;
}

.segmented--form .option {
  padding: 9px 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.photo-add {
  aspect-ratio: 4/3;
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
}

.photo-add:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  background: var(--brand-50);
}

[data-theme="dark"] .photo-add:hover {
  background: var(--surface-hover);
  color: var(--brand);
}

.photo-add svg {
  width: 20px;
  height: 20px;
}

.photo-add[hidden] {
  display: none;
}

.photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item .remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t);
}

.photo-item .remove:hover {
  background: rgba(12, 10, 9, 0.8);
}

.photo-item .remove svg {
  width: 13px;
  height: 13px;
}

.photo-item .main-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.photo-item .make-main {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast), background var(--t-fast);
}

.photo-item:hover .make-main,
.photo-item .make-main:focus-visible {
  opacity: 1;
}

.photo-item .make-main:hover {
  background: var(--brand-600);
}

.map-embed {
  aspect-ratio: 2 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--surface-2);
  position: relative;
  z-index: 0;
}

.map-embed #map {
  width: 100%;
  height: 100%;
}

.map-embed+.hint {
  margin-bottom: 16px;
}

[data-theme="dark"] .map-embed .leaflet-tile {
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.7);
}

[data-theme="dark"] .map-embed .leaflet-container {
  background: #1c1917;
}

[data-theme="dark"] .map-embed .leaflet-control-attribution {
  background: rgba(28, 25, 23, 0.8);
  color: var(--text-muted);
}

[data-theme="dark"] .map-embed .leaflet-control-attribution a {
  color: var(--text-muted);
}

[data-theme="dark"] .map-embed .leaflet-control-zoom a {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .map-embed .leaflet-control-zoom a:hover {
  background: var(--surface-hover);
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.field-head .label {
  margin-bottom: 0;
}

.locate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
  cursor: pointer;
  transition: color var(--t-fast);
}

.locate:hover {
  color: var(--brand-700);
}

[data-theme="dark"] .locate {
  color: var(--brand);
}

.locate svg {
  width: 14px;
  height: 14px;
}

.cat-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.cat-picker .value.is-placeholder {
  color: var(--text-soft);
}

.cat-picker .caret {
  color: var(--text-soft);
  flex-shrink: 0;
}

.cat-dialog {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(8, 7, 6, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lbIn .18s ease-out;
}

.cat-dialog[hidden] {
  display: none;
}

.cat-dialog .panel {
  width: min(520px, 100%);
  max-height: min(640px, 86vh);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cat-dialog .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.cat-dialog .head h3 {
  font-size: 16px;
  font-weight: 700;
}

.cat-dialog .close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.cat-dialog .close svg {
  width: 16px;
  height: 16px;
}

.cat-dialog .search {
  position: relative;
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
}

.cat-dialog .search svg {
  position: absolute;
  left: 32px;
  top: 13px;
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  pointer-events: none;
}

.cat-dialog .search .input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--surface);
  font-size: 14px;
}

.cat-dialog .search .input:focus {
  outline: none;
  border-color: var(--text);
}

.cat-dialog .list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}

.cat-dialog .row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}

.cat-dialog .row:hover {
  background: var(--surface-hover);
}

.cat-dialog .row .chev {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--text-soft);
  flex-shrink: 0;
}

.cat-dialog .row .ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cat-bg);
  color: var(--cat);
}

.cat-dialog .row .ico svg {
  width: 17px;
  height: 17px;
}

.cat-dialog .row--back {
  font-weight: 700;
}

.cat-dialog .row--back svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cat-dialog .row .crumb {
  color: var(--text-soft);
  font-weight: 400;
}

.cat-dialog .empty {
  padding: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-soft);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.auth-dlg {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 6, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: lbIn .18s ease-out;
}

.auth-dlg[hidden] {
  display: none;
}

.auth-dlg .panel {
  width: min(420px, 100%);
  padding: 22px 26px 26px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.auth-dlg .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-dlg .head h3 {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.auth-dlg .nav-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.auth-dlg .nav-btn svg {
  width: 18px;
  height: 18px;
}

.auth-dlg .nav-btn.back svg {
  transform: rotate(180deg);
}

.auth-dlg .nav-btn.back[hidden] {
  display: block;
  visibility: hidden;
}

.auth-dlg .phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  cursor: text;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.auth-dlg .phone-field:focus-within {
  border-color: var(--brand);
  background: var(--surface);
}

.auth-dlg .phone-field .prefix {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.auth-dlg .phone-field .input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.4px;
}

.auth-dlg .phone-field .input::placeholder {
  color: var(--text-soft);
  font-weight: 500;
}

.auth-dlg .phone-field .input:focus {
  outline: none;
}

.auth-dlg .consent {
  margin: 14px 2px 22px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-soft);
}

.auth-dlg .error {
  margin: 12px 2px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--accent);
}

.auth-dlg .submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.auth-dlg .submit:hover:not(:disabled) {
  background: var(--brand-600);
}

.auth-dlg .submit:disabled {
  background: var(--surface-2);
  color: var(--text-soft);
  cursor: default;
}

.auth-dlg .submit--tg {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  text-decoration: none;
}

.auth-dlg .submit--tg:hover {
  filter: brightness(1.05);
}

.auth-dlg .submit svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.auth-dlg .submit .spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}

.auth-dlg .submit.is-busy .label {
  display: none;
}

.auth-dlg .submit.is-busy .spinner {
  display: block;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-dlg .sent-to {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.auth-dlg .sent-to b {
  display: block;
  margin-top: 2px;
  color: var(--text);
  white-space: nowrap;
}

.auth-dlg .code-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-dlg .code-cell {
  flex: 1;
  min-width: 0;
  height: 58px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--surface-2);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.auth-dlg .code-cell:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}

.auth-dlg .resend {
  display: block;
  width: 100%;
  margin-top: 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  cursor: pointer;
}

.auth-dlg .resend:not(:disabled) {
  color: var(--brand);
}

.auth-dlg .resend:disabled {
  cursor: default;
}

.auth-dlg .resend b {
  font-variant-numeric: tabular-nums;
}

.auth-dlg .step--notice {
  text-align: center;
}

.auth-dlg .notice-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.14);
  color: #229ed9;
}

.auth-dlg .notice-icon svg {
  width: 28px;
  height: 28px;
}

.auth-dlg .notice-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.auth-dlg .notice-hint {
  margin: 10px 0 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.cat-nav {
  position: relative;
  flex-shrink: 0;
}

.cat-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.cat-nav-btn .lead {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.cat-nav-btn .label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-nav-btn .caret {
  width: 13px;
  height: 13px;
  color: var(--text-soft);
  transition: transform var(--t);
}

.cat-nav-btn:hover,
.cat-nav.is-open .cat-nav-btn {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.cat-nav-btn.is-picked {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
  background: var(--brand-50);
}

.cat-nav-btn.is-picked .lead {
  color: var(--brand-600);
}

.cat-nav.is-open .caret {
  transform: rotate(180deg);
}

.cat-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 400;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: min(740px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}

.cat-nav.is-open .cat-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.cat-panel .roots {
  padding: 8px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  max-height: 440px;
  overflow-y: auto;
}

.cat-panel .root {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--t-fast);
}

.cat-panel .root .icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--cat-bg, var(--surface-2));
  color: var(--cat, var(--text-muted));
}

.cat-panel .root .icon svg {
  width: 16px;
  height: 16px;
}

.cat-panel .root .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-panel .root .chev {
  width: 14px;
  height: 14px;
  color: var(--text-soft);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.cat-panel .root:hover,
.cat-panel .root.is-hot {
  background: var(--surface-hover);
}

.cat-panel .root.is-hot .chev {
  opacity: 1;
}

.cat-panel .root.is-active .name {
  color: var(--brand-700);
  font-weight: 700;
}

[data-theme="dark"] .cat-panel .root.is-active .name {
  color: var(--brand);
}

.cat-panel .root--all {
  margin-bottom: 6px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
}

.cat-panel .subs {
  padding: 16px 18px 18px;
  max-height: 440px;
  overflow-y: auto;
}

.cat-panel .sub[hidden] {
  display: none;
}

.cat-panel .sub-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cat-panel .sub-head svg {
  width: 14px;
  height: 14px;
  color: var(--cat, var(--brand));
  transition: transform var(--t-fast);
}

.cat-panel .sub-head:hover svg {
  transform: translateX(3px);
}

.cat-panel .sub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 14px;
}

.cat-panel .leaf {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}

.cat-panel .leaf:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cat-panel .leaf.is-active {
  color: var(--brand-700);
  font-weight: 600;
}

[data-theme="dark"] .cat-panel .leaf.is-active {
  color: var(--brand);
}

.cat-panel .sub-empty {
  font-size: 13px;
  color: var(--text-soft);
}

.in-account {
  gap: 24px;
}

.in-account .profile-card {
  padding: 0 0 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.in-account .profile-card::before {
  content: '';
  display: block;
  height: 72px;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 26%, transparent),
      color-mix(in srgb, var(--c-6) 20%, transparent));
}

.in-account .profile-card .ava {
  width: 78px;
  height: 78px;
  margin: -39px auto 12px;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
}

.in-account .profile-card .name,
.in-account .profile-card .since {
  padding: 0 16px;
}

.in-account .profile-card .name {
  font-size: 16.5px;
  letter-spacing: -0.025em;
}

.in-account .profile-card .since {
  margin-top: 5px;
}

.in-account .profile-card .menu {
  margin: 16px 10px 0;
  padding-top: 14px;
  gap: 3px;
}

.in-account .profile-card .menu .item {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
}

.in-account .profile-card .menu .item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: currentColor;
}

.in-account .products.is-list {
  gap: 10px;
}

.in-account .product {
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  cursor: default;
}

.in-account .product:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.in-account .product .media {
  width: 100px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
}

.in-account .product .media .cond {
  top: 6px;
  left: 6px;
  gap: 4px;
  padding: 1px 7px 2px;
  font-size: 9px;
}

.in-account .product .media .cond::before {
  width: 5px;
  height: 5px;
}

.in-account .product .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title  status"
    "price  status"
    "meta   actions";
  align-content: center;
  row-gap: 3px;
  column-gap: 16px;
  padding: 2px 6px 2px 0;
}

.in-account .product .title {
  grid-area: title;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  height: auto;
  max-height: calc(14.5px * 1.4 * 2);
}

.in-account .product .price {
  grid-area: price;
  margin: 0;
  font-size: 17px;
}

.in-account .product .status-row {
  grid-area: status;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.in-account .product .status-row .status-pill {
  margin: 0;
}

.in-account .product .meta {
  grid-area: meta;
  justify-content: flex-start;
  gap: 14px;
  margin: 10px 0 0;
  padding-top: 0;
  border-top: none;
  font-size: 11.5px;
}

.in-account .product .meta>span:last-child {
  font-size: 11px;
  margin-left: 4px;
}

.in-account .product .owner-actions {
  grid-area: actions;
  position: relative;
  z-index: 2;
  justify-self: end;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
}

.in-account .product .owner-actions a,
.in-account .product .owner-actions button {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  border-color: transparent;
  background: var(--surface-2);
  color: var(--text-muted);
}

.in-account .product .owner-actions .icon-btn {
  padding: 0;
  border-radius: 50%;
}

.in-account .product .owner-actions a:hover,
.in-account .product .owner-actions button:hover {
  background: var(--surface-hover);
  border-color: transparent;
  color: var(--text);
}

.in-account .product .owner-actions .danger {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-color: transparent;
  color: var(--accent);
}

.in-account .product .owner-actions .danger:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: transparent;
  color: var(--accent);
}

.in-account .empty {
  padding: 56px 28px;
}

.in-account .form-card {
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.in-account .account-banner {
  height: 168px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.qr-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 16px;
}

.qr-preview {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 1000 / 1400;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform var(--t-fast);
}

.qr-preview:hover {
  transform: scale(1.02);
}

.qr-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.qr-info .btn {
  margin-top: 6px;
}

.qr-info .btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn--qr {
  padding: 10px 14px;
}

.btn--qr svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .qr-row {
    flex-direction: column;
  }

  .qr-preview {
    width: 140px;
    align-self: center;
  }

  .qr-info .btn {
    align-self: stretch;
    justify-content: center;
  }
}


.order-panel {
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.order-hint {
  margin: -6px 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.order-form .optional {
  color: var(--text-soft);
  font-weight: 500;
}

.order-form .field textarea.input {
  min-height: 92px;
}

.order-submit {
  width: 100%;
  justify-content: center;
}

.order-done {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}

.order-done[hidden] {
  display: none;
}

[data-theme="dark"] .order-done {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

.order-done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.order-done-icon svg {
  width: 20px;
  height: 20px;
}

.order-done-body {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
}

.order-done-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.order-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  transition: all var(--t-fast);
}

.order-link:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}

.order-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-fast);
}

.order-link:hover svg {
  transform: translateX(2px);
}

.order-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  overflow-x: auto;
  background: var(--surface-2);
  border-radius: var(--radius);
  scrollbar-width: none;
}

.order-filter::-webkit-scrollbar {
  display: none;
}

.order-filter__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 13px;
  border-radius: calc(var(--radius) - 4px);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--t-fast);
}

.order-filter__item:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.order-filter__item.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.order-filter__item.is-active:hover {
  background: var(--surface);
}

.order-filter__item strong {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.order-filter__item.is-active strong {
  background: var(--brand);
  color: #fff;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.order-card .thumb {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.order-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card .body {
  position: relative;
  flex: 1;
  min-width: 0;
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.order-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.order-card .order-id,
.order-card .order-time {
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.order-card .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: inline;
}

.order-card .title a:hover {
  color: var(--brand-700);
}

.order-card .price {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.order-card .price .curr {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.order-card .person {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.order-card .person svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-soft);
}

.order-card .person .tel {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 5px;
}

.order-card .order-message {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.order-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.order-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.order-pill--pending {
  background: color-mix(in srgb, var(--c-2) 12%, transparent);
  color: var(--c-2);
}

.order-pill--accepted,
.order-pill--delivery {
  background: var(--brand-50);
  color: var(--brand-700);
}

[data-theme="dark"] .order-pill--accepted,
[data-theme="dark"] .order-pill--delivery {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
}

.order-pill--completed {
  background: var(--surface-2);
  color: var(--text);
}

.order-pill--canceled {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.order-status-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 2;
}

.order-status-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--t-fast);
}

.order-status-trigger:hover,
.order-status-menu.is-open .order-status-trigger {
  border-color: var(--brand);
  color: var(--brand-700);
}

[data-theme="dark"] .order-status-trigger:hover,
[data-theme="dark"] .order-status-menu.is-open .order-status-trigger {
  color: var(--brand);
}

.order-status-trigger .chev {
  width: 13px;
  height: 13px;
  transition: transform var(--t-fast);
}

.order-status-menu.is-open .chev {
  transform: rotate(180deg);
}

.order-status-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--t), transform var(--t);
  z-index: 20;
}

.order-status-menu.is-open .order-status-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.order-status-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.order-status-option:hover {
  background: var(--surface-hover);
}

.order-status-option.danger {
  color: var(--accent);
}

.order-status-option.danger:hover {
  background: var(--accent-soft);
}

.order-page {
  max-width: 640px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.order-track {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.order-track-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.order-track-head .order-time {
  margin-left: auto;
}

.order-track-title,
.order-canceled h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.order-canceled p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: -10px;
}

.order-canceled {
  text-align: center;
  padding: 8px 0 4px;
}

.order-canceled-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

[data-theme="dark"] .order-canceled-icon {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.order-canceled-icon svg {
  width: 24px;
  height: 24px;
}

.order-canceled h1 {
  margin-bottom: 10px;
}

.order-steps {
  display: flex;
  margin-bottom: 20px;
}

.order-step {
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.order-step::marker {
  font-size: 0;
}

.order-step::before {
  content: '';
  position: absolute;
  top: 32px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.order-step:first-child::before {
  display: none;
}

.order-step.is-done::before {
  background: var(--brand);
}

.order-step .dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 63px;
  height: 63px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  color: var(--text-soft);
  transition: all var(--t);
  z-index: 1;
}

.order-step .dot svg {
  width: 27px;
  height: 27px;
}

.order-step.is-done .dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.order-step.is-now .dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}

.order-step.is-done .name {
  color: var(--text);
}

.order-track-hint {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-fast);
}

.order-product:hover {
  border-color: var(--border-strong);
}

.order-product .thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}

.order-product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product .body {
  min-width: 0;
}

.order-product .title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-product .price {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.order-product .price .curr {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.order-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.order-block h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.order-seller {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-seller .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-muted);
}

.order-seller .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-seller .name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.order-seller .since {
  font-size: 12.5px;
  color: var(--text-soft);
}

.order-contacts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.order-contacts .btn--primary {
  flex: 1;
  justify-content: center;
}

@media (max-width: 640px) {
  .order-panel {
    padding: 20px 18px;
  }

  .order-filter {
    margin-left: -2px;
    margin-right: -2px;
  }

  .order-card .thumb {
    width: 72px;
    height: 72px;
  }

  .order-card-head {
    gap: 5px 8px;
  }

  .order-status-trigger {
    min-height: 32px;
    padding: 6px 9px 6px 10px;
  }

  .order-status-panel {
    min-width: 168px;
  }

  .order-track {
    padding: 20px 16px;
  }

  .order-step .name {
    font-size: 10.5px;
  }

  .order-step .dot {
    width: 45px;
    height: 45px;
  }

  .order-step .dot svg {
    width: 21px;
    height: 21px;
  }

  .order-step::before {
    top: 22px;
  }
}


.alert-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.alert-panel .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
}

.alert-panel .ico svg {
  width: 17px;
  height: 17px;
}

.alert-panel .text {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.alert-panel .text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.alert-panel .text span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.alert-toggle {
  flex-shrink: 0;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
}

.alert-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.alert-toggle:disabled {
  opacity: 0.6;
  cursor: default;
}

.alert-panel.is-on {
  border-style: solid;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.alert-panel.is-on .ico {
  background: var(--brand-50);
  color: var(--brand-700);
}

.alert-panel.is-on .alert-toggle {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

.alert-panel.is-on .alert-toggle:hover {
  background: var(--brand-600);
  color: #fff;
}

[data-theme="dark"] .alert-panel.is-on .ico {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
}

[data-theme="dark"] .alert-toggle:hover {
  color: var(--brand);
}

.alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.alert-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
}

[data-theme="dark"] .alert-card .ico {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
}

.alert-card .ico svg {
  width: 18px;
  height: 18px;
}

.alert-card .body {
  flex: 1;
  min-width: 0;
}

.alert-card .title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 5px;
}

.alert-card .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.alert-card .tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.alert-card .time {
  font-size: 12px;
  color: var(--text-soft);
}

.alert-card .actions {
  flex-shrink: 0;
}

.alert-card .icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
  color: var(--accent);
  cursor: pointer;
}

.alert-card .icon-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.alert-card .icon-btn svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 640px) {

  .alert-panel {
    flex-wrap: wrap;
    gap: 0;
  }

  .alert-panel .text {
    padding-left: 12px;
    flex: 1 1 calc(100% - 63px);
    order: 2;
  }
  .alert-panel .text span{
    line-height: 1.3;
    display: block;
    font-size: 11px;
    font-weight: 400;
  }

  .alert-toggle {
    order: 3;
    margin-left: auto;
  }

  .alert-card {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (hover: none) {

  .photo-item .make-main {
    opacity: 1;
  }
}


@media (max-width: 1280px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .side-rail {
    display: none;
  }

  .products-layout--home {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .products-layout--home .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-height: 100vh;
    overflow-y: auto;
    background: var(--surface);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform var(--t);
    padding: 70px 20px 20px;
    border-right: 1px solid var(--border);
  }

  .sidebar .promo-slot--rect {
    position: static;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar .close {
    display: inline-flex;
  }

  .filter-btn {
    display: inline-flex;
  }

  .footer .inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer .brand {
    grid-column: 1 / -1;
    max-width: none;
  }


  .detail-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }

  .detail-main {
    display: contents;
  }

  .banner-section--detail {
    order: 1;
  }

  .gallery {
    order: 2;
  }

  .detail-description {
    order: 3;
  }

  .spec-table {
    order: 4;
  }

  .place-card {
    order: 5;
  }

  .order-panel {
    order: 5;
  }

  .detail-info {
    order: 6;
    position: static;
    width: 100%;
  }

  .cat-nav {
    display: none;
  }
}

@media (max-width: 900px) {

  .lightbox {
    padding: 56px 16px 16px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .in-account .profile-card {
    position: static;
  }
}

@media (max-width: 768px) {

  .market-cover {
    height: 78px;
  }

  .market-body {
    padding: 16px 18px;
    gap: 16px;
  }

  .market-body .who {
    gap: 13px;
  }

  .market-body .ava {
    width: 68px;
    height: 68px;
    font-size: 26px;
    border-width: 3px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg)
  }

  .market-body .ident {
    padding-top: 5px;
  }

  .market-body .name {
    font-size: 19px;
  }

  .market-side {
    width: 100%;
    align-items: stretch;
    gap: 14px;
    padding-top: 2px;
  }

  .market-actions {
    width: 100%;
  }

  .market-actions .btn--telegram {
    flex: 0 0 auto;
  }

  .market-stats {
    gap: 8px 16px;
    justify-content: center;
  }

  .container {
    padding: 0 12px;
  }

  .market-card {
    border-radius: var(--radius-sm);
  }

  .header .fav,
  .header .btn--post-main,
  .header .profile-dd,
  .header .icon-btn--menu {
    display: none;
  }

  .header .inner {
    gap: 8px;
  }

  .header .logo .text {
    display: inline;
  }

  .profile-dd .label {
    display: none;
  }

  .profile-dd .trigger {
    padding: 5px 8px 5px 5px;
    gap: 5px;
  }

  .header .nav {
    display: none;
  }

  .btn--post-main .post-label {
    display: none;
  }

  .btn--post-main {
    padding: 9px 11px;
  }

  .bottom-nav {
    display: block;
  }

  body:has(.bottom-nav) {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-b));
  }

  .to-top {
    right: 14px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 14px);
    width: 40px;
    height: 40px;
  }

  .search-section {
    padding: 12px 0;
  }

  .search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    border-radius: 13px;
  }

  .search-bar .query {
    grid-column: 1 / -1;
    min-height: 50px;
    border-bottom: 1px solid var(--border);
  }

  .search-bar .sep {
    display: none;
  }

  .search-bar .loc-wrap {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    position: static;
  }

  .search-bar .loc {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
  }

  .search-bar .loc span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-bar .loc-clear {
    margin-right: 6px;
    flex-shrink: 0;
  }

  .search-bar .submit {
    grid-column: 2;
    grid-row: 2;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 0 0 11px 0;
  }

  .loc-panel {
    top: calc(100% + 8px);
    width: 100%;
    max-height: min(420px, 65vh);
  }

  .page-title {
    padding: 32px 0 22px;
  }

  .page-title .eyebrow {
    margin-bottom: 7px;
  }

  .page-title .lead {
    font-size: 14px;
    margin-top: 12px;
  }

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

  .category-card {
    padding: 11px 12px;
    gap: 9px;
  }

  .category-card .icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .category-card .icon svg {
    width: 17px;
    height: 17px;
  }

  .banner-section {
    padding: 16px 0 0;
  }

  .promo-slot.is-live .label {
    font-size: 6px;
    padding: 3px 5px;
  }

  .promo-slot {
    border-radius: 2px;
  }

  .products,
  .products.similar {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 11px;
  }

  .products.is-list .media {
    width: 132px;
  }

  .products.is-list .body {
    padding: 12px 14px;
  }

  .products.is-list .title {
    font-size: 13.5px;
    height: calc(13.5px * 1.4 * 2);
  }

  .products.is-list .price {
    font-size: 16px;
  }

  .products.is-list .meta {
    margin-top: 10px;
  }

  .products-layout--home .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product .price {
    font-size: 15px;
  }

  .product .title {
    font-size: 13px;
    height: calc(13px * 1.4 * 2);
  }

  .cta {
    padding: 0 16px;
  }

  .cta .inner {
    padding: 30px 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta .actions {
    justify-content: center;
  }

  .footer {
    padding: 16px;
    margin-top: 52px;
  }

  .footer .inner {
    gap: 26px;
  }

  .footer .inner .col {
    width: 100%;
  }

  .footer .bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer .bottom>p {
    flex: none;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 0;
    font-size: 11px;
    letter-spacing: -0.2px;
    font-weight: 100;
  }

  .detail-breadcrumb>* {
    flex-shrink: 0;
  }

  .detail-breadcrumb> :last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
  }

  .detail-layout {
    gap: 18px;
    margin-bottom: 32px;
  }

  .detail-main,
  .detail-info {
    width: 100%;
    min-width: 0;
  }

  .gallery .main {
    border-radius: 16px;
  }

  .gallery .nav {
    width: 36px;
    height: 36px;
  }

  .gallery .full {
    width: 36px;
    height: 36px;
    right: 10px;
    bottom: 10px;
  }

  .gallery .counter {
    left: 10px;
    bottom: 10px;
  }

  .lightbox {
    padding: 80px 12px calc(88px + var(--safe-b));
  }

  .lightbox .nav {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: -66px;
    transform: none;
    background: rgba(255, 255, 255, 0.16);
  }

  .lightbox .nav:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  .lightbox .nav--prev {
    left: 50%;
    margin-left: -78px;
  }

  .lightbox .nav--next {
    right: 50%;
    margin-right: -78px;
  }

  .lightbox .counter {
    bottom: -52px;
  }

  .detail-card {
    padding: 20px;
  }

  .detail-title {
    font-size: 22px;
  }

  .detail-price {
    font-size: 25px;
  }

  .detail-description,
  .spec-table,
  .place-card {
    padding: 22px;
    border-radius: 16px;
  }

  .sidebar {
    padding-bottom: 81px;
  }
}

@media (max-width: 640px) {

  .in-account .product {
    align-items: flex-start;
    gap: 12px;
  }

  .in-account .product .media {
    width: 92px;
  }

  .in-account .product .body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "price"
      "status"
      "meta"
      "actions";
    row-gap: 4px;
    padding-right: 2px;
  }

  .in-account .product .status-row {
    justify-self: start;
    margin-top: 4px;
  }

  .in-account .product .meta {
    margin-top: 8px;
  }

  .in-account .product .owner-actions {
    justify-self: end;
    margin-top: 10px;
  }

  .seo-links {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
  }

  .seo-links a {
    font-size: 12px;
    padding: 3px 11px;
  }
}

@media (max-width: 620px) {

  .products-section .topbar {
    align-items: stretch;
    gap: 11px;
  }

  .products-section .tools .select {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .detail-page .header .logo .text {
    display: inline !important;
  }

  .pagination {
    padding: 24px 0 4px;
  }

  .pagination__list {
    gap: 4px;
  }

  .pagination__link {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .pagination__gap {
    min-width: 16px;
    height: 36px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .products-section .head--home {
    align-items: flex-end;
  }

  .section-link {
    font-size: 0;
  }

  .section-link .inline-icon {
    width: 20px;
    height: 20px;
  }

  .product .media {
    aspect-ratio: 1 / 1;
  }

  .product .fav {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }

  .product .media .cond {
    top: 8px;
    left: 8px;
  }

  .product .meta {
    font-weight: 300;
  }

  .product .location svg {
    height: 9px;
    width: 9px;
  }

  .search-bar .input {
    font-size: 14px;
  }

  .search-bar .submit {
    padding: 0 17px;
  }

  .search-bar .submit svg {
    display: none;
  }

  .profile-dd .caret {
    display: none;
  }

  .profile-dd .trigger {
    padding-right: 5px;
  }

  .detail-description h3,
  .spec-table h3 {
    font-size: 18px;
  }

  .detail-card {
    padding: 18px;
    border-radius: 16px;
  }

  .detail-title {
    font-size: 20px;
  }

  .detail-price {
    font-size: 23px;
  }

  .detail-actions .btn {
    min-height: 48px;
    padding: 13px 14px;
  }

  .spec-full .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 460px) {
  .auth-dlg {
    padding: 0;
    align-items: flex-end;
  }

  .auth-dlg .panel {
    width: 100%;
    padding: 18px 18px calc(24px + var(--safe-b));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .auth-dlg .code-boxes {
    gap: 6px;
  }

  .auth-dlg .code-cell {
    height: 54px;
    font-size: 20px;
  }
}
