/* ==========================================================
   TeleSmart.uz
   Display: Space Grotesk · Matn: Inter · Raqam: JetBrains Mono
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --amber:    #FFD000;
  --amber-dk: #E5B800;
  --ink:      #101013;
  --ink-2:    #1B1B20;
  --ink-3:    #2A2A31;

  --paper:    #FFFFFF;
  --bg:       #F4F4F2;
  --line:     #E2E2DE;
  --mute:     #6E6E76;
  --mute-2:   #9A9AA2;

  --good:     #12A150;
  --info:     #2563EB;
  --warn:     #D97706;
  --bad:      #DC2626;

  --r:   10px;
  --r-s: 7px;

  --shadow:   0 1px 2px rgba(16,16,19,.05), 0 6px 20px rgba(16,16,19,.06);
  --shadow-h: 0 2px 6px rgba(16,16,19,.07), 0 18px 40px rgba(16,16,19,.11);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --nav-h: 64px;
}

/* ---- Dark ---- */
[data-theme="dark"] {
  --paper:  #17171B;
  --bg:     #0E0E11;
  --line:   #2B2B32;
  --ink:    #F2F2F0;
  --ink-2:  #E4E4E2;
  --ink-3:  #C8C8C6;
  --mute:   #9A9AA4;
  --mute-2: #6E6E78;
  --shadow:   0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  --shadow-h: 0 2px 6px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: background .2s, color .2s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-in {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--amber);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  color: #101013;
}
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: -.5px; color: #fff;
}
.brand-name em { font-style: normal; color: var(--amber); }

/* search */
.search { position: relative; flex: 1; max-width: 400px; }
.search input {
  width: 100%; height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-s);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 14px; outline: none;
  transition: border-color .16s, background .16s;
}
.search input::placeholder { color: rgba(255,255,255,.38); }
.search input:focus { border-color: var(--amber); background: rgba(255,255,255,.1); }
.search .s-ico {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.4); pointer-events: none; font-size: 13px;
}

/* autocomplete dropdown */
.ac {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-h);
  overflow: hidden; z-index: 200; display: none;
}
.ac.on { display: block; }
.ac-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.sel { background: var(--bg); }
.ac-item img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.ac-item b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ac-item small { font-size: 12px; color: var(--mute); }
.ac-item .ac-p { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ac-empty { padding: 16px; text-align: center; font-size: 13px; color: var(--mute); }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--r-s);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.7);
  white-space: nowrap; transition: color .16s, background .16s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.on { color: var(--amber); }

.nav-tools { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.icon-btn {
  position: relative;
  width: 36px; height: 36px; border: none; border-radius: var(--r-s);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  display: grid; place-items: center; cursor: pointer;
  font-size: 15px; transition: background .16s, color .16s;
}
.icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.icon-btn .dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--amber); color: #101013;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  display: none; place-items: center; line-height: 16px;
}
.icon-btn .dot.on { display: grid; }

.burger { display: none; }

.drawer { display: none; }

