/*
 * Trendy By Assil storefront display fixes.
 * These rules are intentionally separate from the translation/RTL plugin.
 */

/* Hide estimated delivery dates only in WoodMart's cart sidebar. */
.cart-widget-side .wpced {
	display: none !important;
}

/* Reversible homepage category and selected-color bestseller test. */
.tba-home-merchandising-test {
	--tba-accent: #f5a300;
	--tba-border: #eadfd6;
	--tba-soft: #faf7f4;
	box-sizing: border-box;
	margin: 34px auto 54px;
	max-width: 1320px;
	padding: 0 20px;
	width: 100%;
}

.tba-home-merchandising-test[hidden] {
	display: none !important;
}

/* Compact homepage unboxing-video preview and vertical-video lightbox. */
.tba-home-unboxing {
	--tba-accent: #f5a300;
	--tba-border: #eadfd6;
	box-sizing: border-box;
	margin: 52px auto 54px;
	max-width: 1160px;
	padding: 0 20px;
	text-align: center;
	width: 100%;
}

.tba-home-unboxing[hidden],
.tba-unboxing-modal[hidden] {
	display: none !important;
}

.tba-unboxing-heading {
	margin-bottom: 10px;
}

.tba-unboxing-subtitle {
	color: #6d625b;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 auto 20px;
}

