/* Onlayn katalog (/k) - xaridor sayti. Tokenlar zapchast.css bilan bir xil (oq, po'lat-ko'k,
   grafit), shunda do'kon dasturi va sayt bitta brend bo'lib ko'rinadi. Admin app.css ULANMAYDI. */
.kk{
  /* Yorug' (B, «Premium light SaaS») - admin panel bilan bir xil tokenlar */
  --ink:#0B1533; --ink-2:#4A5470; --muted:#6E7790; --muted-2:#A3AABB; --paper:#FFFFFF; --surface:#F3F4F7;
  --line:#E8EAF0; --line-2:#DCE0E8; --accent:#2D5BFF; --accent-ink:#1F45E0; --accent-on:#FFFFFF; --tint:rgba(45,91,255,.1);
  --grafit:#0B1533; --good:#0E9467; --good-bg:#E7F6EF; --warn:#B8680A; --warn-bg:#FFF3DF;
  --radius:10px; --mono:"IBM Plex Mono", ui-monospace, monospace;
  --f:"Onest", system-ui, -apple-system, "Segoe UI", sans-serif; --f-h:var(--f);
  margin:0; background:var(--paper); color:var(--ink);
  font:400 16px/1.5 var(--f); font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; color-scheme:light;
}
@media (prefers-color-scheme:dark){
  /* Qorong'i (A, «Ustaxona / Dark pro») */
  .kk{
    --ink:#EEEAE4; --ink-2:#A9A59E; --muted:#8F8A82; --muted-2:#5E5A54; --paper:#17191C; --surface:#1E2125;
    --line:#2E333A; --line-2:#3A4048; --accent:#FFA62B; --accent-ink:#FFC266; --accent-on:#1D1404; --tint:rgba(255,166,43,.14);
    --grafit:#131517; --good:#5CC98E; --good-bg:rgba(92,201,142,.12); --warn:#FFC266; --warn-bg:rgba(255,166,43,.13);
    --radius:8px; --f:"IBM Plex Sans", system-ui, sans-serif; --f-h:"IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
    color-scheme:dark;
  }
}
.kk *, .kk *::before, .kk *::after{ box-sizing:border-box; }
.kk a{ color:inherit; }
.kk h1, .kk h2, .kk h3{ margin:0; font-family:var(--f-h); font-weight:700; letter-spacing:-.02em; line-height:1.15; }
.kk code{ font-family:var(--mono); }
.kk :focus-visible{ outline:3px solid var(--tint); outline-offset:2px; border-radius:6px; }
.kk-ichi{ width:100%; max-width:1200px; margin:0 auto; padding:0 16px; }
@media (min-width:768px){ .kk-ichi{ padding:0 32px; } }
.kk-ik{ width:1.15em; height:1.15em; flex:none; fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; }

/* --- Shapka --- */
.kk-bosh{ border-bottom:1px solid var(--line); background:var(--paper); position:sticky; top:0; z-index:20; }
.kk-bosh-ichi{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; }
.kk-brend{ display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:800; font-size:18px;
  letter-spacing:-.01em; min-width:0; }
.kk-brend img{ height:36px; width:auto; max-width:120px; object-fit:contain; }
.kk-brend span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kk-tel{ display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:700;
  font-variant-numeric:tabular-nums; padding:9px 14px; border-radius:999px; border:1px solid var(--line);
  white-space:nowrap; }
.kk-tel:hover{ border-color:var(--accent); color:var(--accent); }
.kk-tel .kk-ik{ color:var(--accent); }
@media (max-width:520px){ .kk-tel span{ display:none; } .kk-tel{ padding:10px; } }

/* --- Tugmalar --- */
.kk-tugma{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--accent);
  background:var(--accent); color:var(--accent-on) !important; font:700 15px/1 var(--f); padding:13px 20px; border-radius:var(--radius);
  text-decoration:none; cursor:pointer; white-space:nowrap; }
.kk-tugma:hover{ background:var(--accent-ink); border-color:var(--accent-ink); }
.kk-tugma-oq{ background:var(--paper); color:var(--ink) !important; border-color:var(--line); }
.kk-tugma-oq:hover{ background:var(--surface); border-color:var(--ink-2); }
.kk-tugma-katta{ padding:16px 22px; font-size:16px; }

