/* =====================================================================
   Azamov Shop — asosiy dizayn
   Yo'nalish: posilka yorlig'i, yopishqoq lenta, trek-kod marshruti.
   Ranglar: kobalt ko'k + lenta sarig'i + chuqur ko'k matn.
   ===================================================================== */

:root {
    --ink: #16204A;
    --ink-2: #545C7E;
    --paper: #F3F5FA;
    --card: #FFFFFF;
    --line: #DDE2EE;
    --cobalt: #2445D6;
    --cobalt-deep: #1A33A8;
    --tape: #FFD23F;
    --tape-soft: #FFF4CC;
    --stamp: #D23A30;
    --go: #138A5A;
    --star: #E9A700;

    --r-s: 6px;
    --r-m: 14px;
    --r-l: 22px;

    --display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --tape-hover: #FFC61A;
    --tape-line: #F3E2A4;
    --tint: #F5F7FF;
    --ring: rgba(36, 69, 214, .15);
    --fab-shadow: rgba(26, 51, 168, .7);
    --img-bg: #E6EAF4;
    --img-bg-2: #F1F3F9;

    --shadow-label: 0 18px 40px -18px rgba(8, 16, 60, .55), 0 2px 6px rgba(8, 16, 60, .18);
    --shadow-pop: 0 20px 60px -20px rgba(22, 32, 74, .45);
    --tabbar-h: 64px;
}

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

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

body {
    margin: 0;
    font: 400 16px/1.55 var(--body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
h1, h2, h3 { margin: 0; color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h2 {
    font: 600 clamp(24px, 4vw, 36px)/1.15 var(--display);
    letter-spacing: -.015em;
}
h3 {
    font: 600 18px/1.3 var(--body);
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.muted { color: var(--ink-2); }
.center { text-align: center; }

.sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.hp {
    position: absolute !important;
    left: -9999px; width: 1px; height: 1px;
    opacity: 0;
}

.skip {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 2px;
    border-radius: 6px;
}
.hero :focus-visible,
.footer :focus-visible { outline-color: var(--tape); }

/* ---------------------------------------------------------------------
   Tugmalar
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font: 600 15px/1.2 var(--body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { color: inherit; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }

.btn-tape { background: var(--tape); color: var(--ink); }
.btn-tape:hover { background: var(--tape-hover); color: var(--ink); }

.btn-onblue { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-onblue:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0E1638; color: #fff; }

.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }

.btn-outline-ink { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn[disabled] { opacity: .65; cursor: progress; }
.btn.is-loading::after {
    content: "";
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
    flex: none;
}
.icon-btn:hover { background: var(--line); }

.link {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cobalt);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Chiziqli ikonlar */
.hero-facts svg, .tabbar svg, .search svg, .account-btn svg,
.icon-btn svg, .upload svg, .empty svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-btn svg { width: 20px; height: 20px; stroke-width: 2; }

.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--stamp);
    box-shadow: 0 0 0 2px var(--card);
    display: inline-block;
}

/* ---------------------------------------------------------------------
   Yuqori panel
   --------------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font: 700 17px/1 var(--display);
    letter-spacing: -.01em;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--cobalt); }

.nav { display: none; gap: 4px; margin-right: auto; }
.nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}
.nav a:hover { background: var(--paper); color: var(--ink); }

.account-btn { margin-left: auto; position: relative; }
.account-btn svg { width: 18px; height: 18px; }
.account-btn .dot { position: absolute; top: 4px; right: 6px; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--cobalt);
    color: #fff;
    padding-top: 36px;
}
.hero::before {
    /* nozik katak: karton quti ustidagi bosma */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    gap: 40px;
    align-items: center;
}
.hero h1 {
    font: 700 clamp(28px, 7.2vw, 56px)/1.07 var(--display);
    letter-spacing: -.025em;
    max-width: 15ch;
}
.lead {
    margin-top: 18px;
    max-width: 46ch;
    font-size: 18px;
    color: rgba(255, 255, 255, .86);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.id-search {
    margin-top: 28px;
    max-width: 420px;
}
.id-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}
.id-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 5px 5px 18px;
    border-radius: 999px;
    background: var(--card);
}
.id-field span {
    font: 700 14px/1 var(--display);
    color: var(--cobalt);
}
.id-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding: 10px 6px;
    background: transparent;
    font: 600 18px/1 var(--display);
    letter-spacing: .04em;
    color: var(--ink);
    outline: none;
}
.id-field:focus-within { box-shadow: 0 0 0 3px var(--tape); }
.id-search small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