.tba-unboxing-preview {
	appearance: none;
	background: #15110f;
	border: 1px solid var(--tba-border);
	border-radius: 14px;
	box-shadow: 0 12px 34px rgba(40, 28, 20, .13);
	color: #fff;
	cursor: pointer;
	display: block;
	height: clamp(280px, 26vw, 380px);
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.tba-unboxing-preview-video {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center 36%;
	pointer-events: none;
	width: 100%;
}

.tba-unboxing-preview-shade {
	background:
		linear-gradient(90deg, rgba(18, 13, 10, .5), rgba(18, 13, 10, .05) 42%, rgba(18, 13, 10, .35)),
		linear-gradient(0deg, rgba(18, 13, 10, .42), transparent 55%);
	inset: 0;
	position: absolute;
}

.tba-unboxing-play {
	align-items: center;
	display: inline-flex;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	gap: 9px;
	left: 50%;
	position: absolute;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
	top: 50%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

.tba-unboxing-play-icon {
	align-items: center;
	background: var(--tba-accent);
	border: 3px solid rgba(255, 255, 255, .92);
	border-radius: 50%;
	box-shadow: 0 7px 22px rgba(0, 0, 0, .28);
	color: #111;
	display: flex;
	font-size: 17px;
	height: 58px;
	justify-content: center;
	padding-left: 3px;
	text-shadow: none;
	transition: transform .2s ease;
	width: 58px;
}

.tba-unboxing-preview:hover .tba-unboxing-play-icon,
.tba-unboxing-preview:focus-visible .tba-unboxing-play-icon {
	transform: scale(1.08);
}

.tba-unboxing-duration {
	background: rgba(20, 16, 13, .76);
	border-radius: 4px;
	bottom: 14px;
	color: #fff;
	font-size: 11px;
	padding: 4px 7px;
	position: absolute;
	right: 14px;
}

.tba-unboxing-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 22px;
	position: fixed;
	z-index: 100000;
}

.tba-unboxing-modal-backdrop {
	background: rgba(0, 0, 0, .84);
	inset: 0;
	position: absolute;
}

.tba-unboxing-modal-dialog {
	background: #000;
	border-radius: 14px;
	box-shadow: 0 18px 65px rgba(0, 0, 0, .5);
	max-height: calc(100vh - 44px);
	max-width: min(92vw, 500px);
	overflow: hidden;
	position: relative;
	width: auto;
	z-index: 1;
}

.tba-unboxing-player {
	display: block;
	height: min(88vh, 820px);
	max-width: 92vw;
	width: auto;
}

.tba-unboxing-close {
	align-items: center;
	background: rgba(255, 255, 255, .94);
	border: 0;
	border-radius: 50%;
	color: #111;
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	right: 10px;
	top: 10px;
	width: 36px;
	z-index: 3;
}

html.tba-unboxing-open {
	overflow: hidden;
}

.tba-home-section-heading {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
	margin: 0 auto 22px;
	max-width: 740px;
	text-align: center;
}

.tba-home-section-heading h2 {
	font-size: clamp(22px, 2.3vw, 31px);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.tba-heading-line {
	background: var(--tba-border);
	height: 1px;
	position: relative;
}

.tba-heading-line:first-child::after {
	background: var(--tba-accent);
	content: "";
	height: 6px;
	position: absolute;
	right: -3px;
	top: -2px;
	transform: rotate(45deg);
	width: 6px;
}

.tba-heading-line:last-child::before {
	background: var(--tba-accent);
	content: "";
	height: 6px;
	left: -3px;
	position: absolute;
	top: -2px;
	transform: rotate(45deg);
	width: 6px;
}

/* In RTL the first and last grid lines exchange sides. Keep both diamonds
 * on the inner edges beside the Arabic heading, matching the English design. */
.tba-language-ar .tba-heading-line:first-child::after {
	left: -3px;
	right: auto;
}

.tba-language-ar .tba-heading-line:last-child::before {
	left: auto;
	right: -3px;
}

.tba-home-category-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tba-home-category-card {
	background: #fff;
	border: 1px solid var(--tba-border);
	border-radius: 12px;
	color: #1a1a1a;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto auto;
	min-width: 0;
	overflow: hidden;
	text-decoration: none !important;
	transition: box-shadow .2s ease, transform .2s ease;
}

.tba-home-category-card:hover {
	box-shadow: 0 12px 28px rgba(62, 42, 28, .12);
	transform: translateY(-3px);
}

.tba-home-category-image {
	aspect-ratio: 16 / 8.5;
	background: var(--tba-soft);
	display: block;
	overflow: hidden;
}

.tba-home-category-image img {
	display: block;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	width: 100% !important;
}

.tba-home-category-copy {
	display: block;
	padding: 15px 18px 10px;
	text-align: center;
}

.tba-home-category-copy strong,
.tba-home-category-copy small {
	display: block;
}

.tba-home-category-copy strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-style: italic;
	letter-spacing: .02em;
	line-height: 1.25;
	text-transform: uppercase;
}

.tba-language-ar .tba-home-category-copy strong {
	font-family: inherit;
	font-style: normal;
	text-transform: none;
}

.tba-home-category-copy small {
	color: #6d625b;
	font-size: 12px;
	margin-top: 4px;
}

.tba-home-category-action {
	align-items: center;
	background: transparent;
	border-top: 1px solid var(--tba-border);
	color: var(--tba-accent);
	display: flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: space-between;
	min-height: 42px;
	padding: 11px 18px;
}

.tba-best-sellers-heading {
	margin-top: 48px;
}

.tba-home-best-sellers {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tba-home-best-seller-card {
	background: #fff;
	border: 1px solid var(--tba-border);
	border-radius: 12px;
	display: block;
	min-width: 0;
	overflow: hidden;
}

.tba-home-best-seller-image {
	background: var(--tba-soft);
	display: block;
	aspect-ratio: 4 / 5;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.tba-home-best-seller-image img {
	display: block;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	width: 100% !important;
}

.tba-home-best-seller-badge {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(247, 165, 24, 0.4);
	border-radius: 999px;
	color: #a85d00;
	font-size: 11px;
	font-weight: 600;
	inset-inline-start: 10px;
	line-height: 1;
	padding: 7px 9px;
	position: absolute;
	top: 10px;
	z-index: 2;
}

.tba-home-best-seller-copy {
	align-content: center;
	display: grid;
	padding: 22px;
}

.tba-home-best-seller-copy h3 {
	font-size: 17px;
	line-height: 1.45;
	margin: 0 0 7px;
}

.tba-home-best-seller-copy p {
	color: #6d625b;
	font-size: 13px;
	margin: 0 0 12px;
}

.tba-home-best-seller-price {
	color: var(--tba-accent);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 18px;
}

.tba-home-best-seller-button {
	align-items: center;
	background: var(--tba-accent);
	border-radius: 5px;
	color: #111 !important;
	display: inline-flex;
	font-size: 10px;
	font-weight: 600;
	justify-content: center;
	margin-inline: auto;
	min-height: 32px;
	min-width: 84px;
	padding: 5px 10px;
	text-decoration: none !important;
	width: fit-content;
}

@media (max-width: 1024px) {
	.tba-home-best-seller-card {
		display: block;
	}

	.tba-home-best-seller-image {
		aspect-ratio: 4 / 5;
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.tba-home-unboxing {
		margin-bottom: 38px;
		margin-top: 38px;
		padding: 0 14px;
	}

	.tba-unboxing-subtitle {
		font-size: 12px;
		margin-bottom: 14px;
	}

	.tba-unboxing-preview {
		aspect-ratio: 16 / 9;
		border-radius: 11px;
		height: auto;
	}

	.tba-unboxing-play {
		font-size: 11px;
		gap: 6px;
	}

	.tba-unboxing-play-icon {
		border-width: 2px;
		font-size: 14px;
		height: 46px;
		width: 46px;
	}

	.tba-unboxing-duration {
		bottom: 9px;
		right: 9px;
	}

	.tba-unboxing-modal {
		padding: 12px;
	}

	.tba-unboxing-player {
		height: auto;
		max-height: calc(100vh - 24px);
		max-width: calc(100vw - 24px);
		width: auto;
	}

	.tba-home-merchandising-test {
		margin-bottom: 38px;
		margin-top: 24px;
		padding: 0 14px;
	}

	.tba-home-section-heading {
		gap: 9px;
		margin-bottom: 16px;
	}

	.tba-home-section-heading h2 {
		font-size: 20px;
		white-space: nowrap;
	}

	.tba-home-category-grid,
	.tba-home-best-sellers {
		display: flex;
		gap: 10px;
		margin-left: -14px;
		margin-right: -14px;
		overflow-x: auto;
		padding: 0 14px 10px;
		scroll-padding-inline: 14px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.tba-home-category-grid {
		display: grid;
		gap: 8px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-left: 0;
		margin-right: 0;
		overflow: visible;
		padding: 0;
	}

	.tba-home-category-grid::-webkit-scrollbar,
	.tba-home-best-sellers::-webkit-scrollbar {
		display: none;
	}

	.tba-home-category-card {
		flex: none;
		min-width: 0;
	}

	.tba-home-category-image {
		aspect-ratio: 1 / 1;
	}

	.tba-home-category-copy {
		padding: 11px 5px 9px;
	}

	.tba-home-category-copy strong {
		font-size: 10px;
		line-height: 1.2;
	}

	.tba-home-category-copy small {
		font-size: 8px;
		line-height: 1.25;
		margin-top: 3px;
	}

	.tba-home-category-action {
		font-size: 10px;
		gap: 3px;
		min-height: 40px;
		padding: 9px 7px;
	}

	.tba-best-sellers-heading {
		margin-top: 34px;
	}

	.tba-home-best-seller-card {
		flex: 0 0 42.5%;
		scroll-snap-align: start;
	}

	.tba-home-best-seller-copy {
		padding: 12px;
	}

	.tba-home-best-seller-copy h3 {
		font-size: 12px;
		line-height: 1.35;
	}

	.tba-home-best-seller-copy p {
		font-size: 10px;
		margin-bottom: 8px;
	}

	.tba-home-best-seller-price {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.tba-home-best-seller-button {
		font-size: 10px;
		min-height: 32px;
		min-width: 84px;
		padding: 5px 10px;
	}

	.tba-language-ar .tba-home-category-grid,
	.tba-language-ar .tba-home-best-sellers {
		direction: rtl;
	}
}

/* The former Elementor category strip is retained in Elementor for rollback,
 * but removed from the live homepage while the new merchandising section is active. */
body.home .elementor-element.elementor-element-378e60b {
	display: none !important;
}

/* Keep the homepage Hookah Bag CTA buttons on the same baseline even when
 * one product title occupies more lines than the other. */
body.home .wd-product.product-grid-item:is(.product_cat-hookah-bags, .product_cat-hookah-bags-without-box) .wd-product-wrapper {
	height: 100%;
}

body.home .wd-product.product-grid-item:is(.product_cat-hookah-bags, .product_cat-hookah-bags-without-box) .product-element-bottom {
	flex: 1 1 auto;
	justify-content: flex-end;
}

body.home .wd-product.product-grid-item:is(.product_cat-hookah-bags, .product_cat-hookah-bags-without-box) .wd-add-btn {
	margin-top: 15px;
}

/* The combined Hookah Bags archive contains one variable product with color
 * swatches and one simple LV product. Stretch both cards and anchor their
 * purchase area so the prices and buttons share the same baselines. */
body.tax-product_cat.term-hookah-bags .wd-product.product-grid-item:is(.product_cat-hookah-bags, .product_cat-hookah-bags-without-box) .wd-product-wrapper {
	height: 100%;
}

body.tax-product_cat.term-hookah-bags .wd-product.product-grid-item:is(.product_cat-hookah-bags, .product_cat-hookah-bags-without-box) .product-element-bottom {
	flex: 1 1 auto;
	justify-content: flex-end;
}

body.tax-product_cat.term-hookah-bags .wd-product.product-grid-item:is(.product_cat-hookah-bags, .product_cat-hookah-bags-without-box) .wd-add-btn {
	margin-top: 15px;
}

/*
 * Keep the bag removal control and its package editor in one isolated action
 * column. Accessory lines intentionally receive no individual remove control.
 */
.tba-package-actions {
	align-items: center !important;
	display: inline-flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	justify-content: center !important;
	position: relative;
	z-index: 20;
}

.tba-package-actions > a,
.tba-package-actions .tba-edit-package-accessories {
	inset: auto !important;
	margin: 0 !important;
	position: static !important;
	transform: none !important;
}

.tba-edit-package-accessories,
.tba-edit-package-accessories:hover,
.tba-edit-package-accessories:focus,
.tba-edit-package-accessories span {
	color: #f28c00 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 19px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1 !important;
        text-decoration: none !important;
}

.tba-edit-package-accessories__label {
        display: none;
}

.cart-widget-side .mini_cart_item .tba-package-actions {
	left: 9px !important;
	position: absolute !important;
	right: auto !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
}

.woocommerce-cart-form__cart-item .product-remove .tba-package-actions {
	min-width: 28px;
}

@media (max-width: 767px) {
        /*
         * Keep the bag remove X in its normal corner. JavaScript moves the
         * edit control into the bag subtotal cell, where it sits immediately
         * below the total-price number as a separate, reliable tap target.
         */
        .woocommerce-cart .woocommerce-cart-form__cart-item:has(.tba-package-actions) .product-remove .tba-package-actions {
                position: static !important;
        }

        .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal:has(> .tba-edit-package-accessories) {
                padding-bottom: 38px !important;
                position: relative !important;
        }

        .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal > .tba-edit-package-accessories {
                align-items: center !important;
                background: #fff8ec !important;
                border: 1px solid #f28c00 !important;
                border-radius: 5px !important;
                bottom: 2px !important;
                box-sizing: border-box !important;
                display: flex !important;
                gap: 5px !important;
                height: 30px !important;
                justify-content: center !important;
                min-height: 30px !important;
                padding: 4px 9px !important;
                position: absolute !important;
                right: 0 !important;
                top: auto !important;
                width: max-content !important;
                z-index: 25 !important;
        }

        .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal > .tba-edit-package-accessories .tba-edit-package-accessories__icon {
                font-size: 14px !important;
        }

        .woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal > .tba-edit-package-accessories .tba-edit-package-accessories__label {
                display: inline !important;
                font-size: 11px !important;
                line-height: 1.2 !important;
        }

        .cart-widget-side .mini_cart_item .tba-package-actions {
                left: 5px !important;
        }

	.cart-widget-side .mini_cart_item .tba-package-actions a {
		align-items: center !important;
		display: flex !important;
		height: 24px !important;
		justify-content: center !important;
		min-height: 24px !important;
		min-width: 24px !important;
		width: 24px !important;
	}
}

/*
 * Visually group each Hookah Bag with the free WowAddons accessories that
 * follow it. Keep the final divider so the next bag or unrelated product
 * remains a clearly separate cart item/package.
 */
.cart-widget-side .mini_cart_item:has(+ .tba-bag-package-accessory) {
	border-bottom-color: transparent !important;
}

.cart-widget-side .tba-bag-package-accessory {
	border-top-color: transparent !important;
	margin-top: 0 !important;
}

/* Always close the package with a visible divider, even if it is last. */
.cart-widget-side .tba-bag-package-accessory:not(:has(+ .tba-bag-package-accessory)) {
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105)) !important;
}

/* Use the same visual package grouping in the full cart table. */
.woocommerce-cart-form__cart-item:has(+ .tba-bag-package-accessory) > td {
	border-bottom-color: transparent !important;
}

.woocommerce-cart-form__cart-item.tba-bag-package-accessory > td {
	border-top-color: transparent !important;
	border-bottom-color: transparent !important;
}

.woocommerce-cart-form__cart-item.tba-bag-package-accessory:not(:has(+ .tba-bag-package-accessory)) > td {
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105)) !important;
}

/* Repeat the package grouping inside the checkout "Your order" table. */
.woocommerce-checkout-review-order-table .cart_item:has(+ .tba-bag-package-accessory),
.woocommerce-checkout-review-order-table .cart_item:has(+ .tba-bag-package-accessory) > td {
	border-top: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.woocommerce-checkout-review-order-table .cart_item.tba-bag-package-accessory,
.woocommerce-checkout-review-order-table .cart_item.tba-bag-package-accessory > td {
	border-top: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.woocommerce-checkout-review-order-table .cart_item.tba-bag-package-accessory:not(:has(+ .tba-bag-package-accessory)) > td {
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105)) !important;
}

.woocommerce-checkout-review-order-table .cart_item.tba-bag-package-accessory:not(:has(+ .tba-bag-package-accessory)) {
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105)) !important;
}