/* --- Qidiruv maydoni --- */
.kk-izla{ display:flex; align-items:center; gap:0; background:var(--paper); border:2px solid var(--ink);
  border-radius:12px; padding:4px 4px 4px 14px; }
.kk-izla:focus-within{ border-color:var(--accent); box-shadow:0 0 0 4px var(--tint); }
.kk-izla > .kk-ik{ color:var(--muted); width:22px; height:22px; }
.kk-izla input{ flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--ink);
  font:500 17px/1.3 var(--f); padding:12px 10px; }
.kk-izla input::placeholder{ color:var(--muted); }
.kk-izla .kk-tugma{ border-radius:9px; }
.kk-izla-katta input{ font-size:19px; padding:16px 12px; }
.kk-izla-katta .kk-tugma{ padding:16px 26px; font-size:16px; }
@media (max-width:520px){
  .kk-izla-katta input{ font-size:17px; padding:13px 8px; }
  .kk-izla .kk-tugma{ padding:13px 14px; }
}

/* --- Bosh sahifa: qahramon --- */
.kk-qahramon{ padding:44px 0 36px; background:
  linear-gradient(180deg, var(--surface) 0, var(--paper) 100%); border-bottom:1px solid var(--line); }
.kk-qahramon h1{ font-size:clamp(30px, 5vw, 52px); max-width:16ch; }
.kk-lid{ margin:12px 0 24px; color:var(--ink-2); font-size:clamp(16px, 1.6vw, 18px); max-width:56ch; }
.kk-qahramon .kk-izla{ max-width:820px; }
.kk-mashina-blok{ margin-top:28px; max-width:820px; }
.kk-mashina-blok h2{ font-size:15px; font-weight:700; letter-spacing:0; color:var(--ink-2); margin-bottom:10px; }
.kk-malumot{ list-style:none; margin:26px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 22px;
  color:var(--ink-2); font-size:14.5px; }
.kk-malumot li, .kk-malumot a{ display:inline-flex; align-items:center; gap:7px; text-decoration:none; }
.kk-malumot a:hover{ color:var(--accent); }
.kk-malumot .kk-ik{ color:var(--muted); }

/* --- Mashina tanlagichi: davlat raqami plastinasi --- */
.kk-plastina{ display:flex; align-items:stretch; background:var(--paper); border:2px solid var(--ink);
  border-radius:9px; overflow:hidden; }
