/*
Theme Name: Seven Stars
Theme URI: https://7stars.qa/
Description: Brand child theme for Seven Star Military Supplies (7stars.qa). Applies the official 7 Stars palette - deep green #375543 and sand #F3DBB3 - on top of the Tactiko parent theme. Keep this child active so branding survives Tactiko updates.
Author: Seven Star Military Supplies
Author URI: https://7stars.qa/
Template: tactiko
Version: 3.9.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seven-stars
Tags: e-commerce, tactical, military, custom-colors, custom-logo, rtl-language-support
*/

/* ==========================================================================
   7 STARS BRAND PALETTE

   Source: Company Profile/7 stars.pdf - colour swatch page. Values were read
   from the PDF's own vector fill data, not sampled off a screenshot:
       deep green  rgb(0.2156, 0.3332, 0.2615) -> #375543
       sand        rgb(0.9513, 0.8589, 0.7009) -> #F3DBB3

   Tactiko drives its entire UI from the design tokens below, so overriding
   them here rebrands the whole theme. Tactiko's stock palette was an olive
   #8E8B5E with a gold #DFB62A accent.
   ========================================================================== */

:root {
	/* --- Brand tokens --- */
	--seven-stars-green: #375543;
	--seven-stars-green-dark: #24372C;
	--seven-stars-sand: #F3DBB3;
	--seven-stars-sand-dark: #E4C89A;

	/* --- Tactiko token overrides --- */
	--primary: #375543;
	--primary_hover: #24372C;
	--secondary: #F3DBB3;
	--secondary_hover: #E4C89A;

	/* Tactiko uses --accent for dark surfaces and headings. Pure black is
	   swapped for the deepest brand green so dark areas stay on-brand. */
	--accent: #24372C;

	/* --text, --text_light, --border, --background and --white are neutrals
	   and are deliberately left as Tactiko ships them.
	   --highligh (sic - the parent's typo) stays red: it marks sale badges
	   and errors, which is a shop convention rather than brand identity. */
}

/* Elementor reads its global colours from its own kit. These keep any
   Elementor-built sections in step with the tokens above. */
:root {
	--e-global-color-primary: #375543;
	--e-global-color-secondary: #24372C;
	--e-global-color-accent: #F3DBB3;
}

/* ==========================================================================
   SAND ACCENTS
   Sand is the lift against the deep green - used for calls to action and
   hover states rather than large fills, so it stays deliberate.
   ========================================================================== */

.btn-primary:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: var(--seven-stars-sand);
	border-color: var(--seven-stars-sand);
	color: var(--seven-stars-green);
}

/* ==========================================================================
   LOGO
   The 7 Stars mark is deep green, which disappears against dark headers.
   Tactiko's header can be either light or dark depending on the layout, so
   the mark is reversed out only where it sits on a dark bar.
   ========================================================================== */

.header-dark .site-branding img,
.header-transparent .site-branding img,
.opal-header-dark .site-branding img {
	filter: brightness(0) invert(1);
}

/* ==========================================================================
   HEADER LOGO SIZE
   Tactiko's demo header expects a compact wordmark. The 7 Stars lockup is
   tall (a badge stacked over the name), so unconstrained it fills the whole
   header band. Cap its height and let the width follow.
   ========================================================================== */

.site-branding img,
.site-logo img,
.elementor-widget-theme-site-logo img,
.elementor-widget-site-logo .hfe-site-logo-img,
.hfe-site-logo-img,
header .custom-logo {
	max-height: 72px;
	width: auto;
	object-fit: contain;
}

@media (max-width: 1024px) {
	.site-branding img,
	.site-logo img,
	.elementor-widget-theme-site-logo img,
	.elementor-widget-site-logo .hfe-site-logo-img,
	.hfe-site-logo-img,
	header .custom-logo {
		max-height: 54px;
	}
}

/* ==========================================================================
   HEADER POSITIONING
   Tactiko floats the header over a full-bleed Slider Revolution hero
   (header { position: absolute }). That slider's content is a separate
   download that does not ship with the theme, so it was removed - which
   left the header sitting on top of the first section. Put it back into
   normal document flow and give it a solid ground.
   ========================================================================== */

header#masthead {
	position: relative;
	background: #ffffff;
}

/* ==========================================================================
   HERO OUTLINED TEXT
   The Tactiko demo sets its large accent word to rgba(255,255,255,0) - a
   transparent fill - and relies on a stroke for the outline. Elementor has no
   control for text-stroke, so it is applied here to the class the hero widget
   carries.
   ========================================================================== */

.ss-hero-outline .elementor-heading-title {
	-webkit-text-stroke: 1px #ffffff;
	text-stroke: 1px #ffffff;
	paint-order: stroke fill;
}

@media (max-width: 767px) {
	.ss-hero-outline .elementor-heading-title {
		-webkit-text-stroke-width: 1px;
	}
}

/* ==========================================================================
   "BUY NOW" BUTTON
   Secondary to "Add to Cart": sand rather than green, so the primary action
   still leads. Full width under the cart button on the single product page,
   inline on the product grids.
   ========================================================================== */

.ss-buy-now {
	background-color: #F3DBB3 !important;
	color: #24372C !important;
	border: 1px solid #F3DBB3 !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: background-color .2s ease, color .2s ease;
}

.ss-buy-now:hover,
.ss-buy-now:focus {
	background-color: #24372C !important;
	color: #FFFFFF !important;
	border-color: #24372C !important;
}

/* Single product.
   The add-to-cart form is a nowrap flex row holding: quantity, Add to Cart,
   Buy Now, wishlist, compare. Buy Now must behave exactly like the theme's
   own .single_add_to_cart_button - same flex basis, same padding, same
   line-height - otherwise it sits low and squeezes the row. */
.woocommerce div.product form.cart .ss-buy-now {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0;
	padding: 13px 20px;
	line-height: 20px;
	white-space: nowrap;
	text-align: center;
}

/* Five items in a nowrap row crush each other on narrow screens, so let the
   form wrap there and give the two main buttons a sensible minimum. */
@media (max-width: 767px) {
	.woocommerce div.product form.cart {
		flex-wrap: wrap;
		row-gap: 10px;
	}

	.woocommerce div.product form.cart .single_add_to_cart_button,
	.woocommerce div.product form.cart .ss-buy-now {
		flex: 1 1 45%;
		min-width: 140px;
	}
}

/* Grids: mirror the theme's own loop Add-to-Cart button exactly
   (inline-flex, 12px/24px, 7px 25px padding) so the pair line up. */
