/* LIFESPORT do'koni: mobil birinchi, brend ranglari - qora va oq */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --line: #e5e5e5;
  --tile: #f4f4f4;
  --accent: #111111;
  --accent-ink: #000000;
  --accent-deep: #333333;
  --low: #a14b06;
  --low-bg: #fff3e6;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
main { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* shapka */
.top { position: sticky; top: 0; z-index: 5; background: #000; color: #fff; padding: 10px 16px 12px; }
.top-row, .search { max-width: 1120px; margin: 0 auto; }
.top-row { display: flex; align-items: center; justify-content: space-between; }
/* logotip: belgi + LIFE + SPORT / HAYOT / QUVVATI (rasmiy logotip ko'rinishida) */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-word { font: 400 42px/.9 "Lilita One", var(--display); letter-spacing: .02em; }
.logo-tag { display: flex; flex-direction: column; font: 700 10.5px/1.15 "Montserrat", system-ui, sans-serif; letter-spacing: .04em; }
.staff { font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 12px; border: 1px solid #fff; border-radius: 999px; color: #fff; }
.search { display: flex; gap: 8px; }
.top-row + .search { margin-top: 10px; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px;
  border: 1px solid #fff; border-radius: 10px; background: #fff; color: var(--ink);
}
.search input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.search button { font: inherit; font-weight: 700; border: 1px solid #fff; border-radius: 10px; padding: 0 16px; background: #000; color: #fff; cursor: pointer; }
.search button:hover { background: #fff; color: #000; }

/* kategoriyalar va brendlar: yonga suriladigan qator */
.chips, .brands { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 14px 16px 2px; }
.chips::-webkit-scrollbar, .brands::-webkit-scrollbar { display: none; }
.chip {
  flex: none; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px;
  border-radius: 999px; background: var(--tile); color: var(--ink);
}
.chip.on { background: var(--ink); color: #fff; }
.brands { padding-top: 4px; }
.brand { flex: none; text-decoration: none; font-size: 14px; color: var(--muted); padding: 4px 2px; border-bottom: 2px solid transparent; }
.brand.on { color: var(--ink); border-color: var(--accent); }
.count { font-size: 12px; color: var(--muted); margin-left: 2px; }

.crumbs { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.crumbs a { color: var(--muted); }
.heading { font: italic 800 34px/1.05 var(--display); margin: 18px 0 2px; letter-spacing: .005em; }

/* mahsulotlar to'ri */
.grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-img { display: block; aspect-ratio: 1; background: var(--tile); border-radius: 8px; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card-brand { font-size: 10px; color: var(--muted); margin-top: 4px; }
.card-name { font-size: 11px; line-height: 1.25; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.card-foot { margin-top: auto; padding-top: 3px; font-size: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.price { font: italic 700 21px/1 var(--display); letter-spacing: .01em; }
.card a:hover .card-name { text-decoration: underline; text-underline-offset: 2px; }

.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 6px; margin: 0; }
.badge.ok { background: #111; color: #fff; }
.badge.low { background: var(--low-bg); color: var(--low); }
.badge.none { background: var(--tile); color: var(--muted); font-size: 15px; padding: 8px 12px; }

/* tugagan mahsulot: qizil, biroz burilgan, yarim shaffof "TUGADI" muhri surat ustida */
.card-img, .gallery-wrap { position: relative; }
.stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);
  border: 3px solid #c81e1e; color: #c81e1e; background: rgba(255, 255, 255, .6); border-radius: 8px;
  padding: 4px 12px; font: italic 800 24px/1 var(--display); letter-spacing: .1em; opacity: .9;
  pointer-events: none; white-space: nowrap;
}
.stamp.big { font-size: 44px; border-width: 4px; padding: 6px 18px; }
.out .card-img img, .out .shot img { filter: grayscale(.7); opacity: .6; }
.out .price, .out .info-price { color: var(--muted); }

.pager { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 0; font-size: 15px; }
.pager a { font-weight: 600; text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; }
.empty { margin: 32px 0; color: var(--muted); }
.empty a { color: var(--accent-ink); font-weight: 600; }

/* mahsulot sahifasi. Telefonda: surat (kichik), nom, variantlar, narx, sotib olish, jadval, tavsif;
   kompyuterda: chapda surat + tavsif, o'ngda nom, variantlar, narx, sotib olish */
.product { margin-top: 12px; display: flex; flex-direction: column; }
.pcol-left, .pcol-right { display: contents; }
.gallery-wrap { order: 1; }
.gallery-hint { order: 2; text-align: left; }
.info { order: 3; }
.vlist { order: 4; }
.desc { order: 5; }
/* telefonda surat kichik (eni ~55vw, bo'yi ~45vh), chapdan boshlanadi, keyingisi o'ngda ko'rinib turadi */
.gallery {
  --shot: min(55vw, 45vh);
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0;
  padding: 0; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 var(--shot); width: var(--shot); height: var(--shot); margin: 0; scroll-snap-align: start; background: var(--tile); border-radius: 16px; padding: 0; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: contain; }
.gallery-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.info { margin-top: 16px; }
.info-brand { font-size: 15px; color: var(--muted); text-decoration: none; }
.info-name { font-size: 24px; line-height: 1.2; margin: 2px 0 10px; font-weight: 700; }
.facts { display: flex; gap: 24px; margin: 0 0 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.info-price { font: italic 800 40px/1 var(--display); margin: 0 0 10px; }
.buy { margin-top: 18px; }
.buy-btn {
  display: block; text-align: center; text-decoration: none; font-size: 18px; font-weight: 700;
  padding: 15px; border-radius: 12px; background: var(--accent-ink); color: #fff;
}
.buy-btn:hover { background: var(--accent-deep); }
.buy-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.buy-note a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.desc { margin-top: 28px; max-width: 68ch; }
.desc h2, .related h2 { font-size: 18px; margin: 0 0 8px; }
/* tavsif: AI tuzilmasi - kirish, "Afzalliklari:" ro'yxati, qabul qilish, tarkib */
.desc-text p { margin: 0 0 8px; }
.desc-h { font-size: 15px; font-weight: 700; margin: 14px 0 4px; }
.desc-list { margin: 0 0 8px; padding-left: 20px; }
.desc-list li { margin: 2px 0; }
.desc-text.clamp { max-height: 12em; overflow: hidden; position: relative; }
.desc-text.clamp::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--bg)); pointer-events: none;
}
.desc-toggle:checked ~ .desc-text.clamp { max-height: none; }
.desc-toggle:checked ~ .desc-text.clamp::after { display: none; }
.desc-more { display: inline-block; margin-top: 6px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.desc-more .less, .desc-toggle:checked ~ .desc-more .more { display: none; }
.desc-toggle:checked ~ .desc-more .less { display: inline; }
.desc-toggle:focus-visible ~ .desc-more { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Tavsif | Xususiyatlar: radio tugmali tablar (JS siz, klaviatura - strelkalar) */
.desc { position: relative; }
.tab-labels { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.tab-labels label {
  cursor: pointer; font-size: 17px; font-weight: 700; color: var(--muted);
  padding: 8px 0; margin-bottom: -1px; border-bottom: 2px solid transparent;
}
.ptabs .tab-panel { display: none; }
#tab-desc:checked ~ .panel-desc, #tab-spec:checked ~ .panel-spec { display: block; }
#tab-desc:checked ~ .tab-labels [for="tab-desc"], #tab-spec:checked ~ .tab-labels [for="tab-spec"] { color: var(--ink); border-color: var(--ink); }
#tab-desc:focus-visible ~ .tab-labels [for="tab-desc"], #tab-spec:focus-visible ~ .tab-labels [for="tab-spec"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th { text-align: left; font-weight: 400; color: var(--muted); padding: 8px 12px 8px 0; width: 45%; vertical-align: top; }
.specs td { padding: 8px 0; font-weight: 600; overflow-wrap: anywhere; }
.specs tr + tr th, .specs tr + tr td { border-top: 1px solid var(--line); }
.ru { margin-top: 12px; }
.ru summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.ru .desc-text { margin-top: 8px; }
.related { margin-top: 36px; }

/* variantlar: hajm / ta'm tanlash va jadval */
.variants { margin: 0 0 12px; }
.variants-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip {
  display: inline-block; min-height: 40px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3;
}
.vchip.on { border-color: var(--accent-ink); background: var(--accent-ink); color: #fff; }
.vchip.off { color: var(--muted); text-decoration: line-through; opacity: .6; }
.vchip.on.off { color: #fff; }
.vlist { margin-top: 24px; }
.vlist h2 { font-size: 18px; margin: 0 0 8px; }
.vtable-wrap { overflow-x: auto; }
.vtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.vtable th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px 6px 0; }
.vtable td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.vtable td small { display: block; color: var(--muted); font-size: 12px; }
.vtable tr.cur td { font-weight: 700; }
.vtable tr.out-row td { color: var(--muted); }
.vtable a { color: var(--accent-ink); font-weight: 600; }

.foot { border-top: 1px solid var(--line); padding: 20px 16px 28px; font-size: 14px; color: var(--muted); max-width: 1120px; margin: 0 auto; }
.foot p { margin: 0 0 6px; }
.foot-logo { width: 220px; height: auto; border-radius: 8px; margin: 0 0 14px; }
.foot a { color: var(--ink); }
.foot-staff { font-size: 13px; color: var(--muted) !important; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 10px; }
  .heading { font-size: 42px; }
}
@media (min-width: 900px) {
  .top { padding: 14px 24px; }
  .search { max-width: 1120px; }
  .search input { max-width: 560px; }
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .pcol-left, .pcol-right { display: block; min-width: 0; }
  .gallery { padding: 0; }
  .shot { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; padding: 0; }
  .gallery-hint { text-align: left; }
  .info { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) { .gallery { scroll-behavior: smooth; } }

.tg { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; color: #229ED9 !important; margin-right: 6px; }
.tg svg { flex: none; }

/* kichik kartochkalar: bir ekranda ko'proq mahsulot */
.card .price { font-size: 13px; }
.card .badge { font-size: 9px; padding: 1px 5px; border-radius: 4px; }
.card .stamp { font-size: 11px; padding: 2px 5px; border-width: 2px; }

/* qidiruv oldidagi "bosh sahifa" tugmasi: logotip belgisi, oq doira */
.home-btn { flex: none; width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.home-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ishonch qatori, eski narx va chegirma, yetkazib berish */
.trust { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; }
.price-row .info-price { margin: 0; }
.old-price { color: #767676; font-size: 17px; }
.sale { display: inline-block; background: #000; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; padding: 2px 8px; border-radius: 6px; }
.card .sale { font-size: 9px; padding: 1px 4px; border-radius: 4px; }
.delivery { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.delivery li { padding: 9px 0; border-top: 1px solid var(--line); }
.delivery li:last-child { border-bottom: 1px solid var(--line); }

/* telefonda pastki "Sotib olish" paneli (faqat qoldig'i bor mahsulot sahifasida) */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.buybar-price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.buybar-price .price { font-size: 24px; white-space: nowrap; }
.buybar-price .old-price { font-size: 13px; }
.buybar-call {
  flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); border-radius: 12px; color: var(--ink);
}
.buybar-btn {
  flex: none; text-decoration: none; font-size: 17px; font-weight: 700; padding: 13px 22px;
  border-radius: 12px; background: #000; color: #fff;
}
.buybar-btn:hover { background: var(--accent-deep); }
.has-buybar .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .buybar { display: none; }
  .has-buybar .foot { padding-bottom: 28px; }
}

/* xodim kirgan bo'lsa: mahsulotni do'kondan olib tashlash (arxivga) */
.staff-remove { margin: 6px 0 10px; }
.staff-remove button { font: 600 13px/1 inherit; padding: 8px 12px; border: 1px solid #b91c1c; border-radius: 8px; background: #fff; color: #b91c1c; cursor: pointer; }

/* srok: faqat mahsulot sahifasida (egasi: katalog kartochkasida emas) */
.exp { font-size: 14px; margin: 6px 0; }

/* galereya strelkalari (mahsulot sahifasi) */
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #e5e5e5; background: rgba(255,255,255,.92); color: #000; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.gal-nav[hidden] { display: none; }
.gal-nav.prev { left: 6px; }
.gal-nav.next { right: 6px; }
.gal-nav:active { transform: translateY(-50%) scale(.94); }

/* kompyuterda surat ustida sichqoncha - o'sha joy yaqinlashadi */
.shot.zoomable { cursor: zoom-in; }
.shot.zoomable img { transition: transform .15s ease-out; will-change: transform; }

/* qidiruv qatoridagi qizil kvadrat "%" - chegirmalar sahifasi */
.deals { flex: none; width: 46px; height: 46px; border-radius: 10px; background: #e11d1d; color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 900; font-size: 24px; line-height: 1; text-decoration: none; }
.deals:hover, .deals:focus-visible { background: #c01414; }

/* qidiruv qatoridagi tanlagichlar: kategoriya, brend, tartib (egasi 2026-11-02) */
.search { flex-wrap: wrap; }
.filters { flex: 1 0 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.filters select { width: 100%; height: 42px; padding: 0 30px 0 12px; border: 1px solid #3a3a3a; border-radius: 10px; background-color: #151515;
  color: #fff; font: inherit; font-size: 14px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.filters select:focus { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 520px) { .filters select { font-size: 13px; padding-left: 8px; padding-right: 24px; background-position: right 8px center; } }
