:root {
	--torbedo-navy: #0f2b4c;
	--torbedo-orange: #ff8a1f;
	--torbedo-rose: #d84e79;
	--torbedo-white: #ffffff;
	--torbedo-ink: #16263a;
}

[dir="rtl"] {
	direction: rtl;
}

[dir="rtl"] body,
[dir="rtl"] .home {
	direction: rtl;
	text-align: right;
}

html[lang^="ar"] body,
html[lang^="ar"] button,
html[lang^="ar"] input,
html[lang^="ar"] select,
html[lang^="ar"] textarea {
	font-family: "Cairo", sans-serif !important;
}

[dir="rtl"] :is(
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	.elementor-heading-title,
	.title-wrapper,
	.title-wrapper .title,
	.section-title,
	.widget-title
) {
	text-align: right !important;
}

[dir="rtl"] :is(.elementor-element-17e9059, .elementor-element-86292a6) {
	margin-top: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 1.4rem !important;
	clear: both;
	width: 100%;
}

[dir="rtl"] :is(.elementor-element-17e9059, .elementor-element-86292a6) :is(
	.category-list,
	.product-categories,
	.cat-filter,
	.nav-filters,
	ul
) {
	direction: rtl;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: flex-start;
	text-align: right;
	width: 100%;
}

[dir="rtl"] :is(.elementor-element-17e9059, .elementor-element-86292a6) li {
	float: none !important;
	margin: 0 !important;
	white-space: nowrap;
}

[dir="rtl"] :is(.elementor-element-1a69c80, .elementor-element-eb97939) {
	margin-bottom: 1rem !important;
	position: relative;
	z-index: 2;
}

[dir="rtl"] .elementor-element-4decabc :is(.menu, ul) {
	direction: rtl;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	white-space: nowrap;
}

[dir="rtl"] .elementor-element-4decabc :is(.menu, ul) > li {
	margin: 0 !important;
	padding: 0 !important;
}

[dir="rtl"] .elementor-element-4decabc :is(.menu, ul) > li > a {
	display: block;
	padding-inline: 0.4rem !important;
}