/* Posilka yorlig'i */
.hero-parcel {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 440px;
    padding-top: 14px;
}
.parcel-label {
    position: relative;
    background: var(--card);
    color: var(--ink);
    border-radius: var(--r-s);
    box-shadow: var(--shadow-label);
    transform: rotate(1.2deg);
}
.parcel-label > div { padding: 16px 20px; }
.parcel-label > div + div,
.parcel-label > ol { border-top: 1.5px dashed var(--line); }
.parcel-label small {
    display: block;
    font-size: 11px;
    color: var(--ink-2);
    margin-bottom: 2px;
}
.parcel-label b { font: 600 16px/1.2 var(--display); }

.pl-route {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}
.pl-route svg { width: 100%; height: 12px; color: var(--cobalt); }
.pl-route .to { text-align: right; }

.pl-code b {
    display: block;
    font: 700 clamp(26px, 8vw, 36px)/1 var(--display);
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

.parcel-label > .route { padding: 18px 8px 16px; }

.pl-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.pl-foot > div { text-align: right; }

.barcode {
    display: block;
    width: 140px;
    height: 38px;
    background-image: linear-gradient(90deg,
        var(--ink) 0 2px, transparent 2px 4px,
        var(--ink) 4px 5px, transparent 5px 7px,
        var(--ink) 7px 10px, transparent 10px 11px,
        var(--ink) 11px 12px, transparent 12px 15px,
        var(--ink) 15px 17px, transparent 17px 18px,
        var(--ink) 18px 19px, transparent 19px 22px,
        var(--ink) 22px 25px, transparent 25px 26px);
    background-size: 26px 100%;
}

/* Yopishqoq lenta */
.tape {
    position: absolute;
    z-index: 2;
    width: 130px;
    height: 32px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 6px, transparent 6px 14px),
        var(--tape);
    opacity: .96;
    clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%,
                       100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
    pointer-events: none;
}
.tape-a { top: 0; left: 50%; transform: translateX(-50%) rotate(-4deg); }
.tape-b { top: 14px; right: -30px; transform: rotate(38deg); width: 150px; }

.hero-facts {
    position: relative;
    display: grid;
    gap: 18px;
    margin-top: 44px;
    padding-top: 24px;
    padding-bottom: 28px;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-facts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, .82);
}
.hero-facts b { color: #fff; font-weight: 600; }
.hero-facts svg {
    width: 26px; height: 26px;
    flex: none;
    color: var(--tape);
}

/* ---------------------------------------------------------------------
   Marshrut (trek holati)
   --------------------------------------------------------------------- */
.route {
    --p: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}
.route::before,
.route::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 12.5%;
    height: 3px;
    border-radius: 3px;
}
.route::before { right: 12.5%; background: var(--line); }
.route::after { width: calc(75% * var(--p)); background: var(--cobalt); }

.route li {
    position: relative;
    padding: 24px 2px 0;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.25;
    color: var(--ink-2);
}
.route li::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    width: 17px; height: 17px;
    margin-left: -8.5px;
    border: 3px solid var(--line);
    border-radius: 50%;
    background: var(--card);
}
.route li.done::before { border-color: var(--cobalt); background: var(--cobalt); }
.route li.now { color: var(--ink); font-weight: 600; }
.route li.now::before {
    border-color: var(--cobalt);
    background: var(--tape);
    box-shadow: 0 0 0 4px var(--ring);
}
.route.is-delivered::after { background: var(--go); }
.route.is-delivered li.done::before { border-color: var(--go); background: var(--go); }
.route.is-delivered li.now::before { border-color: var(--go); background: var(--go); box-shadow: 0 0 0 4px rgba(19, 138, 90, .18); }

/* Sahifa ochilganda yagona harakat: marshrut chizig'i to'ladi */
.route-hero::after { animation: routeGrow 1.4s cubic-bezier(.2, .7, .2, 1) .35s both; }
.route-hero li.now::before { animation: popIn .4s ease-out 1.5s both; }
@keyframes routeGrow { from { width: 0; } }
@keyframes popIn { from { transform: scale(.4); } }