/* rate strip */
.rate-bar {
  background: var(--ink-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
  font-size: 12px;
}
.rate-in {
  max-width: 1200px; margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.rate-in b { color: var(--amber); font-family: var(--mono); font-weight: 700; }
.rate-in span { display: inline-flex; align-items: center; gap: 6px; }
.rate-in .sep { color: rgba(255,255,255,.18); }

/* ==========================================================
   Hero — qora, sariq marker chizig'i
   ========================================================== */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 68px 20px 76px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero-in { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 22px;
}
.eyebrow i {
  font-style: normal; width: 6px; height: 6px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 0 3px rgba(18,161,80,.2);
}

.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.08; letter-spacing: -1.6px;
  margin-bottom: 16px;
}
/* sariq marker */
.mark {
  position: relative; display: inline-block;
  padding: 0 4px;
}
.mark::before {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 6%; height: 42%;
  background: var(--amber);
  transform: skewX(-9deg) scaleX(0);
  transform-origin: left;
  animation: swipe .55s cubic-bezier(.2,.7,.3,1) .25s forwards;
  z-index: -1;
}
@keyframes swipe { to { transform: skewX(-9deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .mark::before { transform: skewX(-9deg) scaleX(1); animation: none; }
}
.mark span { position: relative; }

.hero p {
  font-size: clamp(14px, 1.7vw, 17px);
  color: rgba(255,255,255,.62);
  max-width: 500px; margin: 0 auto 32px;
}

.hero-form { display: flex; max-width: 540px; margin: 0 auto 34px; gap: 8px; }
.hero-form input {
  flex: 1; height: 52px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 15px; outline: none;
  transition: border-color .16s;
}
.hero-form input::placeholder { color: rgba(255,255,255,.38); }
.hero-form input:focus { border-color: var(--amber); }
.hero-form button {
  height: 52px; padding: 0 26px;
  border: none; border-radius: var(--r);
  background: var(--amber); color: #101013;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .16s, transform .1s;
}
.hero-form button:hover { background: var(--amber-dk); }
.hero-form button:active { transform: translateY(1px); }

.hero-stats {
  display: flex; justify-content: center; gap: 1px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); overflow: hidden;
  max-width: 620px; margin: 0 auto;
  background: rgba(255,255,255,.1);
}
.hstat { flex: 1; background: var(--ink); padding: 14px 10px; }
.hstat b {
  display: block; font-family: var(--mono); font-weight: 700;
  font-size: clamp(18px, 2.6vw, 24px); color: var(--amber);
  line-height: 1.15;
}
.hstat span { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .02em; }

/* ==========================================================
   Brand rail
   ========================================================== */
.rail { background: var(--paper); border-bottom: 1px solid var(--line); }
.rail-in {
  max-width: 1200px; margin: 0 auto; padding: 13px 20px;
  display: flex; gap: 7px; overflow-x: auto;
  scrollbar-width: none;
}
.rail-in::-webkit-scrollbar { display: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 13px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  transition: border-color .16s, background .16s;
}
.tag:hover { border-color: var(--ink); }
.tag.on { background: var(--amber); border-color: var(--amber); color: #101013; font-weight: 600; }
.tag i {
  font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--mute-2);
}
.tag.on i { color: rgba(16,16,19,.55); }

/* ==========================================================
   Sections
   ========================================================== */
.sec { padding: 46px 0; }
.sec.alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 22px; flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 2.6vw, 25px); letter-spacing: -.6px;
}
.sec-head .kicker {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--mute-2); display: block; margin-bottom: 3px;
}
.more { font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.more:hover { color: var(--ink); }

/* ==========================================================
   Card
   ========================================================== */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--ink-3); box-shadow: var(--shadow-h); transform: translateY(-2px); }
.card.sold { opacity: .62; }