[dir="rtl"] .torbedo-integrated-banner {
	background-color: #fff8f2 !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

[dir="rtl"] .torbedo-integrated-banner .banner-content {
	inset: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	width: 100% !important;
}

[dir="rtl"] .torbedo-integrated-banner .banner-content > * {
	visibility: hidden !important;
}

[dir="rtl"] .torbedo-integrated-banner .banner-content a {
	display: block !important;
	height: 100% !important;
	inset: 0 !important;
	opacity: 0 !important;
	position: absolute !important;
	visibility: visible !important;
	width: 100% !important;
}

[dir="rtl"] .torbedo-secondary-banner {
	border: 1px solid #f3ded2;
	border-radius: 1.2rem;
	box-shadow: 0 0.8rem 2.4rem rgba(15, 43, 76, 0.08);
	overflow: hidden;
}

[dir="rtl"] :is(
	.elementor-element-d2fee9a,
	.elementor-element-3f6ca52,
	.elementor-element-a349ba9,
	.elementor-element-2bed036
) .elementor-icon-box-wrapper {
	align-items: center;
	direction: rtl;
	display: flex;
	gap: 1.2rem;
	justify-content: flex-start;
	min-height: 8.5rem;
	padding: 1.4rem;
	text-align: right;
}

[dir="rtl"] :is(
	.elementor-element-d2fee9a,
	.elementor-element-3f6ca52,
	.elementor-element-a349ba9,
	.elementor-element-2bed036
) :is(.elementor-icon-box-icon, .elementor-icon) {
	flex: 0 0 auto;
	margin: 0 !important;
}

[dir="rtl"] :is(
	.elementor-element-d2fee9a,
	.elementor-element-3f6ca52,
	.elementor-element-a349ba9,
	.elementor-element-2bed036
) .elementor-icon-box-content {
	flex: 1 1 auto;
	margin: 0 !important;
	text-align: right;
}

[dir="rtl"] :is(
	.wolmart-header-compare,
	.header-compare,
	.compare-product,
	.product-compare,
	.compare-button,
	a.compare,
	button.compare
) {
	display: none !important;
}

[dir="rtl"] .mfp-content .hide-popup {
	direction: rtl;
	font-size: 0 !important;
	text-align: right;
}

[dir="rtl"] .mfp-content .hide-popup::after {
	content: "لا تعرض هذه النافذة مرة أخرى.";
	font-family: "Cairo", sans-serif;
	font-size: 1.2rem;
}

[dir="rtl"] .home,
[dir="rtl"] .home :is(p, li, label, input, textarea, select, button, .elementor-heading-title, .woocommerce-loop-product__title, .price, .amount) {
	line-height: 1.8;
}

[dir="rtl"] .home .elementor-button .elementor-button-icon,
[dir="rtl"] .home .w-btn .w-icon,
[dir="rtl"] .home .w-btn-icon {
	transform: scaleX(-1);
}

[dir="rtl"] .home .elementor-button-text + .elementor-button-icon,
[dir="rtl"] .home .w-btn-icon {
	margin-inline-start: 0.35em;
	margin-inline-end: 0;
}

[dir="rtl"] .home .woocommerce-Price-currencySymbol {
	margin-inline-start: 0.15em;
	margin-inline-end: 0;
}
/* TORBEDO STOREFRONT RESPONSIVE FIXES 2026-09-09 */
body.home .elementor-element-ef052ec .dropdown.show-home:not(:hover):not(:focus-within) > .dropdown-box {
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateY(0.8rem) !important;
	visibility: hidden !important;
}

body.home .elementor-element-ef052ec .dropdown.show-home:hover > .dropdown-box,
body.home .elementor-element-ef052ec .dropdown.show-home:focus-within > .dropdown-box {
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: translateY(0) !important;
	visibility: visible !important;
}

body.home .intro-section,
body.home .intro-section > .elementor-container,
body.home .intro-section .elementor-element-fd25348 > .elementor-widget-wrap {
	overflow: hidden !important;
	width: 100% !important;
}

body.home .intro-section .elementor-element-fd25348 > .elementor-widget-wrap {
	position: relative;
}

body.home .intro-section .slider-wrapper {
	align-items: stretch !important;
	overflow: hidden !important;
}

body.home .intro-section .torbedo-hero-banner,
body.home .intro-section .torbedo-hero-banner > .elementor-widget-container,
body.home .intro-section .torbedo-hero-banner .banner,
body.home .intro-section .torbedo-hero-banner .banner-img,
body.home .intro-section .torbedo-hero-banner .banner-img img {
	height: clamp(260px, 27.33vw, 520px) !important;
	max-height: clamp(260px, 27.33vw, 520px) !important;
	min-height: clamp(260px, 27.33vw, 520px) !important;
}

body.home .intro-section .torbedo-hero-banner .banner-img img {
	display: block !important;
	object-fit: cover !important;
	object-position: 50% 50% !important;
	padding-top: 0 !important;
	width: 100% !important;
}

body.home .intro-section .slider-thumb-dots {
	align-items: center;
	display: flex !important;
	gap: 1rem;
	justify-content: center;
	margin: 1.2rem auto 0 !important;
	min-height: 6.4rem;
	position: relative !important;
	width: 100%;
}

body.home .intro-section .slider-thumb-dots .slider-pagination-bullet {
	flex: 0 0 6rem;
	height: 6rem !important;
	margin: 0 !important;
	width: 6rem !important;
}

body.home .intro-section .slider-thumb-dots img {
	height: 100% !important;
	object-fit: cover !important;
	padding-top: 0 !important;
	width: 100% !important;
}

.woocommerce-checkout .torbedo-checkout-policy-notice {
	background: #fff4f4;
	border: 2px solid #c71818;
	border-radius: 0.6rem;
	color: #b40000 !important;
	font-size: 1.5rem;
	font-weight: 800 !important;
	line-height: 1.9;
	margin: 1.5rem 0;
	padding: 1.2rem 1.5rem;
	text-align: right;
}

.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #shipping_postcode_field {
	display: none !important;
}

