/* =============================================================
   GLOBUS APTEKA — Uslublar (Styles)
   Yashil + oq apteka mavzusi · mobilga moslashgan · animatsiyali
   ============================================================= */

/* ---------- Dizayn o'zgaruvchilari (theme) ---------- */
:root {
  /* Brend ranglari — logotipга уйғун: KO'K (asosiy) + TO'Q SARIQ (urg'u).
     Eslatma: o'zgaruvchilar --brand-* (ko'k) va --accent-* (orange). */
  --brand-50: #eef3fd;
  --brand-100: #dce7fb;
  --brand-200: #bccdf5;
  --brand-300: #93b0ee;
  --brand-400: #5c82db;
  --brand-500: #3358c6;
  --brand-600: #2743a8;   /* asosiy ko'k (tugmalar, urg'u) */
  --brand-700: #1d3488;
  --brand-800: #15265f;   /* to'q navy */

  --accent-50: #fef3ea;
  --accent-100: #fbdcc4;
  --accent-200: #f7bd90;
  --accent-500: #ef6c1a;
  --accent-600: #e2571a;  /* brend to'q sariq */
  --accent-700: #c2470f;

  --ink: #12224e;
  --text: #1f2a44;
  --muted: #64708a;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-soft: #f3f7fd;
  --bg-soft2: #e9f1fb;

  --danger: #e11d48;
  --amber: #f59e0b;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 18px 40px rgba(21, 38, 95, 0.16), 0 6px 16px rgba(16, 24, 40, 0.08);
  --shadow-brand: 0 10px 24px rgba(39, 67, 168, 0.28);
  --shadow-accent: 0 10px 24px rgba(226, 87, 26, 0.30);

  --header-h: 68px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
svg { width: 1.25em; height: 1.25em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Tipografiya ---------- */
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-700); background: var(--brand-50);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px;
}

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.98rem; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); }
.btn-accent { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-700); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--brand-700); border: 1.5px solid var(--brand-200); }
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand-400); transform: translateY(-2px); }
.btn-ghost { color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.22rem; }
.logo .logo-mark { width: 38px; height: 38px; flex: none; }
.logo small { display: block; font-size: 0.62rem; font-weight: 800; color: var(--accent-600); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem; color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav a.active { background: var(--brand-600); color: #fff; }

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

/* Til almashtirish */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); color: var(--text); font-weight: 700; font-size: 0.9rem;
}
.lang-btn:hover { border-color: var(--brand-200); background: var(--brand-50); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; overflow: hidden;
}
.lang-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--text); }
.lang-menu button:hover { background: var(--brand-50); }
.lang-menu button.active { color: var(--brand-700); background: var(--brand-50); }

/* Savat tugmasi */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); }
.cart-btn:hover { background: var(--brand-100); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* Mobil menyu tugmasi */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); align-items: center; justify-content: center; }
.burger:hover { background: var(--brand-50); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 88% -10%, var(--brand-100), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, var(--brand-50), transparent 60%),
    var(--bg-soft);
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 16px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

/* Hero qidiruv paneli */
.hero-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 7px 7px 7px 18px; box-shadow: var(--shadow); max-width: 520px;
}
.hero-search svg { color: var(--muted); flex: none; }
.hero-search input { flex: 1; border: none; outline: none; background: none; font-size: 1rem; min-width: 0; }
.hero-search .btn { flex: none; }

/* Hero suzuvchi kartochka */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  width: 300px; max-width: 100%; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px; position: relative; margin: 26px 14px;
}
.hero-card .pill-icon {
  width: 64px; height: 64px; border-radius: 20px; background: var(--brand-600); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: var(--shadow-brand);
}
.hero-card .pill-icon svg { width: 34px; height: 34px; }
.hero-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hero-card p { color: var(--muted); font-size: 0.92rem; }
.hero-badge {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem;
}
.hero-badge svg { color: var(--brand-600); }
.hero-badge.b1 { top: -18px; right: -12px; }
.hero-badge.b2 { bottom: -18px; left: -14px; }
.float { animation: floaty 5s ease-in-out infinite; }
.float.d1 { animation-delay: 0.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Statistika */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 1.7rem; color: var(--brand-700); font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* Ishonch qatori (trust line) */
.trustline { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--brand-700); background: var(--brand-50); font-weight: 700; font-size: 0.9rem; padding: 8px 16px; border-radius: var(--radius-pill); }
.trustline svg { color: var(--accent-600); width: 1.1em; height: 1.1em; }

