/* ============================================================
   Karkas: sarlavha, mega-menyu, hero, footer, savat paneli
   ============================================================ */

/* --- Yuqori tasma --- */

.topbar {
    background: var(--bg-deep);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 40px;
}

.topbar a:hover {
    color: #fff;
}

.topbar-links {
    display: flex;
    gap: 22px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-weight: 600;
}

/* --- Sarlavha --- */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    /* Eski Safari uchun fallback: color-mix tushunilmasa sarlavha
       shaffof boʻlib qolardi. Avval oddiy fon, keyin zamonaviysi. */
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--mid) var(--ease);
}

.header.stuck {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* --- Logotip ---
   Nishondagi matn ("ASL", "QANDOLAT INGREDIENTLARI", "DOIMO SIZ BILAN")
   BO'YALMAGAN — u o'yib olingan, ya'ni shaffof teshiklar. O'lchov:
   "ASL" sohasining 33% i shaffof, qora piksel esa 0%.
   Natijada:
     - to'q fonda teshiklardan fon ko'rinib, matn QORA bo'lib o'qiladi
     - oq fonda teshiklar oqarib, matn BUTUNLAY YO'QOLADI
   Shuning uchun logotip ORQASIGA to'q disk qo'yamiz. Disk nishonning
   o'zidan bir oz kichik (nishon rasmning 95.7% ini egallaydi), shuning
   uchun u oq doira ostida yashirinadi va faqat harflar orqali ko'rinadi.
   Endi logotip istalgan fonda bir xil chiqadi.

   DIQQAT: `circle` uchun foizlar element DIAGONALIGA nisbatan o'lchanadi
   (`farthest-corner` — sukut bo'yicha), shuning uchun oddiy 47% kerakli
   diskdan sezilarli kichik chiqib, halqa matni ochiq qolib ketgan edi.
   `closest-side` nurni elementning yarim kengligiga tenglashtiradi. */
.logo img,
.footer-logo img {
    border-radius: 50%;
    background: radial-gradient(circle closest-side,
            var(--ink) 0 94%, transparent 95%);
}

/* Oq fonda nishonning oq cheti sahifadan ajralib turishi uchun
   nozik halqa. Qorong'u mavzuda va footerda kerak emas. */
.logo img {
    box-shadow: 0 0 0 1px rgba(20, 20, 26, .14);
}

:root[data-theme="dark"] .logo img {
    box-shadow: none;
}

.logo-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
}

.logo-text span {
    color: var(--red);
}

.logo-sub {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 3px;
}

/* Kategoriyalar tugmasi */
.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--red);
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    flex: none;
    transition: background-color var(--fast) var(--ease);
}

.cat-btn:hover {
    background: var(--red-bright);
}

/* Qidiruv */
.search {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 0 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.search-field:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-wash);
}

.search-field svg {
    flex: none;
    color: var(--text-faint);
}

.search-field input {
    flex: 1;
    min-width: 0;
    padding: 13px 0;
    border: 0;
    background: none;
    outline: none;
}

.search-go {
    flex: none;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--r-xs);
    background: var(--red);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Maslahatlar */
.suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: drop var(--fast) var(--ease-out);
}

@keyframes drop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.suggest-label {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    text-align: left;
    transition: background-color var(--fast) var(--ease);
}

.suggest-item:hover {
    background: var(--surface-2);
}

.suggest-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    background: var(--red-wash);
    color: var(--red);
}

.suggest-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-all {
    display: block;
    width: 100%;
    padding: 11px;
    margin-top: 4px;
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
}

/* Sarlavha amallari */
.header-acts {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text);
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.icon-btn:hover {
    background: var(--surface-2);
    color: var(--red);
}

.count {
    position: absolute;
    top: 6px;
    right: 5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg);
}

.count.pop {
    animation: count-pop .36s var(--spring);
}

@keyframes count-pop {
    40% {
        transform: scale(1.45);
    }
}

/* --- Mega menyu --- */

