/* Nanu Kids: o'lchov lentasi g'oyasi atrofida qurilgan do'kon ko'rinishi */

@font-face {
  font-family: 'Caprasimo';
  src: url('/fonts/caprasimo-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Shantell Sans';
  src: url('/fonts/shantell-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --lenta: #ffc72c;
  --lenta-deep: #e3a800;
  --lenta-lite: #ffe27a;
  --siyoh: #2a1024;
  --olxori: #981e69;
  --olxori-deep: #6f1249;
  --pushti: #fe7eb5;
  --atlas: #c8164f;
  --sut: #fdf7fb;
  --bulut: #f2e4ee;
  --line-strong: #a78c9d;
  --oq: #ffffff;
  --soft: #614c5c;
  --ok: #0b7a4b;
  --focus: var(--olxori);
  --font-display: 'Caprasimo', Georgia, serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-pencil: 'Shantell Sans', 'Segoe Print', 'Comic Sans MS', cursive;
  --cm: 13px;
  --gutter: 16px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  /* Lenta chiziqlari: har santimetrda bittadan */
  --tick: linear-gradient(90deg, var(--siyoh) 1.5px, transparent 0);
  --tick-major: linear-gradient(90deg, var(--siyoh) 2.5px, transparent 0);
  --tape-edge: inset 0 2px 0 var(--lenta-lite), inset 0 -2px 0 var(--lenta-deep);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sut);
  color: var(--siyoh);
  font: 400 1rem/1.5 var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
  /* Qiya lentalar sahifani yon tomonga kengaytirmasin; sticky elementlarga xalaqit bermaydi */
  overflow-x: clip;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p,
.hint,
.info-list span {
  text-wrap: pretty;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.bar-brand,
.hero,
.how,
.pay-card,
.foot,
.status-ok,
body[data-page='bio'] {
  --focus: var(--oq);
}

.cart-strip,
.mark {
  --focus: var(--siyoh);
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pencil {
  font-family: var(--font-pencil);
  font-weight: 500;
}

/* ---------- Tugmalar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-m);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:active {
  transform: translateY(2px);
}

.btn svg {
  flex: none;
}

.btn-lenta {
  background: var(--lenta);
  color: var(--siyoh);
  box-shadow: 0 3px 0 var(--lenta-deep);
}

.btn-lenta:active {
  box-shadow: 0 1px 0 var(--lenta-deep);
}

.btn-lenta[aria-disabled='true'],
.btn-lenta:disabled {
  background: var(--bulut);
  color: var(--soft);
  box-shadow: none;
  cursor: not-allowed;
}

/* Yuklash paytida tugma tirik ko'rinsin: lenta chiziqlari yuguradi */
.btn-lenta.is-busy:disabled {
  position: relative;
  overflow: hidden;
  background: var(--lenta);
  color: var(--siyoh);
  box-shadow: 0 3px 0 var(--lenta-deep);
  cursor: progress;
}

.btn-lenta.is-busy::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: rgb(255 255 255 / 0.4);
  transition: width 0.2s linear;
}

.btn-lenta.is-busy::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: var(--tick) 0 0 / 13px 7px repeat-x;
  animation: tape-run 0.5s linear infinite;
}

@keyframes tape-run {
  to {
    background-position-x: 13px;
  }
}

.btn-ink {
  background: var(--siyoh);
  color: var(--oq);
}

.btn-line {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
}

.btn-wide {
  width: 100%;
}

.link-quiet {
  display: inline-block;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--soft);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (hover: hover) {
  .btn-lenta:not(:disabled):not([aria-disabled='true']):hover {
    background: #ffd24f;
  }

  .btn-ink:hover {
    background: #43203b;
  }

  .btn-line:hover {
    background: rgb(42 16 36 / 0.06);
  }
}

/* ---------- Yuqori panel ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--oq);
  box-shadow: 0 1px 0 var(--bulut);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
}

.logo {
  display: block;
  margin-right: auto;
  line-height: 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.bar-nav {
  display: none;
  gap: 24px;
  margin-right: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.bar-nav a {
  padding-block: 10px;
  text-decoration: none;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--siyoh);
  text-decoration: none;
}

.icon-btn:active {
  background: var(--bulut);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 10px;
  background: var(--pushti);
  color: var(--siyoh);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.cart-badge.is-bump {
  animation: badge-bump 0.3s ease-out;
}

@keyframes badge-bump {
  40% {
    transform: scale(1.4);
  }
}

.bar-sum {
  display: none;
  margin-left: -2px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bar-brand {
  background: var(--olxori);
  box-shadow: none;
  color: var(--oq);
}

.bar-brand .icon-btn,
.bar-brand .bar-nav a {
  color: var(--oq);
}

.bar-brand .icon-btn:active {
  background: rgb(255 255 255 / 0.2);
}

@media (hover: hover) {
  .bar-nav a:hover {
    color: var(--olxori);
  }

  .bar-brand .bar-nav a:hover {
    color: var(--lenta);
  }

  .icon-btn:hover {
    background: var(--sut);
  }

  .bar-brand .icon-btn:hover {
    background: rgb(255 255 255 / 0.14);
  }
}

/* To'lovi tugamagan buyurtmaga qaytish yo'li */
.resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  /* Matn sahifa ustuni bilan bir chiziqda: .wrap ichidagi eng keng kontent 1124px */
  padding: 8px max(var(--gutter), calc((100% - 1124px) / 2));
  background: var(--lenta);
  color: var(--siyoh);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.resume b {
  flex: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Bosh sahifa: lenta ---------- */

.hero {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
  /* Qiya lenta sahifani yon tomonga kengaytirmasin */
  overflow-x: clip;
  background: var(--olxori);
  color: var(--oq);
}

.hero > * {
  grid-column: 2;
}

.hero > .tape-wrap {
  grid-column: 1 / -1;
  min-width: 0;
}

.hero-title {
  font-size: clamp(2.25rem, 11.5vw, 5.25rem);
  padding-top: 14px;
}

.readout {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 16px;
  min-height: 58px;
}

.readout-size {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--lenta);
}

.readout-size small {
  font-size: 1.375rem;
}

.readout-age {
  font-size: 1.25rem;
  line-height: 1.2;
  transform: rotate(-2deg);
}

.tape-wrap {
  position: relative;
  margin: 14px -6px 0;
  /* rotate emas: burilgan lenta tik surishni o'ziga olib, sahifa aylanmay qoladi */
  transform: skewY(-1deg);
}

.tape-pointer {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  margin-left: -11px;
  border-inline: 11px solid transparent;
  border-top: 15px solid var(--oq);
  pointer-events: none;
}

/* Skript lentani tanlangan bo'yga surmaguncha igna boshqa raqamni ko'rsatib turmasin */
.hero:not(.is-ready) .tape-pointer {
  visibility: hidden;
}

/* Tanlangan belgini ko'rsatuvchi igna */
.tape-pointer::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -1px;
  width: 2px;
  height: 40px;
  background: var(--olxori);
}

.is-intro .tape-pointer {
  animation: pointer-drop 0.3s 0.95s cubic-bezier(0.3, 1.6, 0.6, 1) backwards;
}

@keyframes pointer-drop {
  from {
    translate: 0 -12px;
    opacity: 0;
  }
}

.tape {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  background: var(--lenta);
  box-shadow: var(--tape-edge), 0 5px 0 rgb(0 0 0 / 0.16);
}

.tape::-webkit-scrollbar {
  display: none;
}

.tape:focus-visible {
  outline-offset: 6px;
}

/* Belgilar chetidan keyin ham lenta davom etadi */
.tape::before,
.tape::after {
  content: '';
  flex: none;
  width: calc(50% - var(--cm) * 3);
}

.tape::before {
  background:
    var(--tick) 100% 0 / var(--cm) 13px repeat-x,
    var(--tick) 100% 100% / var(--cm) 7px repeat-x,
    var(--tick-major) right calc(var(--cm) * 3 + 1px) top 0 / calc(var(--cm) * 6) 30px repeat-x;
}

.tape::after {
  background:
    var(--tick) 0 0 / var(--cm) 13px repeat-x,
    var(--tick) 0 100% / var(--cm) 7px repeat-x,
    var(--tick-major) calc(var(--cm) * 3 - 1px) 0 / calc(var(--cm) * 6) 30px repeat-x;
}

.mark {
  position: relative;
  flex: none;
  display: block;
  width: calc(var(--cm) * 6);
  height: 86px;
  scroll-snap-align: center;
  color: var(--siyoh);
  text-align: center;
  text-decoration: none;
  background:
    var(--tick) 0 0 / var(--cm) 13px repeat-x,
    var(--tick) 0 100% / var(--cm) 7px repeat-x;
}

.mark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5px;
  height: 30px;
  margin-left: -1px;
  background: var(--siyoh);
}

