/* =====================================================================
   NEO SPORT — dizayn tizimi
   Mobil birinchi. Ranglar, o'lchamlar va soyalar faqat :root'da.
   ===================================================================== */

:root {
  color-scheme: dark;

  /* Ranglar */
  --bg: #0a0b08;
  --bg-2: #0f110c;
  --surface: #14170f;
  --surface-2: #1b1f15;
  --surface-3: #242a1c;
  --line: rgba(240, 255, 210, 0.08);
  --line-2: rgba(240, 255, 210, 0.15);
  --text: #f2f5ee;
  --text-2: #c3c9bb;
  --muted: #8d9585;
  --lime: #b8f625;
  --lime-2: #cfff5a;
  --lime-soft: rgba(184, 246, 37, 0.12);
  --lime-line: rgba(184, 246, 37, 0.35);
  --ink: #0a0b08;
  --warn: #ffb547;
  --bad: #ff6b5e;
  --good: #8ee04a;

  /* Shriftlar */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Rajdhani', 'Manrope', system-ui, sans-serif;

  /* O'lchamlar */
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  --glow: 0 10px 34px -10px rgba(184, 246, 37, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 72px; }
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.center { display: flex; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px;
  background: var(--lime); color: var(--ink); font-weight: 800; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Tugmalar ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .01em; line-height: 1.1;
  white-space: nowrap; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--lime-2); box-shadow: var(--glow); }