.mega {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 60;
}

.mega-veil {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 14, .5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: fade var(--fast) var(--ease) both;
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

.mega-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    max-width: var(--wrap);
    margin: 0 auto;
    max-height: 82vh;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: mega-in var(--mid) var(--ease-out) both;
}

@keyframes mega-in {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
}

.mega-side {
    padding: 16px 0;
    background: var(--bg-alt);
    overflow-y: auto;
}

.mega-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 22px;
    border: 0;
    border-left: 3px solid transparent;
    background: none;
    text-align: left;
    font-size: 14.5px;
    font-weight: 550;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.mega-cat svg {
    flex: none;
    color: var(--text-faint);
    transition: color var(--fast) var(--ease);
}

.mega-cat:hover,
.mega-cat.on {
    background: var(--surface);
    border-left-color: var(--red);
    color: var(--red);
}

.mega-cat:hover svg,
.mega-cat.on svg {
    color: var(--red);
}

.mega-cat i {
    margin-left: auto;
    font-style: normal;
    font-size: 12px;
    color: var(--text-faint);
}

.mega-body {
    padding: 26px 30px;
    overflow-y: auto;
}

.mega-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.mega-title h3 {
    font-size: 20px;
}

.mega-subs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 4px 20px;
}

.mega-sub {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-xs);
    font-size: 14px;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.mega-sub:hover {
    background: var(--red-wash);
    color: var(--red);
}

.mega-sub em {
    font-style: normal;
    font-size: 12px;
    color: var(--text-faint);
}

.mega-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
}

/* --- Hero --- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 108px) 0 clamp(48px, 6vw, 84px);
}

.hero::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 130%;
    background:
        radial-gradient(48% 42% at 18% 10%, rgba(211, 33, 26, .16), transparent 68%),
        radial-gradient(40% 38% at 88% 4%, rgba(211, 33, 26, .10), transparent 66%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
}

.hero h1 {
    margin: 18px 0 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 46px);
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.stat b {
    display: block;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--red);
}

.stat span {
    display: block;
    margin-top: 7px;
    font-size: 13.5px;
    color: var(--text-dim);
}

/* Hero o'ng tomon: aylanadigan kategoriya plitkalari */
.hero-art {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--slow) var(--ease-out), box-shadow var(--slow) var(--ease-out);
}

.hero-tile:nth-child(odd) {
    transform: translateY(14px);
}

.hero-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.hero-tile:nth-child(odd):hover {
    transform: translateY(8px);
}

.hero-tile-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--r);
    background: var(--red-wash);
    color: var(--red);
}

.hero-tile b {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.hero-tile span {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* --- Afzalliklar tasmasi --- */

.perks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--line);
    overflow: hidden;
}

.perk {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: var(--surface);
}

.perk-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--r-sm);
    background: var(--red-wash);
    color: var(--red);
}

.perk b {
    display: block;
    font-size: 14.5px;
    font-weight: 650;
}

.perk span {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* --- Kategoriya plitkalari --- */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    min-height: 168px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform var(--mid) var(--ease-out), box-shadow var(--mid) var(--ease-out),
        border-color var(--mid) var(--ease);
}

.cat-tile::after {
    content: '';
    position: absolute;
    right: -44px;
    bottom: -44px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--red-wash);
    transition: transform var(--slow) var(--ease-out);
}

.cat-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.cat-tile:hover::after {
    transform: scale(1.35);
}

.cat-tile-ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: var(--r);
    background: var(--red-wash);
    color: var(--red);
    transition: transform var(--mid) var(--spring);
}

.cat-tile:hover .cat-tile-ico {
    transform: scale(1.08) rotate(-5deg);
}

.cat-tile b {
    position: relative;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.cat-tile span {
    position: relative;
    margin-top: auto;
    font-size: 13px;
    color: var(--text-dim);
}

/* --- Brendlar --- */

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

.brand {
    display: grid;
    place-items: center;
    padding: 26px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text-dim);
    transition: all var(--fast) var(--ease);
}

