/* =====================================================================
   DeepGo Marketplace — asosiy uslublar (yangilangan)
   ===================================================================== */

:root {
  --brand:        #1f7a4d;
  --brand-dark:   #16603b;
  --brand-light:  #e8f5ee;
  --accent:       #ff9f1c;
  --verified:     #007ad7;

  --top1:         #e53935;
  --top2:         #fb8c00;
  --top-simple:   #43a047;

  --text:         #1c2024;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --bg:           #f3f5f7;
  --card:         #ffffff;

  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg:    0 8px 24px rgba(16,24,40,.12);
  --max:          1240px;
  --header-h:     64px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 24px;
}

.rang { color: var(--verified); }

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { color: var(--brand-dark); }
.logo i { color: var(--accent); }

.search-form {
  flex: 1;
  display: flex;
  max-width: 560px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,122,77,.12);
}
.search-form input {
  flex: 1;
  border: 0;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  min-width: 0;
  background: transparent;
  color: var(--text);
}
.search-form input::placeholder { color: #9ca3af; }
.search-form button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: background .15s;
}
.search-form button:hover { background: var(--brand-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  font-family: inherit;
  line-height: 1.3;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1c2024; }
.btn-accent:hover { filter: brightness(.95); color: #1c2024; }
.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
}

/* ── Kategoriya paneli (ikonkalar qatori) ─────────────────────────── */
.cat-bar {
  background: linear-gradient(180deg, #fff 0%, #f8faf9 100%);
  border-bottom: 1px solid var(--border);
}
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 5px 0 5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 86px;
  padding: 4px 2px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform .15s ease, color .15s;
}
.cat-tile:hover {
  color: var(--brand-dark);
  transform: translateY(-2px);
}
.cat-tile:hover .cat-icon {
  background: var(--brand-light);
  border-color: rgba(31, 122, 77, .25);
  box-shadow: 0 4px 12px rgba(31, 122, 77, .12);
  color: var(--brand);
}
.cat-tile.active { color: var(--brand-dark); }
.cat-tile.active .cat-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 122, 77, .28);
}
.cat-tile.active .cat-name { font-weight: 700; color: var(--brand-dark); }

.cat-icon {
  width: 45px;
  height: 45px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--brand);
  box-shadow: var(--shadow);
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.cat-name {
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  max-width: 86px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

/* Eski chip (agar qayerda qolgan bo'lsa) */
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.cat-chip:hover { background: var(--brand-light); color: var(--brand-dark); }
.cat-chip.active { background: var(--brand); color: #fff; }

/* ── Bannerlar ─────────────────────────────────────────────────────── */
.banner-strip {
  margin: 18px 0 8px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.banner-strip a { display: block; }
.banner-strip img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── Bo'lim sarlavhasi ─────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 14px;
  flex-wrap: wrap;
}
.section-head h1,
.section-head h2 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.section-head .muted {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Mahsulot to'ri ────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
  position: relative;
  border: 1px solid transparent;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(31,122,77,.12);
}

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef0f3;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.03); }

.top-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.top-badge.top1   { background: var(--top1); }
.top-badge.top2   { background: var(--top2); }
.top-badge.simple { background: var(--top-simple); }

.product-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.product-price .neg {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.product-title {
  font-size: 14px;
  color: var(--text) !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}
.product-title:hover { color: var(--brand) !important; }

.product-meta {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.product-store {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--text-muted) !important;
}
.product-store:hover { color: var(--brand) !important; }
.product-store span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

i.verified {
  color: var(--verified) !important;
  font-size: .95em;
}

/* ── Do'kon kartasi ────────────────────────────────────────────────── */
.store-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: center;
  transition: box-shadow .15s, transform .15s;
  color: inherit;
  border: 1px solid transparent;
}
.store-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  border-color: rgba(31,122,77,.1);
  color: inherit;
}
.store-card strong { color: var(--text); }
.store-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-light);
  flex-shrink: 0;
}