.btn-primary:disabled { background: var(--surface-3); color: var(--muted); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover:not(:disabled) { border-color: var(--lime-line); color: var(--lime); }
.btn-dark { background: var(--ink); color: var(--lime); }
.btn-dark:hover { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; transition: color .2s; }
.link-btn svg { width: 18px; height: 18px; }
.link-btn:hover { color: var(--text); }
.link-more { color: var(--lime); font-weight: 800; font-size: 14px; }
.link-more:hover { text-decoration: underline; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { border-color: var(--lime-line); color: var(--lime); }
.icon-btn--ghost { border-color: transparent; }
.icon-btn--ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.count-badge {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--lime); color: var(--ink);
  font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 11, 8, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 11, 8, .88); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-badge {
  width: 38px; height: 38px; border-radius: 11px; background: var(--lime);
  display: grid; place-items: center; box-shadow: 0 6px 18px -8px rgba(184, 246, 37, .7);
}
.brand-badge img { width: 19px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .06em; line-height: 1; }
.brand-name b { color: var(--lime); font-weight: 700; }
.brand--lg .brand-badge { width: 46px; height: 46px; border-radius: 13px; }
.brand--lg .brand-badge img { width: 22px; }
.brand--lg .brand-name { font-size: 24px; }

.primary-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

@media (min-width: 980px) {
  .primary-nav { display: flex; gap: 2px; margin: 0 auto; }
  .nav-link {
    padding: 9px 14px; border-radius: var(--r-pill); color: var(--text-2);
    font-weight: 700; font-size: 14.5px; transition: color .2s, background-color .2s;
  }
  .nav-link:hover { color: var(--text); background: var(--surface-2); }
  .nav-link.is-active { color: var(--lime); }
  .header-actions { margin-left: 0; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: rgba(10, 11, 8, .97); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .2s var(--ease); overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu-inner { padding: 20px var(--gutter) 40px; display: grid; gap: 28px; }
.mobile-menu nav { display: grid; }
.mobile-menu .nav-link {
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .03em; text-transform: uppercase;
}
.mobile-menu .nav-link.is-active { color: var(--lime); }
.mobile-menu-contact { display: grid; gap: 10px; }
@media (min-width: 980px) { .mobile-menu { display: none !important; } }

/* ---------- Umumiy tipografiya ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--lime); font-weight: 800; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
}
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .015em;
  font-size: clamp(32px, 6.4vw, 54px); line-height: .98;
}
.section-title--sm { font-size: clamp(26px, 4.6vw, 36px); }
.section-text { color: var(--text-2); font-size: 16.5px; line-height: 1.7; max-width: 60ch; margin-top: 16px; }
.section-text + .btn { margin-top: 24px; }

.section { padding: 72px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section-head-side { color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 56px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(184, 246, 37, .16), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(184, 246, 37, .07), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(184, 246, 37, .025) 46px 47px);
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--lime-line); border-radius: var(--r-pill); background: var(--lime-soft);
  color: var(--lime); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(184, 246, 37, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(184, 246, 37, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 246, 37, 0); } }
.hero-title {
  margin-top: 20px; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(50px, 13.5vw, 96px); line-height: .9; letter-spacing: .005em;
}
.hero-title span { color: var(--lime); }
.hero-lead { margin-top: 20px; color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero-points li { position: relative; padding-left: 14px; }
.hero-points li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hero-points b { color: var(--text); }

.hero-visual { position: relative; height: 340px; max-width: 520px; width: 100%; margin: 0 auto; }
.hero-card {
  position: absolute; overflow: hidden; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card--1 { width: 54%; height: 82%; left: 23%; top: 4%; z-index: 2; transform: rotate(-2deg); }
.hero-card--2 { width: 40%; height: 60%; left: 0; top: 30%; z-index: 1; transform: rotate(-9deg); }
.hero-card--3 { width: 40%; height: 60%; right: 0; top: 18%; z-index: 1; transform: rotate(8deg); }
.hero-visual:hover .hero-card--1 { transform: rotate(0) translateY(-6px); }
.hero-visual:hover .hero-card--2 { transform: rotate(-12deg) translateX(-6px); }
.hero-visual:hover .hero-card--3 { transform: rotate(11deg) translateX(6px); }
.hero-card-tag {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(10, 11, 8, .82); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.hero-sticker {
  position: absolute; z-index: 3; right: 6%; bottom: 2%;
  width: 96px; height: 96px; border-radius: 50%; background: var(--lime); color: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 2px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: var(--glow); transform: rotate(-12deg);
}
.hero-sticker img { width: 26px; }

@media (min-width: 980px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero-visual { height: 520px; max-width: none; }
  .hero-sticker { width: 118px; height: 118px; font-size: 16px; }
  .hero-sticker img { width: 32px; }
}

/* ---------- Afzalliklar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; padding: 20px 12px 20px 0; }
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-item:nth-child(even) { padding-left: 14px; }
.trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.trust-icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--lime-soft); color: var(--lime); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: 14.5px; line-height: 1.3; }
.trust-item span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
@media (min-width: 900px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 28px 20px; border: 0 !important; }
  .trust-item + .trust-item { border-left: 1px solid var(--line) !important; }
  .trust-item:first-child { padding-left: 0; }
}

/* ---------- Katalog asboblari ---------- */
.toolbar { display: grid; gap: 12px; margin-bottom: 26px; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; scroll-snap-align: start;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--text-2); font-weight: 700; font-size: 14px;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--lime-line); }
.chip.is-active { background: var(--text); color: var(--ink); border-color: var(--text); }
.toolbar-right { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search, .select { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .select select, .field input, .field select {
  width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-size: 16px; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.search input { padding: 0 14px 0 42px; }
.search input::-webkit-search-cancel-button { filter: invert(1) brightness(.6); }
.select select {
  appearance: none; -webkit-appearance: none; padding: 0 38px 0 14px; font-size: 14.5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%238d9585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.search input:focus, .select select:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(184, 246, 37, .15); }
::placeholder { color: var(--muted); opacity: 1; }
@media (min-width: 900px) {
  .toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .chips { margin: 0; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 32px; }
  .toolbar-right { grid-template-columns: 240px 190px; }
}

/* ---------- Mahsulot kartasi ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; } }

.p-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.p-card-media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--r); background: var(--surface-2); isolation: isolate;
}
.p-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .7s var(--ease); }
.p-card-img--alt { opacity: 0; }
@media (hover: hover) {
  .p-card:hover .p-card-img { transform: scale(1.045); }
  .p-card:hover .p-card-img--alt { opacity: 1; }
}
.p-card.is-soldout .p-card-img { filter: grayscale(.8) brightness(.7); }
.p-card-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 800; letter-spacing: .03em; white-space: nowrap;
}
.badge--lime { background: var(--lime); color: var(--ink); }
.badge--dark { background: rgba(10, 11, 8, .85); color: var(--text); border: 1px solid var(--line-2); }
.badge--warn { background: rgba(10, 11, 8, .85); color: var(--warn); border: 1px solid rgba(255, 181, 71, .35); }

.wish-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 11, 8, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; transition: transform .2s, background-color .2s, color .2s;
}
.wish-btn svg { width: 19px; height: 19px; }
.wish-btn:hover { transform: scale(1.08); background: rgba(10, 11, 8, .8); }
.wish-btn.is-wished { color: var(--lime); }
.wish-btn.is-wished svg path { fill: currentColor; }
.wish-btn--lg { width: 46px; height: 46px; top: 14px; right: 14px; }
.wish-btn--lg svg { width: 22px; height: 22px; }

.p-card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card-cat { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
a.p-card-cat:hover { color: var(--lime); }
.p-card-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.p-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.p-card-title a:hover { color: var(--lime); }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.p-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.price-old { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.p-card-sizes { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.quick-add {
  position: relative; z-index: 2; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); transition: transform .2s, box-shadow .2s, background-color .2s;
}
.quick-add svg { width: 20px; height: 20px; }
.quick-add:hover:not(:disabled) { transform: rotate(90deg); box-shadow: var(--glow); }
.quick-add:disabled { background: var(--surface-3); color: var(--muted); }
.quick-add.is-loading svg { animation: spin .7s linear infinite; }
@media (min-width: 720px) {
  .p-card-title { font-size: 16.5px; }
  .price { font-size: 17px; }
  .quick-add { width: 44px; height: 44px; }
}

.img-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--surface-3); background: var(--surface-2); }
.img-fallback svg { width: 42%; max-width: 72px; }

/* Skelet */
.p-card--skeleton .p-card-media, .p-card--skeleton .p-card-body span, .pd--skeleton .pd-main, .pd--skeleton .pd-info span, .orders--skeleton .order {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.p-card--skeleton .p-card-body span { display: block; height: 12px; border-radius: 6px; }
.p-card--skeleton .p-card-body span:nth-child(1) { width: 40%; }
.p-card--skeleton .p-card-body span:nth-child(2) { width: 85%; height: 15px; margin-top: 4px; }
.p-card--skeleton .p-card-body span:nth-child(3) { width: 55%; height: 16px; margin-top: 8px; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* Holat (bo'sh / xato) */
.state {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}
.state h3 { font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.state p { color: var(--muted); max-width: 42ch; }
.state .btn { margin-top: 8px; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.state--empty { border-style: solid; background: var(--surface); }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; margin-bottom: 6px; }
.empty-icon svg { width: 28px; height: 28px; }
#loadMoreBtn { margin-top: 36px; }

/* ---------- Qadamlar ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step {
  position: relative; padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.step-no {
  display: block; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--lime); margin-bottom: 18px;
}
.step h3 { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.step p { margin-top: 8px; color: var(--text-2); line-height: 1.65; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { padding: 36px 30px; }
}

/* ---------- Yetkazish ---------- */
.delivery-grid { display: grid; gap: 36px; align-items: center; }
.zones { display: grid; gap: 12px; }
.zone {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.zone:first-child { border-color: var(--lime-line); background: linear-gradient(135deg, var(--lime-soft), transparent 70%), var(--surface); }
.zone-name { font-weight: 800; font-size: 16.5px; }
.zone-price { grid-row: span 2; font-family: var(--display); font-size: 26px; color: var(--lime); white-space: nowrap; }
.zone-note { color: var(--muted); font-size: 13.5px; }
@media (min-width: 900px) { .delivery-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

/* ---------- Biz haqimizda ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; margin: 0 auto;
  border-radius: 32px; background: var(--lime); color: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 26px; overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(184, 246, 37, .45);
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 30px, rgba(10, 11, 8, .05) 30px 31px);
}
.about-mark { position: relative; width: 38%; }
.about-word { position: relative; width: 52%; }
.brand-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.brand-list li {
  padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2);
}
@media (min-width: 900px) { .about-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } }

/* ---------- Savol-javob ---------- */
.faq-grid { display: grid; gap: 36px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 800; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23b8f625' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); line-height: 1.7; }
.faq--plain { margin-top: 28px; text-align: left; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } }

/* ---------- Aloqa ---------- */
.contact-grid { display: grid; gap: 16px; }
.contact-cards { display: grid; gap: 10px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
  min-width: 0;
}
.contact-card:hover { border-color: var(--lime-line); transform: translateY(-2px); }
.contact-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); }
.contact-ic svg { width: 22px; height: 22px; }
.contact-card > span:last-child { min-width: 0; }
.contact-card small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.contact-card b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-frame { position: relative; flex: 1; min-height: 280px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-load {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 20px;
  background:
    radial-gradient(circle at 50% 45%, var(--lime-soft), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px), var(--surface);
  transition: background-color .2s;
}
.map-load svg { width: 40px; height: 40px; color: var(--lime); margin-bottom: 6px; }
.map-load b { font-size: 16px; }
.map-load span { color: var(--lime); font-weight: 800; font-size: 14px; }
.map-load:hover span { text-decoration: underline; }
.map-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.map-links a { padding: 15px; text-align: center; font-weight: 800; font-size: 14px; transition: background-color .2s, color .2s; }
.map-links a + a { border-left: 1px solid var(--line); }
.map-links a:hover { background: var(--surface-2); color: var(--lime); }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta-band { background: var(--lime); color: var(--ink); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(10, 11, 8, .05) 34px 35px); }
.cta-inner { position: relative; display: grid; gap: 24px; align-items: center; }
.cta-band h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 5.5vw, 48px); line-height: .98; }
.cta-band p { margin-top: 10px; font-weight: 600; max-width: 56ch; opacity: .8; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 36px 24px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 38ch; line-height: 1.65; font-size: 15px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .2s; }
.footer-social a:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-col h4 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-col a { color: var(--text-2); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-col:last-child { grid-column: 1 / -1; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px;
}
.footer-top:hover { color: var(--lime); }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-brand, .footer-col:last-child { grid-column: auto; }
}

/* ---------- Ichki sahifalar ---------- */
.page { padding: 20px 0 80px; }
.page-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; min-width: 0; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 38px; padding: 0 14px 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  font-weight: 700; font-size: 14px; transition: border-color .2s, color .2s;
}
.back-btn svg { width: 18px; height: 18px; }
.back-btn:hover { border-color: var(--lime-line); color: var(--lime); }
.breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb > :last-child { overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
@media (max-width: 520px) { .breadcrumb a:first-child, .breadcrumb a:first-child + span { display: none; } }

/* ---------- Mahsulot sahifasi ---------- */
.pd { display: grid; gap: 28px; }
.pd-gallery { min-width: 0; }
.pd-main {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: var(--surface-2); margin: 0 calc(var(--gutter) * -1);
}
.pd-main::before {
  content: ''; position: absolute; inset: -30px; z-index: -1;
  background: var(--bg-img, none) center / cover; filter: blur(28px) brightness(.55) saturate(1.1);
}
.pd-main > img { width: 100%; height: 100%; object-fit: contain; }
.pd-nav {
  position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 11, 8, .6); backdrop-filter: blur(8px); transition: background-color .2s;
}
.pd-nav svg { width: 22px; height: 22px; }
.pd-nav:hover { background: rgba(10, 11, 8, .9); }
.pd-nav--prev { left: 12px; }
.pd-nav--next { right: 12px; }
.pd-counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 4px 12px;
  border-radius: var(--r-pill); background: rgba(10, 11, 8, .7); font-size: 12.5px; font-weight: 800; letter-spacing: .05em;
}
.pd-main .p-card-badges { top: 14px; left: 14px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs button {
  flex-shrink: 0; width: 68px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s;
}
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs button:hover { opacity: .85; }
.pd-thumbs button.is-active { opacity: 1; outline-color: var(--lime); }

.pd-info { min-width: 0; display: flex; flex-direction: column; }
.pd-title {
  margin-top: 8px; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 7vw, 50px); line-height: .98; letter-spacing: .01em; overflow-wrap: anywhere;
}
.pd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 16px; }
.pd-price .price { font-size: 28px; font-weight: 800; color: var(--lime); }
.pd-price .price-old { font-size: 17px; }
.pd-stock { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text-2); font-weight: 700; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(142, 224, 74, .15); }
.dot--warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 181, 71, .15); }
.dot--off { background: var(--muted); box-shadow: none; }