.ss-buy-now--loop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 7px 25px;
	font-size: 12px;
	line-height: 24px;
	letter-spacing: normal;
}

/* ==========================================================================
   CHECKOUT "EDIT CART" LINK
   The block checkout's order summary cannot be edited in place, and Buy Now
   skips the cart, so this is the way back to change or remove an item.

   It is positioned against the summary block rather than injected into the
   heading: the heading becomes a collapsible toggle on small screens, and a
   link nested inside a button is both invalid and unclickable. Type matches
   the theme - Chakra Petch, uppercase, letterspaced.
   ========================================================================== */

.wp-block-woocommerce-checkout-order-summary-block {
	position: relative;
}

.wp-block-woocommerce-checkout-order-summary-block > .ss-edit-cart {
	position: absolute;
	top: 22px;
	inset-inline-end: 16px;
	z-index: 2;
	margin: 0;
	font-family: "Chakra Petch", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: #375543;
	border-bottom: 1px solid rgba(55, 85, 67, 0.35);
	padding-bottom: 2px;
	transition: color .2s ease, border-color .2s ease;
}

.wp-block-woocommerce-checkout-order-summary-block > .ss-edit-cart:hover,
.wp-block-woocommerce-checkout-order-summary-block > .ss-edit-cart:focus {
	color: #24372C;
	border-bottom-color: #24372C;
}

/* On small screens the heading collapses into a toggle with the order total,
   so drop the link onto its own right-aligned line underneath instead. */
@media (max-width: 782px) {
	.wp-block-woocommerce-checkout-order-summary-block > .ss-edit-cart {
		position: static;
		display: block;
		width: fit-content;
		margin: 0 0 12px auto;
	}
}

/* ==========================================================================
   FOOTER COLOURS
   The demo footer is three bands - a coloured marquee, a #252525 body and a
   black bottom bar - with white headings and white links throughout.

   Ours inherited link colour from --secondary-color (#24372C): dark green on
   a dark grey panel, effectively unreadable. The site logo is the dark-green
   lockup, which disappears down there too.

   NOTE: scope every rule to #colophon. ".ehf-footer" is a BODY class, not a
   footer container - using it here turned every link on the site white and
   inverted the header logo to white-on-white.
   ========================================================================== */

#colophon a,
#colophon .elementor-widget-icon-list a,
#colophon .elementor-widget-text-editor a {
	color: #FFFFFF;
}

#colophon a:hover,
#colophon .elementor-widget-icon-list a:hover {
	color: #F3DBB3;
}

/* reverse the dark-green lockup out to white on the dark footer */
#colophon .hfe-site-logo-img,
#colophon .site-logo img,
#colophon .elementor-widget-site-logo img {
	filter: brightness(0) invert(1);
}

#colophon .elementor-widget-image img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   FOOTER LAYOUT  (v2.1.1)

   The footer used to be a 30% brand column beside a 70% wrapping row that
   held the branch block AND four 25% link columns. They wrapped onto
   staggered baselines, and on a tablet "Military Uniforms Tailoring"
   overlapped "All Products". Grid replaces the wrapping so the columns
   align and collapse predictably.

   NOTE: Elementor does NOT render a container's "_css_classes" setting, so
   these rules hook the generated .elementor-element-<id> classes instead.
   The ids are ours (ssfmain1 / ssfbr001 / ssfstr01 / ssfhrs01 / ssfpay01)
   and are set in footer-rebuild.php - keep the two in step.

   Scope everything to #colophon - ".ehf-footer" is a BODY class.
   ========================================================================== */

#colophon .elementor-element-ssfmain1,
#colophon .elementor-element-ssfbr001,
#colophon .elementor-element-ssfstr01 {
	width: 100%;
	max-width: 1400px;
	margin-inline: auto;
}

/* --- main row: brand + four link columns --- */
#colophon .elementor-element-ssfmain1 {
	--display: grid;
	display: grid;
	grid-template-columns: 1.7fr 1.15fr 1fr 1fr 1.15fr;
	gap: 40px 34px;
	align-items: start;
}

#colophon .elementor-element-2ecfad2 .elementor-widget-text-editor {
	max-width: 340px;
	color: #B9B9B9;
	font-size: 14px;
	line-height: 1.75;
}

/* --- branches and the hours/payment strip --- */
#colophon .elementor-element-ssfbr001,
#colophon .elementor-element-ssfstr01 {
	margin-top: 44px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#colophon .ss-branches {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 26px 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon .ss-branches li {
	padding-inline-start: 16px;
	border-inline-start: 2px solid #375543;
}

#colophon .ss-b-name {
	display: block;
	margin-bottom: 7px;
	color: #F3DBB3;
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#colophon .ss-b-addr {
	display: block;
	color: #B9B9B9;
	font-size: 14px;
	font-style: normal;
	line-height: 1.65;
}

/* --- hours left, payment marks right --- */
#colophon .elementor-element-ssfstr01 {
	--display: grid;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px 60px;
	align-items: start;
}

#colophon .ss-hours {
	max-width: 420px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon .ss-hours li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

#colophon .ss-hours li:last-child {
	border-bottom: 0;
}

#colophon .ss-h-day {
	color: #FFFFFF;
	font-size: 14px;
	font-style: normal;
	white-space: nowrap;
}

#colophon .ss-h-time {
	color: #B9B9B9;
	font-size: 14px;
	font-style: normal;
	line-height: 1.6;
	text-align: end;
}

#colophon .elementor-element-ssfpay01 {
	text-align: end;
}

/* Elementor emits the per-widget alignment for this column TWICE, and on RTL
   the second copy is mirrored - `end` is rewritten to `start` and vice versa.
   But those are logical keywords that already follow the writing direction, so
   mirroring them flips a second time and lands inverted. The result on the
   Arabic footer: the heading (aligned by the rule above, which is ours and so
   never mirrored) sat against one edge of the column while the caption and the
   card logos sat against the other.

   Only .elementor-element-25ed83a (the caption) and .elementor-element-ac26d4c
   (the card logos) are affected - a scan of every text-align rule on the page
   found these two and nothing else.

   Inheriting from the column neutralises it at every breakpoint and in both
   languages. The #colophon id outranks Elementor's three-class selector, so no
   !important is needed. Do NOT "fix" this by hardcoding left/right - that
   breaks the other language. */
#colophon .elementor-element-ssfpay01 .elementor-widget {
	text-align: inherit;
}

#colophon .elementor-element-ssfpay01 .elementor-widget-text-editor {
	color: #B9B9B9;
	font-size: 13px;
}

#colophon .elementor-element-ssfpay01 .elementor-widget-image {
	margin-top: 14px;
}