@media (max-width: 767px) {
	body.home .elementor {
		overflow-x: hidden;
	}

	body.home .intro-section .torbedo-hero-banner,
	body.home .intro-section .torbedo-hero-banner > .elementor-widget-container,
	body.home .intro-section .torbedo-hero-banner .banner,
	body.home .intro-section .torbedo-hero-banner .banner-img,
	body.home .intro-section .torbedo-hero-banner .banner-img img {
		height: clamp(240px, 66.6667vw, 330px) !important;
		max-height: clamp(240px, 66.6667vw, 330px) !important;
		min-height: clamp(240px, 66.6667vw, 330px) !important;
	}

	body.home .intro-section .torbedo-hero-banner .banner-img img {
		object-position: 50% 50% !important;
	}

	body.home .intro-section .slider-thumb-dots {
		gap: 0.7rem;
		margin-top: 0.8rem !important;
		min-height: 4.8rem;
		padding-inline: 0.8rem;
	}

	body.home .intro-section .slider-thumb-dots .slider-pagination-bullet {
		flex-basis: 4.4rem;
		height: 4.4rem !important;
		width: 4.4rem !important;
	}

	body.home .custom-infobox {
		padding: 0.8rem !important;
	}

	body.home .custom-infobox .elementor-icon-box-wrapper {
		justify-content: center !important;
		min-height: 8.8rem !important;
		padding: 1.2rem 1.6rem !important;
		text-align: right !important;
	}

	body.home .elementor-element-374a05b > .elementor-container {
		display: block !important;
	}

	body.home .elementor-element-374a05b > .elementor-container > .elementor-column,
	body.home .custom-banner-products > .elementor-container > .elementor-column {
		max-width: 100% !important;
		width: 100% !important;
	}

	body.home .torbedo-secondary-banner,
	body.home .torbedo-secondary-banner > .elementor-widget-container,
	body.home .torbedo-secondary-banner .banner,
	body.home .torbedo-secondary-banner .banner-img {
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
	}

	body.home .torbedo-secondary-banner {
		margin-bottom: 1.2rem;
	}

	body.home .torbedo-secondary-banner .banner-img img {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		object-fit: contain !important;
		object-position: 50% 50% !important;
		padding-top: 0 !important;
		width: 100% !important;
	}

	.woocommerce-checkout .torbedo-checkout-policy-notice {
		font-size: 1.35rem;
		padding: 1rem 1.2rem;
	}
}

/* TORBEDO MOBILE AND CHECKOUT RUNTIME FIXES 2026-09-10 */
body.home .intro-section .torbedo-hero-banner img.torbedo-hero-image-ready {
	opacity: 1 !important;
	visibility: visible !important;
}

@media (max-width: 767px) {
	body.home .torbedo-child-mobile-categories {
		background: #f4fbfc;
		display: block !important;
		direction: rtl;
		padding: 1.8rem 1.2rem 2.2rem;
		width: 100%;
	}

	body.home .torbedo-child-mobile-categories .torbedo-mobile-category-inner {
		margin: 0 auto;
		max-width: 56rem;
		width: 100%;
	}

	body.home .torbedo-child-mobile-categories__heading {
		align-items: center;
		border-bottom: 1px solid #dce7e9;
		display: flex;
		gap: 1.2rem;
		justify-content: space-between;
		margin-bottom: 1.2rem;
		padding: 0 0.2rem 1.2rem;
	}

	body.home .torbedo-child-mobile-categories__heading h2 {
		color: #102f4f;
		font-size: 2.2rem;
		font-weight: 800;
		line-height: 1.35;
		margin: 0;
		text-align: right;
	}

	body.home .torbedo-child-mobile-categories__all {
		align-items: center;
		color: #ed711b;
		display: inline-flex;
		flex: none;
		font-size: 1.4rem;
		font-weight: 700;
	}

	body.home .torbedo-child-mobile-categories__list {
		display: grid;
		gap: 1rem;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}

	body.home .torbedo-child-mobile-category-card {
		align-items: center;
		background: #fff;
		border: 1px solid #dfe8ea;
		border-radius: 1rem;
		box-shadow: 0 2px 8px rgba(16, 47, 79, 0.05);
		color: #2f3740;
		display: flex;
		font-size: 1.5rem;
		font-weight: 700;
		justify-content: space-between;
		line-height: 1.55;
		min-height: 6.2rem;
		padding: 1.2rem 1.4rem;
		text-align: right;
		width: 100%;
	}

	body.home .torbedo-child-mobile-category-card__arrow {
		color: #ed711b;
		flex: none;
		font-size: 1.8rem;
		margin-inline-start: 1rem;
	}

	body.home .torbedo-child-mobile-category-card:active {
		border-color: #ed711b;
		transform: translateY(1px);
	}

	.woocommerce-checkout #billing_state_field > .select2-container,
	.woocommerce-checkout #shipping_state_field > .select2-container {
		display: none !important;
	}

	.woocommerce-checkout #billing_state,
	.woocommerce-checkout #shipping_state {
		-webkit-appearance: menulist !important;
		appearance: auto !important;
		background-color: #fff !important;
		border: 1px solid #d7d7d7 !important;
		clip: auto !important;
		display: block !important;
		font-size: 16px !important;
		height: 4.8rem !important;
		margin: 0 !important;
		opacity: 1 !important;
		overflow: visible !important;
		padding: 0 1.2rem !important;
		position: static !important;
		width: 100% !important;
	}

	.select2-container--open .select2-search--dropdown {
		display: none !important;
	}
}