/* Hero "tez orada" eslatmasi */
.soon-chip {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px dashed var(--accent-200);
  color: var(--accent-700); font-weight: 700; padding: 12px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.soon-chip svg { color: var(--accent-600); }

/* "Tez orada" paneli (qidiruv / buyurtma) */
.soon-panel {
  max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 44px 30px; box-shadow: var(--shadow);
}
.soon-panel .ic {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700)); color: #fff; box-shadow: var(--shadow-accent);
}
.soon-panel .ic svg { width: 44px; height: 44px; }
.soon-panel .tag {
  display: inline-block; background: var(--accent-50); color: var(--accent-700); font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.soon-panel h2 { font-size: 1.7rem; margin-bottom: 10px; }
.soon-panel p { color: var(--muted); margin-bottom: 22px; }
.soon-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Masofa belgisi (eng yaqin filial) */
.dist-badge {
  display: inline-flex; align-items: center; gap: 5px; background: var(--accent-600); color: #fff;
  font-weight: 800; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.dist-badge svg { width: 0.9em; height: 0.9em; }
.branch.nearest { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-50), var(--shadow); }

/* ---------- Yo'nalishlar (divisions) ---------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.division {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.division::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--dc, var(--brand-600)); }
.division:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.division .d-ic { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--dc, var(--brand-600)); margin-bottom: 14px; box-shadow: 0 8px 18px color-mix(in srgb, var(--dc, var(--brand-600)) 30%, transparent); }
.division .d-ic svg { width: 28px; height: 28px; }
.division .d-tag { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dc, var(--brand-600)); margin-bottom: 4px; }
.division h3 { font-size: 1.2rem; margin-bottom: 8px; }
.division p { color: var(--muted); font-size: 0.92rem; }
a.division { display: block; color: inherit; }
a.division:hover { border-color: var(--dc, var(--brand-600)); }
.d-place { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 0.85rem; color: var(--dc, var(--brand-600)); }
.d-place svg { width: 1em; height: 1em; }

/* Eng yaqin filial paneli */
.nearest-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand-600), var(--brand-800)); color: #fff;
  border-radius: var(--radius-lg); padding: 22px 26px; box-shadow: var(--shadow-lg); margin-bottom: 28px;
}
.nearest-bar .nb-ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; flex: none; }
.nearest-bar .nb-ic svg { width: 26px; height: 26px; }
.nearest-bar .nb-txt { flex: 1; min-width: 200px; }
.nearest-bar h3 { color: #fff; font-size: 1.2rem; margin-bottom: 2px; }
.nearest-bar p { opacity: 0.9; font-size: 0.92rem; }
.nearest-bar .btn { background: #fff; color: var(--brand-700); }
.nearest-bar .btn:hover { background: var(--accent-600); color: #fff; }
.branches-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.branches-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Afzalliklar (features) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Kategoriyalar ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.cat .ic { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; }
.cat .ic svg { width: 28px; height: 28px; }
.cat span { font-weight: 700; font-size: 0.92rem; color: var(--ink); }

/* ---------- Grid yordamchilari ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Mahsulot kartochkasi ---------- */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-thumb { height: 120px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft2); position: relative; }
.product-thumb svg { width: 46px; height: 46px; opacity: 0.9; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--accent-600); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.product-rx { position: absolute; top: 10px; right: 10px; background: #fff; color: var(--amber); border: 1px solid var(--line); font-size: 0.68rem; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.product-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.74rem; font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: 0.03em; }
.product h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.product .unit { font-size: 0.82rem; color: var(--muted); }
.product .desc { font-size: 0.85rem; color: var(--muted); flex: 1; }
.product .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.product .price { font-size: 1.18rem; font-weight: 800; color: var(--ink); }
.product .price small { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.product .old { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.avail { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 700; }
.avail.yes { color: var(--brand-700); }
.avail.no { color: var(--muted); }
.avail svg { width: 1em; height: 1em; }
.product-actions { padding: 0 14px 14px; }

/* ---------- Qidiruv sahifasi ---------- */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.filters h4 { font-size: 0.95rem; margin: 14px 0 8px; color: var(--ink); }
.filters h4:first-child { margin-top: 0; }
.filter-input, .filter-select { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; color: var(--text); transition: border-color 0.15s ease; }
.filter-input:focus, .filter-select:focus { border-color: var(--brand-400); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.85rem; font-weight: 600; color: var(--text); background: #fff; }
.chip:hover { border-color: var(--brand-300); }
.chip.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; }
.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand-600); }
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-count { color: var(--muted); font-weight: 600; }

/* Filial mavjudlik teglari */
.branch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.branch-tag { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }

/* ---------- Filiallar ---------- */
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.branch:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.branch-map { height: 170px; background: var(--bg-soft2); border-bottom: 1px solid var(--line); }
.branch-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Xarita "facade" — tezlik uchun: bosilgandagina haqiqiy xarita yuklanadi */
.branch-map.facade { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.branch-map.facade::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 44%, var(--brand-100) 44% 52%, transparent 52%),
    linear-gradient(200deg, transparent 60%, var(--brand-100) 60% 66%, transparent 66%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
  opacity: 0.85;
}
.facade-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.facade-pin {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bc, var(--brand-600)); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.facade-pin svg { width: 20px; height: 20px; }
.branch-map.facade:hover .facade-pin { transform: translateY(-3px) scale(1.06); }
.facade-hint {
  font-size: 0.78rem; font-weight: 700; color: var(--brand-700); background: rgba(255, 255, 255, 0.92);
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.branch-map.facade:focus-visible { outline: 3px solid var(--brand-400); outline-offset: -3px; }

/* Filiallarni filtrlash paneli */
.branch-filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.branch-filter .bf-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.branch-filter .bf-search { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; }
.branch-filter .bf-search svg { position: absolute; left: 14px; color: var(--muted); width: 1.1em; height: 1.1em; }
.branch-filter .bf-search input { width: 100%; padding: 11px 14px 11px 42px; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.branch-filter .bf-search input:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); }

/* Mobil suzuvchi qo'ng'iroq tugmasi (FAB) */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none;
  align-items: center; gap: 8px; padding: 14px 20px; border-radius: var(--radius-pill);
  background: var(--accent-600); color: #fff; font-weight: 800; box-shadow: var(--shadow-accent);
  transition: transform 0.16s ease;
}
.fab:active { transform: scale(0.96); }
.fab svg { width: 1.2em; height: 1.2em; }
@media (max-width: 900px) { .fab { display: inline-flex; } }

/* Skip link (klaviatura bilan navigatsiya) */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--brand-700); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* Klaviatura fokusi ko'rinishi */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 8px;
}
.branch-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.branch-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.branch-title h3 { font-size: 1.12rem; }
.badge-24 { background: var(--brand-600); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-soon { background: #fff7ed; color: var(--amber); border: 1px solid #fde4c4; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.branch-row { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.92rem; }
.branch-row svg { color: var(--brand-600); flex: none; margin-top: 2px; width: 1.1em; height: 1.1em; }
.branch-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.branch-actions .btn { flex: 1; }

/* Maxsus kartochkalar: Globus Vita (orange) / Med Texnika (ko'k) */
.branch.special { border-top: 4px solid var(--bc); }
.branch.special .btn-primary { background: var(--bc); box-shadow: none; }
.branch.special .btn-primary:hover { filter: brightness(0.92); }
.branch.special .branch-row svg { color: var(--bc); }
.badge-kind { background: var(--bc); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.branch-links { display: flex; flex-wrap: wrap; gap: 8px; }
.branch-links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bc) 10%, #fff); color: var(--bc);
}
.branch-links a:hover { background: color-mix(in srgb, var(--bc) 18%, #fff); }
.branch-links svg { width: 1em; height: 1em; }

/* ---------- Yangiliklar ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); }
.news-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.news-tag { font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.news-tag.promo { background: var(--accent-50); color: var(--accent-700); }
.news-tag.news { background: var(--brand-50); color: var(--brand-700); }
.news-date { color: var(--muted); }
.news-body h3 { font-size: 1.08rem; }
.news-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }

/* ---------- Savat / Buyurtma ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.cart-item .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-soft2); display: flex; align-items: center; justify-content: center; }
.cart-item .thumb svg { width: 26px; height: 26px; }
.cart-item .ci-name { font-weight: 700; color: var(--ink); }
.cart-item .ci-unit { font-size: 0.82rem; color: var(--muted); }
.cart-item .ci-right { display: flex; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--brand-700); }
.qty button:hover { background: var(--brand-50); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.ci-price { font-weight: 800; color: var(--ink); min-width: 96px; text-align: right; }
.ci-remove { color: var(--muted); }
.ci-remove:hover { color: var(--danger); }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text); }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 6px; border-top: 1px dashed var(--line); font-size: 1.2rem; font-weight: 800; color: var(--ink); }

/* Formalar */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); }
.field textarea { resize: vertical; min-height: 96px; }
.pay-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 600; transition: border-color 0.15s ease, background 0.15s ease; }
.pay-opt:hover { border-color: var(--brand-300); }
.pay-opt input { accent-color: var(--brand-600); }
.pay-opt.checked { border-color: var(--brand-500); background: var(--brand-50); }