.mark:focus-visible {
  outline-offset: -4px;
}

.mark span {
  position: absolute;
  inset: auto 0 15px;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mark.is-empty span {
  opacity: 0.42;
}

.mark.is-active span {
  color: var(--olxori);
  transform: scale(1.3);
}

/* Igna uzun chiziqni yopib turadi: yonida ikkinchi chiziq bo'lib ko'rinmasin */
.mark.is-active::before {
  background: transparent;
}

.tape-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.25;
}

.tape-hint svg {
  flex: none;
}

/* Sichqoncha lentani sura olmaydi, lekin raqamni bosa oladi */
.tape-hint-mouse {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .tape-hint-touch {
    display: none;
  }

  .tape-hint-mouse {
    display: inline;
  }
}

.hero-cta .btn {
  width: 100%;
  margin-top: 14px;
}

.hero-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: -44px;
  position: relative;
  z-index: 1;
}

.hero-thumbs a {
  flex: none;
  display: block;
  /* Kiyim kam bo'lsa ham rasm kattaligi o'zgarmaydi, o'rtada turadi */
  width: calc((100% - 20px) / 3);
  border-radius: var(--r-m);
  transition: opacity 0.18s ease, scale 0.12s ease;
}

.hero-thumbs a:nth-child(1) {
  rotate: -2deg;
}

.hero-thumbs a:nth-child(2) {
  rotate: 1.2deg;
  translate: 0 -5px;
}

.hero-thumbs a:nth-child(3) {
  rotate: -1deg;
}

@media (hover: hover) {
  .mark:not(.is-active):hover span {
    color: var(--olxori);
  }

  .hero-thumbs a:hover {
    scale: 1.02;
  }
}

.hero-thumbs a:active {
  scale: 0.98;
}

.hero-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--olxori-deep);
  border-radius: var(--r-m);
}

.hero-thumbs.is-changing a {
  opacity: 0.25;
  pointer-events: none;
}

.hero-plain {
  display: block;
  padding-bottom: 36px;
}

.hero-plain .tagline {
  margin-top: 14px;
  font-size: 1.125rem;
}

.hero-plain .btn {
  margin-top: 22px;
}

.after-hero {
  padding-top: 68px;
}

/* ---------- Bo'limlar ---------- */

.section {
  padding-block: 32px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 7.2vw, 1.75rem);
}

.section-head a {
  flex: none;
  padding-block: 10px;
  margin-block: -10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--olxori);
}

@media (hover: hover) {
  .section-head a:hover {
    text-decoration-thickness: 2px;
  }
}

.cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  background: var(--oq);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--bulut);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.cat:active {
  background: var(--bulut);
}

.cat img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bulut);
}

/* ---------- Mahsulot kartasi ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 12px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

.card-img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-l);
  background: var(--bulut);
  transition: scale 0.12s ease;
}

.card:active .card-img {
  scale: 0.98;
}

.card-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-off .card-img img {
  opacity: 0.45;
}

@media (hover: hover) {
  .card:hover .card-img img {
    transform: scale(1.03);
  }

  .cat:hover {
    box-shadow: inset 0 0 0 1.5px var(--olxori);
  }
}

/* Tikilgan yorliq */
.tag {
  position: absolute;
  top: 10px;
  left: 0;
  padding: 5px 12px 5px 9px;
  background: var(--pushti);
  color: var(--siyoh);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 0 6px 6px 0;
  outline: 1px dashed rgb(255 255 255 / 0.6);
  outline-offset: -3px;
}

.tag-out {
  background: var(--siyoh);
  color: var(--oq);
}

.card-name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Razmer oralig'i: bir parcha lenta */
.card-meta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 5px 8px 2px;
  border-radius: 1px;
  background: var(--tick) 0 0 / var(--cm) 3px repeat-x, var(--lenta);
  color: var(--siyoh);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 7px;
  margin-top: 6px;
}

.card-price b {
  font-size: 1rem;
  font-weight: 700;
}

.card-price s {
  flex-basis: 100%;
  color: var(--soft);
  font-size: 0.8125rem;
}

.empty {
  padding: clamp(40px, 10vh, 88px) 16px 40px;
  text-align: center;
}

.empty::before {
  content: '';
  display: block;
  width: min(232px, 70%);
  height: 30px;
  margin: 0 auto 24px;
  background: var(--tick) 0 0 / var(--cm) 9px repeat-x, var(--lenta);
  rotate: -2deg;
  box-shadow: var(--tape-edge), 0 3px 0 rgb(42 16 36 / 0.16);
}

.empty h2 {
  font-size: 1.625rem;
}

.empty p {
  margin-top: 8px;
  color: var(--soft);
}

.empty .btn {
  margin-top: 18px;
}

/* ---------- Topilmagan sahifa ---------- */

.empty-lost {
  padding-top: 0;
}

.empty-lost::before {
  display: none;
}

.lost-tape {
  height: 92px;
  margin: 34px calc(50% - 50vw) 8px;
  background:
    var(--tick) 0 0 / var(--cm) 13px repeat-x,
    var(--tick) 0 100% / var(--cm) 7px repeat-x,
    var(--lenta);
  box-shadow: var(--tape-edge), 0 5px 0 rgb(42 16 36 / 0.14);
  transform: rotate(-1.4deg);
  color: var(--olxori);
  font: 400 2.75rem/92px var(--font-display);
  text-align: center;
}

.lost-tape small {
  font-size: 1.375rem;
}

.lost-note {
  margin-top: 14px;
  color: var(--soft);
  font-size: 1.125rem;
  transform: rotate(-1.4deg);
}

.empty-lost h1 {
  margin-top: 26px;
  font-size: 2rem;
}

/* ---------- Qanday buyurtma beriladi ---------- */

.how {
  padding-block: 40px;
  background: var(--olxori-deep);
  color: var(--oq);
  scroll-margin-top: 58px;
}

.how h2 {
  font-size: 1.75rem;
}

.how-steps {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 22px 0 0;
  padding: 0 0 0 52px;
  list-style: none;
  counter-reset: step;
}

/* Bosqichlar lentaga yozilgan */
.how-steps::before {
  content: '';
  position: absolute;
  inset: -6px auto -6px 0;
  width: 36px;
  background:
    linear-gradient(180deg, var(--siyoh) 1.5px, transparent 0) 0 0 / 8px var(--cm) repeat-y,
    linear-gradient(180deg, var(--siyoh) 1.5px, transparent 0) 100% 0 / 5px var(--cm) repeat-y,
    var(--lenta);
  box-shadow: inset 2px 0 0 var(--lenta-lite), inset -2px 0 0 var(--lenta-deep), 4px 0 0 rgb(0 0 0 / 0.16);
}

.how-steps li {
  position: relative;
  counter-increment: step;
}

.how-steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: -52px;
  width: 36px;
  color: var(--siyoh);
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 30px;
  text-align: center;
}

.how-steps b {
  display: block;
}