.size-picker { margin-top: 26px; }
.size-picker.is-disabled { opacity: .5; pointer-events: none; }
.size-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.size-label span { font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.size-label small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  position: relative; min-width: 56px; min-height: 48px; padding: 6px 14px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 800; font-size: 15px; line-height: 1.1; transition: all .15s;
}
.size-chip small { font-size: 10.5px; font-weight: 700; color: var(--warn); }
.size-chip:hover:not(:disabled) { border-color: var(--text-2); }
.size-chip.is-selected { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.size-chip.is-selected small { color: var(--ink); opacity: .7; }
.size-chip:disabled {
  color: var(--muted); opacity: .55;
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--line-2) 50%, transparent calc(50% + 1px));
}
.sel-rows { display: grid; gap: 8px; margin-top: 14px; }
.sel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.sel-row-size { font-weight: 800; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background-color .15s; }
.stepper button svg { width: 16px; height: 16px; }
.stepper button:hover:not(:disabled) { background: var(--surface-3); }
.stepper button:disabled { opacity: .35; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.stepper--sm button { width: 30px; height: 30px; }

.pd-buy { margin-top: 22px; }
.pd-perks { display: grid; gap: 2px; margin-top: 26px; border-top: 1px solid var(--line); }
.pd-perks li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.pd-perks svg { width: 22px; height: 22px; color: var(--lime); margin-top: 1px; }
.pd-perks b { display: block; color: var(--text); }
.pd-perks a { color: var(--lime); font-weight: 700; }
.pd-perks a:hover { text-decoration: underline; }
.pd-desc { margin-top: 26px; }
.pd-desc h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pd-desc p { color: var(--text-2); line-height: 1.75; white-space: pre-line; }
.pd-share { margin-top: 22px; align-self: flex-start; }

.pd--skeleton .pd-main { margin: 0; }
.pd--skeleton .pd-info { gap: 14px; }
.pd--skeleton .pd-info span { display: block; height: 18px; border-radius: 8px; }
.pd--skeleton .pd-info span:nth-child(1) { width: 30%; }
.pd--skeleton .pd-info span:nth-child(2) { width: 80%; height: 44px; }
.pd--skeleton .pd-info span:nth-child(3) { width: 40%; height: 30px; }
.pd--skeleton .pd-info span:nth-child(4) { width: 100%; height: 54px; margin-top: 20px; border-radius: 999px; }

@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
  .pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
  .pd-main { margin: 0; }
  .pd-thumbs button { width: 78px; }
}
@media (min-width: 720px) and (max-width: 899px) { .pd-main { margin: 0; aspect-ratio: 1; } }

