/* SZ_CORE_PAGES: improvements the core pages carry on every switched store (plan phase 1, 2026-11-26). */
.sz-core .ar-cart-type-badge{display:none}
/* a theme's own .product-quantity rules (absolute buttons, fixed widths) must not reach the core stepper */
.sz-core .ar-qty-wrap{display:inline-flex!important;align-items:center;width:auto!important;height:auto!important;position:relative}
.sz-core .ar-qty-wrap .ar-qty-btn{position:static!important;inset:auto!important;transform:none!important;margin:0!important;flex:0 0 auto}
.sz-core .ar-qty-wrap .ar-qty-input{position:static!important;flex:0 0 auto;margin:0!important;width:46px!important;min-width:0!important;height:34px!important;padding:0!important;text-align:center;border:0!important;background:transparent!important;box-shadow:none!important;-moz-appearance:textfield}
.sz-core .ar-qty-wrap{border:1px solid var(--ar-border,#e7e5e4);border-radius:999px;overflow:hidden;background:#fff}
.sz-core .ar-qty-wrap .ar-qty-btn{width:34px;height:34px;display:inline-flex!important;align-items:center;justify-content:center;background:transparent!important;border:0!important;color:inherit}
.sz-core .ar-qty-input::-webkit-outer-spin-button,.sz-core .ar-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
@media (max-width:767.98px){
 .sz-core .ar-cart-table-wrap,.sz-core .ar-cart-table-card{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
 .sz-core .ar-cart-table thead{display:none}
 .sz-core .ar-cart-table,.sz-core .ar-cart-table tbody{display:block;width:100%}
 .sz-core .ar-cart-row{display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"prod act" "qty sub";gap:12px;padding:14px!important;margin:0 0 12px;border:1px solid var(--ar-border,#e7e5e4);border-radius:16px;background:#fff}
 .sz-core .ar-cart-row>td{display:block!important;padding:0!important;border:0!important;width:auto!important;text-align:start!important}
 .sz-core .ar-cart-row>td::before{display:none!important;content:none!important}
 .sz-core .ar-cart-row>td:nth-child(1){grid-area:prod;min-width:0}
 .sz-core .ar-cart-row>td:nth-child(2){display:none!important}
 .sz-core .ar-cart-row>td:nth-child(3){grid-area:qty;align-self:center}
 .sz-core .ar-cart-row>td:nth-child(4){grid-area:sub;align-self:center;text-align:end!important}
 .sz-core .ar-cart-row>td:nth-child(5){grid-area:act;display:flex!important;gap:6px;align-items:flex-start}
 .sz-core .ar-cart-product{display:flex!important;flex-direction:row!important;gap:12px;align-items:center;text-align:start}
 .sz-core .ar-cart-thumb{width:64px!important;height:64px!important;flex:0 0 64px;border-radius:12px;background-size:cover;background-position:center;margin:0!important}
 .sz-core .ar-cart-info{min-width:0}
 .sz-core .ar-cart-name{display:block;font-weight:700;line-height:1.4}
 .sz-core .ar-cart-subtotal{font-weight:800;font-size:15px}
 .sz-core .ar-qty-wrap{display:inline-flex!important;align-items:center;border:1px solid var(--ar-border,#e7e5e4);border-radius:999px;overflow:hidden;background:#fff}
 .sz-core .ar-qty-btn{display:inline-flex!important;width:34px;height:34px;align-items:center;justify-content:center;background:transparent;border:0;color:inherit}
 .sz-core .ar-qty-input{width:40px;height:34px;text-align:center;border:0;background:transparent;-moz-appearance:textfield;padding:0}
 .sz-core .ar-qty-input::-webkit-outer-spin-button,.sz-core .ar-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
 .sz-core .ar-cart-footer-btns{display:flex;gap:10px;flex-wrap:wrap}
 .sz-core .ar-cart-footer-btns .ar-btn{flex:1 1 auto;justify-content:center}
}
/* SZ_PD_PHONE_EDGES (2026-11-27): the product page section has no side padding (the .ar-pd-section shorthand) while
   its main row keeps Bootstrap's wide g-5 gutters, so on a phone the picture, title and price touched the screen edges
   and the row ran 24px past them. Below 768px: the page margin back, and a narrower gutter for the main row. */
@media (max-width:767.98px){
 .sz-core .ar-pd-section{padding-left:16px!important;padding-right:16px!important}
 .sz-core .ar-pd-section>.row{--bs-gutter-x:1.5rem}
}
/* SZ_CARD_HEART_SIDE (2026-11-28): the v2 card's heart said inset-inline-end AND left:auto, while the base rule's
   right:12px stayed - so on an Arabic (RTL) store the heart sat in the right corner, on top of the card's own badges
   («جديد», -x%), which start there. The heart now takes the end side in both directions. */
.ar-card-v2 .ar-card-wishlist{right:auto;left:auto;inset-inline-end:10px}
/* SZ_CARD_BADGE_STACK (2026-11-28): sz-core.css also has the header counter's .ar-badge (position:absolute, top/right
   4px, height 16px), so every badge in a card's column sat on the same spot - «جديد» under -x% under the campaign name.
   In the card's column they stack again, one under the other. */
.ar-card-badges{align-items:flex-start}
.ar-card-badges .ar-badge{position:static;top:auto;right:auto;left:auto;height:auto;min-width:0}