/* ---------------------------------------------------------------------
   Bo'limlar
   --------------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-white { background: var(--card); }
.section h2 + .muted,
.section h2 + p { margin-top: 6px; }

.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.search {
    position: relative;
    flex: 1 1 280px;
    max-width: 380px;
}
.search svg {
    position: absolute;
    left: 14px; top: 50%;
    width: 20px; height: 20px;
    transform: translateY(-50%);
    color: var(--ink-2);
    pointer-events: none;
}
.search input { padding-left: 44px; border-radius: 999px; }

/* Maydonlar (umumiy) */
input:where(:not([type="radio"]):not([type="checkbox"]):not([type="file"])),
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font: 400 16px/1.4 var(--body);
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 48px; }
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' stroke='%23545C7E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}
input::placeholder, textarea::placeholder { color: #9AA1BD; }
input:where(:not([type="radio"]):not([type="checkbox"])):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--cobalt);
    box-shadow: 0 0 0 3px var(--ring);
}
.id-field input:focus { box-shadow: none; }
[aria-invalid="true"] { border-color: var(--stamp) !important; }

/* Kategoriyalar */
.chips {
    display: flex;
    gap: 8px;
    margin: 0 -20px 22px;
    padding: 2px 20px 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font: 500 14px/1 var(--body);
    cursor: pointer;
    white-space: nowrap;
}
.chip small { color: var(--ink-2); font-size: 12px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------------
   Katalog kartalari
   --------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.p-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--card);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s;
}
.p-card:hover { border-color: var(--cobalt); }
.p-img, .p-sizes, .p-price, .p-cta { display: block; }
.p-img {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--img-bg);
    overflow: hidden;
}
.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-id {
    position: absolute;
    top: 10px; left: 8px;
    padding: 6px 9px 5px;
    background: var(--tape);
    color: var(--ink);
    font: 600 11.5px/1 var(--display);
    letter-spacing: .02em;
    transform: rotate(-3deg);
    clip-path: polygon(0 10%, 5% 0, 95% 0, 100% 12%, 100% 88%, 95% 100%, 5% 100%, 0 90%);
}
.p-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 12px 12px 14px;
}
.p-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}
.p-sizes {
    font-size: 12.5px;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.p-price {
    margin-top: auto;
    padding-top: 8px;
    font: 600 15px/1.25 var(--display);
    letter-spacing: -.01em;
}
.p-price.ask { font: 600 14px/1.25 var(--body); color: var(--cobalt); }
.p-cta {
    margin: 0 12px 12px;
    padding: 10px 8px;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}
.p-card:hover .p-cta { background: var(--cobalt); color: #fff; }

.p-card.skeleton { cursor: default; pointer-events: none; }
.skeleton .p-img,
.skeleton .sk-line {
    background: linear-gradient(90deg, var(--img-bg) 0%, var(--img-bg-2) 50%, var(--img-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
}
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    border: 1.5px dashed var(--line);
    border-radius: var(--r-l);
    background: var(--card);
    text-align: center;
}
.empty svg { width: 40px; height: 40px; color: var(--ink-2); }
.empty p { max-width: 40ch; color: var(--ink-2); }
.empty .btn { margin-top: 6px; }

.more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------------------------------------------------------------------
   Qanday ishlaydi
   --------------------------------------------------------------------- */
.steps {
    display: grid;
    gap: 24px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.steps li { position: relative; padding-left: 60px; }
.step-n {
    position: absolute;
    left: 0; top: -2px;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--cobalt);
    color: #fff;
    font: 700 17px/1 var(--display);
}
.steps li:not(:last-child)::after {
    /* mobil: pastga tushuvchi punktir */
    content: "";
    position: absolute;
    left: 21px; top: 50px; bottom: -22px;
    border-left: 2px dashed var(--line);
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 15px; max-width: 40ch; }

.cost {
    margin-top: 40px;
    padding: 24px;
    border-radius: var(--r-l);
    background: var(--paper);
}
.cost h3 { margin-bottom: 16px; font-size: 16px; color: var(--ink-2); font-weight: 500; }
.cost-eq {
    display: grid;
    gap: 12px;
    align-items: stretch;
}
.cost-part {
    padding: 18px 20px;
    border-radius: var(--r-m);
    background: var(--card);
    border: 1px solid var(--line);
}
.cost-part small { display: block; font-size: 13px; color: var(--ink-2); }
.cost-part b { display: block; margin: 4px 0 6px; font: 600 20px/1.2 var(--display); }
.cost-part p { font-size: 14px; color: var(--ink-2); }
.cost-plus {
    justify-self: center;
    font: 700 28px/1 var(--display);
    color: var(--cobalt);
}

/* ---------------------------------------------------------------------
   Kuzatish + topib berish
   --------------------------------------------------------------------- */
.split { display: grid; gap: 16px; }
.panel {
    position: relative;
    overflow: hidden;
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--card);
}
.panel h2 { font-size: clamp(22px, 3.2vw, 30px); }

.inline-form {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}
.inline-form input {
    flex: 1;
    min-width: 0;
    font: 600 17px/1.2 var(--display) !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.inline-form input::placeholder { text-transform: none; letter-spacing: .04em; }

.find { background: var(--tape-soft); border-color: var(--tape-line); }
.find p { margin: 10px 0 20px; max-width: 36ch; }

.track-card {
    margin-top: 20px;
    padding: 18px 16px 16px;
    border-radius: var(--r-m);
    background: var(--paper);
}
.track-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.track-head b { font: 700 18px/1.2 var(--display); letter-spacing: .02em; }
.track-card > p { margin-bottom: 18px; color: var(--ink-2); font-size: 14px; }
.track-error { margin-top: 14px; color: var(--stamp); font-weight: 500; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--paper);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.badge.pay-pending { background: #FFF0C2; color: #7A5700; }
.badge.pay-paid { background: #DAF3E7; color: #0D6843; }
.badge.pay-cancelled { background: #FCE1DF; color: #9E2A22; }

/* ---------------------------------------------------------------------
   O'lchamlar jadvali
   --------------------------------------------------------------------- */
.sizes { display: grid; gap: 24px; align-items: start; }
.sizes-copy p { margin-top: 12px; color: var(--ink-2); max-width: 44ch; }
.table-scroll { overflow-x: auto; }
.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
.size-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    border-bottom: 2px solid var(--ink);
}
.size-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.size-table td:last-child { font: 600 15px/1 var(--display); color: var(--cobalt); }
.size-table tbody tr:nth-child(odd) { background: var(--paper); }

/* ---------------------------------------------------------------------
   Fikrlar
   --------------------------------------------------------------------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.review {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--card);
}
.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.review-head b { font-weight: 600; overflow-wrap: anywhere; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.review p { font-size: 15px; overflow-wrap: anywhere; }
.review time { margin-top: auto; font-size: 13px; color: var(--ink-2); }

/* ---------------------------------------------------------------------
   Savollar
   --------------------------------------------------------------------- */
.faq-wrap { display: grid; gap: 24px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    position: relative;
    padding: 18px 44px 18px 0;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 6px; top: 50%;
    width: 22px; height: 22px;
    margin-top: -11px;
    background:
        linear-gradient(var(--cobalt), var(--cobalt)) center / 14px 2px no-repeat,
        linear-gradient(var(--cobalt), var(--cobalt)) center / 2px 14px no-repeat;
    transition: transform .2s;
}
.faq details[open] summary::after {
    background: linear-gradient(var(--cobalt), var(--cobalt)) center / 14px 2px no-repeat;
}
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* ---------------------------------------------------------------------
   Aloqa va footer
   --------------------------------------------------------------------- */
.contact { background: var(--tape); padding: 48px 0; }
.contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.contact h2 { max-width: 20ch; font-size: clamp(22px, 3.4vw, 32px); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer {
    background: var(--ink);
    color: #C3C9E0;
    padding: 44px 0 28px;
    font-size: 15px;
}
.footer .muted { color: #9BA3C4; }
.footer a { color: #fff; }
.footer a:hover { color: var(--tape); }
.footer-inner { display: grid; gap: 28px; }
.footer-brand { font: 700 20px/1 var(--display); color: #fff; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { text-decoration: none; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 14px;
}

/* ---------------------------------------------------------------------
   Mobil pastki menyu
   --------------------------------------------------------------------- */
.tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.tabbar a:hover, .tabbar button:hover { color: var(--cobalt); }
.tabbar svg { width: 24px; height: 24px; }
.tabbar .dot { position: absolute; top: 9px; left: calc(50% + 8px); }

/* ---------------------------------------------------------------------
   Oynalar (dialog): mobilda pastdan chiqadi
   --------------------------------------------------------------------- */
dialog.sheet {
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: var(--r-l) var(--r-l) 0 0;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
}
dialog.sheet[open] {
    display: flex;
    flex-direction: column;
    animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1);
}
dialog.sheet:focus { outline: none; }
dialog.sheet::backdrop {
    background: rgba(16, 24, 60, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } }

.sheet-sm { max-width: 460px; }

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 20px; }
.sheet-head small { display: block; margin-top: 2px; }

.sheet-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
}

.stack { display: flex; flex-direction: column; gap: 0; }

/* Qadamlar ko'rsatkichi */
.stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0;
    padding: 12px 20px 0;
    list-style: none;
    counter-reset: st;
}
.stepper li {
    counter-increment: st;
    padding-top: 8px;
    border-top: 3px solid var(--line);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-2);
}
.stepper li::before { content: counter(st) ". "; }
.stepper li.on { border-color: var(--cobalt); color: var(--ink); font-weight: 600; }
.stepper li.done { border-color: var(--cobalt); }
.stepper.is-hidden { display: none; }

/* Buyurtmadagi tovar */
.op {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: var(--r-m);
    background: var(--paper);
}
.op-img {
    width: 76px; height: 92px;
    flex: none;
    object-fit: cover;
    border-radius: 10px;
    background: var(--img-bg);
}
.op-id { font: 600 11.5px/1 var(--display); color: var(--cobalt); }
.op-name { margin: 4px 0; font-weight: 600; line-height: 1.3; }
.op-price { font: 600 15px/1.2 var(--display); }

/* Forma maydonlari */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}
.field-label {
    padding: 0;
    font-weight: 600;
    font-size: 14px;
}
.field-label em {
    margin-left: 6px;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    color: var(--ink-2);
}
.hint { font-size: 13px; color: var(--ink-2); }
.hint:empty { display: none; }

.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chips:empty { display: none; }
.size-chip {
    min-width: 50px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    font: 600 14px/1 var(--body);
    cursor: pointer;
}
.size-chip:hover { border-color: var(--ink); }
.size-chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.qty {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.qty button {
    width: 46px; height: 44px;
    border: 0;
    background: var(--card);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.qty button:hover { background: var(--paper); }
.qty input {
    width: 52px !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center;
    font: 600 17px/1 var(--display) !important;
    box-shadow: none !important;
}

.sum-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
    padding-top: 16px;
    border-top: 1.5px dashed var(--line);
}
.sum-row b { font: 700 20px/1.2 var(--display); text-align: right; }

.form-error {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #FCE8E6;
    color: #9E2A22;
    font-size: 14px;
    font-weight: 500;
}
.form-error:empty { display: none; }

.step-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}
.step-actions .btn-primary { flex: 1; white-space: normal; text-align: center; }

/* To'lov */
.pay-sum {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: var(--r-m);
    background: var(--paper);
}
.pay-sum small { display: block; font-size: 13px; color: var(--ink-2); }
.pay-sum b { display: block; margin: 4px 0 6px; font: 700 26px/1.15 var(--display); }
.pay-sum p { font-size: 13.5px; color: var(--ink-2); }
.pay-note { margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
#payLater { padding: 14px; border-radius: 12px; background: var(--tape-soft); color: var(--ink); margin-bottom: 16px; }

.cards { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    border-radius: var(--r-m);
    background: var(--ink);
    color: #fff;
}
.pay-card > div { min-width: 0; }
.pay-card small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.pay-card b {
    display: block;
    margin: 3px 0 2px;
    font: 600 clamp(14px, 3.9vw, 19px)/1.2 var(--display);
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.copy-btn {
    flex: none;
    min-height: 38px;
    padding: 6px 12px;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, .12); }
.copy-btn.is-done { background: var(--tape); border-color: var(--tape); color: var(--ink); }

/* Rasm yuklash */
.upload {
    position: relative;
    display: block;
    margin-bottom: 16px;
    padding: 18px;
    border: 2px dashed var(--line);
    border-radius: var(--r-m);
    background: var(--card);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.upload:hover, .upload.is-drag { border-color: var(--cobalt); background: var(--tint); }
.upload:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--ring); }
.upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-empty, .upload-filled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}
.upload svg { width: 32px; height: 32px; color: var(--cobalt); margin-bottom: 4px; }
.upload b { font-size: 15px; overflow-wrap: anywhere; }
.upload small { font-size: 13px; color: var(--ink-2); }
.upload-filled img {
    width: 96px; height: 96px;
    margin-bottom: 6px;
    object-fit: cover;
    border-radius: 10px;
}
.upload-tall { padding: 28px 18px; }
.upload.is-filled { border-style: solid; border-color: var(--go); }

/* Buyurtma tayyor */
.done { text-align: center; }
.done-mark {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    margin: 4px auto 14px;
    border-radius: 50%;
    background: #DAF3E7;
    color: var(--go);
}
.done-mark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font: 600 22px/1.25 var(--display); }
.done > p { margin: 8px auto 0; max-width: 38ch; color: var(--ink-2); }
.done-code {
    position: relative;
    margin: 22px 0;
    padding: 20px 16px 16px;
    border: 1.5px dashed var(--ink);
    border-radius: var(--r-s);
}
.done-code small { display: block; font-size: 12px; color: var(--ink-2); }
.done-code b {
    display: block;
    margin: 4px 0 12px;
    font: 700 clamp(28px, 9vw, 38px)/1 var(--display);
    letter-spacing: .03em;
}
.done-code .copy-btn { border-color: var(--line); color: var(--ink); }
.done-code .copy-btn:hover { background: var(--paper); }
.done .route { margin: 8px 0 22px; }
.done-note {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
    background: var(--paper);
    font-size: 14px;
}
.done-actions { display: grid; gap: 10px; }