.related { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.related .section-head { align-items: center; margin-bottom: 24px; }
.product-grid--4 .p-card:nth-child(n+5) { display: none; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 17, 12, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
  animation: up .25s var(--ease);
}
.buy-bar-price { flex: 1; min-width: 0; display: grid; }
.buy-bar-price small { color: var(--muted); font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-bar-price strong { font-size: 17px; }
.buy-bar .btn { min-width: 140px; }
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 900px) { .buy-bar { display: none !important; } }
@media (max-width: 899px) { body[data-page="product"] .chat-fab { display: none; } }

/* ---------- Buyurtmalarim ---------- */
.login-card {
  text-align: center; padding: 40px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); display: grid; justify-items: center;
}
.login-card .section-text { margin: 14px auto 0; }
.login-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.login-icon svg { width: 30px; height: 30px; }
.tg-widget { min-height: 48px; margin-top: 28px; display: grid; place-items: center; }
.login-note { margin-top: 14px; color: var(--text-2); font-weight: 700; font-size: 14px; }
.login-note.is-bad { color: var(--bad); }
.login-alt { margin-top: 18px; width: 100%; max-width: 340px; display: grid; gap: 12px; color: var(--muted); font-size: 14px; }
.login-card .faq--plain { width: 100%; max-width: 520px; }
@media (min-width: 640px) { .login-card { padding: 56px 48px; } }