.brand:hover {
    color: var(--red);
    border-color: var(--red);
    transform: translateY(-3px);
}

.brand em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint);
}

/* Premium liniya kartasi — oltin hoshiya ikki qatlamli fon bilan:
   ichki qatlam karta foni, tashqi qatlam gradient hoshiya. */
.brand-premium {
    border: 1.5px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #c9962e, #f3d27a 45%, #a87b1c) border-box;
    color: var(--text);
    box-shadow: 0 4px 18px rgba(201, 150, 46, .18);
}

.brand-premium:hover {
    color: #b8891f;
    border-color: transparent;
    box-shadow: 0 8px 26px rgba(201, 150, 46, .3);
}

.brand-premium em {
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c9962e, #e8c25c);
    /* Oq matn oltin fonda o'qilmasdi (1.7:1) — to'q jigarrang aniq
       o'qiladi va oltin ko'rinishni buzmaydi */
    color: #3d2c05;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* --- Filiallar --- */

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

.branch {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    transition: all var(--mid) var(--ease-out);
}

.branch:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.branch h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 14px;
}

.branch h3 svg {
    color: var(--red);
}

.branch dl {
    /* Pastdagi bo'shliq — tugma `margin-top: auto` bilan pastga tortilganda
       matnga yopishib qolmasin */
    margin: 0 0 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    font-size: 14px;
}

.branch dt {
    color: var(--text-faint);
}

.branch dd {
    margin: 0;
}

.branch-phone {
    position: relative;
    color: inherit;
    border-bottom: 1px solid var(--line-strong);
    transition: color var(--fast) var(--ease);
}

/* Matn balandligi atigi 20px — barmoq uchun kam. Tartibni buzmasdan
   bosiladigan maydonni kengaytiramiz. */
.branch-phone::after {
    content: '';
    position: absolute;
    inset: -15px -10px;
}

.branch-phone:hover {
    color: var(--red);
    border-color: currentColor;
}

/* "Hozir ochiq / Yopiq" — Toshkent vaqti bo'yicha hisoblanadi */
.branch-state {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--text-faint);
    background: var(--surface-2);
    white-space: nowrap;
}

.branch-state.on {
    color: #12794a;
    background: rgba(23, 158, 95, .13);
}

:root[data-theme="dark"] .branch-state.on {
    color: #57d69b;
}

.branch-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    /* Manzil uzunligi har xil — tugmalar baribir bir chiziqda tursin */
    margin-top: auto;
    align-self: flex-start;
    padding: 9px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--fast) var(--ease);
}

.branch-map-btn svg {
    color: var(--red);
}

.branch-map-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-wash);
}

/* --- Kartochkalar ostidagi xarita --- */

.branch-map {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
}

.branch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.branch-tabs::-webkit-scrollbar {
    display: none;
}

.branch-tab {
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    transition: all var(--fast) var(--ease);
}

.branch-tab:hover {
    color: var(--text);
    background: var(--surface-2);
}

.branch-tab.on {
    color: #fff;
    background: var(--red);
    box-shadow: var(--shadow-red);
}

.branch-map-canvas {
    position: relative;
    height: clamp(280px, 42vw, 440px);
    background: var(--surface-2);
}

/* Yandex yuklangunicha ko'rinadigan "nafas oluvchi" fon */
.branch-map-skel {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
            var(--surface-2) 30%,
            var(--surface) 50%,
            var(--surface-2) 70%);
    background-size: 220% 100%;
    animation: mapShimmer 1.5s var(--ease) infinite;
}

@keyframes mapShimmer {
    to {
        background-position: -120% 0;
    }
}

.branch-map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.branch-map-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

.branch-map-address {
    margin: 0;
    font-size: 14px;
    color: var(--text-dim);
}

.branch-map-links {
    display: flex;
    gap: 8px;
}

.branch-map-links svg {
    color: var(--red);
}

