/* Sepahan 2.3.1.3: targeted responsive/quantity/dialog polish. */
/* Quick-buy: suppress Meydan's hard-coded white fields in both palettes. */
body .meydan-quick-buy[open]{position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:auto!important;transform:none!important;box-sizing:border-box!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important}
body .meydan-quick-buy__panel{background:var(--mqb-bg,#fff);max-height:calc(100dvh - 24px)}
body .meydan-quick-buy__quantity{background:var(--mqb-quantity-bg,#f5f8fb)!important;border-color:var(--mqb-border,#e5e9ef)!important;box-shadow:none!important;min-width:0}
body .meydan-quick-buy__quantity>button,
body .meydan-quick-buy__quantity>button:first-child,
body .meydan-quick-buy__quantity>button:last-child{background:var(--mqb-quantity-button-bg,#fff)!important;color:var(--mqb-quantity-text,#17213a)!important;border-color:var(--mqb-border,#e5e9ef)!important;box-shadow:none!important}
body .meydan-quick-buy__quantity>button:hover:not(:disabled),
body .meydan-quick-buy__quantity>button:focus-visible{background:var(--mqb-selected-bg,#fff5ec)!important;color:var(--mqb-accent,#ec6b00)!important}
body .meydan-quick-buy__quantity>button:disabled{background:var(--mqb-disabled-bg,#eef1f4)!important;color:var(--mqb-muted,#7b8799)!important}
body .meydan-quick-buy__quantity>div,
body .meydan-quick-buy__quantity strong{color:var(--mqb-quantity-text,#17213a)!important;background:transparent!important}
body .meydan-quick-buy__quantity small{color:var(--mqb-muted,#7b8799)!important}
:is(html.dark body,body.dark) .meydan-quick-buy__quantity{background:var(--mqb-quantity-bg,#1c2c3c)!important;color-scheme:dark}
:is(html.dark body,body.dark) .meydan-quick-buy__quantity>button{background:var(--mqb-quantity-button-bg,#233446)!important;color:var(--mqb-quantity-text,#f1f5f9)!important}
/* Cart: explicitly white under minus, plus and remove in light, card surface in dark. */
body.sepahan-commerce-meydan .meydan-cart-item__quantity>button,
body.sepahan-commerce-meydan .meydan-cart-item__quantity>button:hover,
body.sepahan-commerce-meydan .meydan-cart-item__quantity>button:focus-visible{background:#ffffff!important;background-color:#ffffff!important;box-shadow:none!important;color:var(--mcc-accent,#ec6b00)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan .meydan-cart-item__quantity>button,
:is(html.dark body,body.dark).sepahan-commerce-meydan .meydan-cart-item__quantity>button:hover,
:is(html.dark body,body.dark).sepahan-commerce-meydan .meydan-cart-item__quantity>button:focus-visible{background:var(--mcc-card,#111b2a)!important;background-color:var(--mcc-card,#111b2a)!important;color:var(--mcc-accent,#60a5fa)!important}
/* Isolated model 2 product: avoid horizontal overflow from legacy global layout rules. */
body.sepahan-product-model-meydan .meydan-product-route,
body.sepahan-product-model-meydan .meydan-product-page,
body.sepahan-product-model-meydan .meydan-product-shell,
body.sepahan-product-model-meydan .meydan-product-hero,
body.sepahan-product-model-meydan .meydan-product-form-shell,
body.sepahan-product-model-meydan .meydan-product-gallery,
body.sepahan-product-model-meydan .meydan-product-info,
body.sepahan-product-model-meydan .meydan-purchase-stack{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
body.sepahan-product-model-meydan .meydan-product-page img{max-width:100%;height:auto}
body.sepahan-product-model-meydan .meydan-product-gallery__stage img{height:100%}
@media(max-width:900px){
 body.sepahan-product-model-meydan .meydan-product-hero{display:block!important;width:100%!important;min-height:0!important;height:auto!important}
 body.sepahan-product-model-meydan .meydan-product-form-shell{display:block!important;width:100%!important;direction:rtl!important}
 body.sepahan-product-model-meydan .meydan-product-form-shell>.meydan-product-info,
 body.sepahan-product-model-meydan .meydan-product-form-shell>.meydan-purchase-stack{width:100%!important;max-width:100%!important;grid-column:auto!important;grid-row:auto!important}
 body.sepahan-product-model-meydan .meydan-product-gallery{margin-inline:auto!important}
 body.sepahan-product-model-meydan .meydan-product-details,
 body.sepahan-product-model-meydan .meydan-product-benefits,
 body.sepahan-product-model-meydan .meydan-related-products,
 body.sepahan-product-model-meydan .meydan-product-reviews{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
}
@media(max-width:767px){
 body.sepahan-product-model-meydan .meydan-product-shell{width:calc(100% - 20px)!important;margin-inline:auto!important}
 body.sepahan-product-model-meydan .meydan-product-hero{padding:12px!important}
 body.sepahan-product-model-meydan .meydan-product-gallery__stage{width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1!important;overflow:hidden!important}
 body.sepahan-product-model-meydan .meydan-product-gallery__stage img{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
 body.sepahan-product-model-meydan .meydan-product-title{overflow-wrap:anywhere}
 body.sepahan-product-model-meydan .meydan-product-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .meydan-quick-buy[open]{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:20px!important}
 body .meydan-quick-buy__quantity{width:100%!important}
}
/* Model 2 WooCommerce progressive infinite archive: pagination is kept for JS-less users. */
.meydan-shop-page.is-infinite-shop .woocommerce-pagination{display:none!important}
.meydan-shop-infinite-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:96px;margin:22px 0 0;text-align:center;font-size:13px;color:var(--ms-muted,#7b8799)}
.meydan-shop-infinite-status [data-meydan-infinite-fallback]{display:none;color:var(--ms-accent,#ec6b00);font-weight:600}
.meydan-shop-infinite-status.is-loading [data-meydan-infinite-fallback]{display:none}
.meydan-shop-infinite-status .meydan-shop-infinite-spinner{display:none;width:26px;height:26px;border:3px solid var(--ms-border,#e5e9ef);border-top-color:var(--ms-accent,#ec6b00);border-radius:50%;animation:meydan-infinite-spin .75s linear infinite}
.meydan-shop-infinite-status.is-loading .meydan-shop-infinite-spinner{display:block}
.meydan-shop-infinite-status:not(.is-loading) [data-meydan-infinite-fallback]:not([hidden]){display:inline-block}
@keyframes meydan-infinite-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.meydan-shop-infinite-status .meydan-shop-infinite-spinner{animation:none}}

body .meydan-quick-buy__quantity>button{display:grid!important;place-items:center!important;line-height:1!important;padding:0!important;vertical-align:middle!important}
body .meydan-quick-buy__quantity>button .meydan-icon{display:block!important;width:22px!important;height:22px!important;margin:0 auto!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;flex:none!important}

/* Sepahan product model 2: configurable current/previous price colors, including dark. */
body.sepahan-product-model-meydan .meydan-product-page :is(.meydan-purchase-price__html,.meydan-related-card__price) :is(ins,.price > .amount,.price > .woocommerce-Price-amount),
body.sepahan-product-model-meydan .meydan-product-page .meydan-purchase-price__html :is(ins,.price > .amount) .woocommerce-Price-amount.amount,
body.sepahan-product-model-meydan .meydan-product-page .meydan-related-card__price ins .amount,
body.sepahan-product-model-meydan .meydan-product-page .meydan-purchase-price__html > .woocommerce-Price-amount.amount{
  color:var(--mp-price-current,#111827)!important;
}
body.sepahan-product-model-meydan .meydan-product-page :is(.meydan-purchase-price__html,.meydan-related-card__price) del,
body.sepahan-product-model-meydan .meydan-product-page :is(.meydan-purchase-price__html,.meydan-related-card__price) del .woocommerce-Price-amount.amount{
  color:var(--mp-price-regular,#7b8799)!important;
}