.orders { display: grid; gap: 14px; }
.orders--skeleton .order { height: 180px; border-radius: var(--r-lg); }
.order { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.order-head strong { display: block; font-size: 17px; }
.order-head span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.status { flex-shrink: 0; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 800; color: var(--text) !important; }
.status--new { background: rgba(120, 170, 255, .16); color: #a8c6ff !important; }
.status--ok, .status--prog { background: rgba(255, 181, 71, .14); color: var(--warn) !important; }
.status--done { background: var(--lime-soft); color: var(--lime) !important; }
.status--off { background: rgba(255, 107, 94, .14); color: var(--bad) !important; }
.order-flow { display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 20px 18px; gap: 4px; }
.order-flow li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.25; }
.order-flow li span { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); }
.order-flow li::before { content: ''; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--surface-3); }
.order-flow li:first-child::before { display: none; }
.order-flow li.is-done { color: var(--text-2); }
.order-flow li.is-done span, .order-flow li.is-done::before { background: var(--lime); }
.order-flow li.is-now { color: var(--lime); }
.order-flow li.is-now span { box-shadow: 0 0 0 5px var(--lime-soft); }
.order-items { border-top: 1px solid var(--line); padding: 8px 20px; }
.order-items li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; }
.order-items small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.order-items b { white-space: nowrap; }
.order-foot { display: flex; justify-content: space-between; padding: 14px 20px; background: var(--surface-2); font-weight: 700; }
.order-foot strong { color: var(--lime); font-size: 17px; }