@media (max-width: 700px) {
    .branch-map-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .branch-map-links .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Tor ekranda uchta tab bir qatorga sig'maydi — ikkinchi qatorga
   o'tsin, chetdan kesilib qolgandan ko'ra. */
@media (max-width: 430px) {
    .branch-tab {
        flex: 1 1 auto;
        padding: 9px 12px;
        font-size: 13px;
        text-align: center;
    }
}

/* --- CTA tasma --- */

.cta {
    position: relative;
    padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 68px);
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--red-deep), var(--red) 55%, var(--red-bright));
    color: #fff;
    overflow: hidden;
}

.cta::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .07);
    /* Bezak doira tugma USTIDA turadi — bosishni yutib yubormasin */
    pointer-events: none;
}

.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta h2 {
    max-width: 20ch;
}

.cta p {
    margin: 12px 0 0;
    max-width: 44ch;
    color: rgba(255, 255, 255, .82);
}

.cta .btn-primary {
    background: #fff;
    color: var(--red);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
}

/* --- Footer --- */

.footer {
    padding: clamp(48px, 6vw, 76px) 0 28px;
    background: var(--bg-deep);
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.footer h4 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer a:hover {
    color: #fff;
}

.footer-about p {
    margin: 16px 0 0;
    max-width: 38ch;
    line-height: 1.65;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 44px;
    height: 44px;
}

.footer-logo b {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .42);
}

/* --- Savat paneli --- */

.drawer-veil {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(10, 10, 14, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: fade var(--mid) var(--ease) both;
}

.drawer-veil.out {
    animation: fade-out var(--fast) var(--ease) forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: flex;
    flex-direction: column;
    width: min(440px, 100vw);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    animation: slide-in var(--mid) var(--ease-out) both;
}

.drawer.out {
    animation: slide-out var(--mid) var(--ease) forwards;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
    }
}

@keyframes slide-out {
    to {
        transform: translateX(100%);
    }
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 22px;
}

/* Savatda narx yangilan/tovar chiqib ketgani haqida xabar */
.cart-notice {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--r);
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}

:root[data-theme="dark"] .cart-notice {
    background: rgba(180, 83, 9, .22);
    color: #fbbf24;
}

/* Katalogda "yana ko'rsatish" xato berganда */
.more-error {
    margin: 16px 0;
    text-align: center;
    font-size: 14px;
}

.drawer-foot {
    padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.drawer-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.drawer-total b {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--red);
}

.cart-row {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    animation: row-in var(--mid) var(--ease-out) both;
}

@keyframes row-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.cart-row.removing {
    animation: row-out var(--fast) var(--ease) forwards;
}

@keyframes row-out {
    to {
        opacity: 0;
        transform: translateX(28px);
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

.cart-ico {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--red);
}

.cart-info {
    flex: 1;
    min-width: 0;
}

.cart-name {
    font-size: 14px;
    font-weight: 550;
    line-height: 1.35;
    margin-bottom: 8px;
}

.cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-sum {
    font-weight: 700;
    white-space: nowrap;
}

.cart-del {
    border: 0;
    background: none;
    color: var(--text-faint);
    padding: 4px;
    transition: color var(--fast) var(--ease);
}

.cart-del:hover {
    color: var(--red);
}

/* --- Savatga uchish --- */

.flyer {
    position: fixed;
    z-index: 90;
    width: 20px;
    height: 20px;
    pointer-events: none;
    animation: fly-x .55s cubic-bezier(.3, 0, .7, 1) forwards;
}

.flyer i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--red-bright), var(--red));
    box-shadow: var(--shadow-red);
    animation: fly-y .55s cubic-bezier(.5, -.3, .75, 1) forwards;
}

@keyframes fly-x {
    to {
        transform: translate3d(var(--dx), 0, 0);
    }
}

@keyframes fly-y {
    to {
        transform: translate3d(0, var(--dy), 0) scale(.3);
        opacity: .4;
    }
}

/* --- Mobil --- */

.burger {
    display: none;
}

