.tba-language-switcher-wrap {
	position: absolute;
	top: 84%;
	right: 18px;
	transform: translateY(-50%);
	z-index: 40;
}

.whb-header {
	position: relative;
}

.wd-header-nav + .tba-language-switcher-wrap {
	align-self: center;
	margin-inline-start: 18px;
	position: static;
	transform: none;
}

/* Stable desktop anchor: the header navigation may be removed in WoodMart's
 * Header Builder, but the desktop icon column remains available. */
.whb-general-header .whb-col-right.whb-visible-lg > .tba-language-switcher-wrap {
	align-self: center;
	flex: 0 0 auto;
	margin-left: 9px;
	margin-right: 9px;
	position: static !important;
	transform: none !important;
}

/* Keep the header and language selector visible on every storefront page. */
body.tba-language-en .whb-header,
body.tba-language-ar .whb-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 390 !important;
}

@media (min-width: 783px) {
	body.admin-bar.tba-language-en .whb-header,
	body.admin-bar.tba-language-ar .whb-header {
		top: 32px !important;
	}
}

.tba-language-switcher {
	align-items: center;
	background: #fff !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	display: inline-flex;
	font-size: 11px;
	font-weight: 500;
	height: 30px;
	line-height: 1;
	overflow: hidden;
	padding: 0 !important;
	width: 150px;
}

.tba-language-switcher .tba-language-toggle {
	align-items: center;
	color: #333;
	direction: ltr;
	display: flex;
	height: 100%;
	text-decoration: none;
	width: 100%;
}

.tba-language-switcher .tba-language-option {
	align-items: center;
	background: #fff !important;
	color: #111 !important;
	display: flex;
	flex: 1 1 50%;
	height: 100%;
	justify-content: center;
	white-space: nowrap;
}

.tba-language-switcher .tba-language-option.is-active,
.tba-language-switcher .tba-language-toggle:hover .tba-language-option.is-active {
	background: #111 !important;
	color: #fff !important;
	font-weight: 700 !important;
}

.tba-mobile-language-row {
	display: none;
}

@media (max-width: 1024px) {
	.tba-mobile-language-row {
		align-items: center;
		background: #fff;
		display: flex;
		min-height: 42px;
		padding: 6px 14px;
		position: relative;
		width: 100%;
		z-index: 39;
	}

	.tba-language-en .tba-mobile-language-row {
		justify-content: flex-end;
	}

	.tba-mobile-language-row .tba-language-switcher-wrap {
		margin: 0;
		position: static;
		transform: none;
	}

	.tba-mobile-language-row .tba-language-switcher {
		font-size: 9px;
		height: 26px;
		width: 130px;
	}

	.tba-mobile-language-row .tba-language-toggle {
		height: 26px;
	}

	.whb-general-header .whb-mobile-right > .tba-language-switcher-wrap {
		align-self: center;
		flex: 0 0 auto;
		margin-left: 5px;
		margin-right: 5px;
		position: static !important;
		transform: none !important;
	}

	.whb-general-header .whb-mobile-right > .tba-language-switcher-wrap .tba-language-switcher {
		font-size: 8px;
		height: 25px;
		width: clamp(96px, 27vw, 112px);
	}
}

.home.tba-language-ar .entry-content > .elementor p,
.home.tba-language-en .entry-content > .elementor p {
	text-align: center;
}

@media (min-width: 1025px) {
        /* Use more of the desktop header width while retaining safe edge space. */
        .tba-language-ar .whb-general-header > .container,
        .tba-language-en .whb-general-header > .container {
                max-width: 100% !important;
                padding-left: 34px !important;
                padding-right: 34px !important;
                width: 100% !important;
        }

        /* English desktop mirrors the Arabic header: menu and logo at the
           outer left edge, controls at the outer right edge. */
        .tba-language-en .whb-general-header .whb-flex-row {
                width: 100% !important;
        }

        .tba-language-en .whb-general-header .whb-col-left {
                justify-content: flex-start !important;
        }

        .tba-language-en .whb-general-header .whb-col-right {
                justify-content: flex-end !important;
        }

        .tba-language-en .whb-general-header .whb-col-left > .wd-header-mobile-nav {
                order: 1;
        }

        .tba-language-en .whb-general-header .whb-col-left > .site-logo {
                order: 2;
        }
}

/* Arabic mobile homepage carousels must be genuinely RTL, not merely
   visually row-reversed. This makes the first product start at the right
   and reveals more products when the customer swipes left-to-right. */