/* ---------- Qatlamlar: panel va oyna ---------- */
.layer { position: fixed; inset: 0; z-index: 100; }
.layer-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 3, .66); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s var(--ease); }
.layer.is-open .layer-backdrop { opacity: 1; }

.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg);
}
.layer.is-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.drawer-count { color: var(--muted); font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.drawer-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 32px; }
.drawer-empty h3 { font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.drawer-empty p { color: var(--muted); max-width: 30ch; margin-bottom: 8px; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.drawer-total strong { font-size: 22px; }
.drawer-note { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }

.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-img { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cart-line-name { font-weight: 800; line-height: 1.3; }
.cart-line-name:hover { color: var(--lime); }
.cart-line-meta { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.cart-line .stepper { margin-top: 6px; }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line-side strong { white-space: nowrap; font-size: 15px; }
.cart-line-side .link-btn:hover { color: var(--bad); }

.layer--modal { display: grid; place-items: end center; }
.modal {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(40px); opacity: 0; transition: transform .3s var(--ease), opacity .25s var(--ease);
  box-shadow: var(--shadow-lg);
}
.layer.is-open .modal { transform: none; opacity: 1; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.modal-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 28px; letter-spacing: .02em; padding-right: 44px; line-height: 1; }
@media (min-width: 640px) {
  .layer--modal { place-items: center; padding: 24px; }
  .modal { width: min(500px, 100%); border-radius: var(--r-lg); padding: 30px; max-height: 88vh; }
  .modal--wide { width: min(940px, 100%); }
}

.qa-head { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding-right: 36px; }
.qa-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.qa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qa-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.qa-price { margin-top: 4px; font-weight: 800; color: var(--lime); font-size: 18px; }
.qa-price s { color: var(--muted); font-size: 14px; margin-left: 6px; }
.qa-link { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.qa-link:hover { color: var(--text); }
#quickAdd .size-picker { margin-top: 22px; }
#qaAddBtn { margin-top: 22px; }

/* Checkout */
.co-grid { display: grid; gap: 22px; margin-top: 22px; }
.co-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 800; font-size: 13.5px; }
.field label small { color: var(--muted); font-weight: 600; }
.field input, .field select { padding: 0 14px; min-height: 50px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%238d9585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 107, 94, .14); }
.field-error { color: var(--bad); font-size: 13px; font-weight: 700; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 13px; font-weight: 600; }
.field-hint:empty { display: none; }
.field-hint.is-good, .is-good { color: var(--good) !important; }
.field-hint.is-bad { color: var(--bad); }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-row .btn { --h: 50px; }
.co-note { display: flex; gap: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.co-note svg { width: 18px; height: 18px; color: var(--lime); margin-top: 2px; }
.co-summary { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); align-self: start; }
.co-summary h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.co-items { display: grid; max-height: 260px; overflow-y: auto; }
.co-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-item-img { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--surface-2); overflow: visible; }
.co-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.co-item-img .img-fallback { border-radius: 10px; }
.co-item-img em {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--text); color: var(--ink); font-style: normal; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}
.co-item-name { min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.3; }
.co-item-name small { display: block; color: var(--muted); font-weight: 600; }
.co-item-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.co-lines { margin: 12px 0 0; display: grid; gap: 8px; }
.co-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.co-lines dt { color: var(--text-2); }
.co-lines dd { margin: 0; font-weight: 700; }
.co-total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); }
.co-total dt { color: var(--text); font-weight: 800; }
.co-total dd { font-size: 22px; font-weight: 800; color: var(--lime); }
@media (min-width: 860px) {
  .co-grid { grid-template-columns: 1.1fr .9fr; gap: 28px; }
  .co-summary { position: sticky; top: 0; order: 2; }
}
@media (max-width: 859px) { .co-summary { order: -1; } }