.card-media { position: relative; aspect-ratio: 1/1; background: var(--bg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.flags { position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.flag {
  padding: 3px 8px; border-radius: 5px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
  background: var(--ink); color: #fff;
}
.flag.sale { background: var(--bad); }
.flag.pick { background: var(--amber); color: #101013; }
.flag.gone { background: var(--ink); color: #fff; }

/* holat darajasi — batareya chizig'iga o'xshash */
.grade {
  position: absolute; bottom: 9px; left: 9px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 6px; border-radius: 5px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 600;
}
.grade::before {
  content: ''; width: 6px; height: 6px; border-radius: 2px;
}
.g-a::before { background: var(--good); }
.g-b::before { background: var(--info); }
.g-c::before { background: var(--warn); }
.g-d::before { background: var(--mute-2); }

.fav {
  position: absolute; top: 9px; right: 9px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer;
  font-size: 14px; line-height: 1;
  transition: transform .12s, border-color .16s;
  z-index: 2;
}
.fav:hover { transform: scale(1.1); border-color: var(--bad); }
.fav.on { background: var(--bad); border-color: var(--bad); color: #fff; }

.card-body { padding: 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg); color: var(--mute); border: 1px solid var(--line);
}

.price { margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.price-main {
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  letter-spacing: -.5px; display: flex; align-items: baseline; gap: 4px;
}
.price-main s { font-size: 12px; font-weight: 500; color: var(--mute-2); }
.price-cur { font-size: 11px; font-weight: 500; color: var(--mute); }
.price-sub {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  margin-top: 2px; display: flex; align-items: center; gap: 5px;
}
.price-sub em { font-style: normal; color: var(--good); font-weight: 700; }

.card-link { position: absolute; inset: 0; z-index: 1; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-s);
  font-family: var(--display); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, transform .1s, color .16s;
}
.btn:active { transform: translateY(1px); }
.btn-a { background: var(--amber); color: #101013; }
.btn-a:hover { background: var(--amber-dk); }
.btn-b { background: var(--ink); color: #fff; }
.btn-b:hover { background: var(--ink-2); }
.btn-c { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-c:hover { border-color: var(--ink); }
.btn-d { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-d:hover { background: var(--bad); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-w { width: 100%; }

/* ==========================================================
   Catalog
   ========================================================== */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; padding: 28px 0 56px; }

.side {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.side h3 {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center;
}
.side h3 a { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--mute); }
.side h3 a:hover { color: var(--bad); }

.fgroup { margin-bottom: 16px; }
.fgroup > label {
  display: block; font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--mute-2); margin-bottom: 7px;
}
.inp {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--paper); font-size: 13px; outline: none;
  transition: border-color .16s;
}
.inp:focus { border-color: var(--amber); }
select.inp { cursor: pointer; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.f2 .inp { font-family: var(--mono); }

.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; margin-bottom: 9px; }
.switch input { width: 16px; height: 16px; accent-color: var(--amber); cursor: pointer; flex-shrink: 0; }

.cat-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.cat-count { font-size: 13px; color: var(--mute); }
.cat-count b { font-family: var(--mono); color: var(--ink); }
.cat-tools { display: flex; gap: 7px; align-items: center; }
.side-open { display: none; }

/* ==========================================================
   Detail
   ========================================================== */
.crumbs {
  padding: 16px 0; font-size: 12px; color: var(--mute);
  display: flex; gap: 7px; flex-wrap: wrap; align-items: center;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sl { color: var(--mute-2); }

.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; padding-bottom: 56px; }

.shots { position: sticky; top: calc(var(--nav-h) + 16px); }
.shot-main {
  aspect-ratio: 1/1; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: zoom-in; position: relative;
}
.shot-main img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumbs { display: flex; gap: 7px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.shot-thumbs::-webkit-scrollbar { display: none; }
.shot-thumbs img {
  width: 64px; height: 64px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--r-s);
  cursor: pointer; transition: border-color .16s;
  background: var(--bg);
}
.shot-thumbs img:hover { border-color: var(--mute); }
.shot-thumbs img.on { border-color: var(--amber); border-width: 2px; }

.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; margin-bottom: 16px;
}
.panel:last-child { margin-bottom: 0; }

.d-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2.8vw, 27px); line-height: 1.2;
  letter-spacing: -.7px; margin-bottom: 10px;
}
.d-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.d-meta .chip { font-size: 11px; padding: 3px 8px; }

/* narx bloki — SIGNATURE */
.pbox {
  border: 1px solid var(--ink); border-radius: var(--r);
  overflow: hidden; margin-bottom: 18px;
}
.pbox-top {
  background: var(--ink); color: #fff; padding: 16px 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.pbox-uzs {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -1px; line-height: 1;
}
.pbox-uzs em { font-style: normal; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.5); margin-left: 5px; }
.pbox-usd {
  font-family: var(--mono); font-size: 13px; color: var(--amber);
  text-align: right; line-height: 1.4;
}
.pbox-usd s { display: block; color: rgba(255,255,255,.35); font-size: 12px; }
.pbox-old {
  font-family: var(--mono); font-size: 13px;
  color: rgba(255,255,255,.4); text-decoration: line-through;
}
.pbox-save {
  display: inline-block; margin-left: 7px; padding: 2px 6px; border-radius: 4px;
  background: var(--bad); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}

/* muddatli to'lov */
.inst { padding: 14px 18px; background: var(--paper); }
.inst-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--mute-2); margin-bottom: 10px;
}
.inst-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.inst-tab {
  flex: 1; height: 34px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--paper); cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  transition: all .14s;
}
.inst-tab:hover { border-color: var(--ink); }
.inst-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.inst-out {
  font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -.5px;
}
.inst-out span { font-size: 12px; font-weight: 500; color: var(--mute); }
.inst-note { font-size: 11px; color: var(--mute-2); margin-top: 3px; }

.cta { display: grid; gap: 8px; }

/* spec jadval — spec-sheet ko'rinish */
.specs { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec:last-child { border-bottom: none; }
.spec:nth-child(odd) { background: var(--bg); }
.spec dt { color: var(--mute); }
.spec dd { font-family: var(--mono); font-weight: 500; text-align: right; }

/* batareya salomatligi */
.bat { display: flex; align-items: center; gap: 8px; }
.bat-bar {
  width: 54px; height: 7px; border-radius: 4px;
  background: var(--line); overflow: hidden;
}
.bat-fill { height: 100%; border-radius: 4px; }
.bat-hi { background: var(--good); }
.bat-mid { background: var(--warn); }
.bat-lo { background: var(--bad); }

.d-desc { font-size: 14px; color: var(--ink-3); white-space: pre-wrap; line-height: 1.65; }

.h4 {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}

/* sotuvchi */
.seller { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.seller-av {
  width: 42px; height: 42px; border-radius: var(--r-s);
  background: var(--amber); color: #101013;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  flex-shrink: 0;
}
.seller b { display: block; font-size: 14px; font-weight: 600; }
.seller small { font-size: 12px; color: var(--mute); }

/* ==========================================================
   Lightbox
   ========================================================== */
.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,10,12,.94);
  display: none; place-items: center;
  padding: 40px 20px;
}
.lb.on { display: grid; }
.lb img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: var(--r); }
.lb-x {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; font-size: 18px; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; font-size: 18px; cursor: pointer;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ==========================================================
   Modal (buyurtma)
   ========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 320;
  background: rgba(10,10,12,.55); backdrop-filter: blur(3px);
  display: none; place-items: center; padding: 20px;
}
.modal.on { display: grid; }
.modal-box {
  width: 100%; max-width: 400px;
  background: var(--paper); border-radius: var(--r);
  box-shadow: var(--shadow-h);
  padding: 24px;
  max-height: 90vh; overflow-y: auto;
}
.modal-box h3 {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  margin-bottom: 5px;
}
.modal-box > p { font-size: 13px; color: var(--mute); margin-bottom: 18px; }
.fld { margin-bottom: 13px; }
.fld label {
  display: block; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--mute-2); margin-bottom: 5px;
}
.fld .inp { height: 40px; font-size: 14px; }
.fld textarea.inp { height: auto; min-height: 70px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
.modal-act { display: flex; gap: 8px; margin-top: 6px; }
.modal-ok { text-align: center; padding: 20px 0; }
.modal-ok .tick {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--good); color: #fff;
  display: grid; place-items: center; font-size: 24px;
  margin: 0 auto 14px;
}