/* --- tablet: two link columns, brand across the top --- */
@media (max-width: 1024px) {
	#colophon .elementor-element-ssfmain1 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 30px;
	}

	#colophon .elementor-element-2ecfad2 {
		grid-column: 1 / -1;
	}

	#colophon .elementor-element-2ecfad2 .elementor-widget-text-editor {
		max-width: 520px;
	}
}

/* --- phone: single column, nothing right-aligned --- */
@media (max-width: 767px) {
	#colophon .elementor-element-ssfmain1 {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	#colophon .elementor-element-ssfbr001,
	#colophon .elementor-element-ssfstr01 {
		margin-top: 34px;
		padding-top: 30px;
	}

	#colophon .elementor-element-ssfstr01 {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	#colophon .elementor-element-ssfpay01 {
		text-align: start;
	}
}

/* very narrow: stack each day above its hours instead of squeezing */
@media (max-width: 400px) {
	#colophon .ss-hours li {
		flex-direction: column;
		gap: 3px;
	}

	#colophon .ss-h-time {
		text-align: start;
	}
}

/* ==========================================================================
   BACK TO TOP

   The template ships this control (render_html_back_to_top -> .progress-wrap,
   a white circle whose ring fills as you scroll). It was simply switched off:
   the option "tactiko_options_enable_backtop" had never been set, so the
   markup never rendered. Enabled now; these rules only swap the theme's
   neutral #222 for the brand green, the geometry and behaviour are the
   theme's own.

   NOT scoped to #colophon - the markup is printed on wp_footer, outside it.
   ========================================================================== */

.progress-wrap {
	box-shadow: inset 0 0 0 2px rgba(55, 85, 67, 0.2);
}

.progress-wrap:hover {
	box-shadow: inset 0 0 0 2px rgba(55, 85, 67, 0.45);
}

.progress-wrap svg.progress-circle path {
	stroke: #375543;
}

/* the inline arrow is stroke="currentColor" */
.progress-wrap .icon-arrow {
	color: #375543;
}

/*
 * Below 1025px the theme shows a fixed bottom nav bar (Elementor template
 * 3477, .elementor-element-9bbef07): 65px tall, full width, z-index 999.
 * The back-to-top control sits at z-index 998, 16px off the bottom - dead
 * behind that bar and completely invisible on a phone. Lift it clear.
 *
 * 1024px is where the bar stops: it carries elementor-hidden-tablet_extra,
 * and this theme's tablet_extra breakpoint starts at 1025px.
 */
@media (max-width: 1024px) {
	.progress-wrap {
		bottom: calc(65px + 1rem);
		z-index: 1000;
	}
}

/* ==========================================================================
   HERO - CENTRE ON PHONE ONLY

   The hero is left-aligned by design on larger screens (the demo's editorial
   layout). On a phone the column is narrow enough that left alignment leaves
   the kicker, headline, "TRUSTED / SINCE 2012" row and button looking ragged
   against the right edge, so they are centred below 768px only.

   768px is this theme's mobile boundary: its Elementor breakpoints run
   mobile <=767, mobile_extra 768-880, tablet 881-1024. Anything above keeps
   the original left alignment.
   ========================================================================== */

@media (max-width: 767px) {

	/* the hero is a flex column, so align-items controls horizontal placement.
	   Elementor drives it through --align-items, so set both. */
	.elementor-element-sshero00 {
		--align-items: center;
		align-items: center;
		text-align: center;
	}

	.elementor-element-sshero00 .elementor-widget-heading,
	.elementor-element-sshero00 .elementor-widget-button {
		width: 100%;
		text-align: center;
	}

	/* "TRUSTED  SINCE 2012" sits on its own flex row */
	.elementor-element-sshx05 {
		--justify-content: center;
		justify-content: center;
		width: 100%;
	}

	/* the outlined word carries a 30px right margin for the desktop layout,
	   which would pull the centred pair off-centre */
	.elementor-element-sshx04 {
		margin-inline-end: 0;
	}
}

/* ==========================================================================
   ARABIC TYPOGRAPHY

   The heavy lifting is in assets/css/arabic-font.css, which adds an
   Arabic-range face to the theme's own font families. The browser then picks
   the right glyphs per character on its own, so there are no font-family
   overrides here - an earlier version of this file did override them and
   turned every icon on the Arabic pages into an empty box, because icon fonts
   were caught by the same rule.

   The family comes from --ss-font-arabic (see seven_stars_arabic_font() in
   functions.php); only the two rules below name it, and both target elements
   that are explicitly Arabic.
   ========================================================================== */

:lang(ar):not([class*="icon"]):not(i),
html[dir="rtl"] .trp-language-switcher {
	font-family: var(--ss-font-arabic);
}

/* Arabic sets slightly tighter than Latin at the same size */
html[dir="rtl"] body {
	line-height: 1.75;
}

/* ==========================================================================
   LANGUAGE SWITCHER

   TranslatePress's switcher sits in the header top bar, in the slot the
   currency dropdown used to occupy. Its default styling is a white pill,
   which reads as a floating card against the dark bar - these rules sit it
   into the bar instead. Mirrors automatically: the bar is flex, so the
   switcher moves to the left edge in RTL without any extra rule.
   ========================================================================== */

.ss-lang-switcher .trp-language-switcher {
	margin: 0;
}

/* `> div` also matches .trp-switcher-dropdown-list, which sits directly inside
   the switcher - so this rule was wiping out the dropdown's own background a
   few rules further down. Exclude it. */
.ss-lang-switcher .trp-language-switcher > div:not(.trp-switcher-dropdown-list),
.ss-lang-switcher .trp-language-item {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #FFFFFF;
	font-size: 13px;
	line-height: 1.4;
	padding: 4px 8px;
}

.ss-lang-switcher .trp-language-item-name {
	color: #FFFFFF;
}

.ss-lang-switcher .trp-switcher-dropdown-list .trp-language-item:hover {
	background: rgba(255, 255, 255, 0.08);
}

.ss-lang-switcher .trp-language-item:hover .trp-language-item-name {
	color: #F3DBB3;
}

.ss-lang-switcher .trp-flag-image {
	width: 16px;
	height: 12px;
}

/*
 * Back-to-top arrow direction in RTL.
 *
 * The theme's RTL stylesheet mirrors the icon's rotation along with everything
 * else - rotate(-90deg) becomes rotate(90deg) - which leaves a "back to top"
 * control pointing DOWN on the Arabic pages. Scrolling up is up in both
 * directions, so the rotation must not mirror.
 *
 * The control's own position does mirror correctly (bottom-right in English,
 * bottom-left in Arabic); only the glyph is wrong.
 */