.how-steps span {
  display: block;
  opacity: 0.88;
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.how-help {
  margin-top: 24px;
  font-size: 0.9375rem;
}

.how-help a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ---------- Katalog ---------- */

.page-title {
  padding-top: 14px;
  font-size: 2rem;
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.page-count {
  color: var(--soft);
  font-size: 0.9375rem;
}

.page-count b {
  color: var(--siyoh);
}

.link-clear {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: var(--olxori);
  font-size: 0.9375rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.search {
  position: relative;
  margin-top: 12px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  translate: 0 -50%;
  color: var(--soft);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--oq);
  font-size: 1rem;
}

.search input:focus {
  border-color: var(--olxori);
  box-shadow: 0 0 0 3px rgb(152 30 105 / 0.2);
  outline: none;
}

/* Razmer filtri ham o'sha lenta */
.size-filter {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 14px calc(var(--gutter) * -1) 0;
  padding-inline: var(--gutter);
  background:
    var(--tick) 0 0 / var(--cm) 8px repeat-x local,
    linear-gradient(var(--lenta) 0 56px, rgb(42 16 36 / 0.14) 56px 59px, transparent 59px) local;
}

.size-filter::-webkit-scrollbar {
  display: none;
}

.size-cell {
  flex: none;
  display: block;
  width: calc(var(--cm) * 5);
  text-align: center;
  text-decoration: none;
}

.size-cell-num {
  display: grid;
  place-items: center;
  min-width: 36px;
  width: max-content;
  height: 36px;
  margin: 13px auto 7px;
  padding-inline: 4px;
  border-radius: 18px;
  /* Bosiladigan tugma ekani ko'rinsin: mahsulot sahifasidagi razmer doirasi kabi */
  background: rgb(255 255 255 / 0.6);
  box-shadow: inset 0 0 0 1.5px rgb(42 16 36 / 0.35);
  font-weight: 700;
  font-size: 0.9375rem;
}

.size-cell[aria-current='true'] .size-cell-num {
  background: var(--siyoh);
  box-shadow: none;
  color: var(--oq);
}

.size-cell:active .size-cell-num {
  background: rgb(42 16 36 / 0.14);
}

.size-cell-age {
  display: block;
  padding-block: 6px 2px;
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1.1;
  white-space: nowrap;
}

/* Telefonda katalog lentasi ham boshqalari kabi: har razmer 6 sm, raqam uzun chiziq ostida */
@media (max-width: 719px) {
  .size-filter {
    padding-inline: var(--cm);
  }

  .size-cell {
    position: relative;
    width: calc(var(--cm) * 6);
  }

  .size-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2.5px;
    height: 13px;
    margin-left: -1px;
    background: var(--siyoh);
  }
}

.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 8px calc(var(--gutter) * -1) 0;
  padding: 2px var(--gutter);
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--oq);
  box-shadow: inset 0 0 0 1.5px var(--bulut);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.chip:active {
  background: var(--bulut);
}

.chip[aria-current='true'] {
  background: var(--siyoh);
  box-shadow: none;
  color: var(--oq);
}

.chips-sep {
  flex: none;
  width: 1.5px;
  height: 24px;
  margin-inline: 2px;
  background: var(--bulut);
}

@media (hover: hover) {
  .chip:not([aria-current='true']):hover,
  .size-cell:not([aria-current='true']):hover .size-cell-num {
    box-shadow: inset 0 0 0 1.5px var(--olxori);
  }
}

.catalog-grid {
  margin-top: 18px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-block: 28px;
}

/* ---------- Mahsulot sahifasi ---------- */

.product {
  padding-bottom: 28px;
}

.gallery {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--bulut);
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img {
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 58vh;
  max-height: 58svh;
  object-fit: cover;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gallery-dots {
  position: absolute;
  inset: auto 0 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.gallery-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.65);
  box-shadow: 0 0 0 1px rgb(42 16 36 / 0.25);
}

.gallery-dots span.is-on {
  background: var(--siyoh);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.7);
}

.gallery-thumbs {
  display: none;
}

.crumb-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.875rem;
}

.crumb {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: var(--olxori);
  font-weight: 600;
  text-decoration: none;
}

.product h1 {
  margin-top: 6px;
  font-size: 2rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 10px;
}

.price-now {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-old {
  color: var(--soft);
}

.price-off {
  color: var(--atlas);
  font-weight: 700;
  font-size: 0.9375rem;
}

.pick {
  margin-top: 20px;
}

.pick-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-row label {
  cursor: pointer;
}

.color-row input {
  position: absolute;
  opacity: 0;
}

.color-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--oq);
  box-shadow: inset 0 0 0 1.5px var(--bulut);
  font-size: 0.9375rem;
  font-weight: 600;
}

.color-row label:active span {
  background: var(--bulut);
}

.color-row input:checked + span {
  background: var(--siyoh);
  color: var(--oq);
  box-shadow: none;
}

.color-row input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.swatch {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.9), 0 0 0 2.5px rgb(42 16 36 / 0.18);
}

@media (hover: hover) {
  .color-row label:hover input:not(:checked) + span,
  .size:hover input:not(:checked):not(:disabled) ~ .size-num,
  .qty button:not(:disabled):hover {
    box-shadow: inset 0 0 0 1.5px var(--olxori);
  }

  .gallery-thumbs button:not([aria-current='true']):hover {
    outline: 2px solid var(--olxori);
    outline-offset: 2px;
  }
}

/* Razmer tanlash ham o'sha lenta */
.size-tape {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  background: linear-gradient(var(--lenta) 0 76px, rgb(42 16 36 / 0.16) 76px 80px, transparent 80px);
}

.size-tape::-webkit-scrollbar {
  display: none;
}

.size-tape::before,
.size-tape::after {
  content: '';
  height: 76px;
}

.size-tape::before {
  flex: 0 0 var(--gutter);
  background: var(--tick) 100% 0 / var(--cm) 11px repeat-x;
}

.size-tape::after {
  flex: 1 0 var(--gutter);
  background: var(--tick) 0 0 / var(--cm) 11px repeat-x;
}

.size {
  position: relative;
  flex: none;
  min-width: calc(var(--cm) * 6);
  cursor: pointer;
  text-align: center;
  background: var(--tick) 0 0 / var(--cm) 11px repeat-x;
}

.size::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5px;
  height: 17px;
  margin-left: -1px;
  background: var(--siyoh);
}

.size input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.size-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 19px auto 11px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.6);
  box-shadow: inset 0 0 0 1.5px rgb(42 16 36 / 0.35);
  font-weight: 700;
  font-size: 1.0625rem;
}

.size-wide .size-num {
  width: auto;
  min-width: 46px;
  padding-inline: 10px;
  border-radius: 23px;
}

.size-age {
  display: block;
  padding: 6px 4px;
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1.15;
  white-space: nowrap;
}

.size input:checked ~ .size-num {
  background: var(--siyoh);
  color: var(--oq);
  box-shadow: none;
}

