/* Mahsulot sahifasi — "After" tamoyili (qomar-pdp-v1.js)
   1) pastki menyu va suzuvchi tugmalar yashiriladi — xarid tugmasini hech narsa to'smaydi;
   2) pastda bitta panel: narx + savat + "Sotib olish";
   3) nom o'z qatorida, narx darhol ostida. */
html:has(.g20-buy-bar) :is(nav#nav.g20-nav,.qg-back,.qg-ind,.g20-cart-fab,[data-cart-fab],.qbn-fab){display:none!important}

html body .g20-buy-bar{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;align-items:center!important;gap:10px!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:0!important;padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;background:color-mix(in srgb,var(--g20-surface,#fff) 92%,transparent)!important;backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border-top:1px solid var(--g20-line,#e5e8ed)!important;box-shadow:0 -6px 24px rgba(15,22,30,.06)!important;z-index:60!important}
@media (min-width:760px){html body .g20-buy-bar{left:50%!important;right:auto!important;width:min(560px,100%)!important;transform:translateX(-50%);bottom:16px!important;border:1px solid var(--g20-line,#e5e8ed)!important;border-radius:22px!important;padding:10px 12px!important}}
html body .g20-buy-bar > .c138-contact{display:none!important}
html body .g20-buy-bar > div{grid-column:auto!important;width:auto!important;flex:1 1 auto;min-width:0;display:flex!important;flex-direction:column;gap:2px;order:0}
html body .g20-buy-bar > div strong{font-size:19px!important;line-height:1.1!important;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .g20-buy-bar > div small{font-size:12px!important;color:var(--g20-muted,#6b7580)!important}
html body .g20-buy-bar > [data-g20-add]{order:1;flex:none;width:50px!important;min-width:0!important;height:50px!important;padding:0!important;display:grid!important;place-items:center;border-radius:15px!important;font-size:0!important;gap:0!important}
html body .g20-buy-bar > [data-g20-add] svg{width:23px!important;height:23px!important;margin:0!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
html body .g20-buy-bar > [data-g20-buy]{grid-column:auto!important;width:auto!important;order:2;flex:none;height:50px!important;min-height:0!important;padding:0 22px!important;border-radius:15px!important;font-size:15.5px!important;font-weight:700!important;gap:8px!important;white-space:nowrap}

/* nom → narx tartibi */
.g20-panel .qpd-price{margin:12px 0 4px!important;padding:0!important}
.g20-panel .qpd-price strong{display:block;font-size:28px!important;line-height:1.1!important;letter-spacing:-.6px!important}
.g20-price-panel:not(:has(.g20-price-body)){display:none!important}
.g20-title{margin-top:0!important;font-size:22px!important;line-height:1.22!important;letter-spacing:-.3px!important}
.g20-panel > .g20-warranty.qpd-moved{margin:10px 0 0!important;font-size:11.5px!important;letter-spacing:.2px!important;text-transform:none!important;opacity:.85}

/* rasm ixcham: kvadrat, yumaloq burchak, mahsulot kesilmaydi */
html body:has(.g20-buy-bar) .g20-gallery{margin:-30px 0 6px!important;padding-top:0}
html body:has(.g20-buy-bar) .g20-gallery-track{--photo142-height:auto!important;height:auto!important;aspect-ratio:4/5!important;max-height:min(100vw,420px)!important;margin-inline:auto!important;border-radius:24px!important;overflow:hidden!important;background:#f2f3f5!important}
html[data-theme="dark"] body:has(.g20-buy-bar) .g20-gallery-track{background:#1a222b!important}
html body:has(.g20-buy-bar) .g20-gallery-track > button{height:100%!important;aspect-ratio:auto!important}
html body:has(.g20-buy-bar) .g20-gallery-track img{width:100%!important;height:100%!important;object-fit:contain!important}
html body:has(.g20-buy-bar) .g20-photo-controls{margin-top:8px!important}
/* rasm atrofidagi bo'sh joy — shu rasmning xira foni bilan to'ldiriladi */
html body:has(.g20-buy-bar) .g20-gallery-track{position:relative;isolation:isolate}
html body:has(.g20-buy-bar) .g20-gallery-track::before{content:"";position:absolute;inset:-30px;z-index:-1;background:var(--qpd-img) center/cover no-repeat;filter:blur(28px) saturate(1.05);opacity:.85;pointer-events:none}

/* ---- Mahsulot kartochkasi "After": toza rasm, nom → narx, bitta savat tugmasi ---- */
html body article.g20-card{position:relative}
html body article.g20-card .g20-cover .g20-condition{display:none!important}
html body article.g20-card .g20-card-info{display:flex!important;flex-direction:column!important;align-items:flex-start;gap:3px!important;padding-bottom:4px}
html body article.g20-card .g20-card-info > .g20-name{order:1;margin:0!important;font-size:14px!important;font-weight:600!important;line-height:1.3!important;text-align:left;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body article.g20-card .g20-card-info > .g20-card-price{order:2;margin:2px 0 0!important;font-size:17px!important;letter-spacing:-.3px}
html body article.g20-card .g20-card-info > .g20-muted{order:3;margin:0!important;font-size:11.5px!important}
html body article.g20-card .g20-card-info > .g20-rewards{order:4}
html body article.g20-card .g20-card-info > .g20-shop-label{order:5;max-width:calc(100% - 44px);margin-top:4px!important}
html body article.g20-card .g20-card-actions{position:absolute!important;right:10px;bottom:10px;margin:0!important;padding:0!important;display:block!important;width:auto!important}
html body article.g20-card .g20-card-actions > .g20-primary{display:none!important}
html body article.g20-card .g20-card-actions > .g20-cart-small{width:38px!important;height:38px!important;min-width:0!important;border-radius:12px!important;display:grid!important;place-items:center}

/* ---- Savat "After": toza kartochkalar, pastda bitta panel ---- */
html.qpd-cart :is(nav#nav.g20-nav,.qg-back,.qg-ind,.g20-cart-fab,[data-cart-fab],.qbn-fab){display:none!important}
html.qpd-cart #main > button.primary[data-page="checkout"]{display:none!important}
html.qpd-cart #main{padding-bottom:110px!important}
html.qpd-cart #main .cart-row{display:flex!important;gap:12px!important;align-items:flex-start;margin:0 0 10px!important;padding:12px!important;border-radius:20px!important;background:var(--g20-surface,#fff)!important;border:1px solid var(--g20-line,#e5e8ed)!important;box-shadow:0 1px 2px rgba(15,22,30,.04)}
html.qpd-cart #main .cart-row > img{flex:none;width:88px!important;height:88px!important;border-radius:14px!important;object-fit:cover;background:#f2f3f5}
html.qpd-cart #main .cart-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
html.qpd-cart #main .cart-body h3{margin:0!important;font-size:14.5px!important;line-height:1.3!important;font-weight:600!important}
html.qpd-cart #main .cart-body .product-price{font-size:16.5px!important;margin-top:2px}
html.qpd-cart #main .cart-controls{display:flex!important;align-items:center;justify-content:space-between;margin-top:6px}
html.qpd-cart #main .cart-controls .qty{border-radius:12px!important;background:var(--g20-soft,#f4f5f7)!important;border:0!important}
html.qpd-cart #main .totals{border-radius:20px!important}
.qpd-cartbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--g20-surface,#fff) 92%,transparent);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border-top:1px solid var(--g20-line,#e5e8ed);box-shadow:0 -6px 24px rgba(15,22,30,.06);animation:qpdUp .28s cubic-bezier(.22,.8,.24,1)}
@keyframes qpdUp{from{transform:translateY(100%)}}
@media (min-width:760px){.qpd-cartbar{left:50%;right:auto;width:min(560px,100%);transform:translateX(-50%);bottom:16px;border:1px solid var(--g20-line,#e5e8ed);border-radius:22px;padding:10px 12px;animation:none}}
.qpd-cartbar > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.qpd-cartbar small{font-size:12px;color:var(--g20-muted,#6b7580)}
.qpd-cartbar strong{font-size:19px;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--g20-text,#172128)}
.qpd-cartbar button{flex:none;height:50px;padding:0 22px;border:0;border-radius:15px;background:var(--g20-red,var(--red,#e62d42));color:#fff;font-weight:700;font-size:15.5px;line-height:1;font-family:inherit;display:flex;align-items:center;gap:8px;cursor:pointer}
.qpd-cartbar button svg{width:18px;height:18px}
.qpd-cartbar button:active{transform:scale(.97)}

/* ---- Buyurtma berish "After": guruhlangan kartochkalar, yuborish tugmasi doim ko'rinadi ---- */
html:has(#checkout-form) :is(nav#nav.g20-nav,.qg-back,.qg-ind,.g20-cart-fab,[data-cart-fab],.qbn-fab){display:none!important}
#checkout-form > :is(.cp127-contact,.da55-checkout,.sp54-payment,.cp127-optional,.totals){margin:0 0 12px!important;padding:16px!important;border-radius:20px!important;background:var(--g20-surface,#fff)!important;border:1px solid var(--g20-line,#e5e8ed)!important;box-shadow:0 1px 2px rgba(15,22,30,.04)!important;box-sizing:border-box}
#checkout-form > .cp127-contact::before{content:"Aloqa ma’lumotlari";display:block;grid-column:1/-1;margin:0 0 10px;font-size:15px;font-weight:700;color:var(--g20-text,#172128)}
#checkout-form > .da55-checkout::before{content:"Yetkazib berish";display:block;margin:0 0 10px;font-size:15px;font-weight:700;color:var(--g20-text,#172128)}
#checkout-form{padding-bottom:86px!important}
#checkout-form > button.primary{position:fixed!important;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:60;width:auto!important;margin:0!important;min-height:52px;border-radius:16px!important;box-shadow:0 10px 30px color-mix(in srgb,var(--g20-red,#e62d42) 30%,transparent)!important}
@media (min-width:760px){#checkout-form > button.primary{left:50%;right:auto;width:min(520px,calc(100% - 28px))!important;transform:translateX(-50%)}}