html[dir="rtl"] .progress-wrap .icon-arrow {
	transform: rotate(-90deg);
}

/* ==========================================================================
   RTL: MIRROR ELEMENTOR CONTAINER PADDING

   Elementor stores container padding as custom properties and applies them
   through logical properties:

       .e-con          { --padding-inline-start: var(--padding-left);
                         --padding-inline-end:   var(--padding-right); }
       body.rtl .e-con { --padding-inline-start: var(--padding-right);
                         --padding-inline-end:   var(--padding-left); }
       .e-con          { padding-inline-start: var(--padding-inline-start);
                         padding-inline-end:   var(--padding-inline-end); }

   That `body.rtl` rule looks like a mirror but is the opposite: in RTL,
   inline-start already resolves to the physical RIGHT, so swapping the two
   sources flips the value a second time and lands it back where it started.
   Measured on the Arabic homepage: --padding-inline-start:0 /
   --padding-inline-end:120px still computes to padding-left:120px. Elementor
   does this on purpose so a "left padding" control stays physically left. Our
   layouts need the real mirror, because the flex rows themselves DO reverse:
   the About section's 120px separates the copy from the photographs beside it,
   and in Arabic those photographs move to the other side.

   So undo Elementor's re-flip, using its own mechanism and its own properties.
   `.e-con.e-con` repeats the class purely to score (0,3,1) against Elementor's
   (0,2,1), so this wins on specificity rather than on stylesheet load order.

   Do NOT extend this to `.e-con-inner`. An earlier version set physical
   `padding-left`/`padding-right` on `.e-con, .e-con-inner`; because
   `--padding-left`/`--padding-right` INHERIT, each inner picked up its parent's
   values and overrode Elementor's `.e-con > .e-con-inner { padding-inline: 0 }`
   (this file loads later), adding phantom inline padding to every nested
   container in Arabic only - the Arabic top bar sat 30px from each edge where
   English sat 15px. Working at the custom-property level avoids that entirely,
   because the inner's zero padding is a real property, not a var lookup.
   ========================================================================== */

html[dir="rtl"] .e-con.e-con {
	--padding-inline-start: var(--padding-left);
	--padding-inline-end: var(--padding-right);
}

/*
 * RTL: widget margins that Elementor writes as a physical shorthand.
 *
 * Container padding is handled generically above, but per-widget margin comes
 * out as `margin: 0 30px 0 0` on .elementor-element-<id>, which cannot be
 * swapped with a generic rule - the values are baked into the shorthand. These
 * are the two on the site that are asymmetric, found by comparing every
 * element's computed margins in LTR against RTL.
 *
 * sshx04  - "SINCE 2012" in the hero, spaced away from the word beside it.
 * f6407fe - the "Uniform Tailoring" heading in the banner.
 */
/* Elementor writes these as `.elementor-<page> .elementor-element.elementor-element-<id>`
   - specificity (0,3,0). A plain `html[dir="rtl"] .elementor-element-<id>` is
   only (0,2,1) and loses, so the extra `.elementor-element` class is needed to
   reach (0,3,1). */
html[dir="rtl"] .elementor-element.elementor-element-sshx04 {
	margin-right: 0;
	margin-left: 30px;
}

html[dir="rtl"] .elementor-element.elementor-element-f6407fe {
	margin-right: 0;
	margin-left: 15px;
}

/*
 * The two staggered photographs in the About section are image WIDGETS, not
 * containers, so the generic container rule above does not reach them. Each
 * carries 50px of padding on its inner side to create the overlap; in RTL the
 * inner side is the other one.
 */
html[dir="rtl"] .elementor-element.elementor-element-33bb2b9 {
	padding-right: 0;
	padding-left: 50px;
}

html[dir="rtl"] .elementor-element.elementor-element-cc0a0a4 {
	padding-left: 0;
	padding-right: 50px;
}

/*
 * Active product tab was invisible.
 *
 * The selected tab ("new products") renders dark green text on the dark green
 * active background - computed colour and background-color are both
 * rgb(36,55,44) - so the label vanished and the tab read as an empty green
 * box. This is NOT an RTL issue: it is identical on the English site, and was
 * there before the Arabic work.
 */
.e-n-tabs .e-n-tab-title[aria-selected="true"],
.e-n-tabs .e-n-tab-title[aria-selected="true"] .e-n-tab-title-text {
	color: #FFFFFF;
}

/* ==========================================================================
   HOVER STATES

   Hover colours in this theme come straight from the brand palette without
   regard to what they sit on, so on dark surfaces the "hover" colour is darker
   than the background. Measured with :hover forced, contrast ratios were:

     top-bar contact link   #375543 on #252525   1.86:1
     search button label    #24372C on #375543   1.07:1   (all but invisible)
     inactive product tab   #D9D9D9 on #FFFFFF   1.41:1

   On dark ground the hover colour has to go LIGHTER (sand), not darker.
   ========================================================================== */

/* top bar sits on #252525 - hover to sand, not to the dark green */
#masthead .elementor-element-d7bf916 a:hover,
#masthead .elementor-element-d7bf916 a:hover .elementor-icon-list-text {
	color: #F3DBB3;
}

/* The search button is brand green; its label must stay light on hover.
   The form is .woocommerce-product-search - an earlier attempt targeted
   .tactiko-search, which is not the wrapper WooCommerce renders. */
.woocommerce-product-search button[type="submit"]:hover,
.woocommerce-product-search button[type="submit"]:hover span,
.woocommerce-product-search button[type="submit"]:focus,
.woocommerce-product-search button[type="submit"]:focus span,
.tactiko-search button[type="submit"]:hover,
.tactiko-search button[type="submit"]:hover span {
	color: #FFFFFF;
}

.woocommerce-product-search button[type="submit"]:hover,
.tactiko-search button[type="submit"]:hover {
	background-color: #24372C;
}

/* Inactive product tabs were #D9D9D9 on white (1.41:1). Fixed in the widget's
   own settings (title_text_color / title_text_color_hover) rather than here.
   
   A CSS rule was doing it before, but it had no :hover counterpart, so it kept
   the label at #505050 while the tab background turned dark green on hover -
   about 2.4:1. Set at the widget, Elementor emits a matching hover colour and
   both states are right. */

/* NO hover override for inactive tabs.
   
   An earlier version forced the hover label to white, on the belief that the
   background turned dark green. It does not: the widget sets
   tabs_title_background_color_hover_color to #00000000, so an inactive tab
   stays transparent on the light section and Elementor's own hover colour
   (accent #24372C) reads at roughly 10:1 against it. Forcing white here would
   have put white text on a white background.

   The probe that suggested otherwise was reading the wrong ancestor for the
   background - only the REST colour above needed changing. */