.size input:focus-visible ~ .size-num {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.size input:disabled {
  cursor: not-allowed;
}

.size input:disabled ~ .size-num {
  background: none;
  box-shadow: none;
  opacity: 0.4;
  text-decoration: line-through;
}

.size input:disabled ~ .size-age {
  color: var(--atlas);
}

.size-tape.is-nudged .size {
  animation: tape-nudge 0.42s ease-out;
}

.size-tape.is-nudged .size input:not(:disabled) ~ .size-num {
  animation: size-pulse 0.45s ease 2;
}

@keyframes tape-nudge {
  30% {
    translate: -9px 0;
  }

  65% {
    translate: 5px 0;
  }
}

@keyframes size-pulse {
  50% {
    background: var(--siyoh);
    color: var(--oq);
  }
}

.stock-note {
  min-height: 1.5em;
  margin-top: 6px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.3;
}

.stock-note.is-alert {
  color: var(--atlas);
}

.buy-box {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.sticky-buy {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--oq);
  box-shadow: 0 -1px 0 var(--bulut), 0 -8px 24px rgb(42 16 36 / 0.08);
}

.sticky-buy-price {
  flex: none;
  max-width: 44%;
  font-weight: 700;
  line-height: 1.15;
}

.sticky-buy-price small {
  display: block;
  overflow: hidden;
  color: var(--soft);
  font-weight: 500;
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-buy-price small.is-added {
  color: var(--ok);
  font-weight: 700;
}

.sticky-buy .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 10px;
}

body[data-page='product'] {
  padding-bottom: 76px;
}

.prose {
  margin-top: 24px;
  white-space: pre-line;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 16px;
  list-style: none;
  background: var(--oq);
  border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px var(--bulut);
  font-size: 0.9375rem;
}

.info-list b {
  display: block;
}

.info-list span {
  color: var(--soft);
}

/* ---------- Savat tasmasi ---------- */

.cart-strip {
  position: fixed;
  inset: auto 12px calc(12px + env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 12px 8px 18px;
  border-radius: var(--r-m);
  background: var(--lenta);
  color: var(--siyoh);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--lenta-deep), 0 8px 20px rgb(42 16 36 / 0.22);
}

.cart-strip b {
  margin-left: auto;
  white-space: nowrap;
}

.cart-strip svg {
  flex: none;
}

/* ---------- Savat va rasmiylashtirish ---------- */

.narrow {
  width: min(100%, 720px);
}

.line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--bulut);
}

.line img {
  width: 76px;
  height: 95px;
  object-fit: cover;
  border-radius: var(--r-s);
  background: var(--bulut);
}

.line-name {
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.line-opts {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.875rem;
}

.line-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.line-warn {
  margin-top: 4px;
  color: var(--atlas);
  font-size: 0.875rem;
  font-weight: 600;
}

.line-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--r-m);
  background: var(--siyoh);
  color: var(--oq);
  font-size: 0.9375rem;
}

.line-undo button {
  flex: none;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-s);
  background: var(--lenta);
  color: var(--siyoh);
  font-weight: 700;
  cursor: pointer;
}

.qty {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1.5px var(--bulut);
  background: var(--oq);
}

.qty button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-m);
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.qty button:active:not(:disabled) {
  background: var(--bulut);
}

.qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty output {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.line-price {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}

.summary {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r-l);
  background: var(--oq);
  box-shadow: inset 0 0 0 1px var(--bulut);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 3px;
}

.summary-row > span:first-child {
  color: var(--soft);
}

.summary-row > span:last-child {
  flex: none;
}

.summary-row > span.summary-item {
  flex: 1;
  min-width: 0;
  color: var(--siyoh);
  font-weight: 600;
  line-height: 1.3;
}

.summary-item small {
  display: block;
  color: var(--soft);
  font-weight: 400;
  font-size: 0.875rem;
}

.summary-lines {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--bulut);
}

.summary-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--bulut);
  font-size: 1.125rem;
  font-weight: 700;
}

.summary-total > span:first-child {
  color: inherit;
}

.summary-total small {
  display: block;
  color: var(--soft);
  font-size: 0.8125rem;
  font-weight: 400;
}

.summary-total:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.summary .btn {
  margin-top: 14px;
}

.summary .hint {
  margin: 6px 0 0;
}

.back-to-shop {
  padding-block: 8px 20px;
  text-align: center;
}

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.group + .group {
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}

.group > legend {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.group > legend + * {
  clear: both;
}

.field > label,
.field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
}

.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.hint {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.875rem;
}

.field input[type='text'],
.field input[type='tel'],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--oq);
  font-size: 1rem;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background: var(--oq) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1024' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}

.field select:invalid {
  color: var(--soft);
}

.field textarea {
  resize: vertical;
}

@media (pointer: coarse) {
  .field textarea {
    resize: none;
  }
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--olxori);
  box-shadow: 0 0 0 3px rgb(152 30 105 / 0.2);
  outline: none;
}

/* :user-invalid alohida qoidada: uni bilmaydigan brauzer butun qoidani tashlab yubormasin */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--atlas);
  background-color: #fdf0f5;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--atlas);
  background-color: #fdf0f5;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: var(--atlas);
  font-size: 0.875rem;
  font-weight: 600;
}

.field :user-invalid ~ .field-error {
  display: block;
}

.tel-box:has(input:user-invalid) ~ .field-error {
  display: block;
}

.field.has-error .field-error {
  display: block;
}

/* +998 oldindan yozilgan telefon maydoni */
.tel-box {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding-left: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--oq);
}

.tel-box > span {
  flex: none;
  font-weight: 600;
}

.field .tel-box input[type='tel'] {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding-left: 8px;
  border: 0;
  background: none;
  box-shadow: none;
}