/*
 * Arabic mini-cart price order:
 *   335.00 ر.س × 1
 */
.tba-language-ar .cart-widget-side .mini_cart_item .quantity {
	direction: rtl !important;
	unicode-bidi: isolate;
	white-space: nowrap;
}

.tba-language-ar .cart-widget-side .mini_cart_item .quantity .amount,
.tba-language-ar .cart-widget-side .mini_cart_item .quantity .amount bdi {
	direction: ltr !important;
	display: inline-block;
	unicode-bidi: isolate;
}

.tba-language-ar .cart-widget-side .mini_cart_item .quantity .woocommerce-Price-currencySymbol {
	display: inline-block;
	margin-left: 0;
}

.tba-language-ar .cart-widget-side .mini_cart_item .quantity .woocommerce-Price-currencySymbol::before {
	content: "\00a0";
}

.tba-language-ar .cart-widget-side .tba-ar-mini-cart-quantity {
	align-items: baseline;
	direction: ltr !important;
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 6px !important;
	justify-content: flex-start !important;
	width: auto !important;
	white-space: nowrap !important;
}

.tba-language-ar .cart-widget-side .tba-ar-mini-cart-quantity .tba-mini-cart-price,
.tba-language-ar .cart-widget-side .tba-ar-mini-cart-quantity .tba-mini-cart-multiplier {
	direction: ltr !important;
	display: inline-block;
	unicode-bidi: isolate;
	white-space: nowrap;
}