/* ==========================================================
   Compare
   ========================================================== */
.cmp-scroll { overflow-x: auto; padding-bottom: 8px; }
.cmp {
  border-collapse: collapse; width: 100%; min-width: 640px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.cmp th, .cmp td {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 13px; text-align: left; vertical-align: middle;
}
.cmp th:last-child, .cmp td:last-child { border-right: none; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }
.cmp thead td { background: var(--bg); vertical-align: top; }
.cmp .rowlabel {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--mute-2);
  background: var(--bg); width: 130px; white-space: nowrap;
}
.cmp td.val { font-family: var(--mono); font-weight: 500; }
.cmp td.best { background: color-mix(in srgb, var(--amber) 16%, transparent); font-weight: 700; }
.cmp-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--r-s); margin-bottom: 8px; background: var(--bg);
}
.cmp-card b { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.cmp-x {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 5px; padding: 3px 8px; font-size: 11px; cursor: pointer; color: var(--mute);
}
.cmp-x:hover { border-color: var(--bad); color: var(--bad); }

/* ==========================================================
   Trust strip
   ========================================================== */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trust-i { background: var(--paper); padding: 20px; }
.trust-i .ic { font-size: 20px; margin-bottom: 9px; }
.trust-i b { display: block; font-family: var(--display); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trust-i p { font-size: 13px; color: var(--mute); line-height: 1.5; }

/* ==========================================================
   Empty / pager
   ========================================================== */
.empty { text-align: center; padding: 60px 20px; }
.empty .ic { font-size: 38px; margin-bottom: 12px; opacity: .5; }
.empty h3 { font-family: var(--display); font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.empty p { font-size: 14px; color: var(--mute); margin-bottom: 18px; }

.pager { display: flex; justify-content: center; gap: 5px; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--paper);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.pager a:hover { border-color: var(--ink); }
.pager .cur { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* ==========================================================
   Footer
   ========================================================== */
.foot {
  margin-top: auto;
  background: var(--ink); color: rgba(255,255,255,.55);
  padding: 44px 0 22px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 32px; }
.foot h4 {
  color: #fff; font-family: var(--display); font-size: 13px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: .01em;
}
.foot p { font-size: 13px; line-height: 1.7; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 7px; }
.foot li a, .foot li span { font-size: 13px; }
.foot li a:hover { color: var(--amber); }
.foot .brand { margin-bottom: 12px; }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px;
}
.foot-bot .mono { color: rgba(255,255,255,.4); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: var(--r-s);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-h);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 400;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1040px) {
  .catalog { grid-template-columns: 1fr; }
  .side { display: none; position: static; }
  .side.open { display: block; margin-bottom: 18px; }
  .side-open { display: inline-flex; }
  .detail { grid-template-columns: 1fr; }
  .shots { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .search { display: none; }
  .nav-links { display: none; }
  .burger { display: grid; }

  .drawer {
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: var(--ink); z-index: 99;
    padding: 20px; overflow-y: auto;
    display: none; flex-direction: column; gap: 3px;
  }
  .drawer.open { display: flex; }
  .drawer .dsearch { position: relative; margin-bottom: 14px; }
  .drawer .dsearch input {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-s);
    background: rgba(255,255,255,.06); color: #fff; font-size: 15px; outline: none;
  }
  .drawer .dsearch input::placeholder { color: rgba(255,255,255,.38); }
  .drawer a {
    color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500;
    padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .hero { padding: 46px 20px 52px; }
  .hero-stats { flex-wrap: wrap; }
  .hstat { flex: 1 1 50%; }
  .sec { padding: 32px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .rate-in { font-size: 11px; gap: 10px; }
}

@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 13px; }
  .price-main { font-size: 15px; }
  .hero-form { flex-direction: column; }
  .hero-form button { width: 100%; }
}