/* ==========================================================================
   LANGUAGE SWITCHER - it was invisible

   TranslatePress paints its own white pill on .trp-language-switcher. The
   earlier rules here set the label white to suit the dark top bar but never
   removed that pill, so the switcher rendered as a white box showing only the
   flag and the chevron - the word "English" was white on white.
   ========================================================================== */

.ss-lang-switcher .trp-language-switcher,
.ss-lang-switcher .trp-language-switcher.trp-ls-dropdown {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.ss-lang-switcher .trp-language-switcher svg,
.ss-lang-switcher .trp-language-switcher path {
	stroke: #FFFFFF;
	fill: #FFFFFF;
}

.ss-lang-switcher .trp-language-item:hover .trp-language-item-name,
.ss-lang-switcher .trp-language-item:hover {
	color: #F3DBB3;
}

/* The closed dropdown is NOT display:none - TranslatePress collapses it with
   max-height:0 while leaving it visible. So a background, border and padding
   on the base selector render as a ~10px dark box sitting under the switcher
   even when nothing is open. Give the box only to the open state. */
.ss-lang-switcher .trp-language-switcher .trp-switcher-dropdown-list {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.ss-lang-switcher .trp-ls-dropdown.is-open .trp-switcher-dropdown-list,
.ss-lang-switcher .trp-ls-dropdown[aria-expanded="true"] .trp-switcher-dropdown-list,
.ss-lang-switcher .trp-shortcode-switcher.is-open .trp-switcher-dropdown-list,
.ss-lang-switcher .trp-shortcode-switcher[aria-expanded="true"] .trp-switcher-dropdown-list {
	background: #1F1F1F;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	min-width: 150px;
	padding: 4px 0;
}

.ss-lang-switcher .trp-switcher-dropdown-list .trp-language-item,
.ss-lang-switcher .trp-switcher-dropdown-list .trp-language-item-name {
	color: #FFFFFF;
}

/* ==========================================================================
   RTL: DIRECTIONAL ARROWS

   Horizontal arrows carry meaning ("next", "continue") and must point the
   other way in Arabic. The theme leaves them alone, so buttons read
   "تسوّق المجموعة »" with the chevrons still aimed right.

   Up/down arrows are NOT listed here on purpose, and neither is
   .progress-wrap .icon-arrow - "back to top" is up in both directions.
   ========================================================================== */

html[dir="rtl"] .tactiko-icon-arrow-right,
html[dir="rtl"] .tactiko-icon-arrow-left,
html[dir="rtl"] .tactiko-icon-arrow-right-double,
html[dir="rtl"] .tactiko-icon-angle-right,
html[dir="rtl"] .tactiko-icon-angle-left,
html[dir="rtl"] [class*="fa-angle-right"],
html[dir="rtl"] [class*="fa-angle-left"],
html[dir="rtl"] [class*="fa-angle-double-right"],
html[dir="rtl"] [class*="fa-angle-double-left"],
html[dir="rtl"] [class*="fa-arrow-right"],
html[dir="rtl"] [class*="fa-arrow-left"],
html[dir="rtl"] [class*="fa-chevron-right"],
html[dir="rtl"] [class*="fa-chevron-left"],
html[dir="rtl"] [class*="fa-caret-right"],
html[dir="rtl"] [class*="fa-caret-left"],
/* WooCommerce pagination puts the glyph in a PSEUDO-ELEMENT on the anchor
   itself - <a class="next page-numbers"> with the arrow in ::after - not in a
   child <i>. The earlier `.page-numbers.next i` selector therefore matched
   nothing (verified: 0 elements) and the shop pagination kept pointing the
   English way on every Arabic archive page.

   prev carries ::before (U+E01D), next carries ::after (U+E01E). Both glyphs
   are horizontally asymmetric - measured by rendering them to a canvas and
   comparing each half against its mirror - so both genuinely need flipping. */
html[dir="rtl"] .page-numbers.next::after,
html[dir="rtl"] .page-numbers.prev::before {
	display: inline-block;
	transform: scaleX(-1);
}

/* Elementor renders Font Awesome as INLINE SVG, not as an icon font, and its
   SVG classes carry the style prefix e-fas- / e-far- / e-fab-. So the
   [class*="fa-..."] selectors above never reach them: "e-fas-angle-double-right"
   does NOT contain "fa-angle-double-right" - it contains "fas-angle-...". That
   one character is why the hero CTA "تسوّق المجموعة" kept its chevrons aimed
   right while every icon-font arrow on the same page was already flipped.

   Matching with a leading hyphen ("-angle-double-right") covers the icon-font
   class, the fa- class and the e-fas- SVG class in one selector.

   Only navigation arrows are listed. The other inline SVGs on the site - the
   Instagram mark and the two close X's - are not directional and are verified
   unaffected. */
html[dir="rtl"] svg.e-font-icon-svg[class*="-angle-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-angle-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-angle-double-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-angle-double-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-arrow-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-arrow-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-arrow-circle-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-arrow-circle-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-arrow-alt-circle-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-arrow-alt-circle-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-long-arrow-alt-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-long-arrow-alt-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-chevron-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-chevron-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-chevron-circle-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-chevron-circle-left"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-caret-right"],
html[dir="rtl"] svg.e-font-icon-svg[class*="-caret-left"] {
	transform: scaleX(-1);
}

/* The search button's chevrons are a ::before pseudo-element carrying the same
   glyph (\e002), not an element with an arrow class - so the rule above never
   reached it and it stayed pointing right in Arabic. */
html[dir="rtl"] .woocommerce-product-search button[type="submit"]::before,
html[dir="rtl"] .widget_product_search .woocommerce-product-search button::before,
html[dir="rtl"] .site-search form button[type="submit"]::before,
html[dir="rtl"] .site-search form button[type="submit"]::after,
html[dir="rtl"] .widget_search form button[type="submit"]::after {
	display: inline-block;
	transform: scaleX(-1);
}


/* ==========================================================================
   RTL: PUT THE BUTTON ARROW AFTER THE LABEL

   Elementor buttons carry the icon FIRST in the markup, so with dir:rtl the
   chevrons land at the start of the line - i.e. before the label in Arabic
   reading order. The theme's own search button does the opposite
   ("SEARCH >>" -> "بحث <<"), so the two disagreed on the same page.

   Reversing the content wrapper in RTL puts the arrow after the label, which
   matches the search button and reads the way a trailing CTA arrow should.
   Every Elementor button on the site computes flex-direction:row, so there is
   no already-reversed button for this to undo.
   ========================================================================== */

/* Elementor writes a per-widget rule
     .elementor-<page> .elementor-element.elementor-element-<id> .elementor-button-content-wrapper
   at (0,4,0) for every button that has an icon, which beats any reasonable
   selector here. One property, RTL only, so !important is the proportionate
   answer rather than a specificity arms race. */
html[dir="rtl"] .elementor-button-content-wrapper {
	flex-direction: row-reverse !important;
}

/* ==========================================================================
   RTL: TEXT THAT FAILED TO MIRROR

   Found by comparing the computed text-align of every text block on five
   pages in English against Arabic. These two widgets keep their text on the
   LEFT in Arabic, so the testimonials read ragged against the right edge and
   the category cards label from the wrong side.

   Targeted by widget TYPE rather than element id, so new instances of the
   same widget are covered too.
   ========================================================================== */

html[dir="rtl"] .elementor-widget-tactiko-testimonials .testimonial-title,
html[dir="rtl"] .elementor-widget-tactiko-testimonials .testimonial-content,
html[dir="rtl"] .elementor-widget-tactiko-testimonials .details,
html[dir="rtl"] .elementor-widget-tactiko-testimonials .details-info,
html[dir="rtl"] .elementor-widget-tactiko-testimonials .content,
html[dir="rtl"] .elementor-widget-tactiko-testimonials .grid-item,
html[dir="rtl"] .elementor-widget-tactiko-testimonials .name,
html[dir="rtl"] .elementor-widget-tactiko-testimonials .job,
/* The `:has(.cat-total)` qualifier matters. This widget is used twice with
   different alignment, and Elementor writes that alignment per element id, so
   there is no class to key off:

     - the homepage category BANNERS are centred in English, and must stay
       centred in Arabic;
     - the category GRIDS (homepage lower section, and the shop page) are
       left-aligned in English, so those are the ones to mirror.

   A blanket rule forced the banners right as well. Because their longest label
   fills the tile, that was invisible until the text wrapped: on a phone the
   Arabic "military equipment and supplies" tile put its second line flush
   against the right edge instead of under the centre - which is what "the text
   is not centred" turned out to be.

   Only the grids render a product count, so `.cat-total` is a genuine
   structural marker for "this is a listing, not a banner". If a future
   category widget shows counts it is covered automatically; a new banner is
   correctly left alone. */
html[dir="rtl"] .elementor-widget-tactiko-product-categories:has(.cat-total) .cat-title,
html[dir="rtl"] .elementor-widget-tactiko-product-categories:has(.cat-total) .cat-total,
html[dir="rtl"] .elementor-widget-tactiko-product-categories:has(.cat-total) .title,
html[dir="rtl"] .elementor-widget-tactiko-product-categories:has(.cat-total) .title a {
	text-align: right;
}

/* ==========================================================================
   TABLET TOP BAR (768-1024px)

   The strip keeps its three-column desktop layout in this range, so each
   column gets a third of the width: 234px at 768px. The two contact links
   need 242px, so they wrapped onto two lines and the bar grew to 82px. The
   middle column is the leftover demo container (two icon widgets with no icon
   assigned, so it paints nothing). Dropping it and letting the two real
   columns size to their content puts everything back on one line. Above
   1024px each third is already wide enough, so the original layout stands.
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
	#masthead .elementor-element-04a421e {
		display: none;
	}

	#masthead .elementor-element-961f20a > .e-con-inner {
		justify-content: space-between;
	}

	/* Elementor drives container width from --width:100%, so the width has to
	   be released as well as capped. */
	#masthead .elementor-element-0b619a2,
	#masthead .elementor-element-382aaae {
		width: auto;
		max-width: max-content;
		flex: 0 1 auto;
	}
}


/* ==========================================================================
   MOBILE TOP BAR + LANGUAGE SWITCHER

   On a phone the top bar was a COLUMN: contact links, then a row of icons,
   then the language switcher on a line of its own - 126px tall in English and
   135px in Arabic, before the logo even started. The switcher's own wrapper
   was 62px tall to hold a 27px control.

   Lay it out as one row instead, and take the padding off the switcher's
   wrapper. Measured on a 390px viewport: contact text 242px + switcher 89px
   fits the 360px content box with room to wrap on narrower phones.
   ========================================================================== */

@media (max-width: 767px) {

	#masthead .elementor-element-961f20a > .e-con-inner {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 2px 12px;
	}

	#masthead .elementor-element-0b619a2,
	#masthead .elementor-element-04a421e,
	#masthead .elementor-element-382aaae,
	#masthead .elementor-element-7172a55 {
		width: auto;
		max-width: max-content;
		flex: 0 1 auto;
	}

	/* the wrapper was more than twice the height of the control inside it */
	#masthead .elementor-element-382aaae,
	#masthead .elementor-element-7172a55 {
		min-height: 0;
		padding-top: 0;
		padding-bottom: 0;
		margin-top: 0;
		margin-bottom: 0;
	}

	/* The wrapper was 237px wide for a 117px control, which is what pushed the
	   switcher onto its own line. Measured chain: item 23px -> current-item
	   wrapper +8 -> .trp-language-switcher +20 (10px padding top and bottom)
	   -> shortcode wrapper 58px total. */
	#masthead .ss-lang-switcher .elementor-shortcode,
	#masthead .ss-lang-switcher .trp-shortcode-switcher__wrapper {
		display: inline-flex;
		justify-content: flex-end;
		width: auto;
	}

	#masthead .ss-lang-switcher .trp-language-switcher {
		padding-top: 0;
		padding-bottom: 0;
	}

	#masthead .ss-lang-switcher .trp-current-language-item__wrapper {
		padding-top: 0;
		padding-bottom: 0;
	}

	#masthead .ss-lang-switcher .trp-language-item {
		padding: 2px 4px;
		font-size: 12px;
	}

	#masthead .ss-lang-switcher .trp-flag-image {
		width: 15px;
		height: 11px;
	}

	/* Leftover Tactiko demo container: two icon.default widgets with no icon
	   assigned, so it paints nothing yet still reserves 20px and a gap on the
	   right of the strip. Removing it from the mobile row frees the space the
	   switcher needs. */
	#masthead .elementor-element-04a421e {
		display: none;
	}

	/* The strip holds two links (147px + 79px + margins = 242px) and the
	   switcher (117px), which cannot share a 360px inner. Drop the second link
	   on phones only - "Contact form" is already in the burger menu and in the
	   footer, whereas the phone number is the one thing worth a tap here.
	   Delete this rule to bring it back (the strip then wraps to two rows). */
	#masthead .elementor-element-0b619a2 .elementor-icon-list-item:nth-child(2) {
		display: none;
	}

	/* Elementor draws the "|" between inline items as a 1px border on
	   `:not(:last-child)::after`. Hiding the second item does not make the
	   first one :last-child, so the phone number kept a divider with nothing
	   after it. Only one item is visible here, so no divider is wanted at all. */
	#masthead .elementor-element-0b619a2 .elementor-icon-list-item::after {
		display: none;
	}

	/* The open panel carries min-width:150px so it looks deliberate on desktop.
	   On a 390px phone the switcher's right edge is at 375, so 150px of panel
	   runs 18px past the screen. Let it size to the switcher instead - the one
	   item in it ("العربية" / "English") fits comfortably at this font size.
	   #masthead gives (1,2,0) against the open-state rule's (0,3,0). */
	#masthead .ss-lang-switcher .trp-switcher-dropdown-list {
		min-width: 0;
	}

	/* Do NOT set position on .trp-language-switcher here. TranslatePress 3.3
	   renders the shortcode switcher twice: an inert in-flow ".trp-shortcode-anchor"
	   that reserves the space, and an absolutely positioned
	   ".trp-shortcode-overlay" that carries the interactive dropdown. Giving
	   .trp-language-switcher position:relative pulls the overlay back into flow,
	   so the two render side by side and the wrapper doubles to 233px - which is
	   what pushed the switcher onto its own row. TP already positions both. */
}