.tel-box:focus-within {
  border-color: var(--olxori);
  box-shadow: 0 0 0 3px rgb(152 30 105 / 0.2);
}

.field .tel-box input:user-invalid {
  background: none;
}

.field.has-error .tel-box input {
  background: none;
}

.tel-box:has(input:user-invalid) {
  border-color: var(--atlas);
  background: #fdf0f5;
}

.field.has-error .tel-box {
  border-color: var(--atlas);
  background: #fdf0f5;
}

.field-more summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--olxori);
  font-weight: 600;
  cursor: pointer;
}

.options {
  display: grid;
  gap: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--r-m);
  background: var(--oq);
  box-shadow: inset 0 0 0 1.5px var(--bulut);
  cursor: pointer;
}

.option:active {
  background: var(--bulut);
}

.option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--olxori);
}

.option:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--olxori);
}

.field .option input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.option b {
  display: block;
  line-height: 1.25;
}

.option small {
  color: var(--soft);
  font-size: 0.875rem;
}

@media (hover: hover) {
  .option:hover {
    box-shadow: inset 0 0 0 1.5px var(--olxori);
  }
}

.alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: #fdeef4;
  color: #8a0f42;
  font-weight: 600;
}

/* ---------- Bosqichlar: to'lib borayotgan lenta ---------- */

.steps {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min-content, 1fr);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.6875rem, 3.35vw, 0.8125rem);
  font-weight: 600;
  text-align: center;
  color: var(--soft);
}

/* Chiziqlar butun lentada bitta: har bosqichda alohida chizilsa chegarada juftlashib qoladi */
.steps::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--tick) 0 0 / var(--cm) 6px repeat-x;
  pointer-events: none;
}

.steps li {
  position: relative;
  padding: 22px 2px 0;
  background: linear-gradient(var(--bulut), var(--bulut)) 0 0 / 100% 14px no-repeat;
}

.steps li.is-done {
  background: linear-gradient(var(--lenta), var(--lenta)) 0 0 / 100% 14px no-repeat;
  color: var(--siyoh);
}

.steps li.is-now {
  background: linear-gradient(90deg, var(--lenta) 50%, var(--bulut) 50%) 0 0 / 100% 14px no-repeat;
  color: var(--siyoh);
  font-weight: 800;
}

.steps li.is-now::before,
.steps li.is-next::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -7px;
  border-inline: 7px solid transparent;
  border-top: 10px solid var(--siyoh);
}

/* To'lov tasdiqlangan, yetkazish hali boshlanmagan: ko'rsatkich bosqich boshida turadi */
.steps li.is-next {
  color: var(--siyoh);
}

.steps li.is-next::before {
  left: 0;
}

/* ---------- Buyurtma va to'lov sahifasi ---------- */

.order-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: 18px;
}

.order-top h1 {
  font-size: 1.5rem;
}

.order-date {
  color: var(--soft);
  font-size: 0.875rem;
}

.order-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--ok);
  font-size: 0.9375rem;
  font-weight: 600;
}

.order-ok svg {
  flex: none;
}

.pay-card {
  margin-top: 18px;
  padding: 18px clamp(14px, 4.6vw, 18px);
  border-radius: var(--r-l);
  background: var(--olxori-deep);
  color: var(--oq);
}

.pay-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.copy-value {
  font-weight: 700;
  line-height: 1.2;
}

.copy-card {
  font-size: clamp(1rem, 5vw, 1.75rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.copy-amount {
  font-size: clamp(1.375rem, 7vw, 1.75rem);
  color: var(--lenta);
  white-space: nowrap;
}

.copy-tag {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 62px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--r-s);
  background: var(--oq);
  color: var(--olxori-deep);
  font-size: 0.8125rem;
  font-weight: 700;
}

.copy-row:active .copy-tag,
.copy-row.is-copied .copy-tag {
  background: var(--lenta);
  color: var(--siyoh);
}

.pay-holder {
  font-size: 0.9375rem;
}

.pay-holder b {
  font-size: 1.125rem;
}

.pay-sep {
  height: 1px;
  margin-block: 12px;
  background: rgb(255 255 255 / 0.2);
}

.timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.timer svg {
  flex: none;
}

.timer b {
  font-variant-numeric: tabular-nums;
}

.timer.is-soon b {
  color: var(--lenta);
}

.pay-note {
  margin-top: 6px;
  font-size: 0.875rem;
  opacity: 0.9;
  white-space: pre-line;
}

.pay-after {
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.9375rem;
}

.upload {
  margin-top: 22px;
}

.upload h2 {
  font-size: 1.375rem;
}

.upload p {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.9375rem;
}

.file-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  margin-top: 12px;
  padding: 16px;
  border: 2px dashed var(--olxori);
  border-radius: var(--r-l);
  background: var(--oq);
  color: var(--olxori);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.file-pick:active {
  background: var(--bulut);
}

/* Faqat klaviatura bilan: bosilgandan keyin yashil quti atrofida xato rangidagi halqa qolmasin */
.file-pick:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.file-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-pick img {
  max-height: 220px;
  width: auto;
  border-radius: var(--r-s);
}

.file-pick span,
.file-pick small {
  overflow-wrap: anywhere;
}

.file-pick small {
  color: var(--soft);
  font-weight: 500;
}

.file-pick.is-picked {
  border-style: solid;
  border-color: var(--ok);
  background: #e6f6ee;
  color: #07573a;
}

.file-pick.has-error {
  border-color: var(--atlas);
  background: #fdf0f5;
  color: #8a0f42;
}

.upload .btn {
  margin-top: 12px;
  scroll-margin-bottom: calc(16px + env(safe-area-inset-bottom));
}

.status-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--oq);
  box-shadow: inset 0 0 0 1px var(--bulut);
}