/* ── Do'kon profili ────────────────────────────────────────────────── */
.store-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--brand-light);
  box-shadow: var(--shadow);
}
.store-head {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-top: -50px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.store-head .store-avatar {
  width: 92px;
  height: 92px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.store-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.store-info-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 7px;
}
.store-info-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
}
.store-info-list i {
  width: 16px;
  color: var(--brand);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Mahsulot sahifasi ─────────────────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.gallery {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f0f2f5;
  border-radius: var(--radius-sm);
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery-thumbs img {
  width: 72px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, opacity .15s;
  opacity: .85;
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active {
  border-color: var(--brand);
  opacity: 1;
}

.side-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.side-card h1 {
  font-size: 19px;
  margin: 12px 0 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.big-price {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.2;
}

.info-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.info-block h2,
.info-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-block h2 i,
.info-block h3 i { color: var(--brand); }
.desc-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  color: var(--text);
}

/* Breadcrumb */
nav[aria-label="Breadcrumb"] {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}
nav[aria-label="Breadcrumb"] a { color: var(--text-muted); }
nav[aria-label="Breadcrumb"] a:hover { color: var(--brand); }

/* ── Login devori ──────────────────────────────────────────────────── */
.auth-wall {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  margin: 30px auto;
  max-width: 520px;
}
.auth-wall i.big {
  font-size: 42px;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.auth-wall h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.35;
}

/* ── Formalar ──────────────────────────────────────────────────────── */
.auth-page {
  max-width: 460px;
  margin: 32px auto;
  width: 100%;
}
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.form-card h1 {
  margin: 0 0 6px;
  font-size: 23px;
}
.form-card .sub {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 14px;
}

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,122,77,.12);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-prefix { display: flex; align-items: stretch; }
.input-prefix .prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}
.input-prefix input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-google:hover { background: #f9fafb; color: var(--text); }
.btn-google i { color: #ea4335; font-size: 17px; }

/* ── Alert ─────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.alert-success { background: #e7f6ec; color: #16603b; }
.alert-error   { background: #fdeaea; color: #a4262c; }
.alert-warning { background: #fff5e0; color: #8a5a00; }
.alert-info    { background: #e8f1fd; color: #1b4b8f; }

/* ── Jadval ────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
table.data th {
  text-align: left;
  padding: 12px 14px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fcfcfd; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green  { background: #e7f6ec; color: #1b6b3f; }
.badge-yellow { background: #fff5e0; color: #8a5a00; }
.badge-red    { background: #fdeaea; color: #a4262c; }
.badge-gray   { background: #eef0f3; color: #4b5563; }
.badge-blue   { background: #e8f1fd; color: #1b4b8f; }

/* ── Statistik kartalar ────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stat-card .value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}
.stat-card .icon {
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 8px;
}

/* ── Sahifalash ────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 26px 0;
  flex-wrap: wrap;
}
.pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s, color .15s, background .15s;
}
.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.pagination a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pagination .dots {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--text-muted);
}

/* ── Bo'sh holat ───────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty i {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .45;
  display: block;
}
.empty h1, .empty h2 {
  margin: 8px 0;
  color: var(--text);
  font-size: 1.25rem;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: #1c2024;
  color: #b8bec7;
  margin-top: auto;
  padding: 34px 0 22px;
  font-size: 14px;
  flex-shrink: 0;
}
.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 12px;
}
.site-footer a { color: #b8bec7; }
.site-footer a:hover { color: #fff; }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid #2e343b;
  margin-top: 26px;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #8b939d;
}

/* ── Panel maketi ──────────────────────────────────────────────────── */
.panel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.panel-side {
  background: #1c2024;
  color: #cbd2da;
  padding: 18px 0;
}
.panel-side .brand {
  padding: 0 18px 18px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-side nav { display: flex; flex-direction: column; }
.panel-side nav a {
  padding: 11px 18px;
  color: #cbd2da;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s;
}
.panel-side nav a:hover { background: #262c33; color: #fff; }
.panel-side nav a.active {
  background: #262c33;
  color: #fff;
  border-left-color: var(--accent);
}
.panel-side nav a i { width: 17px; text-align: center; }
.panel-side .side-sep {
  margin: 12px 18px;
  height: 1px;
  background: #2e343b;
}

.panel-main {
  padding: 22px;
  min-width: 0;
  background: var(--bg);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-head h1 { margin: 0; font-size: 22px; }

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

/* ── TOP tanlash kartalari ─────────────────────────────────────────── */
.top-options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.top-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.top-option:hover { border-color: var(--brand); }
.top-option input { display: none; }
.top-option input:checked + .top-option-body { color: var(--brand-dark); }
.top-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-light);
}
.top-option .tname { font-weight: 800; font-size: 17px; margin-bottom: 3px; }
.top-option .tprice { font-size: 21px; font-weight: 800; margin: 6px 0 2px; }
.top-option .tdays { font-size: 13px; color: var(--text-muted); }

/* ── Yordamchi ─────────────────────────────────────────────────────── */
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }

/* ── Responsiv ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; }
  .panel-layout { grid-template-columns: 200px 1fr; }
  .banner-strip img { max-height: 220px; }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-form {
    order: 3;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 9px 12px; min-width: 42px; }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .product-price { font-size: 15px; }
  .product-title { font-size: 13px; }

  .store-banner { height: 140px; }
  .store-head {
    margin-top: -34px;
    padding: 16px;
  }
  .store-head .store-avatar { width: 68px; height: 68px; }
  .store-head h1 { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; }

  .section-head h1,
  .section-head h2 { font-size: 1.1rem; }

  .big-price { font-size: 24px; }
  .side-card { padding: 14px; }

  .panel-layout { grid-template-columns: 1fr; }
  .panel-side {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 240px;
    z-index: 200;
    transition: left .2s;
    overflow-y: auto;
  }
  .panel-side.open { left: 0; }
  .burger { display: inline-flex; }
  .panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 199;
  }
  .panel-overlay.show { display: block; }
  .panel-main { padding: 14px; }

  .auth-page { margin: 20px auto; }
  .banner-strip { margin: 12px 0 4px; }
  .banner-strip img { max-height: 160px; }
}

@media (max-width: 480px) {
  .container { padding: 10px 12px; }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-body { padding: 9px 10px 11px; }
  .product-title { font-size: 13px; }
  .product-price { font-size: 14px; }
  .big-price { font-size: 22px; }
  .form-card { padding: 20px 16px; }
  .cat-tile { width: 72px; gap: 6px; }
  .cat-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
  .cat-name { font-size: 11px; max-width: 72px; }
  .cat-scroll { gap: 4px; padding: 12px 0 14px; }
  .logo { font-size: 19px; }
  .store-card { padding: 12px; }
  .store-avatar { width: 48px; height: 48px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cat-bar, .header-actions { display: none; }
  body { background: #fff; }
  .product-card, .side-card, .info-block { box-shadow: none; border: 1px solid #ddd; }
}


/* ── Matbuot (post.php) ────────────────────────────────────────────── */
.press-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}
.press-title {
  font-size: 1.6rem;
  margin: 0 0 16px;
  line-height: 1.3;
}
.press-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  background: #eef0f3;
}
.press-body {
  font-size: 15px;
  line-height: 1.7;
}
.press-body a { text-decoration: underline; }
.press-body img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.press-body h2, .press-body h3 { margin: 1.2em 0 0.5em; }
.press-list { display: grid; gap: 14px; }
.press-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.press-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  color: inherit;
}
.press-card-img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  background: #eef0f3;
}
.press-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 28px;
}
.press-card-body { padding: 12px 14px 12px 0; min-width: 0; }
.press-card-body h2 {
  font-size: 16px;
  margin: 6px 0;
  line-height: 1.35;
  color: var(--text);
}
.press-card-body p {
  margin: 0 0 6px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .press-layout { grid-template-columns: 1fr; }
  .press-card { grid-template-columns: 100px 1fr; }
  .press-card-img { width: 100px; height: 90px; }
  .press-title { font-size: 1.3rem; }
}