/* Tablar */
.tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 999px;
    background: var(--paper);
}
.tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
}
.tabs button[aria-selected="true"] {
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(22, 32, 74, .14);
}

/* Kabinet */
.cab-orders { display: grid; gap: 12px; }
.order-row {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
}
.order-top { display: flex; gap: 12px; align-items: flex-start; }
.order-top img {
    width: 56px; height: 68px;
    flex: none;
    object-fit: cover;
    border-radius: 8px;
    background: var(--img-bg);
}
.order-top > div { flex: 1; min-width: 0; }
.order-top b { font: 600 14px/1.2 var(--display); letter-spacing: .02em; }
.order-top p { margin: 3px 0 6px; font-weight: 500; line-height: 1.3; }
.order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-2); }
.route-compact li { font-size: 10.5px; }

.logout { margin-top: 20px; }

/* Kabinet: chat tugmasi */
.cab-chat { margin-bottom: 22px; }
.cab-chat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cab-title { margin-bottom: 12px; font-size: 16px; }

/* ---------------------------------------------------------------------
   Suzuvchi chat
   --------------------------------------------------------------------- */
.chat-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--cobalt);
    color: #fff;
    box-shadow: 0 10px 24px -8px var(--fab-shadow);
    cursor: pointer;
    transition: transform .15s, background-color .15s;
}
.chat-fab:hover { background: var(--cobalt-deep); transform: translateY(-1px); }
.chat-fab svg {
    grid-area: 1 / 1;
    width: 26px; height: 26px;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
}
.chat-fab .i-close { display: none; }
.chat-fab[aria-expanded="true"] .i-chat { display: none; }
.chat-fab[aria-expanded="true"] .i-close { display: block; }
.chat-fab.has-unread { background: var(--stamp); box-shadow: 0 10px 24px -8px rgba(210, 58, 48, .8); }
.chat-fab.ring { animation: ring .9s ease-in-out 2; }
@keyframes ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-14deg) scale(1.08); }
    30% { transform: rotate(12deg) scale(1.08); }
    45% { transform: rotate(-8deg); }
    60% { transform: rotate(5deg); }
}
.chat-badge {
    position: absolute;
    top: -3px; right: -3px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--tape);
    color: var(--ink);
    font: 700 12px/18px var(--body);
    text-align: center;
}