.status-card h2 {
  font-size: 1.5rem;
}

.status-card p {
  margin-top: 6px;
  color: var(--soft);
}

.status-card .btn {
  margin-top: 14px;
}

.status-meta {
  font-size: 0.875rem;
}

/* Tekshirilayotganda sahifa tirik: lenta yuguradi */
.status-wait {
  position: relative;
  overflow: hidden;
  padding-top: 32px;
}

.status-wait::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--tick) 0 0 / 13px 6px repeat-x;
  background-color: var(--lenta);
  animation: tape-run 1.2s linear infinite;
}

.status-ok {
  background: var(--olxori-deep);
  box-shadow: none;
  color: var(--oq);
}

.status-ok p {
  color: rgb(255 255 255 / 0.88);
}

.status-ok::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--lenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1024' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 24px no-repeat;
  animation: check-pop 0.36s cubic-bezier(0.3, 1.6, 0.6, 1) backwards;
}

@keyframes check-pop {
  from {
    scale: 0.4;
    opacity: 0;
  }
}

.status-off {
  background: #f5ecf2;
  box-shadow: none;
}

.track-link {
  margin-top: 14px;
}

.help-line {
  margin-top: 14px;
  color: var(--soft);
  font-size: 0.9375rem;
}

.help-line a {
  display: inline-block;
  padding-block: 8px;
  margin-block: -8px;
  font-weight: 600;
  color: var(--olxori);
}

.order-items {
  margin-top: 24px;
}

.order-items h2 {
  font-size: 1.375rem;
}

.order-cancel {
  padding-block: 16px 28px;
  text-align: center;
}

/* ---------- Mening buyurtmalarim ---------- */

.my-order {
  display: block;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--r-l);
  background: var(--oq);
  box-shadow: inset 0 0 0 1px var(--bulut);
  text-decoration: none;
}

.my-order:active {
  background: var(--bulut);
}

@media (hover: hover) {
  .my-order:hover {
    box-shadow: inset 0 0 0 1.5px var(--olxori);
  }
}

.my-order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.my-order-sub {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.875rem;
}

.pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.pill-wait {
  background: #fff5d6;
  color: #6d5100;
}

.pill-review {
  background: #e4f1fb;
  color: #0b4f7c;
}

.pill-ok,
.pill-done {
  background: #e6f6ee;
  color: #07573a;
}

.pill-off {
  background: #f5ecf2;
  color: var(--soft);
}

/* ---------- Bio sahifa (taplink): logotip ranglarida, havolalar kiyim yorlig'iga o'xshaydi ---------- */

body[data-page='bio'] {
  background: var(--olxori);
  color: var(--oq);
}

.bio {
  width: min(100%, 480px);
  margin-inline: auto;
  padding: 28px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

.bio > .resume {
  margin: -28px calc(var(--gutter) * -1) 24px;
}

.bio-logo {
  margin: 0;
  line-height: 0;
  text-align: center;
}

.bio-logo a {
  display: inline-block;
  border-radius: var(--r-m);
}

.bio-logo img {
  width: min(60vw, 240px);
  height: auto;
}

.bio-tagline {
  margin-top: 14px;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}

.bio-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.bio-label {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--oq);
  color: var(--olxori);
  box-shadow: 0 3px 0 var(--olxori-deep);
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

/* Yorliqning choki */
.bio-label::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px dashed var(--pushti);
  border-radius: 8px;
  pointer-events: none;
}

.bio-label b {
  display: block;
  color: var(--siyoh);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.bio-label small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bio-label-go {
  opacity: 0.6;
}

/* Asosiy havola: do'kondagi lentaning bir bo'lagi */
.bio-label-main {
  padding-top: 16px;
  background: var(--tick) 0 0 / var(--cm) 7px repeat-x, var(--lenta);
  color: var(--siyoh);
  box-shadow: var(--tape-edge), 0 3px 0 var(--olxori-deep);
}

.bio-label-main::after {
  content: none;
}

.bio-label-main small {
  color: var(--siyoh);
}

@media (hover: hover) {
  .bio-label:hover {
    transform: translateY(-1px);
  }
}

.bio-label:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--olxori-deep);
}

.bio-label-main:active {
  box-shadow: var(--tape-edge), 0 1px 0 var(--olxori-deep);
}

.bio-quiet {
  margin-top: 8px;
  text-align: center;
}

.bio-quiet a,
.bio-all a {
  display: inline-block;
  padding-block: 10px;
  color: var(--oq);
  font-weight: 600;
}

/* Sariq faqat asosiy havolada: bu tugma logotipdagi pushti rangda */
.bio-code {
  --lenta: var(--pushti);
  --lenta-deep: var(--olxori-deep);
  margin-top: 20px;
}

@media (hover: hover) {
  .bio-code .btn-lenta:not(:disabled):not([aria-disabled='true']):hover {
    background: #ff97c4;
  }
}

.bio-code label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.bio-code-row {
  display: flex;
  gap: 8px;
}

.bio-code input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-m);
  background: var(--oq);
  color: var(--siyoh);
  font-size: 1.125rem;
}

.bio-code input::placeholder {
  color: var(--soft);
  opacity: 1;
}

.bio-fresh {
  margin-top: 30px;
  color: var(--oq);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.bio-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-m);
  background: var(--olxori-deep);
}

.bio-all {
  margin-top: 6px;
  text-align: center;
}

/* ---------- Pastki qism ---------- */

.foot {
  position: relative;
  margin-top: 24px;
  padding-block: 42px calc(28px + env(safe-area-inset-bottom));
  background: var(--siyoh);
  color: var(--oq);
  font-size: 0.9375rem;
}

/* Sahifa lenta bilan tugaydi */
.foot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: var(--tick) 0 0 / var(--cm) 7px repeat-x, var(--lenta);
}

