/* Measured fixes, 2026-10-04. */
html body .bottom-nav{background:rgba(255,248,239,.97)!important;color:#521b25!important;border-color:#decbbb!important}
html body .bottom-nav__link,html body .bottom-nav__link.is-active{color:#521b25!important;opacity:1!important}
html body .bottom-nav__label,html body .bottom-nav__amount{color:#521b25!important;opacity:1!important}
/* Mobile current-page indicator: no geometry or desktop changes. */
@media(max-width:767px){
html body .bottom-nav__link:not(.bottom-nav__link--ai){color:#694d43!important}
html body .bottom-nav__link:not(.bottom-nav__link--ai)[aria-current="page"]{color:#521b25!important}
html body .bottom-nav__link:not(.bottom-nav__link--ai) .bottom-nav__label,
html body .bottom-nav__link:not(.bottom-nav__link--ai) .bottom-nav__amount{color:inherit!important}
html body .bottom-nav__link:not(.bottom-nav__link--ai)[aria-current="page"] .bottom-nav__icon::before{
content:"";position:absolute;top:-5px;left:50%;transform:translateX(-50%);width:20px;height:3px;border-radius:2px;background:#521b25;pointer-events:none
}
}

html body .qty-input{min-width:0;gap:0;max-width:100%;box-sizing:border-box;overflow:hidden}
html body .qty-input-btn{width:44px;min-width:44px;flex:0 0 44px;height:44px;padding:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body .qty-input-field{width:24px;min-width:0;max-width:none;flex:1 1 24px;padding:0;text-align:center;height:44px}
html body .qty-input [hidden]{display:none!important}
html body .scx-card,html body [data-wishlist-btn]{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body [data-wishlist-btn]{min-width:44px;min-height:44px}
html body .scx-im [data-wishlist-btn]{background:rgba(255,248,239,.94)!important}
html body .cart-product-item{gap:12px;padding-block:12px;border-bottom:1px solid var(--border,#e4d8cf)}
html body .cart-product-item>a:first-child{width:96px;height:96px;flex:0 0 96px}
html body .cart-product-item>a:first-child img{object-fit:contain;mix-blend-mode:normal}
html body .cart-product-item .qty-input{width:116px;max-width:116px;flex-shrink:0}
html body .cart-product-item [data-action="product-remove"]{min-width:44px;min-height:44px;color:#8d2632;background:#fff0ef;border-radius:8px}
html body .cart-product-item [data-wishlist-btn]{margin-inline-start:8px}
html body .cart-confirming{pointer-events:none;opacity:.65}
html body .cart-product-item p[hidden]{display:none!important}
html body [data-recently-viewed-list] .product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;min-height:3em!important}
html body .gr-cta{color:#521b25!important;background:#fff8ef!important}
@media(max-width:767px){
 html body .cart-product-item>div{gap:8px}
 html body .cart-product-item .qty-input{width:114px;max-width:114px}
 html body .cart-product-item div.flex.items-center.justify-between{flex-wrap:wrap;gap:8px}
 html body .cat-hero{padding:14px 16px}
 html body .cat-hero__in{gap:8px}
 html body .cat-hero__mark .cat-icon-chip{width:48px;height:48px}
 html body .cat-hero__mark .cat-icon-chip :is(svg,img){width:32px;height:32px}
 html body[data-template="category_details"] main>section.py-6{padding-block:12px}
 html body[data-template="category_details"] main>section.pb-16{padding-bottom:24px}
 html body[data-template="category_details"] #products-content{gap:16px}
 /* Zid adds html margin after startup; a fixed app invitation does not move the page. */
 html.smartbanner-show,html.smartbanner-show body{margin-top:0!important}
 html{margin-top:0!important}
 .smartbanner{position:fixed!important;top:auto!important;bottom:calc(var(--bottom-nav-h,62px) + env(safe-area-inset-bottom) + 8px)!important;z-index:44!important}
}

/* 44px targets must not be clipped by the legacy 42px wrapper. */
html body .qty-input{height:46px!important;min-height:46px!important;padding:0!important}
html body main>section.section-ivory .theme-container>div>img:not(.wheat-watermark){height:136px!important;object-fit:contain!important}
@media(max-width:767px){html body main>section.section-ivory .theme-container>div>img:not(.wheat-watermark){height:114px!important}}

/* Reserve the final single-line marquee geometry before its DOM wrapper exists. */
html body main>section.section-ivory ul.flex-wrap{flex-wrap:nowrap!important;white-space:nowrap!important;width:max-content!important;height:28px!important;min-height:28px!important;max-height:28px!important}
html body main .trust-najdi__list{flex-wrap:nowrap!important;white-space:nowrap!important;width:max-content!important;height:32px!important;min-height:32px!important;max-height:32px!important}
html body main .trust-najdi{overflow:hidden!important}
html body main .hero-ai__chips{height:52px!important;min-height:52px!important;max-height:52px!important}
/* Tailwind hides [hidden] with !important. Reserve the real suggestion slot. */
html body main .hero-ai__chips[hidden]{display:flex!important;visibility:hidden!important}

/* Keep the selected weight in the full cart product name on narrow screens. */
html body .cart-product-item a.line-clamp-2{display:block!important;-webkit-line-clamp:unset!important;white-space:normal!important;overflow:visible!important}


/* Parser-discovered preparation artwork instead of a late CSS-background LCP. */
html body .scx--prep .scx__box{background-image:none!important}
html body .scx--prep .scx__prep-art{position:absolute;inset:auto auto 0 0;width:calc(var(--scx-wpx) * 2)!important;max-width:none!important;height:auto!important;pointer-events:none}

/* Narrow desktop cart columns left only 84px for the product name at 1251px.
   Use the existing compact row below 1280; keep three columns above it. */
@media(min-width:1024px){
 html body .cart-product-item>div{gap:12px!important}
 html body .cart-product-item>div>div:nth-child(2){width:116px;flex:0 0 116px}
 html body .cart-product-item>div>div:nth-child(3){width:100px;flex:0 0 100px}
 html body [data-cart-column-heads]>div:nth-child(2){width:128px}
 html body [data-cart-column-heads]>div:nth-child(3){width:100px}
}
@media(min-width:1024px) and (max-width:1279px){
 html body [data-cart-column-heads]{display:none!important}
 html body .cart-product-item>div{flex-direction:column!important}
 html body .cart-product-item>div>div:first-child>div:first-child{display:flex!important}
 html body .cart-product-item>div>div:first-child>div:first-child>div:last-child{display:flex!important}
 html body .cart-product-item>div>div:nth-child(2){width:100%;flex:auto;flex-direction:row!important;justify-content:space-between!important;align-items:center!important}
 html body .cart-product-item>div>div:nth-child(2)>div:last-child{display:flex!important}
 html body .cart-product-item>div>div:nth-child(3){display:none!important}
}
/* 2026-11-16 (ثبات السلة): مكوّن زد «الخصم التصاعدي» يعرض هيكل تحميل بارتفاع 128px ثم يحذفه حين لا يوجد خصم مفعّل،
   فيقفز محتوى السلة نزولًا ثم صعودًا (CLS ≈ 0.24 على 390px). نخفي هيكل التحميل وحده؛ المكوّن الحقيقي يظهر كما هو إن فُعّل الخصم. */
#progressive_discount .zid-kit-progressive-discount-skeleton{display:none!important}