.chat-panel {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    height: 86vh;
    height: 86dvh;
    border-radius: var(--r-l) var(--r-l) 0 0;
    background: var(--card);
    box-shadow: 0 -10px 60px -12px rgba(16, 24, 60, .45);
    overflow: hidden;
    animation: sheetUp .26s cubic-bezier(.2, .8, .2, 1);
}
.chat-panel[hidden] { display: none; }

.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ink);
    color: #fff;
}
.chat-head > div { flex: 1; min-width: 0; }
.chat-head h2 { font: 600 16px/1.2 var(--display); }
.chat-head small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.chat-head .icon-btn { background: rgba(255, 255, 255, .1); color: #fff; }
.chat-head .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.chat-avatar {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--tape);
    color: var(--ink);
}
.chat-avatar svg { width: 26px; height: 26px; }

.chat-log {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
}
.chat-empty {
    margin: auto;
    max-width: 30ch;
    text-align: center;
    color: var(--ink-2);
    font-size: 14px;
}
.msg {
    align-self: flex-start;
    max-width: 84%;
    padding: 9px 12px;
    border-radius: 14px 14px 14px 4px;
    background: var(--card);
    font-size: 15px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-shadow: 0 1px 1px rgba(22, 32, 74, .06);
}
.msg time { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-2); text-align: right; }
.msg-mine { align-self: flex-end; background: var(--cobalt); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg-mine time { color: rgba(255, 255, 255, .72); }
.msg-img {
    display: block;
    width: 180px;
    max-width: 100%;
    max-height: 220px;
    object-fit: cover;
    margin: 2px 0 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
}

.chat-form {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--card);
}
.chat-form .form-error { margin: 0 0 8px; }
.chat-guest p { margin-bottom: 8px; font-size: 13.5px; color: var(--ink-2); }
.chat-guest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.chat-guest-row input { padding: 10px 12px; font-size: 15px; }
.chat-attach {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 12px;
    background: var(--paper);
    font-size: 13px;
}
.chat-attach img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat-attach span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attach button {
    width: 32px; height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--card);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.chat-row { display: flex; align-items: flex-end; gap: 6px; }