@media (max-width: 767px) {
}

/* Desktop mini-cart subtotal punctuation; mobile remains untouched. */
@media (min-width: 1025px) {
}

@media (min-width: 769px) {
}

.tba-birthday-message {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

@media (min-width: 769px) {
}

@media (max-width: 768px) {
}

@media (max-width: 767px) {

	/* Keep the English homepage feature subtitle to two complete lines. */
	.tba-language-en .elementor-element-09caecd p:nth-child(2) {
		font-size: clamp(14px, 4.1vw, 16px) !important;
		line-height: 1.5 !important;
	}
}

@media (min-width: 768px) {
}

@media (max-width: 767px) {
}

@media (max-width: 767px) {
}

/*
 * WoodMart's mobile cart reserves 115px on the left for each product image.
 * Mirror that reservation in Arabic for every cart row, including add-ons.
 */
@media (max-width: 767px) {
}

/* Each language is independently selectable so its hover state is clear. */
.tba-language-switcher .tba-language-option {
  background: #fff !important;
  color: #111 !important;
  text-decoration: none !important;
}
.tba-language-switcher .tba-language-option.is-active {
  background: #111 !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.tba-language-switcher .tba-language-option:not(.is-active):hover,
.tba-language-switcher .tba-language-option:not(.is-active):focus-visible,
.tba-language-switcher .tba-language-option:not(.is-active):active {
  background: #A9787F !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* Desktop Arabic footer: account for Elementor's two 30px column gaps so the contact column stays inside the right edge. */
@media (min-width: 1025px) {
}

/* Arabic desktop footer: swap the Help and Contact columns while leaving the centre column unchanged. */
@media (min-width: 1025px) {
}
/* Shop and category catalogues: black actions, black prices, and the brand accent for filters and notices. */
:where(.woocommerce-shop, .tax-product_cat) .products .add-to-cart-loop,
:where(.woocommerce-shop, .tax-product_cat) .products .add-to-cart-loop.button,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .button,
:where(.woocommerce-shop, .tax-product_cat) .wd-filter-submit,
:where(.woocommerce-shop, .tax-product_cat) .wd-filters-area .btn.btn-accent,
:where(.woocommerce-shop, .tax-product_cat) .wd-filter-buttons .btn,
:where(.woocommerce-shop, .tax-product_cat) .wd-shop-tools .btn.btn-accent {
  background-color: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}
:where(.woocommerce-shop, .tax-product_cat) .products .add-to-cart-loop:hover,
:where(.woocommerce-shop, .tax-product_cat) .products .add-to-cart-loop:focus,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .button:hover,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .button:focus,
:where(.woocommerce-shop, .tax-product_cat) .wd-filter-submit:hover,
:where(.woocommerce-shop, .tax-product_cat) .wd-filter-submit:focus {
  background-color: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}
:where(.woocommerce-shop, .tax-product_cat) .price,
:where(.woocommerce-shop, .tax-product_cat) .price .amount,
:where(.woocommerce-shop, .tax-product_cat) .woocommerce-Price-amount,
:where(.woocommerce-shop, .tax-product_cat) .price-slider-amount {
  color: #111 !important;
}
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .price_slider,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .price_slider .ui-slider-range,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .ui-slider-range,
:where(.woocommerce-shop, .tax-product_cat) .price_slider_widget .ui-slider-range {
  background-color: #A9787F !important;
}
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .ui-slider-handle,
:where(.woocommerce-shop, .tax-product_cat) .price_slider_widget .ui-slider-handle {
  background-color: #A9787F !important;
  border-color: #A9787F !important;
}
:where(.woocommerce-shop, .tax-product_cat) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notices-wrapper .woocommerce-info, .woocommerce-notices-wrapper .woocommerce-message, .woocommerce-notices-wrapper .woocommerce-error) {
  background-color: #A9787F !important;
  border-color: #A9787F !important;
  color: #fff !important;
}
:where(.woocommerce-shop, .tax-product_cat) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) :is(a, strong, .button) {
  color: #fff !important;
}

/* Main product-filter submit button, which is separate from the price-widget button. */
:where(.woocommerce-shop, .tax-product_cat) .wd-product-filters .wd-pf-btn .btn.btn-accent,
:where(.woocommerce-shop, .tax-product_cat) .wd-product-filters .wd-pf-btn .btn.btn-accent:hover,
:where(.woocommerce-shop, .tax-product_cat) .wd-product-filters .wd-pf-btn .btn.btn-accent:focus {
  background-color: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

/* Price-range slider: black track, range and handles. */
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .price_slider,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .price_slider .ui-slider-range,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .ui-slider-range,
:where(.woocommerce-shop, .tax-product_cat) .price_slider_widget .ui-slider-range,
:where(.woocommerce-shop, .tax-product_cat) .widget_price_filter .ui-slider-handle,
:where(.woocommerce-shop, .tax-product_cat) .price_slider_widget .ui-slider-handle {
  background-color: #111 !important;
  border-color: #111 !important;
}

/* English profile-menu links: use the brand accent for hover and active states. */
.tba-language-en .wd-dropdown-my-account a:hover,
.tba-language-en .wd-dropdown-my-account a:focus,
.tba-language-en .wd-dropdown-my-account .current-menu-item > a,
.tba-language-en .wd-my-account-links a:hover,
.tba-language-en .wd-my-account-links a:focus,
.tba-language-en .wd-my-account-links .current-menu-item > a {
  color: #A9787F !important;
}
.tba-language-en .wd-dropdown-my-account .current-menu-item > a,
.tba-language-en .wd-my-account-links .current-menu-item > a {
  border-color: #A9787F !important;
}

/* Hide Wishlist from the account dropdown immediately; JavaScript removes its menu item after it is rendered. */
.wd-dropdown-my-account :is(li:has(> a[href*="wishlist"]), a[href*="wishlist"]),
.wd-my-account-links :is(li:has(> a[href*="wishlist"]), a[href*="wishlist"]) {
  display: none !important;
}

/* Arabic mobile footer: keep the About links centred under their title and compact the Help links onto single lines. */
@media (max-width: 767px) {
}

/* Arabic mobile footer: align the Get to Know Us links from the right, beneath the title's first letter. */
@media (max-width: 767px) {
}
@media (max-width: 767px) {
}

/* Arabic mobile footer: align each About link's starting letter directly below the title. */
@media (max-width: 767px) {
}

/* Arabic mobile footer: the About heading and all its links share one exact RTL starting edge. */
@media (max-width: 767px) {
}

/* Arabic mobile footer: place About on the left and Help on the right. */
@media (max-width: 767px) {
}

/* English mobile footer: keep narrow and zoomed mobile previews readable. */
@media (max-width: 1024px) {
  .tba-language-en .wd-footer .elementor-element-837e3cf {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    width: 100% !important;
  }
  .tba-language-en .wd-footer .elementor-element-837e3cf > .elementor-element-2187de1,
  .tba-language-en .wd-footer .elementor-element-837e3cf > .elementor-element-4ebe33f,
  .tba-language-en .wd-footer .elementor-element-837e3cf > .elementor-element-697cc91 {
    align-items: flex-start !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }
  .tba-language-en .wd-footer .elementor-element-837e3cf .wd-text-block,
  .tba-language-en .wd-footer .elementor-element-837e3cf .wd-list,
  .tba-language-en .wd-footer .elementor-element-837e3cf .wd-list a,
  .tba-language-en .wd-footer .elementor-element-837e3cf .elementor-icon-list-items,
  .tba-language-en .wd-footer .elementor-element-837e3cf .elementor-icon-list-item,
  .tba-language-en .wd-footer .elementor-element-837e3cf .elementor-icon-list-item a {
    text-align: left !important;
  }
  .tba-language-en .wd-footer .elementor-element-837e3cf .wd-list a,
  .tba-language-en .wd-footer .elementor-element-837e3cf .elementor-icon-list-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}


/* Arabic desktop search: breadcrumb on the right, sorting tools on the left. */
@media (min-width: 768px) {
}
/* Mirror the Elementor product columns without reversing the mobile stack. */
@media (min-width: 768px) {
}
html[lang="ar"] .tba-home-color-collection,
html[lang="ar"] .tba-home-benefits {
    font-family: Tahoma, Arial, sans-serif;
}

html[lang="ar"] .tba-home-color-collection *,
html[lang="ar"] .tba-home-benefits * {
    letter-spacing: 0 !important;
}




/* Show checkout shipping notices only in the selected storefront language. */
.tba-language-en.woocommerce-checkout .woocommerce-privacy-policy-text > p[dir=rtl],
.tba-language-ar.woocommerce-checkout .woocommerce-privacy-policy-text > p[dir=ltr] { display:none!important; }