.tba-language-ar .cart-widget-side .tba-ar-mini-cart-quantity .woocommerce-Price-currencySymbol {
	margin-left: 0;
}

.tba-language-ar .cart-widget-side .tba-ar-mini-cart-quantity .woocommerce-Price-currencySymbol::before {
	content: none;
}

/* Keep the Arabic package action column on the opposite (left) edge. */
.tba-language-ar .cart-widget-side .mini_cart_item {
	position: relative;
}

.tba-language-ar .cart-widget-side .mini_cart_item .tba-package-actions {
	left: 10px !important;
	position: absolute !important;
	right: auto !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 20;
}

@media (max-width: 767px) {
	/*
	 * WoodMart draws mobile cart separators on the row as well as its cells.
	 * Remove both separators inside one bag package, then retain a divider
	 * after its final free accessory.
	 */
	.woocommerce-cart .woocommerce-cart-form__cart-item:has(+ .tba-bag-package-accessory),
	.woocommerce-cart .woocommerce-cart-form__cart-item:has(+ .tba-bag-package-accessory) > td {
		border-bottom: 0 !important;
		box-shadow: none !important;
	}

	.woocommerce-cart .woocommerce-cart-form__cart-item.tba-bag-package-accessory,
	.woocommerce-cart .woocommerce-cart-form__cart-item.tba-bag-package-accessory > td {
		border-top: 0 !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
	}

        .woocommerce-cart .woocommerce-cart-form__cart-item.tba-bag-package-accessory:not(:has(+ .tba-bag-package-accessory)),
        .woocommerce-cart .woocommerce-cart-form__cart-item.tba-bag-package-accessory:not(:has(+ .tba-bag-package-accessory)) > td {
                border-bottom: 0 !important;
        }

        /*
         * The expected-delivery plugin renders its cart message in a narrow
         * table cell. Let that cell span the mobile cart and center the badge.
         */
        .woocommerce-cart tr:has(> td.wpced-cart) {
                box-sizing: border-box !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                width: 100% !important;
        }

        .woocommerce-cart td.wpced-cart {
                align-items: center !important;
                border-top: 1px solid #e2e2e2 !important;
                box-sizing: border-box !important;
                display: flex !important;
                flex: 0 0 100% !important;
                justify-content: center !important;
                margin-top: 10px !important;
                max-width: 100% !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                padding-top: 14px !important;
                text-align: center !important;
                width: 100% !important;
        }

        .woocommerce-cart td.wpced-cart .wpced,
        .woocommerce-cart td.wpced-cart .wpced-inner {
                align-items: center !important;
                display: inline-flex !important;
                justify-content: center !important;
                margin-left: auto !important;
                margin-right: auto !important;
                text-align: center !important;
                white-space: nowrap !important;
        }
}