.chat-row textarea {
    min-height: 44px;
    max-height: 140px;
    padding: 11px 14px;
    border-radius: 22px;
    resize: none;
}
.chat-file, .chat-send {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.chat-file { background: var(--paper); color: var(--ink-2); }
.chat-file:hover { color: var(--cobalt); }
.chat-file:focus-within { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.chat-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.chat-send { background: var(--cobalt); color: #fff; }
.chat-send:hover { background: var(--cobalt-deep); }
.chat-send[disabled] { opacity: .6; cursor: progress; }
.chat-file svg, .chat-send svg {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
    pointer-events: none;
}

/* Tovar rasmlari galereyasi */
.gallery {
    display: flex;
    gap: 8px;
    margin: -4px -20px 14px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:empty { display: none; }
.gallery a {
    position: relative;
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
}
.gallery:has(a:only-child) a { flex-basis: 100%; max-width: none; }
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 48vh;
    object-fit: cover;
    border-radius: var(--r-m);
    background: var(--img-bg);
}
.gallery .g-count {
    position: absolute;
    right: 8px; bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(22, 32, 74, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.gallery:not(:empty) + .op .op-img { display: none; }
.p-count {
    position: absolute;
    right: 8px; bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(22, 32, 74, .72);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}

.req {
    margin-left: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #FCE1DF;
    color: #9E2A22;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 600;
    vertical-align: middle;
}

/* Baho yulduzlari */
.stars-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label {
    padding: 0 3px;
    font-size: 34px;
    line-height: 1;
    color: var(--line);
    cursor: pointer;
    transition: color .1s;
}
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { color: var(--star); }
.stars-input input:focus-visible + label { outline: 3px solid var(--cobalt); border-radius: 6px; }

/* Bildirishnoma */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom));
    z-index: 120;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: var(--r-m);
    background: var(--ink);
    color: #fff;
    font-weight: 500;
    box-shadow: var(--shadow-pop);
    transform: translateX(-50%);
    animation: toastIn .22s ease-out;
}
.toast.is-error { background: var(--stamp); }
dialog .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
@keyframes toastIn { from { transform: translate(-50%, 12px); opacity: 0; } }


/* =====================================================================
   Ayollar bo'limi (azamovshop.uz/ayollar) — logotip rangi: bordo + pushti
   ===================================================================== */
html[data-section="women"] {
    --ink: #3B1F2A;
    --ink-2: #6F5561;
    --paper: #FBF3F0;
    --line: #EFDDD8;
    --cobalt: #954C5C;
    --cobalt-deep: #7A3A49;
    --tape: #F6CFC9;
    --tape-soft: #FCEDE6;
    --tape-hover: #F2BDB5;
    --tape-line: #F1D6CF;
    --tint: #FCF1EE;
    --ring: rgba(149, 76, 92, .18);
    --fab-shadow: rgba(122, 58, 73, .6);
    --img-bg: #F3E4E0;
    --img-bg-2: #FAF0ED;
    --shadow-label: 0 18px 40px -18px rgba(60, 16, 30, .5), 0 2px 6px rgba(60, 16, 30, .16);
}
html[data-section="women"] .chat-fab.has-unread { background: var(--stamp); }
html[data-section="women"] .route li.now::before { background: var(--tape); }

/* Bo'limga qarab ko'rinadigan bloklar */
html[data-section="main"] [data-when="women"],
html[data-section="women"] [data-when="main"] { display: none !important; }

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

/* Bo'lim almashtirgich (hero tepasida) */
.store-switch {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 22px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}
.store-switch a {
    padding: 8px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.store-switch a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
html[data-section="main"] .store-switch a[data-store="main"],
html[data-section="women"] .store-switch a[data-store="women"] {
    background: #fff;
    color: var(--ink);
}

/* Asosiy katalogda: ayollar bo'limiga kirish */
.women-promo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #F1D6CF;
    border-radius: var(--r-m);
    background: #FCEDE6;
    color: #3B1F2A;
    text-decoration: none;
}
.women-promo:hover { border-color: #954C5C; color: #3B1F2A; }
.women-promo img { width: 40px; height: auto; flex: none; }
.women-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.women-promo-text b { color: #7A3A49; font-weight: 700; }
.women-promo-text small { color: #6F5561; font-size: 13.5px; line-height: 1.35; }
.women-promo-cta {
    flex: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: #954C5C;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Tovar haqida (buyurtma oynasi) */
.op-about {
    margin: -8px 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--paper);
    font-size: 14.5px;
    line-height: 1.5;
}
.op-about p { white-space: pre-line; }
.op-about p + p { margin-top: 8px; }
.op-about b { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* To'lov kartalari logotiplari */
.pay-logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.pay-logo img { max-width: 42px; max-height: 28px; object-fit: contain; }
.pay-card > div { flex: 1; min-width: 0; }
.pay-card { gap: 10px; padding: 12px; }
.pay-card b { font-size: clamp(13px, 3.7vw, 19px); letter-spacing: .02em; }
.pay-methods { display: inline-flex; align-items: center; gap: 8px; }
.pay-methods img { height: 26px; width: auto; border-radius: 4px; background: #fff; padding: 2px 4px; }

/* Ayollar o'lcham jadvali */
.size-table-women td:last-child { font: inherit; color: inherit; }
@media (max-width: 560px) {
    .size-table-women th, .size-table-women td { padding: 10px 6px; font-size: 14px; }
    .size-table-women th:first-child, .size-table-women td:first-child { padding-left: 10px; }
}
.size-table-women td:first-child { font: 600 15px/1 var(--display); color: var(--cobalt); }
.table-note { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

.chat-avatar img { width: 26px; height: auto; }

/* ---------------------------------------------------------------------
   Kengroq ekranlar
   --------------------------------------------------------------------- */
@media (min-width: 560px) {
    .hero-facts { grid-template-columns: repeat(3, 1fr); }
    .cost-eq { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .grid { gap: 16px; }
}

@media (min-width: 720px) {
    .chat-panel {
        left: auto;
        right: 24px;
        bottom: 96px;
        width: 380px;
        height: min(600px, calc(100vh - 130px));
        border-radius: var(--r-l);
        box-shadow: var(--shadow-pop);
    }
    .gallery { margin: 0 0 16px; padding: 0; scroll-padding: 0; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .section { padding: 80px 0; }
    .panel { padding: 36px 32px; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
    .steps li:not(:last-child)::after { display: none; }
    .sizes { grid-template-columns: 1fr 1.2fr; gap: 48px; }
    .footer-inner { grid-template-columns: 1.2fr 1fr; }
    .footer-bottom { grid-column: 1 / -1; }

    dialog.sheet {
        margin: auto;
        border-radius: var(--r-l);
        max-height: 88vh;
    }
    @keyframes sheetUp { from { transform: translateY(16px) scale(.98); opacity: 0; } }
    .sheet-head { padding: 22px 28px 16px; }
    .stepper { padding: 14px 28px 0; }
    .sheet-body { padding: 24px 28px 28px; }
}

@media (min-width: 960px) {
    body { padding-bottom: 0; }
    .tabbar { display: none; }
    .chat-fab { right: 24px; bottom: 24px; width: 60px; height: 60px; }
    .toast { bottom: 28px; max-width: min(520px, calc(100vw - 200px)); }
    .nav { display: flex; }
    .account-btn { margin-left: 0; }

    .hero { padding-top: 64px; }
    .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
    .hero-parcel { margin: 0 0 0 auto; }
    .parcel-label { transform: rotate(2.4deg); }
    .hero-facts { margin-top: 64px; }

    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 26px; padding: 0; }

    .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
    .steps li { padding: 64px 0 0; }
    .step-n { top: 0; }
    .steps li:not(:last-child)::after {
        display: block;
        left: 56px; right: -16px;
        top: 21px; bottom: auto;
        border-left: 0;
        border-top: 2px dashed var(--line);
    }

    .split { grid-template-columns: 1.4fr 1fr; gap: 20px; }
    .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
    .faq-wrap h2 { position: sticky; top: 96px; }
    .cost { padding: 32px; }
}

@media (max-width: 420px) {
    .p-cta { font-size: 13px; margin: 0 10px 10px; }
    .p-price { font-size: 14px; }
    .pay-card { padding-left: 14px; }
}

@media (max-width: 380px) {
    .wrap { padding: 0 16px; }
    .chips { margin: 0 -16px 22px; padding-left: 16px; padding-right: 16px; }
    .hero-actions .btn { width: 100%; }
    .p-body { padding: 10px 10px 12px; }
    .p-cta { margin: 0 10px 10px; }
    .route li { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
}
