/* Mawasil 2.1.2 — shop archive only. No product/cart/checkout overrides. */
.mwp-shop-ui{direction:rtl;min-width:0;max-width:100%;padding:12px 0 48px;color:#202a37}
.mwp-shop-ui *, .mwp-shop-ui *::before,.mwp-shop-ui *::after{box-sizing:border-box}
/* Gallery */
.mwp-shop-gallery{position:relative;min-width:0;margin:0 0 14px;overflow:hidden;border-radius:16px;background:#f6f3ee;box-shadow:0 4px 18px rgba(21,25,33,.045)}
.mwp-shop-gallery-mobile{display:none}
.mwp-shop-gallery-track{position:relative;aspect-ratio:3/1;min-height:140px;max-height:390px}
.mwp-shop-slide{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .35s ease}
.mwp-shop-slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.mwp-shop-slide img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:center}
.mwp-shop-gallery-controls{position:absolute;bottom:10px;inset-inline:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.mwp-shop-gallery-controls button{pointer-events:auto;display:grid;place-items:center;border:1px solid rgba(255,255,255,.85);color:#242a31;background:rgba(255,255,255,.94);width:32px;height:32px;border-radius:50%;font-size:24px;line-height:1;cursor:pointer}
.mwp-shop-gallery-dots{display:flex;gap:5px;max-width:75%;flex-wrap:wrap;align-items:center;justify-content:center;pointer-events:auto}
.mwp-shop-gallery-dots button{width:7px;height:7px;min-width:7px;border-radius:50%;padding:0;border:0;background:rgba(0,0,0,.32)}
.mwp-shop-gallery-dots button[aria-current=true]{width:18px;border-radius:6px;background:var(--mwp-accent,#c58b49)}
.mwp-shop-promo-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:14px 0 25px}
.mwp-shop-promo-item{min-width:0;overflow:hidden;border-radius:12px;background:#f5f5f5}
.mwp-shop-promo-item.is-wide{grid-column:1/-1}
.mwp-shop-promo-item img{width:100%;height:auto;display:block;object-fit:cover}
.mwp-shop-heading{padding:5px 1px 10px}
.mwp-shop-kicker{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#9a7956}
.mwp-shop-heading h1{font-size:clamp(23px,2.7vw,34px);margin:1px 0 12px;font-weight:800;color:#222a34}
/* Toolbar: mobile-only switch; desktop always uses the grid */
.mwp-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 13px;border:1px solid #e7e8ec;border-radius:13px;background:#fff;margin-bottom:17px}
.mwp-shop-toolbar-leading{display:flex;align-items:center;gap:10px;min-width:0}
.mwp-shop-count .woocommerce-result-count{float:none!important;margin:0!important;font-size:12px;color:#657080;line-height:1.5}
.mwp-shop-view-switch{display:none}
.mwp-shop-ordering .woocommerce-ordering{float:none!important;margin:0!important}
.mwp-shop-ordering select{max-width:100%;border:1px solid #e1e5eb;background:#fff;border-radius:9px;min-height:38px;padding:6px 9px;font-size:12px;color:#424954}
/* Default cards: desktop grid. Extra-specific selectors beat global WooCommerce columns. */
body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;list-style:none!important;margin:0!important;padding:0!important;width:100%!important;max-width:100%;min-width:0}
body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products::before,body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products::after{display:none!important}
body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products>li.product{box-sizing:border-box!important;min-width:0!important;max-width:none!important;width:auto!important;float:none!important;clear:none!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"image" "info";align-items:stretch;border:1px solid #e8ebf0;border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(32,41,54,.035);transition:box-shadow .2s ease,transform .2s ease;text-align:right}
body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products>li.product:hover{box-shadow:0 8px 24px rgba(32,41,54,.075);transform:translateY(-2px)}
.mwp-shop-card-photo{grid-area:image;position:relative;min-width:0;display:flex;align-items:center;justify-content:center;background:#f9fafb;padding:10px;text-decoration:none}
body.mwp-theme .mwp-shop-ui .mwp-shop-card-photo>img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1;object-fit:contain!important;background:transparent!important;border-radius:7px!important;margin:0!important}
.mwp-shop-sale-tag{position:absolute;top:10px;inset-inline-start:10px;background:#fff0d9;color:#925a0f;font-weight:800;font-size:10px;padding:5px 8px;border-radius:6px;z-index:1}
.mwp-shop-card-info{grid-area:info;display:flex;flex-direction:column;min-width:0;min-height:0;padding:12px;gap:9px}
.mwp-shop-card-details{display:flex;flex-direction:column;min-width:0;gap:5px}
.mwp-shop-card-cat{color:#788293;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mwp-shop-card-title{color:#1d2734!important;font-size:13px;line-height:1.55;font-weight:800;text-decoration:none!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:0}
.mwp-shop-card-desc{margin:0;color:#707c89;font-size:11px;line-height:1.5;display:none;overflow:hidden}
.mwp-shop-card-rating{color:#a97627;font-weight:800;font-size:11px}.mwp-shop-card-rating small{color:#87919c;font-weight:500}
.mwp-shop-card-bottom{margin-top:auto;display:flex;flex-direction:column;min-width:0;gap:10px}
.mwp-shop-card-price{display:block;min-height:25px;min-width:0;font-size:17px;font-weight:900;color:#1e2935;line-height:1.45;overflow-wrap:normal}
.mwp-shop-card-price .price{font-size:inherit!important;color:inherit!important}
.mwp-shop-card-price del{display:inline;color:#8d97a3;font-size:11px;font-weight:500;white-space:nowrap}
.mwp-shop-card-price ins{text-decoration:none;white-space:nowrap}
.mwp-shop-card-actions{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:7px;min-width:0}
body.mwp-theme .mwp-shop-ui .mwp-shop-card-actions .mwp-shop-card-add,body.mwp-theme .mwp-shop-ui .mwp-shop-card-actions .mwp-shop-card-preview{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;min-height:39px;max-width:100%;min-width:0;margin:0!important;text-align:center;padding:7px 4px!important;border-radius:9px;font-size:11.5px;font-weight:800;line-height:1.35;white-space:normal;text-decoration:none!important;box-shadow:none!important;transition:filter .16s ease,background .16s ease}
body.mwp-theme .mwp-shop-ui .mwp-shop-card-actions .mwp-shop-card-add{background:var(--mwp-accent,#c58b49)!important;color:#fff!important;border:1px solid var(--mwp-accent,#c58b49)!important}
body.mwp-theme .mwp-shop-ui .mwp-shop-card-actions .mwp-shop-card-preview{background:#fff!important;color:#253142!important;border:1px solid #d9dfe7!important}
body.mwp-theme .mwp-shop-ui .mwp-shop-card-actions a:hover{filter:brightness(.94)}
.mwp-shop-card-actions svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mwp-shop-card-actions a:focus-visible,.mwp-shop-view-switch button:focus-visible{outline:3px solid #376fa5!important;outline-offset:2px}
/* Pagination */
body.mwp-theme .mwp-shop-ui .woocommerce-pagination{margin-top:26px}
@media(max-width:1199px){body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:950px){body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){
 .mwp-shop-ui{padding-top:8px}
 .mwp-shop-gallery-desktop{display:none}.mwp-shop-gallery-mobile{display:block}.mwp-shop-gallery{border-radius:11px;margin-bottom:12px}.mwp-shop-gallery-track{aspect-ratio:2.25/1;min-height:135px;max-height:215px}
 .mwp-shop-promo-images{gap:7px;margin:11px 0 18px}.mwp-shop-promo-item{border-radius:9px}
 .mwp-shop-heading h1{font-size:24px;margin-bottom:8px}
 .mwp-shop-toolbar{display:flex;flex-direction:column;align-items:stretch;padding:10px;gap:9px;margin-bottom:12px;border-radius:13px}
 .mwp-shop-toolbar-leading{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;flex-wrap:nowrap}
 .mwp-shop-count{min-width:0;flex:1}
 .mwp-shop-count .woocommerce-result-count{font-size:11.5px;line-height:1.5}
 .mwp-shop-view-switch{display:inline-flex;align-items:center;flex-shrink:0;direction:ltr;gap:3px;padding:3px;background:#f6f7f9;border:1px solid #e1e6ec;border-radius:10px}
 .mwp-shop-view-switch button{appearance:none;width:35px;height:34px;min-width:35px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:#5d6b7e;cursor:pointer;transition:background .15s ease,color .15s ease}
 .mwp-shop-view-switch button[aria-pressed=true]{background:#24334b;color:#fff;box-shadow:0 2px 7px rgba(27,41,61,.16)}
 .mwp-shop-view-switch svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
 .mwp-shop-ordering,.mwp-shop-ordering .woocommerce-ordering,.mwp-shop-ordering select{width:100%!important;max-width:100%}
 .mwp-shop-ordering select{min-height:40px;font-size:12px}
 /* GRID selection = two cards per row */
 body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body.mwp-theme .mwp-shop-ui .mwp-shop-products>ul.products>li.product{border-radius:12px}
 .mwp-shop-card-info{padding:9px;gap:8px}.mwp-shop-card-title{font-size:12px;line-height:1.45}.mwp-shop-card-price{font-size:15px}.mwp-shop-card-actions{gap:5px}
 body.mwp-theme .mwp-shop-ui .mwp-shop-card-actions .mwp-shop-card-add,body.mwp-theme .mwp-shop-ui .mwp-shop-card-actions .mwp-shop-card-preview{min-height:38px;font-size:10.5px;padding:5px 3px!important}
 .mwp-shop-card-actions svg{width:13px;height:13px}
 /* LIST selection = exactly one product per row */
 body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list>ul.products{grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
 body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list>ul.products>li.product{display:grid!important;grid-column:1 / -1!important;grid-template-columns:minmax(0,1fr) minmax(108px,34%)!important;grid-template-rows:1fr!important;grid-template-areas:"info image"!important;min-height:186px!important;width:100%!important;max-width:100%!important;float:none!important;clear:both!important;margin:0!important;padding:0!important;align-items:stretch;box-shadow:0 3px 14px rgba(29,41,56,.055);border:1px solid #e5e9ef;border-radius:14px}
 .mwp-shop-products.is-list .mwp-shop-card-photo{min-width:0;padding:10px 7px;background:#f8fafb;align-self:stretch;overflow:hidden}
 body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list .mwp-shop-card-photo>img{width:100%!important;height:100%!important;max-height:185px;aspect-ratio:auto!important;object-fit:contain!important}
 .mwp-shop-products.is-list .mwp-shop-sale-tag{top:6px;inset-inline-start:6px;font-size:9px;padding:4px 6px}
 .mwp-shop-products.is-list .mwp-shop-card-info{padding:12px 11px;gap:7px;justify-content:space-between}
 .mwp-shop-products.is-list .mwp-shop-card-details{gap:4px}
 .mwp-shop-products.is-list .mwp-shop-card-cat{font-size:10px}
 .mwp-shop-products.is-list .mwp-shop-card-title{font-size:14px;line-height:1.45;font-weight:850;min-height:0;-webkit-line-clamp:2}
 .mwp-shop-products.is-list .mwp-shop-card-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#748092;font-size:11px;line-height:1.45}
 .mwp-shop-products.is-list .mwp-shop-card-rating{font-size:11px;line-height:1.3}
 .mwp-shop-products.is-list .mwp-shop-card-bottom{gap:8px;margin-top:4px}
 .mwp-shop-products.is-list .mwp-shop-card-price{min-height:0;font-size:17px;line-height:1.35;font-weight:900;color:#182333}
 .mwp-shop-products.is-list .mwp-shop-card-price del{font-size:11px}
 .mwp-shop-products.is-list .mwp-shop-card-actions{width:100%;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:6px}
 body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list .mwp-shop-card-actions .mwp-shop-card-add,body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list .mwp-shop-card-actions .mwp-shop-card-preview{min-height:40px;padding:6px 3px!important;font-size:11px;border-radius:8px}
}
@media(max-width:365px){
 .mwp-shop-toolbar{padding:8px}
 body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list>ul.products>li.product{grid-template-columns:minmax(0,1fr) minmax(96px,33%)!important;min-height:185px!important}
 .mwp-shop-products.is-list .mwp-shop-card-info{padding:10px 8px;gap:5px}
 .mwp-shop-products.is-list .mwp-shop-card-title{font-size:12.5px}
 .mwp-shop-products.is-list .mwp-shop-card-price{font-size:15px}
 .mwp-shop-products.is-list .mwp-shop-card-actions svg{display:none}
 body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list .mwp-shop-card-actions .mwp-shop-card-add,body.mwp-theme .mwp-shop-ui .mwp-shop-products.is-list .mwp-shop-card-actions .mwp-shop-card-preview{font-size:10px;padding:5px 2px!important}
}
@media(prefers-reduced-motion:reduce){.mwp-shop-slide,.mwp-shop-view-switch button,body.mwp-theme .mwp-shop-ui li.product{animation:none!important;transition:none!important}}