@media (max-width: 1080px) {
    .cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 880px) {
    :root {
        --gutter: 16px;
        --header-h: 62px;
    }

    .topbar,
    .cat-btn span,
    .logo-sub {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-art {
        display: none;
    }

    .branches,
    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-panel {
        grid-template-columns: 1fr;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .mega-side {
        display: none;
    }

}

@media (max-width: 620px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cat-grid,
    .brands {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Filial kartasida telefon raqami 2 ustunga sig'maydi */
    .branches {
        grid-template-columns: 1fr;
    }

    .perks {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-go span {
        display: none;
    }
}

/* Kirgan foydalanuvchi tugmasi */
.icon-btn.authed {
    color: var(--red);
}

.icon-btn.authed::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 0 2px var(--bg);
}

/* Klaviatura bilan tanlangan maslahat */
.suggest-item.kb-active,
.suggest-all.kb-active {
    background: var(--red-wash);
    color: var(--red);
}

/* Tepaga qaytish */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 35;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.to-top svg {
    transform: rotate(180deg);
}

.to-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top:hover {
    color: var(--red);
    border-color: var(--red);
}

/* Mobil mega akkordeon */
.mega-acc {
    border-bottom: 1px solid var(--line);
}

.mega-acc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 4px;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.mega-acc-head svg {
    color: var(--red);
}

.mega-acc-head i {
    margin-left: auto;
    font-style: normal;
    font-size: 12.5px;
    color: var(--text-faint);
}

.mega-acc .mega-subs {
    grid-template-columns: 1fr;
    padding: 0 4px 12px;
}


/* ============================================================
   DIZAYN V2
   ============================================================ */

/* --- Aurora hero foni: ikkita yumshoq dog' sekin suzadi.
   Faqat transform animatsiya qilinadi — GPU da arzon. --- */

.hero {
    isolation: isolate;
}

.hero-blob {
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    pointer-events: none;
    will-change: transform;
}

.hero-blob-1 {
    top: -220px;
    left: -140px;
    background: radial-gradient(circle, rgba(211, 33, 26, .55), transparent 65%);
    animation: blob-a 16s ease-in-out infinite alternate;
}

.hero-blob-2 {
    top: -140px;
    right: -180px;
    background: radial-gradient(circle, rgba(255, 122, 60, .38), transparent 65%);
    animation: blob-b 20s ease-in-out infinite alternate;
}

:root[data-theme="dark"] .hero-blob {
    opacity: .32;
}

@keyframes blob-a {
    to {
        transform: translate3d(120px, 70px, 0) scale(1.15);
    }
}

@keyframes blob-b {
    to {
        transform: translate3d(-100px, 90px, 0) scale(.92);
    }
}

/* --- Skroll progress chizig'i --- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--red-bright), var(--red));
    transform-origin: left;
    transform: scaleX(0);
    pointer-events: none;
}

/* --- Brend lentasi (cheksiz oqim) --- */

.marquee {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-faint);
    white-space: nowrap;
    transition: color var(--fast) var(--ease);
}

.marquee-item:hover {
    color: var(--red);
}

.marquee-item em {
    font-style: normal;
    color: var(--red);
    margin-right: 8px;
    font-size: 15px;
    vertical-align: middle;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* --- Tugmada yaltiroq effekt --- */

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%);
    transform: translateX(-110%);
}

.btn-primary:hover::after {
    animation: shine-sweep .7s var(--ease);
}

@keyframes shine-sweep {
    to {
        transform: translateX(110%);
    }
}

/* --- Karta hover: gradient ramka --- */

.card {
    z-index: 0;
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(140deg, var(--red-bright), transparent 42%, transparent 58%, var(--red));
    opacity: 0;
    transition: opacity var(--mid) var(--ease);
}

.card:hover::before {
    opacity: .55;
}

@media (prefers-reduced-motion: reduce) {

    .hero-blob-1,
    .hero-blob-2,
    .marquee-track {
        animation: none;
    }
}


/* ============================================================
   GOD-MODE QATLAM
   ============================================================ */

/* Konfetti */
.confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 130;
    pointer-events: none;
}