/* ==========================================================================
   CATEGORY TILES ON PHONES - KEEP THE LABEL INSIDE THE TILE

   The category banners put their label in `.cat-title`, which the theme gives
   no horizontal padding at all. On a desktop-width tile that never shows,
   because the longest name still has room. On a phone the tile is the full
   viewport width and the longest name fills it exactly, so the label ends up
   flush against an edge.

   Measured on the Arabic homepage at 390px, the "military equipment and
   supplies" tile: the text ran from x=80 to x=390 inside a tile spanning
   0..390 - an 80px gap on one side and none at all on the other. That
   lopsidedness is what reads as "not centred"; the text really is centred by
   `text-align`, it has simply run out of room on one side. English at 360px
   was the same story with 1px of clearance.

   Constraining the width rather than adding padding means the tiles that
   already sit comfortably inside their box are untouched - only the ones that
   would otherwise reach the edge get pulled in. margin-inline keeps them
   centred, and works unchanged in RTL.
   ========================================================================== */

@media (max-width: 767px) {
	.elementor-widget-tactiko-product-categories .cat-title {
		max-width: calc(100% - 44px);
		margin-inline: auto;
	}
}

/* ==========================================================================
   "NEW PRODUCTS" TABS - BUTTON SAT ON TOP OF THE HEADING BELOW 1024px

   The section is a flex column whose first child is the "See all products"
   button and whose second is the tabs widget. The tabs widget carries
   margin-top: -60px, which pulls it up alongside the button so the two share a
   row: tab labels on one side, button on the other. That works while the
   labels are short enough to leave the button its corner.

   They are not, below 1024px. Measured collision between the label row and the
   button: 207x54px at 390 and 440, 155x40px at 768, none from 1024 up. The
   button was painted straight over the heading - "NEW PR" in English, and the
   Arabic heading likewise half-covered.

   Below 1024px, drop the pull-up and let the two stack, with the button after
   the tabs. That matches how every other section on the page reads on a phone
   (heading, then content, then the "see all" link) and needs no size changes.
   Both elements are direct children of the same flex container, so `order`
   applies to them.
   ========================================================================== */