main:has(> .how:last-child) + .foot {
  margin-top: 0;
}

body:has(.cart-strip:not([hidden])) .foot {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.foot-logo {
  line-height: 0;
}

.foot-logo img {
  height: 88px;
  width: auto;
}

.foot p {
  margin-top: 10px;
  opacity: 0.8;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 8px;
}

.foot-links a {
  display: inline-block;
  padding-block: 11px;
  font-weight: 600;
}

@media (hover: hover) {
  .foot-links a:hover {
    color: var(--lenta);
  }
}

/* Telegram ichida o'z tugmalari bor: menyu yashirin, buyurtmalarga yo'l yuqori panelda */
.icon-orders {
  display: none;
}

.in-telegram .icon-orders {
  display: grid;
}

.in-telegram .bar-nav,
.in-telegram .foot-logo,
.in-telegram .foot p {
  display: none;
}

.in-telegram body:has(.cart-strip:not([hidden])) main {
  padding-bottom: 76px;
}

/* ---------- Kengroq ekranlar ---------- */

@media (min-width: 720px) {
  :root {
    --cm: 15px;
    --gutter: 28px;
  }

  .logo img {
    height: 54px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 18px;
  }

  .hero-title {
    padding-top: 26px;
  }

  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-top: 22px;
  }

  .hero-cta .btn {
    order: -1;
    width: auto;
    min-width: 300px;
    margin-top: 0;
  }

  .tape-hint {
    margin-top: 0;
  }

  .tape-wrap {
    margin-top: 24px;
  }

  .section {
    padding-block: 48px;
  }

  .section-head h2,
  .how h2 {
    font-size: 2.25rem;
  }

  .how {
    padding-block: 56px;
  }

  .how-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 28px;
    padding: 58px 0 0;
  }

  .how-steps::before {
    inset: 0 calc(50% - 50vw) auto;
    width: auto;
    height: 40px;
    background:
      var(--tick) 0 0 / var(--cm) 9px repeat-x,
      var(--tick) 0 100% / var(--cm) 5px repeat-x,
      var(--lenta);
    box-shadow: var(--tape-edge), 0 5px 0 rgb(0 0 0 / 0.16);
  }

  .how-steps li::before {
    top: -54px;
    left: 0;
    width: auto;
    line-height: 40px;
    text-align: left;
  }

  .gallery {
    margin-inline: 0;
  }

  .gallery-track {
    border-radius: 22px;
  }

  .gallery-track img {
    max-height: none;
  }

  .gallery-dots {
    display: none;
  }

  .gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .gallery-thumbs button {
    width: 72px;
    padding: 0;
    border: 0;
    border-radius: var(--r-s);
    background: none;
    cursor: pointer;
    overflow: hidden;
  }

  .gallery-thumbs button[aria-current='true'] {
    outline: 2px solid var(--siyoh);
    outline-offset: 2px;
  }

  .gallery-thumbs button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  .gallery-thumbs img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding-top: 24px;
    align-items: start;
  }

  .product-info {
    position: sticky;
    top: 76px;
  }

  .crumb-line {
    margin-top: 0;
  }

  .product h1 {
    font-size: 2.5rem;
  }

  .size-tape {
    margin-inline: 0;
  }

  .size-tape::before {
    display: none;
  }

  .sticky-buy {
    position: static;
    margin-top: 16px;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  /* Narx sarlavha ostida turibdi, tanlangan razmer esa tugma yonida */
  .sticky-buy-sum {
    display: none;
  }

  body[data-page='product'] {
    padding-bottom: 0;
  }

  .page-title {
    font-size: 2.75rem;
    padding-top: 28px;
  }

  .chips,
  .cats {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .size-filter {
    margin-inline: 0;
    padding-inline: 8px;
  }

  .chips-sep {
    display: none;
  }

  /* Saralash o'z qatorida: filtrlar bilan aralashib, bittasi yolg'iz qolmasin */
  .chips-sep:first-of-type {
    display: block;
    flex-basis: 100%;
    width: auto;
    height: 0;
    margin: 0;
  }
}

/* Sichqoncha lentani sura olmaydi: yashirin razmerlarga scrollbar orqali yetadi */
@media (hover: hover) and (pointer: fine) {
  .size-filter,
  .size-tape {
    scrollbar-width: thin;
    scrollbar-color: var(--olxori) transparent;
  }

  .size-filter::-webkit-scrollbar,
  .size-tape::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .size-filter::-webkit-scrollbar-thumb,
  .size-tape::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--olxori);
  }
}

@media (min-width: 900px) {
  .bar-nav {
    display: flex;
  }

  /* Keng ekranda savat yuqori panelda turadi, tasma mahsulot ustini yopmasin */
  .bar-sum:not([hidden]) {
    display: block;
  }

  .cart-strip {
    display: none;
  }

  body:has(.cart-strip:not([hidden])) .foot {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  /* Keng ekranda rasmlar sarlavha yonida, lenta butun eni bo'ylab */
  .hero {
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 660px) minmax(0, 464px) minmax(var(--gutter), 1fr);
  }

  .hero > .hero-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .hero > .hero-thumbs {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    margin-block: 26px -20px;
  }

  .hero > .tape-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    z-index: 2;
  }

  .hero > .hero-cta {
    grid-column: 2 / 4;
    grid-row: 3;
    margin-block: 26px 36px;
  }

  .after-hero {
    padding-top: 26px;
  }

  .catalog-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: end;
    gap: 16px;
  }

  .search {
    margin-top: 0;
  }
}

@media (min-width: 1040px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-name {
    margin-top: 12px;
    font-size: 1rem;
  }

  .card-price b {
    font-size: 1.125rem;
  }
}