/* Bo'sh holat */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ic { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-50); color: var(--brand-500); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.empty-state .ic svg { width: 40px; height: 40px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }

/* Muvaffaqiyat */
.success-box { max-width: 520px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 28px; box-shadow: var(--shadow); }
.success-box .ic { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; animation: pop 0.4s ease; }
.success-box .ic svg { width: 44px; height: 44px; }
.success-box .order-no { display: inline-block; margin: 12px 0 20px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; padding: 8px 18px; border-radius: 999px; letter-spacing: 0.05em; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.note {
  display: flex; gap: 10px; align-items: flex-start; background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--brand-800); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; margin-top: 14px;
}
.note svg { color: var(--brand-600); flex: none; margin-top: 1px; }

/* ---------- Sahifa boshi (page header) ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-head p { color: var(--muted); margin-top: 8px; }

/* Info panellar (about) */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.info-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.value { text-align: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.value .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }

.legal-banner { display: flex; align-items: center; gap: 14px; background: var(--brand-700); color: #fff; border-radius: var(--radius); padding: 20px 24px; margin-top: 26px; flex-wrap: wrap; }
.legal-banner .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.legal-banner b { font-size: 1.05rem; }
.legal-banner span { opacity: 0.85; font-size: 0.9rem; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-line .lbl { font-size: 0.8rem; color: var(--muted); }
.contact-line .val { font-weight: 700; color: var(--ink); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.social-btn:hover { background: var(--brand-100); }
.map-full { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 24px; }
.map-full iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cdd9d1; padding: 52px 0 24px; margin-top: 40px; }
.footer a { color: #cdd9d1; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .logo small { color: var(--accent-500); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer .f-about { font-size: 0.92rem; opacity: 0.85; max-width: 30ch; }
.footer .f-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 0.92rem; }
.footer .f-row svg { color: var(--brand-400); flex: none; margin-top: 2px; width: 1.1em; height: 1.1em; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--brand-600); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; opacity: 0.75; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 0.92rem; display: flex; align-items: center; gap: 10px; animation: toastIn 0.25s ease;
}
.toast svg { color: var(--brand-400); }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Mobil menyu ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.mobile-nav .overlay { position: absolute; inset: 0; background: rgba(15, 36, 23, 0.4); opacity: 0; transition: opacity 0.25s ease; }
.mobile-nav .panel {
  position: absolute; top: 0; right: 0; width: min(82vw, 320px); height: 100%; background: #fff;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.28s ease; padding: 20px; display: flex; flex-direction: column;
}
.mobile-nav.open { visibility: visible; }
.mobile-nav.open .overlay { opacity: 1; }
.mobile-nav.open .panel { transform: translateX(0); }
.mobile-nav .m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 12px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.mobile-nav a:hover, .mobile-nav a.active { background: var(--brand-50); color: var(--brand-700); }
.mobile-nav a svg { color: var(--brand-600); }

/* Animatsiya: kirish (fade/slide up) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo small { display: none; }
  .cart-item { grid-template-columns: 44px 1fr; }
  .cart-item .ci-right { grid-column: 1 / -1; justify-content: space-between; }
  .hero-cta .btn { flex: 1; }
}
@media (max-width: 380px) {
  .grid-3, .grid-4, .features { grid-template-columns: 1fr; }
}

/* Chop etish uchun kichik moslashuv */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