@media (max-width: 1023px) {
	.elementor-element-9e0efd9 {
		margin-top: 0;
		order: 1;
	}

	.elementor-element-32d307f {
		order: 2;
	}
}

/* ==========================================================================
   "NEW PRODUCTS" ON PHONES - SWIPE RAIL INSTEAD OF A 4.5-SCREEN STACK

   The problem was not the tabs, it was what sat underneath them. On a 440px
   phone `ul.products` is a one-column grid, so the eight cards stacked to
   4180px - the whole widget measured 4338px, four and a half full screens.
   The "Featured" and "Top Rated" tabs sit AFTER all of that, so nobody
   scrolling normally ever discovers the section is tabbed at all. A tab strip
   whose panels are four screens long is not a tab strip.

   Turning the grid into a horizontal scroll-snap rail collapses each panel to
   the height of one card, which puts all three tabs within a single screen of
   each other and makes switching between them worth doing. It is also the
   pattern people already expect from a product rail on a phone.

   Cards are 76% wide on purpose: the next one peeks in at the edge, which is
   what tells you the row can be swiped. Nothing here needs JavaScript, and
   `overflow-x` + scroll-snap mirror correctly in RTL on their own.
   ========================================================================== */

@media (max-width: 767px) {
	/* --- tabs: a pill row, not an accordion -----------------------------
	   Elementor turns nested tabs into an accordion on mobile by setting BOTH
	   .e-n-tabs-heading and .e-n-tabs-content to `display: contents`, which
	   dissolves the two wrappers so titles and panels interleave as siblings.
	   The result reads badly here: the inactive titles render as plain centred
	   text with no background, so they look like section headings rather than
	   controls, and they sit AFTER the panel, so you have to scroll past the
	   products to discover them.

	   Restoring the wrappers puts all three back in one row at the top, the
	   way the desktop layout works, so the choice is visible before any
	   scrolling. The row scrolls sideways if the labels ever outgrow it. */
	.elementor-element-9e0efd9 .e-n-tabs-heading {
		display: flex;
		flex-direction: row;
		/* Equal thirds always fit, so nothing needs to wrap or scroll. */
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 6px;
		margin-bottom: 14px;
	}

	.elementor-element-9e0efd9 .e-n-tabs-heading::-webkit-scrollbar {
		display: none;
	}

	.elementor-element-9e0efd9 .e-n-tabs-content {
		display: block;
	}

	/* All three tabs share one size. Left to themselves they came out 138 /
	   102 / 106 wide, and the selected one was 48 tall against the others' 38,
	   because Elementor styles the active label larger. Three ragged pills of
	   different heights read as decoration; equal thirds read as a control.
	   `flex: 1 1 0` divides the row evenly whatever the labels say, so it holds
	   in Arabic too, where the labels are a different set of lengths. */
	.elementor-element-9e0efd9 .e-n-tab-title,
	.elementor-element-9e0efd9 .e-n-tab-title[aria-selected="true"] {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		/* Elementor gives the selected tab height:54px + margin-bottom:10px and
		   the unselected ones margin-top:20px, so on desktop the active tab is
		   taller and drops to meet the panel. On a phone that just produces
		   three mismatched pills at two different heights, sitting on two
		   different baselines. An explicit height plus zeroed margins makes all
		   three identical; 44px is also the minimum comfortable tap target. */
		height: 44px;
		min-height: 44px;
		padding: 10px 8px;
		box-sizing: border-box;
		justify-content: center;
		align-items: center;
		text-align: center;
		white-space: nowrap;
	}

	/* The size lives on the inner span, not the title: setting it on the title
	   alone computed to 13px while the span stayed at the desktop 30px, so the
	   three tabs still measured 640px against a 410px strip. Both states are
	   named explicitly, otherwise the active one keeps its larger type and
	   stays taller than its neighbours. */
	.elementor-element-9e0efd9 .e-n-tab-title .e-n-tab-title-text,
	.elementor-element-9e0efd9 .e-n-tab-title[aria-selected="true"] .e-n-tab-title-text {
		font-size: 13px;
		line-height: 1.25;
	}

	/* An unselected tab was fully transparent, which is why it read as a
	   heading. An outline is enough to say "this is a control" without
	   competing with the filled active tab. */
	.elementor-element-9e0efd9 .e-n-tab-title[aria-selected="false"] {
		border: 1px solid rgba(36, 55, 44, .3);
	}

	/* The accordion margins have to be cancelled on Elementor's own terms.
	   It sets them as LOGICAL properties, from a rule carrying its
	   `.elementor.elementor` specificity hack:

	     .elementor.elementor .elementor-widget-n-tabs.e-n-tabs-mobile
	         .e-n-tab-title:not(:first-child)      { margin-block-start: var(--n-tabs-title-gap) }
	     .elementor.elementor .elementor-widget-n-tabs.e-n-tabs-mobile
	         .e-n-tab-title[aria-selected="true"]  { margin-block-end:   var(--n-tabs-gap) }

	   That is (0,6,0). A physical `margin: 0` at (0,2,0) never touched it -
	   and because the properties are logical, a scan for `margin-top` does not
	   even find the rule responsible. Matching their selector and adding the
	   element id puts this at (0,7,0), so it wins without !important. */
	.elementor.elementor .elementor-element-9e0efd9.elementor-widget-n-tabs.e-n-tabs-mobile .e-n-tab-title:not(:first-child) {
		margin-block-start: 0;
	}

	.elementor.elementor .elementor-element-9e0efd9.elementor-widget-n-tabs.e-n-tabs-mobile .e-n-tab-title[aria-selected="true"] {
		margin-block-end: 0;
	}

	/* --- the rail ------------------------------------------------------- */
	/* The widget sits at 344px inside a 410px column, so the rail would start
	   indented and end short. */
	.elementor-element-9e0efd9 .elementor-element-969328b {
		width: 100%;
	}

	.elementor-element-9e0efd9 ul.products.tactiko-products {
		display: flex;
		/* the theme sets this as a grid; flex alone does not clear the tracks */
		grid-template-columns: none;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 10px;
		scrollbar-width: none;
	}

	.elementor-element-9e0efd9 ul.products.tactiko-products::-webkit-scrollbar {
		display: none;
	}

	.elementor-element-9e0efd9 ul.products.tactiko-products > li.product {
		flex: 0 0 76%;
		margin: 0;
		scroll-snap-align: start;
	}
}

