/* Reuse existing local WOFF2 files with swap; no additional font downloads. */
body.wasalat-catalog-cards{--wasalat-text-font:"Work Sans",Arial,sans-serif;font-family:var(--wasalat-text-font)}
body.rtl.wasalat-catalog-cards{--wasalat-text-font:Tajawal,Tahoma,Arial,sans-serif}
body.wasalat-catalog-cards :is(h1,h2,h3,h4,h5,h6,p,label,input,textarea,select,.button,.woocommerce-message,.woocommerce-error,.woocommerce-info),body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category){font-family:var(--wasalat-text-font)}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2 a{font-family:Tajawal,Arial,sans-serif}
/* Keep the native product links, price markup, AJAX actions and hover tools. */
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .product-inner{position:relative;background:#fff;border:1px solid #e1e3ed;border-radius:22px;box-shadow:none;padding:14px;margin:2px;width:calc(100% - 4px);overflow:visible;transition:border-color .15s ease,box-shadow .15s ease}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .product-inner:hover,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .product-inner:focus-within{border-color:#c5cada;box-shadow:0 4px 16px #2431650c}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .sold-out-overlay,body.wasalat-catalog-cards .wasalat-card-discount,body.wasalat-catalog-cards .wasalat-card-new{position:absolute;z-index:4;zoom:1;max-width:calc(100% - 50px);font-size:10px;font-weight:700;line-height:1.2;padding:4px 6px;border:0;border-radius:4px;white-space:nowrap;text-align:center;pointer-events:none}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .sold-out-overlay{top:12px;inset-inline-start:12px;inset-inline-end:auto;background:#fb9639;color:#fff}
body.wasalat-catalog-cards ul.products li.product.type-product.outofstock .sold-out-overlay{background:#596174;color:#fff}
body.wasalat-catalog-cards .wasalat-card-discount{top:12px;inset-inline:auto;left:auto;right:12px;background:#d73c1b;color:#fff}
body.wasalat-catalog-cards .wasalat-card-new{top:36px;inset-inline-start:12px;background:#202a54;color:#fff}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .ribbons .onsale,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .ribbons .new{display:none}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2 a{color:#243165;text-align:start;font-size:17px;font-weight:400;line-height:1.5}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price{font-size:26px;font-weight:900;color:#087f8c;text-align:center;line-height:1.3}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price ins{color:#d73c1b;font-size:26px;font-weight:900;text-decoration:none}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price del{color:#737989;font-size:14px;font-weight:400;opacity:1}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button{background:#f79a42;color:#fff;border:0;border-radius:14px;min-height:48px;height:auto;padding:6px 8px;line-height:1.25;align-items:center;justify-content:center;font-weight:700;text-align:center;white-space:normal;max-width:100%}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button .add-to-cart-text{font-size:17px;font-weight:700;line-height:1.4}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button:hover{background:#ec862c;color:#fff}
body.wasalat-catalog-cards ul.products li.product.type-product.outofstock a.button{background:#edf0f5;color:#596174}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a:focus-visible{outline:3px solid #243165;outline-offset:3px}
/* Grid cards reserve their image and text space without covering hover tools. */
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .product-inner{display:flex;flex-direction:column;height:auto;min-height:0}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail{position:relative;aspect-ratio:1/1;width:100%;padding:24px 0 8px;margin-bottom:8px;flex:0 0 auto;min-height:200px;display:flex;align-items:center;justify-content:center;min-width:0}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail>a img{width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;margin:auto}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-details{display:flex;flex-direction:column;position:relative;width:100%;min-width:0;flex:0 0 auto}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-content{display:grid;grid-template-rows:52px;gap:0;height:auto;min-width:0;text-align:start}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) h2{height:52px;min-height:52px;margin:0;padding:0;overflow:hidden}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) h2 a{height:52px;min-height:0;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2;line-height:26px!important;overflow:hidden;overflow-wrap:anywhere}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-rating{display:none}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-price-box{display:flex;flex-direction:column;width:100%;align-items:stretch;padding-top:7px;margin-top:auto;min-width:0}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price{height:56px;min-height:56px;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;gap:3px;margin:0 0 8px;width:100%}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price>ins,body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price>del{flex:0 0 auto;width:auto;white-space:normal}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-price-box>.button{display:flex;width:100%;margin:0;min-height:48px}
/* Keep the original quick-view/wishlist/compare nodes and all plugin listeners. */
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;position:absolute;bottom:0;inset-inline:0;opacity:1;transform:none;margin:0;padding:0;z-index:5;background:transparent;width:100%}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>a,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>div{display:block;float:none;margin:0}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>a,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>div a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid #e1e3ed;border-radius:50%;background:#fff;color:#243165;line-height:1}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button .yith-wcwl-icon-svg{width:23px;height:23px}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button .yith-wcwl-add-to-wishlist a>span,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button .compare .label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(hover:hover) and (pointer:fine){
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>.mf-product-quick-view,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>.compare-button,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>.yith-wcwl-add-to-wishlist{opacity:0;pointer-events:none}
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .product-inner:hover .mf-product-thumbnail .footer-button>*,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .product-inner:focus-within .mf-product-thumbnail .footer-button>*{opacity:1;pointer-events:auto}
}
@media(max-width:767px){
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category){padding-inline:3px}
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .product-inner{padding:10px;border-radius:18px;margin:2px;width:calc(100% - 4px)}
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .sold-out-overlay,body.wasalat-catalog-cards .wasalat-card-discount,body.wasalat-catalog-cards .wasalat-card-new{font-size:10px;padding:4px 6px;top:10px;max-width:calc(100% - 50px);word-break:normal;overflow-wrap:normal}
 body.wasalat-catalog-cards .wasalat-card-new{top:34px}
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2 a{font-size:16px}
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-price-box .price ins{font-size:24px}
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button .add-to-cart-text{font-size:16px}
}
@media(prefers-reduced-motion:reduce){body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .product-inner{transition:none}}
body.wasalat-catalog-cards .wasalat-catalog-heading{font-family:var(--wasalat-text-font);font-size:30px;font-weight:700;color:#243165;line-height:1.4;margin:0 0 20px;text-align:start}
@media(max-width:767px){body.wasalat-catalog-cards .wasalat-catalog-heading{font-size:25px;margin-bottom:16px}}

body.rtl.wasalat-catalog-cards .wasalat-card-discount{right:auto;left:12px}
body.wasalat-catalog-cards .wasalat-card-rating{position:absolute;bottom:0;inset-inline-start:0;display:inline-flex;align-items:center;gap:2px;padding:3px 6px;border-radius:12px;background:#f5f6fa;color:#202a54;font-size:11px;font-weight:600;line-height:16px;white-space:nowrap;z-index:5}
body.wasalat-catalog-cards .wasalat-card-star{font-size:14px;color:#d78900}
body.rtl.wasalat-catalog-cards .wasalat-card-rating{inset-inline:auto;right:0;left:auto}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button{height:32px;overflow:visible;flex-wrap:nowrap;gap:5px}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>div.yith-wcwl-add-to-wishlist{position:static}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>.mf-product-quick-view{position:static}
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>.compare-button{position:static}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>a,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>div a{width:32px;height:32px}
body.wasalat-catalog-cards.shop-view-list .wasalat-card-rating{position:static;width:max-content;margin-top:6px}

@media(max-width:767px){body.wasalat-catalog-cards .wasalat-card-discount{right:10px;left:auto;max-width:35%}body.rtl.wasalat-catalog-cards .wasalat-card-discount{right:auto;left:10px}body.wasalat-catalog-cards .wasalat-card-new{background:#202a54;color:#fff}}

/* Preserve the theme column widths; tighten gutters rather than shrinking cards. */
body.wasalat-catalog-cards:not(.shop-view-list) ul.products li.product.type-product:not(.product-category){padding-inline:3px;margin-bottom:8px}

body.rtl.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2,body.rtl.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) h2 a{font-weight:400}

/* Reserve separate icon/text/status lanes in every native AJAX cart state. */
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button{position:relative;padding-inline:32px;gap:0}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button .add-to-cart-text{display:block;flex:1;min-width:0;width:100%;margin:0;padding:0;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.35}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button .add-to-cart-text:before{content:none}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button>i.p-icon{position:absolute;inset-inline-start:9px;top:50%;transform:translateY(-50%);margin:0;font-size:18px;line-height:1}
body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button.loading:after,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button.added:after{position:absolute;top:calc(50% - 8px);right:9px;left:auto;width:16px;height:16px;line-height:16px;margin:0}
body.rtl.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button.loading:after,body.rtl.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button.added:after{left:9px;right:auto}

@media(max-width:767px){
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button{padding-inline-start:8px;padding-inline-end:26px}
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) a.button>i.p-icon{display:none}
}

@media(max-width:767px),(hover:none),(pointer:coarse){
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>.mf-product-quick-view,body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .mf-product-thumbnail .footer-button>.compare-button{display:none}
}

/* Slightly larger corner badges on desktop; mobile card sizing stays intact. */
@media(min-width:1024px){
 body.wasalat-catalog-cards ul.products li.product.type-product:not(.product-category) .sold-out-overlay,body.wasalat-catalog-cards .wasalat-card-discount,body.wasalat-catalog-cards .wasalat-card-new{font-size:12px;padding:5px 8px;border-radius:5px;max-width:calc(100% - 60px)}
 body.wasalat-catalog-cards .wasalat-card-new{top:42px}
}
/* One responsive logo grid in both languages, retaining the existing images/links. */
body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .images-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .image-row{display:contents}
body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .image-item{float:none;width:auto;max-width:100%;flex:none;min-width:0;margin:0;padding:8px;display:flex;align-items:center;justify-content:center;min-height:112px;box-sizing:border-box}
body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .img-link{display:flex;width:100%;height:100px;align-items:center;justify-content:center}
body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid img{display:block;width:100%;max-width:200px;height:auto;max-height:100px;object-fit:contain;margin:auto}

@media(max-width:767px){
 body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .images-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
 body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .image-item{padding:2px;min-height:56px}
 body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .img-link{height:52px}
 body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid img{max-height:52px}
}

body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .image-row:before,body.wasalat-catalog-cards.page-template-template-homepage .martfury-images-grid .image-row:after{content:none;display:none}

/* Product-detail prices share the card palette; retain native layout and amounts. */
body.single-product.wasalat-catalog-cards div.product .summary .price{color:#087f8c}
body.single-product.wasalat-catalog-cards div.product .summary .price ins{color:#d73c1b}
body.single-product.wasalat-catalog-cards div.product .summary .price del{color:#737989}
body.single-product.wasalat-catalog-cards div.product .summary .price .amount{color:inherit}