/*
 * Arabic single-product purchase layout:
 * - keep the WowAddons totals anchored to the right;
 * - show quantity, Add to cart, then Buy now when reading from the right.
 */
.tba-language-ar.single-product .prad-product-price-summary {
        box-sizing: border-box !important;
        direction: rtl !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: right !important;
        width: 100% !important;
}

.tba-language-ar.single-product .prad-product-price-summary .prad-price-row {
        align-items: baseline !important;
        direction: rtl !important;
        display: flex !important;
        gap: 4px !important;
        justify-content: flex-start !important;
        text-align: right !important;
        width: 100% !important;
}

.tba-language-ar.single-product form.cart > .quantity {
        order: 3 !important;
}

.tba-language-ar.single-product form.cart > .single_add_to_cart_button {
        order: 2 !important;
}

.tba-language-ar.single-product form.cart > .wd-buy-now-btn {
        order: 1 !important;
}

@media (min-width: 1025px) {
	/*
	 * Product gallery:
	 * keep portrait product photos fully visible inside WoodMart's shorter
	 * desktop carousel instead of clipping their lower section.
	 */
	.single-product .woocommerce-product-gallery__image {
		height: min(700px, calc(100vh - 200px)) !important;
		overflow: hidden;
	}

	.single-product .woocommerce-product-gallery__image > a {
		align-items: center;
		display: flex !important;
		height: 100%;
		justify-content: center;
		width: 100%;
	}

	.single-product .woocommerce-product-gallery__image img {
		display: block !important;
		height: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		object-position: center center !important;
		width: 100% !important;
	}

	/*
	 * Homepage WoodMart slider:
	 * display the complete artwork and override the grey background applied
	 * directly by the slider plugin to the slide background layer.
	 */
	.home #slider-51,
	.home #slider-51 .wd-slide,
	.home #slider-51 .wd-slide-bg {
		background-color: #fff !important;
	}

	/*
	 * Match every WoodMart carousel layer to the 16:9 banner.
	 * WoodMart otherwise collapses the internal carousel to about 70px when
	 * the outer slider uses aspect-ratio with an automatic height.
	 */
	.home #slider-51,
	.home #slider-51 .wd-carousel-wrap,
	.home #slider-51 .wd-carousel,
	.home #slider-51 .wd-slide {
		height: 56.25vw !important;
		min-height: 0 !important;
	}

	.home #slider-51 {
		max-width: none !important;
		width: 100% !important;
	}

	.home #slider-51 .wd-slide-bg {
		background-position: center center !important;
		background-repeat: no-repeat !important;
		background-size: contain !important;
	}

	/* Reveal the currently selected WoodMart color name on desktop. */
	.single-product .wd-swatches-single:has(.wd-swatch.wd-active) {
		padding-bottom: 25px;
	}

	.single-product .wd-swatches-single .wd-swatch.wd-active {
		position: relative;
	}

	.single-product .wd-swatches-single .wd-swatch.wd-active .wd-swatch-text {
		bottom: -24px;
		color: var(--color-gray-800, #333);
		display: block !important;
		font-size: 12px;
		font-weight: 600;
		left: 50%;
		line-height: 18px;
		position: absolute;
		transform: translateX(-50%);
		white-space: nowrap;
	}
}