/* ==========================================================================
   "SEE ALL ..." BUTTONS - CENTRED ON PHONES

   These buttons inherit a desktop alignment that makes no sense once the
   column is the whole screen. Measured at 440px, distance from the centre of
   the viewport to the centre of each button:

       SEE ALL PRODUCTS (bestsellers)   -102px
       SEE ALL CATEGORIES                -97px
       SEE ALL PRODUCTS (new products)  +102px
       SEE ALL POSTS                    -116px
       VIEW ALL PRODUCTS                -143px

   One of them sat hard against the right edge while the rest hugged the left,
   so the page had no consistent resting place for its calls to action.

   Centring needs both properties: `text-align` alone does nothing where the
   widget box is itself narrower than the column and positioned by the flex
   parent - `5c3ab11` was a 207px box at x=15 inside a 410px column. So the
   box is centred with `align-self`/`margin-inline`, and the button inside it
   with `text-align`.
   ========================================================================== */

@media (max-width: 767px) {
	.elementor-widget-button {
		align-self: center;
		margin-inline: auto;
		text-align: center;
	}

	.elementor-widget-button .elementor-widget-container,
	.elementor-widget-button .elementor-button-wrapper {
		text-align: center;
	}
}

/* ==========================================================================
   PRODUCT CARD BUTTONS ON PHONES - MATCH "BUY NOW" TO "ADD TO CART"

   In the card, "Add to cart" stretches the full width while "Buy now" is only
   as wide as its label - 107px under a 312px button in English, 100px in
   Arabic - so it hangs off one edge of the card.

   Both languages mirror correctly: measured on a 440px phone, Buy Now sits
   flush to the card's start edge in each (gap 0 on the left in English, 0 on
   the right in Arabic). So this is not a direction bug. It is that a short
   button tucked under a wide one reads as deliberate in English, where the eye
   starts at that edge anyway, and as a misalignment in Arabic, where the label
   is shorter still and the eye starts from the other side. Matching the widths
   removes the question in either direction, and makes the secondary action a
   proper tap target rather than a 100px sliver.

   Keep this to the one declaration. `.ss-buy-now--loop` is `inline-flex`
   inside `.caption-right`, which is itself a flex item sized from its content.
   Switching Buy Now to a block-level flex changes what that column reports as
   its max-content width, and the column collapsed from 312px to 129px, taking
   Add to Cart with it. Trying to pin the column instead (`flex: 1 1 100%`)
   overflowed the other carousel by 110px, because a 100% flex-basis ignores
   the container's padding; `flex: 1 1 0` then let a sibling column claim
   109px. Widening only the button, and leaving its `display` and the column
   alone, is what actually works.
   ========================================================================== */

@media (max-width: 767px) {
	/* Both buttons, not just Buy Now: widening only the secondary one made the
	   pair match in the New Products rail but mismatched in the bestsellers
	   carousel, where the caption column is narrower (Add to Cart 129px against
	   a newly 235px Buy Now). Sizing both to their shared column makes them
	   equal in every product widget, whatever that column happens to be. */
	li.product .caption-right > .button,
	.ss-buy-now--loop {
		width: 100%;
	}
}