.co-success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 26px 6px 6px; }
.co-success .modal-title { padding: 0; }
.co-success p { color: var(--text-2); max-width: 44ch; line-height: 1.65; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; box-shadow: var(--glow); animation: pop .45s var(--ease); }
.success-icon svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.co-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

/* ---------- Toast va Telegram tugmasi ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 150;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px);
  padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--text); color: var(--ink);
  box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14.5px;
  transform: translate(-50%, 20px); opacity: 0; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast-icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.toast-icon svg { width: 16px; height: 16px; }
.toast-text { min-width: 0; line-height: 1.35; }
.toast-action { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 13.5px; }
body[data-page="product"] .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body[data-page="product"] .toast { bottom: 24px; } }

.chat-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 0; height: 52px; padding: 0 14px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 800; font-size: 14.5px;
  box-shadow: var(--glow), 0 10px 30px -10px rgba(0, 0, 0, .6); transition: gap .25s var(--ease), padding .25s var(--ease), transform .2s;
}
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease); }
.chat-fab:hover { gap: 8px; padding-right: 20px; }
.chat-fab:hover span { max-width: 140px; }
html.is-locked .chat-fab { display: none; }

/* ---------- Animatsiya ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.trust-item[data-reveal]:nth-child(2), .step[data-reveal]:nth-child(2), .zone[data-reveal]:nth-child(2) { transition-delay: .08s; }
.trust-item[data-reveal]:nth-child(3), .step[data-reveal]:nth-child(3), .zone[data-reveal]:nth-child(3) { transition-delay: .16s; }
.trust-item[data-reveal]:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .chat-fab, .buy-bar, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Juda tor ekranlar (iPhone SE va h.k.) */
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 40px; height: 40px; }
  .brand { gap: 8px; }
  .brand-badge { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; }
  .p-card-title { font-size: 14.5px; }
  .price { font-size: 15px; }
  .quick-add { width: 36px; height: 36px; }
}