/* Hero kursor nuri */
.hero-glow {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 33, 26, .14), transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
    will-change: transform;
}

/* Yopishqoq sotib olish paneli */
.buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(16px, 4vw, 40px);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(16, 16, 24, .1);
    transform: translateY(110%);
    transition: transform var(--mid) var(--ease-out);
}

.buy-bar.show {
    transform: none;
}

.buy-bar-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.buy-bar-info b {
    font-size: 14.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buy-bar-info span {
    font-size: 15px;
    font-weight: 750;
    color: var(--red);
}

/* Gigant konturli brend matni.
   Kontur 22% da ham ekranlarda deyarli yo'qolib ketardi — endi 45%
   va qalinroq: aniq ko'rinadi, lekin to'ldirilmagani uchun baribir
   fon elementi bo'lib qoladi.

   O'LCHAM: eng kichik qiymat avval 4.5rem (72px) edi va u telefonda
   `15.5vw` ni bosib qo'yardi — 375px ekranda matn 341px joy egallab,
   chetiga tegib turardi. Shrift biroz kengroq bo'lsa (telefonda tizim
   shrifti ishlatiladi, u kengroq) matn sig'may qolib, `overflow: hidden`
   birinchi harf "A" ni kesib tashlardi.

   Endi eng kichik qiymat 2.5rem: telefonda `vw` hukmron bo'ladi va
   matn har qanday shriftda ham keng zaxira bilan sig'adi. */
.mega-word {
    overflow: hidden;
    /* Yon tomondan biroz bo'shliq — matn chetga tegib turmasin */
    padding: clamp(20px, 4vw, 44px) 12px 0;
    background: var(--bg-deep);
    font-size: clamp(2.5rem, 13.5vw, 15rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: .78;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .45);
    user-select: none;
}

/* `-webkit-text-stroke` qo'llab-quvvatlanmagan brauzerda matn butunlay
   ko'rinmay qolardi (color: transparent bo'lgani uchun) — zaxira sifatida
   oddiy yarim shaffof to'ldirish. */
@supports not (-webkit-text-stroke: 1px black) {
    .mega-word {
        color: rgba(255, 255, 255, .28);
    }
}

/* Tugma yuklanish holati */
.btn-loading {
    pointer-events: none;
}

.spinner {
    width: 17px;
    height: 17px;
    flex: none;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Checkout qadamlar navbat bilan. Oxirgi qadam avval 420ms kutardi —
   sahifa allaqachon ko'ringanida "To'lov" bo'limi kech paydo bo'lardi.
   Qisqartirilgan: eng ko'pi 280ms. */
.co-stagger > * {
    animation: step-rise .4s var(--ease-out) both;
}

.co-stagger > *:nth-child(1) { animation-delay: 0ms; }
.co-stagger > *:nth-child(2) { animation-delay: 40ms; }
.co-stagger > *:nth-child(3) { animation-delay: 80ms; }
.co-stagger > *:nth-child(4) { animation-delay: 120ms; }
.co-stagger > *:nth-child(5) { animation-delay: 160ms; }
.co-stagger > *:nth-child(6) { animation-delay: 200ms; }
.co-stagger > *:nth-child(7) { animation-delay: 240ms; }
.co-stagger > *:nth-child(8) { animation-delay: 280ms; }

@keyframes step-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

/* Kirish oynasida qadam almashish */
.modal.step-anim > * {
    animation: step-rise .4s var(--ease-out) both;
}

.modal.step-anim > *:nth-child(2) { animation-delay: 50ms; }
.modal.step-anim > *:nth-child(3) { animation-delay: 100ms; }
.modal.step-anim > *:nth-child(4) { animation-delay: 150ms; }
.modal.step-anim > *:nth-child(5) { animation-delay: 200ms; }
.modal.step-anim > *:nth-child(6) { animation-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {

    .co-stagger > *,
    .modal.step-anim > * {
        animation: none;
    }
}


/* ============================================================
   MOBIL TUZATISHLAR (audit natijasida)
   ============================================================ */

/* Burger keraksiz — Katalog tugmasi shu vazifani bajaradi */
.burger {
    display: none !important;
}

/* Sarlavha: telefonga sig'may 150px tashqariga chiqqan edi.
   Ikki qatorli tartib: 1-qator logo + ikonkalar, 2-qator Katalog + qidiruv. */
@media (max-width: 700px) {
    .header .wrap {
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 8px 10px;
    }

    .logo {
        order: 1;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 17px;
    }

    .header-acts {
        order: 2;
        margin-left: auto;
        gap: 2px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .cat-btn {
        order: 3;
        padding: 11px 13px;
    }

    /* Qidiruv HAR DOIM o'z qatorini oladi.
       Avval `flex: 1 1 0` edi: 414–560px oralig'ida qatorda ozgina joy
       qolgani uchun qidiruv pastga o'tmasdan o'sha yerda siqilib qolardi —
       kengligi 14–80px, ichidagi maydon esa 0px. Ekranda faqat bo'sh oq
       quticha ko'rinardi va qidiruvdan foydalanib bo'lmasdi.
       `flex-basis: 100%` uni doim yangi qatorga tushiradi. */
    .search {
        order: 4;
        flex: 1 0 100%;
        min-width: 0;
    }

    /* Bo'sh 36x18 tugma bo'lib qolgan edi — klaviaturadagi "qidirish"
       tugmasi bor, bu ortiqcha */
    .search-go {
        display: none;
    }

    .search-field input {
        padding: 12px 0;
        font-size: 16px; /* iOS 16px dan kichikda zoom qiladi */
    }
}

/* Sevimli tugmasi telefonda KO'RINMAS edi: hover'da chiqadigan qilib
   qo'yilgan, telefonda esa hover yo'q. Sensorli qurilmada doim ko'rinadi. */
@media (hover: none) {
    .card-fav {
        opacity: 1;
        transform: none;
        width: 36px;
        height: 36px;
    }

    /* Hover'ga bog'liq effektlar sensorda ma'nosiz.
       Bundan ham muhimi: telefonda bosilgandan keyin `:hover` holati
       KARTADA YOPISHIB QOLADI — mijoz "+" tugmasini bosgach karta
       butunlay qizarib turaverardi. Shuning uchun hammasini o'chiramiz. */
    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .card:hover::before {
        opacity: 0;
    }

    .card:hover .card-mark {
        transform: none;
        opacity: .13;
    }

    .card:hover .card-media::after {
        animation: none;
    }

    .card-add:hover {
        background: var(--red);
    }

    .card-qty button:hover {
        background: transparent;
        color: var(--text);
    }
}

/* Footer havolalari juda kichik bosish maydoniga ega edi (19px) */
.footer ul a {
    display: inline-block;
    padding: 3px 0;
}

.crumbs a {
    display: inline-block;
    padding: 3px 0;
}

/* Mahsulot sahifasida yopishqoq panel + tepaga tugmasi to'qnashmasin */
@media (max-width: 700px) {
    .to-top {
        bottom: 84px;
        right: 14px;
        width: 42px;
        height: 42px;
    }
}

/* Sevimli tugma: (hover:none) media ba'zi qurilmalarda ishonchsiz —
   ekran eni bo'yicha ham kafolatlaymiz */
@media (max-width: 880px) {
    .card-fav {
        opacity: 1;
        transform: none;
        width: 36px;
        height: 36px;
    }
}

/* Savat panelida ikonka 2px chiqib ketishi */
.drawer {
    overflow-x: hidden;
}

/* Breadcrumb bosish maydoni kattaroq */
.crumbs a {
    padding: 6px 0;
}


/* ============================================================
   iOS / ANDROID MOSLIK QATLAMI
   ============================================================ */

/* iOS'da ichki skrolllarga inersiya ("momentum") berish */
.drawer-body,
.mega-body,
.mega-side,
.filters,
.filter-list,
.co-items {
    -webkit-overflow-scrolling: touch;
}

/* iOS: fokus paytida 16px dan kichik shrift sahifani kattalashtiradi.
   Filtr va saralash maydonlari 14px edi. */
@media (max-width: 700px) {

    .input,
    .sort select,
    .price-row .input {
        font-size: 16px;
    }
}

/* iOS'da sana maydoni past bo'lib qoladi — balandlikni tenglashtiramiz */
input[type="date"] {
    min-height: 47px;
    -webkit-appearance: none;
    appearance: none;
}

/* Mega akkordeon pastki xavfsiz zonagacha yetib borsin (iPhone home bar) */
@media (max-width: 880px) {
    .mega-body {
        padding-bottom: calc(26px + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   HARAKAT QATLAMI — sahifa o'tishlari va mikro-interaksiyalar
   ============================================================ */

/* Sahifa almashganda yangi kontent pastdan suzib chiqadi.
   Klassni app.js router har renderda qayta qo'yadi. */
.view-enter {
    animation: viewIn .42s var(--ease-out);
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

/* Mavzu almashganda ranglar sakramasdan suzib o'tadi.
   Klass 420ms ga qo'yiladi va o'chadi — doimiy o'tishlar esa
   boshqa animatsiyalarga xalaqit bermasin. */
.theme-fade,
.theme-fade *,
.theme-fade *::before,
.theme-fade *::after {
    transition: background-color .35s var(--ease), color .35s var(--ease),
        border-color .35s var(--ease), fill .35s var(--ease) !important;
}

/* Ikonka tugmalari bosilganda sezilarli "cho'kadi" */
.icon-btn:active {
    transform: scale(.88);
}

.icon-btn {
    transition: transform var(--fast) var(--spring),
        background-color var(--fast) var(--ease),
        color var(--fast) var(--ease);
}

/* Savatga qo'shish tugmasi: bosilganda prujinali cho'kish */
.card-add:active {
    transform: scale(.85);
}

.card-add {
    transition: transform var(--fast) var(--spring),
        background-color var(--fast) var(--ease),
        box-shadow var(--fast) var(--ease);
}

/* Miqdor tugmalari ham javob bersin */
.card-qty button:active,
.cart-row button:active {
    transform: scale(.82);
}

.card-qty button,
.cart-row button {
    transition: transform var(--fast) var(--spring),
        background-color var(--fast) var(--ease);
}

/* Karta ustidagi brend yorlig'ida yaltirash — sichqoncha kelganda
   bir marta chapdan o'ngga nur o'tadi */
.card-media {
    position: relative;
    overflow: hidden;
}

.card-media::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 55%;
    background: linear-gradient(105deg,
            transparent,
            rgba(255, 255, 255, .18),
            transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: none;
}

.card:hover .card-media::after {
    animation: shineSweep .8s var(--ease) 1;
}

@keyframes shineSweep {
    to {
        left: 130%;
    }
}

/* Sevimli yurakcha bosilganda "urib qo'yadi" */
.card [class*="fav"].on svg,
.card [class*="fav"][aria-pressed="true"] svg {
    animation: heartBeat .45s var(--spring);
}

@keyframes heartBeat {
    30% {
        transform: scale(1.35);
    }

    60% {
        transform: scale(.92);
    }
}

/* Checkout bosqich kartalari tanlanganda yumshoq urish */
.co-method.on,
.co-branch.on,
.co-pay.on {
    animation: softPick .3s var(--spring);
}

@keyframes softPick {
    40% {
        transform: scale(1.015);
    }
}

@media (prefers-reduced-motion: reduce) {

    .view-enter,
    .card:hover .card-media::after,
    .co-method.on,
    .co-branch.on,
    .co-pay.on {
        animation: none;
    }
}