.kk-plastina-uz{ flex:none; width:54px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; border-right:2px solid var(--ink); font:800 13px/1 var(--f); letter-spacing:.04em; }
.kk-plastina-uz i{ display:block; width:24px; height:15px; border-radius:2px; outline:1px solid rgba(20,24,31,.25);
  background:linear-gradient(180deg, #0099B5 0 31%, #CE1126 31% 34%, #fff 34% 66%, #CE1126 66% 69%, #1EB53A 69% 100%); }
.kk-maydon{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; justify-content:center; padding:7px 12px 6px;
  border-right:1px solid var(--line); position:relative; }
.kk-maydon span{ font-size:11.5px; font-weight:700; color:var(--muted); }
.kk-maydon select{ appearance:none; -webkit-appearance:none; border:0; background:transparent; color:var(--ink);
  font:700 16px/1.3 var(--f); padding:2px 18px 2px 0; width:100%; cursor:pointer; outline:0;
  background-image:linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position:calc(100% - 7px) 55%, calc(100% - 2px) 55%; background-size:5px 5px; background-repeat:no-repeat; }
.kk-maydon:focus-within{ background:var(--tint); }
.kk-maydon-yil{ flex:0 0 130px; }
.kk-plastina .kk-tugma{ border-radius:0; border:0; padding:0 26px; }
@media (max-width:640px){
  .kk-plastina{ display:grid; grid-template-columns:48px 1fr 1fr; }
  .kk-plastina-uz{ grid-row:span 2; width:48px; }
  .kk-maydon{ border-bottom:1px solid var(--line); }
  .kk-maydon:nth-of-type(2){ border-right:0; }
  .kk-maydon-yil{ border-right:1px solid var(--line); }
  .kk-plastina .kk-tugma{ padding:14px; }
}

/* --- Bo'limlar --- */
.kk-bolim{ padding:40px 0; }
.kk-bolim + .kk-bolim{ padding-top:8px; }
.kk-bolim-zich{ padding:28px 0 8px; }
.kk .kk-bolim-sarlavha{ font-size:22px; margin-bottom:16px; }
.kk-bolim-bosh{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.kk-bolim-bosh a{ color:var(--accent); font-weight:700; text-decoration:none; font-size:15px; }
.kk-bolim-bosh a:hover{ text-decoration:underline; }
.kk-bolim-izoh{ margin:-6px 0 18px; color:var(--muted); font-size:14.5px; }
.kk-guruhlar{ display:flex; flex-wrap:wrap; gap:1px; background:var(--line); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; }
.kk-guruh{ flex:1 1 220px; display:flex; flex-direction:column; gap:4px; padding:20px 20px 18px; text-decoration:none;
  background:var(--paper); }
.kk-guruh span{ font-weight:800; font-size:17px; letter-spacing:-.01em; }
.kk-guruh small{ color:var(--muted); font-size:13.5px; }
.kk-guruh:hover{ background:var(--tint); }
.kk-guruh:hover span{ color:var(--accent); }
@media (max-width:520px){ .kk-guruh{ flex-basis:40%; padding:16px 14px; }
  .kk-guruh span{ font-size:15.5px; } }

/* --- Tovar kartochkasi --- */
.kk-tor{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:16px; }
@media (max-width:520px){ .kk-tor{ grid-template-columns:1fr 1fr; gap:10px; } }
.kk-karta{ display:flex; flex-direction:column; text-decoration:none; background:var(--paper);
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.kk-karta:hover{ border-color:var(--ink-2); }
.kk-karta:hover h3{ color:var(--accent); }
.kk-karta-rasm{ aspect-ratio:4/3; background:var(--surface); border-bottom:1px solid var(--line); }
.kk-karta-rasm img, .kk-tovar-rasm img{ width:100%; height:100%; object-fit:contain; display:block; background:#fff; }
.kk-rasmsiz{ height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  color:var(--muted-2); }
.kk-rasmsiz svg{ width:22%; max-width:56px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.kk-rasmsiz span{ font-weight:800; font-size:13px; letter-spacing:.06em; color:var(--muted); }
.kk-karta-tana{ display:flex; flex-direction:column; gap:8px; padding:12px 14px 14px; flex:1; }
.kk-karta h3{ font-size:15.5px; font-weight:700; letter-spacing:-.005em; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kk-karta-past{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.kk-raqam{ display:flex; align-items:center; gap:6px; min-width:0; font-size:12.5px; }
.kk-raqam b{ flex:none; background:var(--grafit); color:#fff; font-weight:800; font-size:11px; letter-spacing:.04em;
  padding:3px 7px; border-radius:4px; }
.kk-raqam code{ color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kk-narx{ font-weight:800; font-size:18px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.kk-narx small{ font-size:.72em; font-weight:600; color:var(--muted); }
.kk-narx-yoq{ font-size:14px; font-weight:700; color:var(--accent); }
.kk-holat{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; white-space:nowrap;
  padding:4px 9px; border-radius:999px; }
.kk-holat::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.kk-holat-bor{ color:var(--good); background:var(--good-bg); }
.kk-holat-kam{ color:var(--warn); background:var(--warn-bg); }
.kk-holat-buyurtma{ color:var(--muted); background:var(--surface); }
@media (max-width:520px){
  .kk-karta-tana{ padding:10px 10px 12px; gap:6px; }
  .kk-karta h3{ font-size:14px; }
  .kk-narx{ font-size:16px; }
  .kk-karta .kk-raqam code{ display:none; }
}

/* --- Qidiruv sahifasi --- */
.kk-qidiruv-bosh{ background:var(--surface); border-bottom:1px solid var(--line); padding:20px 0; }
.kk-qidiruv-bosh .kk-ichi{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
@media (min-width:1000px){ .kk-qidiruv-bosh .kk-ichi{ grid-template-columns:1fr 1.15fr; align-items:stretch; }
  .kk-qidiruv-bosh .kk-izla{ height:100%; } }
.kk-natija{ padding-top:24px; }
.kk-natija-ichi{ display:grid; gap:20px; }
@media (min-width:900px){ .kk-natija-ichi{ grid-template-columns:240px 1fr; gap:32px; align-items:start; } }
.kk-filtr form{ display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; align-items:end; }
.kk-filtr .kk-belgi, .kk-filtr .kk-tozala{ grid-column:1 / -1; }
@media (min-width:900px){
  .kk-filtr{ position:sticky; top:84px; }
  .kk-filtr form{ display:flex; flex-direction:column; align-items:stretch; gap:16px; padding:18px;
    border:1px solid var(--line); border-radius:var(--radius); }
}
.kk-filtr-sarlavha{ font-weight:800; font-size:15px; display:none; }
@media (min-width:900px){ .kk-filtr-sarlavha{ display:block; } }
.kk-filtr-maydon{ display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:700; color:var(--muted); }
.kk-filtr-maydon select{ font:600 15px/1.3 var(--f); color:var(--ink); padding:10px 12px; border:1px solid var(--line);
  border-radius:8px; background:var(--paper); }
.kk-belgi{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px; cursor:pointer; }
.kk-belgi input{ width:18px; height:18px; accent-color:var(--accent); }
.kk-tozala{ color:var(--accent); font-weight:700; font-size:14px; }
.kk-natija-sarlavha{ display:flex; align-items:baseline; justify-content:space-between; gap:6px 16px; flex-wrap:wrap;
  margin-bottom:16px; }
.kk-natija-sarlavha h1{ font-size:clamp(22px, 3vw, 28px); overflow-wrap:anywhere; }
.kk-natija-sarlavha span{ color:var(--muted); font-size:14.5px; }
.kk-sahifalar{ display:flex; align-items:center; justify-content:center; gap:16px; margin-top:28px; color:var(--muted);
  font-size:14.5px; }
.kk-bosh-natija{ border:1px dashed var(--line-2); border-radius:var(--radius); padding:36px 24px; text-align:center; }
.kk-bosh-natija h1, .kk-bosh-natija h2{ font-size:22px; }
.kk-bosh-natija p{ color:var(--ink-2); max-width:52ch; margin:10px auto 20px; }

/* --- Tovar sahifasi --- */
.kk-yol{ display:flex; gap:8px; align-items:center; padding:18px 0 14px; font-size:14px; color:var(--muted); flex-wrap:wrap; }
.kk-yol a{ text-decoration:none; }
.kk-yol a:hover{ color:var(--accent); text-decoration:underline; }
.kk-tovar{ display:grid; gap:24px; }
@media (min-width:860px){ .kk-tovar{ grid-template-columns:minmax(0, 5fr) minmax(0, 6fr); gap:48px; align-items:start; } }
.kk-tovar-rasm{ aspect-ratio:1/1; background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.kk-tovar-rasm .kk-rasmsiz svg{ width:18%; max-width:84px; }
.kk-tovar-rasm .kk-rasmsiz span{ font-size:22px; letter-spacing:.02em; }
.kk-tovar-malumot h1{ font-size:clamp(26px, 3.6vw, 38px); margin:12px 0 20px; max-width:22ch; }
.kk-raqam-katta{ font-size:15px; }
.kk-raqam-katta b{ font-size:12.5px; padding:4px 9px; }
.kk-raqam-katta code{ font-size:15px; font-weight:600; color:var(--ink); }
.kk-narx-blok{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:18px 0; border-top:1px solid var(--line); }
.kk-narx-blok .kk-narx{ font-size:clamp(28px, 3.4vw, 36px); letter-spacing:-.02em; }
.kk-narx-blok .kk-narx-yoq{ font-size:20px; }
.kk-narx-blok .kk-holat{ font-size:14px; padding:6px 12px; }
.kk-izoh{ margin:0 0 20px; color:var(--ink-2); max-width:52ch; }
.kk-amallar{ display:flex; gap:10px; flex-wrap:wrap; }
.kk-amallar .kk-tugma{ flex:1 1 220px; }
.kk-oem{ margin:26px 0 0; padding-top:18px; border-top:1px solid var(--line); display:grid; grid-template-columns:auto 1fr;
  gap:6px 18px; align-items:baseline; }
.kk-oem dt{ font-size:13.5px; font-weight:700; color:var(--muted); }
.kk-oem dd{ margin:0; display:flex; flex-wrap:wrap; gap:6px 14px; }
.kk-oem code{ font-size:15px; font-weight:600; }
.kk-mos{ width:100%; border-collapse:collapse; font-size:15px; }
.kk-mos th{ text-align:left; font-size:13px; font-weight:700; color:var(--muted); padding:0 12px 10px 0;
  border-bottom:2px solid var(--ink); }
.kk-mos td{ padding:12px 12px 12px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.kk-mos td a{ font-weight:700; text-decoration:none; }
.kk-mos td a:hover{ color:var(--accent); text-decoration:underline; }
.kk-yillar{ font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (max-width:520px){ .kk-mos thead th:nth-child(2), .kk-mos td:nth-child(2){ display:none; } }
.kk-pastki-panel{ display:none; }
@media (max-width:640px){
  .kk-pastki-panel{ display:flex; gap:8px; position:fixed; left:0; right:0; bottom:0; z-index:30;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:color-mix(in srgb, var(--paper) 94%, transparent);
    border-top:1px solid var(--line); backdrop-filter:blur(6px); }
  .kk-pastki-panel .kk-tugma{ flex:1; }
  .kk:has(.kk-pastki-panel) .kk-oyoq{ padding-bottom:96px; }
}

/* --- Oyoq --- */
.kk-oyoq{ margin-top:48px; background:var(--grafit); color:#E7EAEE; padding:36px 0 20px; font-size:14.5px; }
.kk-oyoq-ichi{ display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.kk-oyoq-nom{ font-weight:800; font-size:18px; color:#fff; margin-bottom:10px; }
.kk-oyoq p{ display:flex; align-items:center; gap:8px; margin:6px 0; color:#C5CBD3; }
.kk-oyoq-aloqa{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.kk-oyoq-aloqa a{ display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:700; color:#fff; }
.kk-oyoq-aloqa a:hover{ text-decoration:underline; }
.kk-oyoq-aloqa .kk-xodim{ font-weight:500; color:#9AA3AE; font-size:13px; margin-top:6px; }
.kk-oyoq-izoh{ margin-top:24px; padding-top:16px; border-top:1px solid rgba(255,255,255,.12); color:#9AA3AE; font-size:13px; }

@media (prefers-reduced-motion:reduce){ .kk *{ transition:none !important; } }

/* --- Bosh sahifa: raqam qayerda yozilgan (o'ngdagi yorliq) --- */
.kk-qahramon-tor{ display:grid; grid-template-columns:minmax(0,1fr); gap:32px; }
@media (min-width:1000px){ .kk-qahramon-tor{ grid-template-columns:minmax(0, 820px) 1fr; gap:56px; align-items:center; } }
.kk-yorliq{ display:none; }
@media (min-width:1000px){ .kk-yorliq{ display:block; } }
.kk-yorliq-quti{ display:block; text-decoration:none; background:#fff; border:1px solid var(--line); border-radius:6px;
  padding:18px 20px 16px; transform:rotate(-2deg); box-shadow:0 18px 40px -24px rgba(20,24,31,.35); max-width:320px; }
.kk-yorliq-quti:hover{ transform:rotate(0deg); border-color:var(--accent); }
.kk-yorliq-brend{ display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--muted);
  font-weight:600; padding-bottom:10px; border-bottom:1px dashed var(--line-2); }
.kk-yorliq-brend b{ background:var(--grafit); color:#fff; font-size:12px; padding:3px 8px; border-radius:4px; }
.kk-yorliq-raqam{ font-family:var(--mono); font-weight:600; font-size:28px; letter-spacing:.02em; margin:14px 0 4px;
  padding:2px 6px; background:var(--tint); box-shadow:inset 0 -3px 0 var(--accent); display:inline-block; }
.kk-yorliq-nom{ font-size:13.5px; color:var(--ink-2); }
.kk-yorliq-shtrix{ height:34px; margin-top:14px; background:repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px,
  var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity:.85; }
.kk-yorliq p{ margin:22px 0 0; color:var(--ink-2); font-size:14.5px; max-width:34ch; }
@media (prefers-reduced-motion:no-preference){ .kk-yorliq-quti{ transition:transform .25s ease, border-color .25s ease; } }
/* Yorliq - oq qog'oz rasmi: qorong'i mavzuda ham yorug' tokenlar bilan chiziladi. */
.kk-yorliq-quti{ --ink:#0B1533; --ink-2:#4A5470; --muted:#6E7790; --line:#E8EAF0; --line-2:#DCE0E8; --grafit:#0B1533;
  --accent:#2D5BFF; --tint:rgba(45,91,255,.1); color:var(--ink); }
@media (prefers-color-scheme:dark){ .kk-yorliq-quti{ --accent:#E8891A; --tint:rgba(255,166,43,.18); } }