/* TORBEDO SLIDER TRACK CLIP FIX 2026-09-10 */
body.home .intro-section .slider-wrapper {
	overflow: visible !important;
}

/* TORBEDO HERO THUMBNAILS AND FULL MOBILE BANNERS 2026-09-10 */
body.home .intro-section .slider-thumb-dots img.torbedo-hero-thumb-ready {
	opacity: 1 !important;
	visibility: visible !important;
}

@media (max-width: 767px) {
	body.home .intro-section .torbedo-hero-banner,
	body.home .intro-section .torbedo-hero-banner > .elementor-widget-container,
	body.home .intro-section .torbedo-hero-banner .banner,
	body.home .intro-section .torbedo-hero-banner .banner-img,
	body.home .intro-section .torbedo-hero-banner .banner-img img {
		height: 27.33vw !important;
		max-height: 210px !important;
		min-height: 0 !important;
	}

	body.home .intro-section .torbedo-hero-banner .banner-img img {
		object-fit: contain !important;
		object-position: 50% 50% !important;
	}
}

/* TORBEDO QUANTITY CONTROLS AND FLOATING CONTACT 2026-09-11 */
html[lang^="ar"] .quantity button.quantity-minus,
html[lang^="ar"] .quantity button.quantity-plus {
	align-items: center;
	color: #2f3740 !important;
	display: inline-flex;
	font-family: Arial, sans-serif !important;
	font-size: 0 !important;
	justify-content: center;
	opacity: 1 !important;
}

html[lang^="ar"] .quantity button.quantity-minus::before,
html[lang^="ar"] .quantity button.quantity-plus::before {
	display: block;
	font-family: Arial, sans-serif !important;
	font-size: 2rem !important;
	font-style: normal;
	font-weight: 500;
	line-height: 1;
}

html[lang^="ar"] .quantity button.quantity-minus::before {
	content: "\2212" !important;
}

html[lang^="ar"] .quantity button.quantity-plus::before {
	content: "+" !important;
}

.torbedo-floating-contact {
	direction: ltr;
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: 9998;
}

.torbedo-floating-contact__button {
	align-items: center;
	border: 3px solid #fff;
	border-radius: 50%;
	bottom: max(2.4rem, env(safe-area-inset-bottom));
	box-shadow: 0 0.6rem 2rem rgba(15, 43, 76, 0.25);
	color: #fff !important;
	display: flex;
	height: 5.8rem;
	justify-content: center;
	pointer-events: auto;
	position: fixed;
	text-decoration: none !important;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	width: 5.8rem;
}

.torbedo-floating-contact__button:hover,
.torbedo-floating-contact__button:focus-visible {
	box-shadow: 0 0.8rem 2.4rem rgba(15, 43, 76, 0.35);
	color: #fff !important;
	transform: translateY(-3px);
}

.torbedo-floating-contact__button svg {
	fill: none;
	height: 2.8rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
	width: 2.8rem;
}

.torbedo-floating-contact__button--phone {
	background: #ed1c24;
	left: max(2.4rem, env(safe-area-inset-left));
}

.torbedo-floating-contact__button--whatsapp {
	background: #25d366;
	right: max(2.4rem, env(safe-area-inset-right));
}

.torbedo-floating-contact__button--whatsapp svg path:last-child {
	fill: currentColor;
	stroke: none;
}

#scroll-top,
.scroll-top {
	bottom: max(10rem, calc(8rem + env(safe-area-inset-bottom))) !important;
}

@media (max-width: 767px) {
	.torbedo-floating-contact__button {
		bottom: calc(8.6rem + env(safe-area-inset-bottom));
		height: 5.2rem;
		width: 5.2rem;
	}

	.torbedo-floating-contact__button--phone {
		left: max(1.6rem, env(safe-area-inset-left));
	}

	.torbedo-floating-contact__button--whatsapp {
		right: max(1.6rem, env(safe-area-inset-right));
	}

	.torbedo-floating-contact__button svg {
		height: 2.5rem;
		width: 2.5rem;
	}

	#scroll-top,
	.scroll-top {
		bottom: calc(15rem + env(safe-area-inset-bottom)) !important;
	}
}
