/* KM Meghnaj Builder: product card extras */

/* ---- Wishlist icon on a white circle (70% opacity) ---- */
body.mst-wishlist-circle .etheme-product-grid-item .footer-inner .xstore-wishlist {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: var(--mst-wishlist-size, 36px) !important;
	height: var(--mst-wishlist-size, 36px) !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background-color: rgba(255, 255, 255, var(--mst-wishlist-opacity, .7)) !important;
	color: #111;
	transition: background-color .2s ease;
}

body.mst-wishlist-circle .etheme-product-grid-item .footer-inner .xstore-wishlist:hover {
	background-color: rgba(255, 255, 255, .95) !important;
}

body.mst-wishlist-circle .etheme-product-grid-item .footer-inner .xstore-wishlist .et-icon {
	line-height: 1;
}

/* ---- Next photo slides in from the right on hover ---- */
.etheme-product-grid-image > a.mst-hover-swap > img.mst-hover-img {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	/* z-index 0 keeps both photos in their own layer, so the theme's hover icons (wishlist, Quick View) stay on top. */
	.etheme-product-grid-image > a.mst-hover-swap {
		position: relative;
		z-index: 0;
		display: block;
		overflow: hidden;
	}

	.etheme-product-grid-image > a.mst-hover-swap > img {
		transition: transform .55s cubic-bezier(.22, .61, .36, 1) !important;
	}

	.etheme-product-grid-image > a.mst-hover-swap > img.mst-hover-img {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 1;
		display: block;
		width: 100% !important;
		max-width: none !important;
		height: 100% !important;
		margin: 0 !important;
		object-fit: cover;
		transform: translateX(100%) !important;
	}

	.etheme-product-grid-item:hover .etheme-product-grid-image > a.mst-hover-swap > img:not(.mst-hover-img) {
		transform: translateX(-100%) !important;
	}

	.etheme-product-grid-item:hover .etheme-product-grid-image > a.mst-hover-swap > img.mst-hover-img {
		transform: translateX(0) !important;
	}

	/* Keep the sale badge above both photos. */
	.etheme-product-grid-image > a.mst-hover-swap .sale-wrapper {
		position: relative;
		z-index: 2;
	}

	/* A color picked on the card shows that color's photo; don't slide it away. */
	.etheme-product-grid-item.mst-cs-picked .etheme-product-grid-image > a.mst-hover-swap > img:not(.mst-hover-img),
	.etheme-product-grid-item.mst-cs-picked .etheme-product-grid-image > a.mst-hover-swap > img.mst-hover-img {
		transition: none !important;
	}

	.etheme-product-grid-item.mst-cs-picked:hover .etheme-product-grid-image > a.mst-hover-swap > img:not(.mst-hover-img) {
		transform: none !important;
	}

	.etheme-product-grid-item.mst-cs-picked:hover .etheme-product-grid-image > a.mst-hover-swap > img.mst-hover-img {
		transform: translateX(100%) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.etheme-product-grid-image > a.mst-hover-swap > img {
		transition: none !important;
	}
}

/* ---- Product labels (Sale, New, Hot...) with rounded corners like the card buttons ---- */
body.mst-rounded-badges .onsale:not(.type-circle) {
	border-radius: var(--mst-badge-radius, 10px) !important;
}

/* XStore lays the label out with flex, which drops the space in "Up to 15%"; put it back. */
.onsale.with-percentage > span {
	margin-inline-start: .3em;
}

/* ---- Wishlist heart visible without hovering ----
   XStore hides the whole hover area until hover. Keep that area's own layer (white overlay, Quick View bar)
   hidden, and make only the heart visible: a visible child shows even inside a hidden parent. */
body.mst-wishlist-always .etheme-product-grid-item .etheme-product-grid-image footer {
	opacity: 1 !important;
}

body.mst-wishlist-always .etheme-product-grid-item .etheme-product-grid-image footer .footer-inner .xstore-wishlist {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

/* Quick view window: no wishlist / compare buttons. */
.et-quick-view-wrapper .single-wishlist,
.et-quick-view-wrapper .single-compare {
	display: none !important;
}

/* Quick view title in Alexandria on Arabic pages (the theme uses the primary font, Kraften, for headings). */
html[lang^="ar"] .et-quick-view-wrapper .product-name,
html[lang^="ar"] .et-quick-view-wrapper .product-name a,
html[lang^="ar"] .et-quick-view-wrapper .product_title {
	font-family: "Alexandria", sans-serif !important;
}

/* Mini cart product names in Alexandria, in every language. */
.woocommerce-mini-cart-item .product-title,
.woocommerce-mini-cart-item .product-title a,
.mini_cart_item .product-title,
.mini_cart_item .product-title a {
	font-family: "Alexandria", sans-serif !important;
}

/* Empty cart / compare / wishlist heading: the theme's heading font (Kraften) has no Arabic letters, so Arabic
   pages fell back to a system font. */
html[lang^="ar"] .empty-cart-block h1,
html[lang^="ar"] .empty-cart-block h2,
html[lang^="ar"] .cart-empty h1,
html[lang^="ar"] .wc-empty-cart-message h1 {
	font-family: "Alexandria", sans-serif !important;
}

/* Live search results: the title takes the free width, the price stays on one line next to it. */
.etheme-search-form .autocomplete-suggestion .etheme-search-form-item-link{display:flex;align-items:center;width:100%}
.etheme-search-form .autocomplete-suggestion .etheme-search-form-item-link img{flex:0 0 auto}
.etheme-search-form .autocomplete-suggestion .etheme-search-form-item-info{flex:1 1 auto;min-width:0;width:auto}
.etheme-search-form .autocomplete-suggestion .etheme-search-form-item-title{word-break:normal;overflow-wrap:break-word;white-space:normal;line-height:1.4}
.etheme-search-form .autocomplete-suggestion .etheme-search-form-item-price{flex:0 0 auto}
.rtl .etheme-search-form .autocomplete-suggestion .etheme-search-form-item-info:not(:last-child){margin-right:0;margin-left:20px}
/* Wider than the search box on desktop: grows toward the page (left on Arabic pages, right on English ones). */
@media (min-width:768px){
.etheme-search-form:not([type=popup]) .etheme-search-ajax-results{width:min(620px,92vw);min-width:100%;left:0;right:auto;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.rtl .etheme-search-form:not([type=popup]) .etheme-search-ajax-results{right:0;left:auto}
.etheme-search-form:not([type=popup]) .etheme-search-ajax-results .autocomplete-suggestions{width:100%!important;max-height:min(70vh,560px)}
}
.etheme-search-form .autocomplete-suggestion .etheme-search-form-item-price{white-space:nowrap}
/* Results heading: "Products" on one side, the count on the other, also on Arabic pages. */
.etheme-search-form .etheme-search-form-title{justify-content:space-between;gap:10px}
.rtl .etheme-search-form .etheme-search-form-title span{margin-left:0;margin-right:auto}
/* Everything in the Arabic results box (heading, count, names, prices, "no results") in Alexandria. */
html[lang^="ar"] .etheme-search-ajax-results,
html[lang^="ar"] .etheme-search-ajax-results *:not(i):not([class*="icon"]){font-family:"Alexandria",sans-serif!important}

/* Wishlist side panel (and the mini cart panel): names, prices, buttons and the empty message in Alexandria. */
.et_b_wishlist-dropdown,
.et_b_wishlist-dropdown *:not(i):not([class*="icon"]),
.woocommerce-mini-wishlist-item,
.woocommerce-mini-wishlist-item *:not(i):not([class*="icon"]),
.empty-wishlist-block,
.empty-wishlist-block *:not(i):not([class*="icon"]){
	font-family: "Alexandria", sans-serif !important;
}

/* The product search box on the "no products found" page: rounded corners, button flush inside. */
form.woocommerce-product-search{display:flex;align-items:stretch;border-radius:10px;overflow:hidden}
form.woocommerce-product-search .search-field{flex:1 1 auto;min-width:0;border-radius:0;margin:0}
form.woocommerce-product-search button{flex:0 0 auto;border-radius:0;margin:0}

/* Quantity control: one rounded pill, big enough to tap, with the value centred and the +/- as quiet
   buttons that light up on hover. size-sm is the small one inside the order review. Radius, height and
   widths come from Store tools. */
.quantity .quantity-wrapper,
.quantity .quantity-wrapper.type-square,
.et-quick-view-wrapper .quantity .quantity-wrapper,
/* The quick view has no inner wrapper: the +/- sit straight inside .quantity. */
.et-quick-view-wrapper .quantity,
.quantity:has(> .minus),
.quantity:has(> .plus){
	display: inline-flex;
	align-items: stretch;
	height: var(--mst-qty-height, 48px);
	border: 1px solid var(--mst-qty-border, #e2e2e2);
	border-radius: var(--mst-qty-radius, 10px) !important;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
}
.quantity .quantity-wrapper.size-sm{height: var(--mst-qty-height-sm, 34px)}
/* Order review cells are narrow, so the small one must never be wider than the space it has. */
.quantity,
.quantity .quantity-wrapper{max-width: 100%}
.quantity .quantity-wrapper > *{border-radius: 0 !important}

.quantity .quantity-wrapper .minus,
.quantity .quantity-wrapper .plus,
.et-quick-view-wrapper .quantity > .minus,
.et-quick-view-wrapper .quantity > .plus,
.quantity > .minus,
.quantity > .plus{
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--mst-qty-button, 42px);
	min-width: var(--mst-qty-button, 42px);
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #555;
	cursor: pointer;
	user-select: none;
	transition: background-color .15s ease, color .15s ease;
}
.quantity .quantity-wrapper.size-sm .minus,
.quantity .quantity-wrapper.size-sm .plus{
	width: var(--mst-qty-button-sm, 26px);
	min-width: var(--mst-qty-button-sm, 26px);
	flex: 0 0 auto;
}
.quantity .quantity-wrapper .minus:hover,
.quantity .quantity-wrapper .plus:hover,
.quantity > .minus:hover,
.quantity > .plus:hover{background: #f4f4f4; color: #111}
/* The hidden label must not take part in the row. */
.quantity > label.screen-reader-text{position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0)}
.quantity .quantity-wrapper .minus:active,
.quantity .quantity-wrapper .plus:active{background: #ececec}
.quantity .quantity-wrapper .minus.disabled,
.quantity .quantity-wrapper .minus[disabled]{opacity: .35; cursor: default; background: transparent}

/* The value: centred, no browser spinners, digits that keep their width while changing. */
.quantity input.qty,
.quantity .quantity-wrapper input.qty{
	width: var(--mst-qty-input, 48px);
	min-width: var(--mst-qty-input, 48px);
	height: auto;
	align-self: stretch;
	margin: 0;
	padding: 0 2px;
	border: 0 !important;
	border-left: 1px solid var(--mst-qty-border, #e2e2e2) !important;
	border-right: 1px solid var(--mst-qty-border, #e2e2e2) !important;
	border-radius: 0 !important;
	background: transparent;
	box-shadow: none !important;
	text-align: center;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: normal;
	-moz-appearance: textfield;
	appearance: textfield;
}
.quantity .quantity-wrapper.size-sm input.qty{
	width: var(--mst-qty-input-sm, 30px);
	min-width: 0;
	flex: 1 1 auto;
	font-weight: 500;
	font-size: .95em;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button{-webkit-appearance: none; margin: 0}
.quantity input.qty:focus{outline: 0; box-shadow: none !important}
.quantity .quantity-wrapper:focus-within{border-color: #b9b9b9}

/* Currency symbol. The Riyal symbol is an uploaded SVG put in with inline styles, so the size, baseline
   and spacing are forced here: same size everywhere, sitting on the digits' baseline with one gap on
   whichever side it is, and never split from the amount across a line break. */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi{white-space: nowrap}
.woocommerce-Price-currencySymbol{
	display: inline-flex !important;
	align-items: center;
	vertical-align: baseline;
	line-height: 1;
}
.woocommerce-Price-currencySymbol img{
	height: .8em !important;
	width: auto !important;
	vertical-align: baseline !important;
	margin: 0 !important;
	display: inline-block;
}
.woocommerce-Price-currencySymbol:first-child{margin-inline-end: .28em !important}
.woocommerce-Price-currencySymbol:last-child{margin-inline-start: .28em !important}

/* Checkout and cart: rounded boxes, fields and buttons. The radius comes from Store tools
   (--mst-form-radius); 10px when nothing is set. */
body.woocommerce-checkout .etheme-elementor-checkout-page-order-details-wrapper,
body.woocommerce-checkout .etheme-elementor-checkout-page-order-details-inner,
body.woocommerce-checkout .cart-order-details,
body.woocommerce-checkout .order-review,
body.woocommerce-checkout .e-checkout__order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .checkout-order-review,
body.woocommerce-checkout form.checkout .col2-set .woocommerce-billing-fields,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cart-collaterals .cross-sells,
body.woocommerce-cart .woocommerce-cart-form .shop_table{
	border-radius: var(--mst-form-radius, 10px);
	overflow: hidden;
}
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="number"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout input[type="search"],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-container .select2-selection,
body.woocommerce-cart input[type="text"],
body.woocommerce-cart input[type="email"],
body.woocommerce-cart input[type="tel"],
body.woocommerce-cart input[type="number"],
body.woocommerce-cart select,
body.woocommerce-cart textarea,
body.woocommerce-cart .select2-container .select2-selection{
	border-radius: var(--mst-form-radius, 10px) !important;
}
body.woocommerce-checkout .button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout .checkout-button,
body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.button{
	border-radius: var(--mst-form-radius, 10px) !important;
}
/* The coupon field and its OK button sit together: round the pair, square the pieces. */
body.woocommerce-cart .coupon,
body.woocommerce-checkout .coupon{
	border-radius: var(--mst-form-radius, 10px);
	overflow: hidden;
}

/* Wishlist page and wishlist panel buttons: same rounded corners as the rest of the store. */
.xstore-wishlist-actions,
.et-wishlist-holder .button,
.et-wishlist-holder .btn,
.et-wishlist-holder a.added_to_cart,
.wishlist-page .button,
.wishlist-page .btn,
.et_b_wishlist-dropdown .btn,
.et_b_wishlist-dropdown .button,
.btn-view-wishlist,
.empty-wishlist-block .btn,
.empty-wishlist-block .button{
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Single product page and quick view: Add to cart, Buy now and the wishlist / compare links get the
   same rounded corners as the cart and checkout. */
.single-product .single_add_to_cart_button,
.single-product .et-single-buy-now,
.single-product form.cart .button,
.single-product .et-quantity-buy-now-wrapper .button,
.et-quick-view-wrapper .single_add_to_cart_button,
.et-quick-view-wrapper .et-single-buy-now,
.et-quick-view-wrapper form.cart .button,
.et-quick-view-wrapper .button{
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Mini cart panel buttons (View cart / Checkout) and the wishlist panel button. */
.widget_shopping_cart_content .buttons .button,
.widget_shopping_cart_content .buttons .btn,
.mini-cart-buttons .button,
.mini-cart-buttons .btn,
.et-mini-content .buttons .button,
.et-mini-content .buttons .btn,
.btn-view-cart,
.btn-checkout,
.btn-view-wishlist{
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Checkout in the mini cart, and "Add all to cart" in the wishlist panel. The theme paints both from
   its "active button" colour, a dark grey, while every other important button on the store is the
   brand red. Both carry .btn-checkout, so one rule covers them.

   The colours are taken from the theme's own brand-button variables rather than written out, so if
   the shop colour is ever changed in the XStore panel these follow it; the hex values are only a
   fallback. !important is needed: the theme's own rule is just as specific. */
.btn-checkout,
.mini-cart-buttons .btn-checkout,
.btn-checkout.add-all-products {
	background-color: var(--et_btn-dark-bg-color, #660014) !important;
	border-color: var(--et_btn-dark-bg-color, #660014) !important;
	color: var(--et_btn-dark-color, #fff) !important;
}

.btn-checkout:hover,
.btn-checkout:focus,
.btn-checkout:hover:focus,
.mini-cart-buttons .btn-checkout:hover,
.btn-checkout.add-all-products:hover {
	background-color: var(--et_btn-dark-bg-color-hover, #3f0008) !important;
	border-color: var(--et_btn-dark-bg-color-hover, #3f0008) !important;
	color: var(--et_btn-dark-color, #fff) !important;
}

/* The rating picker in the review form. WooCommerce prints five links, and the theme gives each one a
   growing run of stars: one star, then two, then three, four, five, laid side by side. That is fifteen
   stars on screen and it reads as a row of groups rather than a rating.

   Giving every link the same single star turns the row back into the five stars people expect, and
   each one still carries its own rating, so clicking the third sets 3 in the hidden field exactly as
   WooCommerce intends. \e930d is the theme's own star glyph, so nothing new is loaded.

   Filling up to the chosen star needs the links *before* the chosen one to light up as well, which is
   what :has() does here. Browsers without it (pre-2023) simply light the chosen star alone; the rating
   itself still works. */
#review_form .stars a::before,
#review_form .stars a.star-2::before,
#review_form .stars a.star-3::before,
#review_form .stars a.star-4::before,
#review_form .stars a.star-5::before {
	content: "\e930d " !important;
}

/* The theme spaced the groups 15px apart; stars sit closer together. */
#review_form .stars a {
	margin-inline-end: 6px !important;
}

/* While the pointer is over the row, the hover shows instead of the saved choice. */
#review_form .stars:hover a.active::before {
	color: var(--et_border-color) !important;
}

#review_form .stars a:hover::before,
#review_form .stars a:has(~ a:hover)::before,
#review_form .stars a.active::before,
#review_form .stars a:has(~ a.active)::before {
	color: var(--et_yellow-color) !important;
}

/* Live search results on a phone. The theme lays them out as one grid row, five columns wide, and
   relies on a slider to move along it. That slider never starts on a phone, so the row simply ran off
   the screen with overflow hidden: the first result was visible and the other four were unreachable.

   The column count is the theme's own --cols variable, so lowering it is enough; the results then wrap
   into a list that scrolls down, which is what a phone wants anyway. One column on phones, because the
   cards will not go narrower than 250px, and two on tablets, where they fit. */
@media (max-width: 767px) {
	.etheme-search-form[type="popup"] .autocomplete-suggestions {
		--cols: 1 !important;
		overflow-y: auto !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.etheme-search-form[type="popup"] .autocomplete-suggestions {
		--cols: 2 !important;
		overflow-y: auto !important;
	}
}

/* The Snapchat button in the share row is a link rather than one of Elementor's own buttons, so it
   has to be told not to pick up the theme's link underline. Everything else about it — size, colour,
   spacing — comes from the Elementor panel, through the classes it shares with the others. */
.elementor-share-btn.mst-share-snapchat,
.elementor-share-btn.mst-share-snapchat:hover,
.elementor-share-btn.mst-share-snapchat:focus {
	text-decoration: none !important;
	box-shadow: none !important;
}

/* "طرق الشحن" on the checkout, when there is nothing to choose.

   With a single shipping method WooCommerce prints it as a hidden input rather than a radio button, so
   the whole block is a heading above one line of text that the customer cannot act on. This hides it in
   exactly that case: one entry, and that entry a hidden input.

   Written as a condition rather than a plain hide on purpose. The moment a second method exists the
   list gets real radio buttons, the condition stops matching and the block comes back on its own —
   including straight after the checkout refreshes itself when an address is changed. The method is
   still submitted with the order, and any shipping cost still shows in the totals. */
   Corrected on 26 October 2026: hiding the whole block hid the shipping cost with it. This block is
   the only place the theme shows what shipping costs - the row inside the order review table is left
   empty, so with the block gone the checkout went straight from the subtotal to a total that was 25
   larger with nothing to explain it. Only the heading goes now, which was the part with nothing to
   act on; the line underneath it, "رسوم الشحن: 25,00", stays. */
.woocommerce-shipping-methods-fields:has(ul#shipping_method > li:only-child > input[type="hidden"].shipping_method) > .step-title {
	display: none;
}

/* The quantity box in the order review. The theme sizes it from a proportion that collapses to about
   7.5px here, small enough that the number is barely a smudge beside the price. The font was never
   the problem - it is Alexandria already - the size was. */
   Each wrapper is sized in em, so they multiply: 15.96 on the cell, then .95, .75, .75, .95 down the
   chain, which lands the number at about 8px. Fixed sizes are set at every step rather than only on
   the input, otherwise the next wrapper shrinks it again. */
.woocommerce-checkout-review-order-table .quantity,
.woocommerce-checkout-review-order-table .quantity-wrapper,
.woocommerce-checkout-review-order-table .quantity input.qty,
.woocommerce-checkout-review-order-table .quantity-wrapper > * {
	font-size: 14px !important;
	font-family: "Alexandria", sans-serif !important;
}

/* Track order / view order: the sentence that names the order, its date and its status marks all three
   with <mark>, which the theme paints a pale green and underlines — a highlighter pen, not a part of
   the store. The brand colour with white on it reads as something deliberate, and the colour comes
   from the theme's own brand-button variable, so changing the shop colour changes these too. */
.order-info mark,
.order-info mark.order-number,
.order-info mark.order-date,
.order-info mark.order-status {
	background-color: var(--et_btn-dark-bg-color, #660014) !important;
	color: var(--et_btn-dark-color, #fff) !important;
	text-decoration: none !important;
	border-radius: var(--mst-form-radius, 10px);
}

/* The review form on a product page: its box, its fields and its "إرسال" button were the last square
   corners left on the storefront. Same radius as the checkout, the cart and the quantity box, so it is
   one setting for all of them. */
form.comment-form input#submit,
#commentform input#submit,
form.comment-form textarea,
form.comment-form input[type="text"],
form.comment-form input[type="email"],
form.comment-form input[type="url"] {
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Stripe's "— OR —" line between the order button and the Apple Pay / Google Pay buttons. It is
   printed as part of the buttons, with no setting and no filter to turn it off, so it is hidden by its
   own id here. !important because Stripe's script sets display:block on it once the buttons are ready;
   its 1.5em top margin goes with it. */
#wc-stripe-express-checkout-button-separator {
	display: none !important;
}

/* Pagination: the page numbers and the next/previous arrows, same corners as the rest. */
a.page-numbers,
span.page-numbers,
.page-numbers li a,
.page-numbers li span,
.woocommerce-pagination a,
.woocommerce-pagination span {
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* "Return to shop" in an empty mini cart or wishlist panel. The wishlist one was already rounded by
   the panel rules further up; the mini cart's was not, so the two panels did not match. */
.etheme-elementor-off-canvas_content-empty-message .btn,
.etheme-elementor-off-canvas_content-empty-message .button,
.widget_shopping_cart_content .text-center .btn {
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Wishlist page on a phone. The theme hides the quantity, price and stock columns there and leaves
   three: a checkbox, the product, and the actions. The actions column was down to 95px, which put the
   buttons on two lines, and the photo was 46px — smaller than a thumbnail needs to be to recognise a
   product. Measured at 375px: the row was 225px tall with the name wrapping over four lines. */
@media (max-width: 767px) {
	.xstore-wishlist-table {
		width: 100% !important;
		max-width: 100%;
		table-layout: fixed;
	}

	.xstore-wishlist-table .xstore-wishlist-checkbox {
		width: 30px;
		padding-inline: 4px;
	}

	.xstore-wishlist-table .xstore-wishlist-product {
		padding-inline: 6px;
	}

	.xstore-wishlist-table .xstore-wishlist-action {
		width: 112px;
		padding-inline: 6px;
	}

	/* Big enough to tell one product from another. */
	.xstore-wishlist-table .xstore-wishlist-image img {
		width: 64px !important;
		height: auto !important;
		max-width: none;
	}

	/* The buttons live in a span inside the cell, and that span kept its own width — 126px inside a
	   112px cell — so sizing the column alone changed nothing. Stacking them gives each button the
	   full width of the column instead of half of it. */
	.xstore-wishlist-table .xstore-wishlist-action .actions-wrapper {
		display: flex;
		flex-direction: column;
		gap: 6px;
		width: 100%;
		max-width: 100%;
	}

	.xstore-wishlist-table .xstore-wishlist-action .actions-wrapper > *,
	.xstore-wishlist-table .xstore-wishlist-action .actions-buttons {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
	}

	/* Line breaks between the buttons, left over from the desktop layout: 19px of nothing each. */
	.xstore-wishlist-table .xstore-wishlist-action .actions-wrapper br {
		display: none;
	}

	.xstore-wishlist-table td {
		padding-top: 12px;
		padding-bottom: 12px;
		vertical-align: middle;
	}

	.xstore-wishlist-table .xstore-wishlist-action .button,
	.xstore-wishlist-table .xstore-wishlist-action .btn,
	.xstore-wishlist-table .xstore-wishlist-action a.added_to_cart {
		width: 100%;
		white-space: normal;
		padding-inline: 8px;
		font-size: 12px;
		line-height: 1.35;
	}
}

/* Sign in, register and reset password: the fields, the box around the password field (it holds the
   eye icon, so rounding the field alone leaves a square border around it) and the button. The same
   forms appear on the account page and in the side panel, so one set of rules covers both. */
.woocommerce-form-login input.woocommerce-Input,
.woocommerce-form-register input.woocommerce-Input,
.woocommerce-ResetPassword input.woocommerce-Input,
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"],
.woocommerce-form .password-input,
.woocommerce-form-login .password-input,
.woocommerce-form-register .password-input,
.woocommerce-form-login button,
.woocommerce-form-register button,
.woocommerce-ResetPassword button,
.woocommerce-form-login .button,
.woocommerce-form-register .button {
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Wishlist table: "إضافة إلى السلة" as an icon, like the delete button beside it. The column is narrow
   by design, and the words were breaking across three lines inside a 42px button. The text stays in
   the page for screen readers; only its size is taken away, and a bag is drawn in its place. */
.xstore-wishlist-table .xstore-wishlist-action .add_to_cart_button,
.xstore-wishlist-table .xstore-wishlist-action a.added_to_cart {
	font-size: 0 !important;
	line-height: 0 !important;
	min-height: 42px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7V5.5a3 3 0 0 1 6 0V7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
}

/* Room above "تأكيد الطلب". The terms line sits inside the same block as the button, so spacing the
   block only moved the two of them together and left them touching — the gap measured 0px. The space
   has to go on the button itself. */
.woocommerce-checkout .form-row.place-order,
form.checkout .form-row.place-order {
	margin-top: 20px;
}

#place_order,
.form-row.place-order #place_order {
	margin-top: 18px !important;
}

/* A photo opened from inside the quick view: Elementor's lightbox sits at 9999 and the quick view popup
   at 10002, so the photo opened behind the popup. Put the lightbox on top. */
.dialog-widget.dialog-lightbox-widget,
.elementor-lightbox{
	z-index: 100000 !important;
}

/* Wishlist table: Add to cart, the quick view eye, the delete bin, "add all to cart" and the estimate
   button all follow the same radius. */
.xstore-wishlist-form .btn,
.xstore-wishlist-form .button,
.xstore-wishlist-form button,
.xstore-wishlist-form .show-quickly,
.xstore-wishlist-form .et-wishlist-delete,
.xstore-wishlist-details .btn,
.xstore-wishlist-details .button,
.xstore-wishlist-apply-actions .btn,
.xstore-wishlist-apply-actions .button,
.et-wishlist-holder .show-quickly,
.et-wishlist-holder .et-wishlist-delete,
.et-wishlist-holder .add_to_cart_button,
.et-call-popup.btn{
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Wishlist rows: hide the "Added on: date" line (the theme has no setting for it). */
.xstore-wishlist-form .date-added,
.xstore-wishlist-details .date-added,
.et-wishlist-holder .date-added,
.woocommerce-account .date-added{
	display: none !important;
}

/* Cart page: the "clear shopping cart" link-button and the other action buttons beside it. */
.actions-buttons .clear-cart,
.actions-buttons .btn,
.actions-buttons .button,
a.clear-cart,
body.woocommerce-cart .btn,
body.woocommerce-cart .btn.bordered{
	border-radius: var(--mst-form-radius, 10px) !important;
}

/* Quick view is a compact panel: a slightly smaller quantity control than the product page. */
.et-quick-view-wrapper .quantity,
.et-quick-view-wrapper .quantity .quantity-wrapper{
	--mst-qty-height: 44px;
	--mst-qty-button: 34px;
	--mst-qty-input: 38px;
}

/* On a phone the row has about 330px to share between the quantity box, Add to cart and the heart,
   and the quantity box was taking the largest part of it. Narrowing the +/- buttons and the field
   gives those pixels to Add to cart, which is the button people are actually looking for. The height
   is left alone so the three stay level, and the heart follows it on its own: its size is measured
   from the quantity box. Only the product page form is touched, by name, so the cart page and the
   mini cart keep their own sizes. */
@media (max-width: 767px) {
	.single-product .etheme-add-to-cart-form form.cart .quantity {
		--mst-qty-button: 34px;
		--mst-qty-input: 38px;
	}

	.mst-wishlist-inline {
		--mst-row-gap: 10px;
	}
}

/* Smaller phones (iPhone SE and the like) have another 55px less to work with. */
@media (max-width: 360px) {
	.single-product .etheme-add-to-cart-form form.cart .quantity {
		--mst-qty-button: 30px;
		--mst-qty-input: 34px;
	}
}

/* Mini cart. There .quantity-wrapper is the OUTER element, and it holds two .quantity children: the
   control (the one with the +/- inside) and a plain "x 110,00" price beside it. So the control is
   picked by "the .quantity that contains a minus", which leaves the price alone. The pill, the buttons
   and the field itself are already styled by the rules further up. */
.widget_shopping_cart_content,
.et-mini-content{
	--mst-qty-height: 32px;
	--mst-qty-height-sm: 32px;
	--mst-qty-button: 28px;
	--mst-qty-button-sm: 28px;
	--mst-qty-input: 34px;
	--mst-qty-input-sm: 34px;
}
/* A wrapper that is only a container (mini cart) draws nothing itself; one that IS the control
   (product page, order review) keeps its box. */
.quantity-wrapper:not(:has(> .minus)){
	border: 0 !important;
	background: none !important;
	padding: 0 !important;
}
.quantity-wrapper > .quantity:has(> .minus){
	height: var(--mst-qty-height-sm, 32px);
	vertical-align: middle;
}
.quantity-wrapper > .quantity:has(> .minus) > input.qty{
	width: var(--mst-qty-input-sm, 34px);
	min-width: var(--mst-qty-input-sm, 34px);
	flex: 0 0 auto;
}
/* The price line beside it is text. */
.quantity-wrapper > span.quantity,
.woocommerce-mini-cart-item span.quantity,
.mini_cart_item span.quantity{
	display: inline;
	height: auto;
	border: 0;
	background: none;
	border-radius: 0;
	overflow: visible;
	padding: 0;
}

/* The +/- icons are sized in em (the theme draws them as .7em SVGs), so they vanish wherever the
   inherited font-size is tiny — which is what happened in the cart and the mini cart. Give the buttons
   a font-size of their own. */
.quantity .minus,
.quantity .plus,
.quantity-wrapper .minus,
.quantity-wrapper .plus{
	font-size: 1rem !important;
	line-height: 1;
}
.quantity-wrapper.size-sm .minus,
.quantity-wrapper.size-sm .plus,
.quantity .quantity-wrapper.size-sm .minus,
.quantity .quantity-wrapper.size-sm .plus{
	font-size: .9rem !important;
}

/* Wishlist on the product page: the same shape and size as Add to cart, in the quantity box's colours,
   so the three controls read as one set. The theme styles it as an Elementor button, hence the
   !important on the few properties it sets. */
.single-wishlist .xstore-wishlist-single,
.single-wishlist .xstore-wishlist-single:hover,
.single-wishlist .xstore-wishlist-single:focus {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 0;
	/* A square that takes its height from the row it sits in, so it matches the quantity box and the
	   Add to cart button at every screen size instead of guessing a number. */
	/* The size is measured from the quantity box beside it and set on the row, so the two always match,
	   on a phone as much as on a desktop. The 48px is only the fallback before that runs. */
	/* Elementor writes its own width and height for this widget, so these have to say !important to
	   have the last word. */
	width: var(--mst-wishlist-size, var(--mst-qty-height, 48px)) !important;
	height: var(--mst-wishlist-size, var(--mst-qty-height, 48px)) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
	box-sizing: border-box;
	padding: 0 !important;
	border: 1px solid var(--mst-qty-border, #e2e2e2) !important;
	border-radius: var(--mst-form-radius, 10px) !important;
	background: #fff !important;
	background-image: none !important;
	color: inherit !important;
	box-shadow: none !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .15s ease, border-color .15s ease;
}

.single-wishlist .xstore-wishlist-single:hover {
	background: #faf8f6 !important;
	border-color: #d9d9d9 !important;
}

/* The heart keeps the brand colour, so the row is not entirely grey. */
.single-wishlist .xstore-wishlist-single .et-icon {
	color: #7a0c2e;
	font-size: 1.05em;
	line-height: 1;
}

/* The words are not shown, but they stay in the page so the button still has a name for screen
   readers and for anyone browsing by voice. */
.single-wishlist .xstore-wishlist-single .button-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* The button sits at the start of the row rather than stretching across it. */
.single-wishlist {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

/* The quantity box, Add to cart and the heart on one line; "or" and Buy now keep their own lines. */
.mst-wishlist-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--mst-row-gap, 12px);
}

/* The theme gives the quantity box a 20px side margin and the button about 5px, which landed on top
   of the gap and made the two spaces uneven (32px on one side, 17px on the other). Clearing them
   leaves the gap as the only thing deciding the spacing. */
.mst-wishlist-inline > * {
	margin-inline: 0 !important;
}

.mst-wishlist-inline > .single-wishlist {
	flex: 0 0 auto;
	margin: 0;
}

/* flex-basis 0 with min-width 0 lets Add to cart give way on a narrow phone, so the heart stays on
   the line instead of being pushed under it. */
.mst-wishlist-inline > .single_add_to_cart_button {
	flex: 1 1 0 !important;
	min-width: 0 !important;
}

.mst-wishlist-inline > .quantity {
	flex: 0 0 auto;
}

.mst-wishlist-inline > .text-center,
.mst-wishlist-inline > .et-single-buy-now {
	flex: 1 0 100%;
}

.single-wishlist .xstore-wishlist-single .et-icon {
	font-size: 1.15em;
}

/* XStore's "buy more save more" block is drawn with the theme's heading font (Kraften), which carries
   no Arabic and falls back to a serif - so the offer sat in a different typeface to everything around
   it, in both languages. Alexandria throughout it. Icons are left out so the theme's icon font still
   renders its glyphs rather than squares. */
.sales-booster-quantity-discounts-wrapper,
.sales-booster-quantity-discounts-wrapper *:not(i):not([class*="icon"]) {
	font-family: "Alexandria", sans-serif !important;
}

/* The total as it stood before the quantity offer, struck through beside what is actually charged. */
.mst-total-before {
	font-weight: 400;
	opacity: .55;
	margin-inline-end: .4em;
	text-decoration: line-through;
}
.mst-total-before .woocommerce-Price-amount {
	font-size: .8em;
}

/* The riyal mark, always to the right of the number.

   WooCommerce is set to put the symbol after the amount, and it writes it that way: the <bdi> holds
   "864,00" and then the symbol. On an Arabic page the line runs right to left, so "after" came out on
   the left, and the mark drifted from side to side depending on what was around it.

   Reading the price itself left to right fixes the order without touching the setting or the markup.
   Digits are already written left to right inside the number, so nothing about the amount changes -
   only where the mark lands. On the English store the page is already left to right, so this does
   nothing there and the two stores match. */
.woocommerce-Price-amount bdi,
.woocommerce-Price-amount {
	direction: ltr;
	unicode-bidi: isolate;
}

/* The "frequently bought together" block. Its heading is an <h3>, so the theme draws it with the
   heading font (Kraften), which carries no Arabic and falls back to a serif - the heading sat in a
   different typeface to the rows below it. Alexandria across the whole block, in both languages.
   Icons are left out so the theme's icon font still renders its glyphs rather than squares. */
.wcf-fbt-widget,
.wcf-fbt-widget *:not(i):not(svg):not(svg *):not([class*="icon"]) {
	font-family: "Alexandria", sans-serif !important;
}

/* The "add" button inside the quantity-offer block is drawn square, while every other button on the
   product page is rounded - measured on the live page, both the main add-to-cart button and the one
   in the "frequently bought together" block compute to 10px, and this one to 0. Matched to them. */
.quantity-discount-add .add_to_cart_button,
.quantity-discount-add .button {
	border-radius: 10px;
}

/* Bundle cards. XStore gives them a bare bag icon over the photo and a second copy of the same button
   under the title, so they read nothing like the cards beside them. The plugin now marks the one over
   the photo as a card button (mode "bundle"), which the loop-buttons stylesheet draws as the same bar
   as "quick view" and "add to cart"; the duplicate underneath is dropped. */
.etheme-product-grid-content .product_type_easy_product_bundle,
.etheme-product-grid-content .product_type_collection {
	display: none !important;
}

/* No icon on this one - the label stands on its own, so the gap meant for an icon goes too. */
.etheme-product-grid-image footer .footer-inner a.mst-lb--bundle svg {
	display: none !important;
}

.etheme-product-grid-image footer .footer-inner a.mst-lb--bundle::after {
	margin-inline-start: 0;
}

/* The free shipping bar sits in a square bordered box while everything around it on the product page
   is rounded at 10px. */
.et-cart-progress {
	border-radius: 10px;
}

/* The bundle builder's pop-up. Its cards carry a 0.45 opacity drop shadow - heavy enough to read as a
   mistake next to the flat cards on the shop grid - and no border, so the shadow was the only thing
   separating a white card from the white sheet behind it. Shadow off, a hairline in its place. */
.asnp-modal-grid-wrapper {
	box-shadow: none !important;
	border: 1px solid #e5e5e5;
}

/* The two offer boxes on the product page are drawn square (the quantity offer) and at 4px (the
   "frequently bought together" block), against 10px everywhere else around them. */
.sales-booster-quantity-discounts,
.wcf-fbt-widget {
	border-radius: 10px;
}

/* The free shipping bar fills green, which belongs to no other part of the store. The theme colour
   instead, taken from Elementor's own global so it follows any change made there. A <progress> is
   drawn by the browser, so the fill can only be reached through the two vendor pseudo-elements -
   and they have to be separate rules, since one unknown selector would throw away the whole list. */
.et-cart-progress .et_cart-progress-bar {
	accent-color: var(--e-global-color-primary, #660014);
}

.et-cart-progress .et_cart-progress-bar::-webkit-progress-value {
	background: var(--e-global-color-primary, #660014) !important;
}

.et-cart-progress .et_cart-progress-bar::-moz-progress-bar {
	background: var(--e-global-color-primary, #660014) !important;
}

/* The order received page. The thank-you line, the order summary, the totals and the addresses are
   all drawn with the theme's heading font in places, which carries no Arabic and falls back to a
   serif - so the page a shopper sees straight after paying was the one page in a different typeface.
   Icons are left out so the theme's icon font still renders its glyphs rather than squares. */
.woocommerce-order,
.woocommerce-order *:not(i):not(svg):not(svg *):not([class*="icon"]) {
	font-family: "Alexandria", sans-serif !important;
}
