/*
 Theme Name:    Electro Child
 Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
 Description:   This is the child theme of Electro
 Author:        MadrasThemes
 Author URI:    https://madrasthemes.com/
 Template:      electro
 Version:       3.6.8.1
 License:       GNU General Public License v2 or later
 License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 Tags:          light, dark, two-columns, right-sidebar, responsive-layout
 Text Domain:   electro-child
*/

.electro-navigation.row.yes-home {
	justify-content: center;
}

.electro-navigation.row.yes-home .secondary-nav-menu {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.electro-navigation.row.yes-home .secondary-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	row-gap: 0.5rem;
}

.header-language-switcher {
	display: flex;
	align-items: center;
	margin-inline-end: 1rem;
}

.header-language-switcher__list {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-language-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	background: #f4f4f4;
	color: #371f5a;
}

.header-language-switcher__item.is-current .header-language-switcher__link {
	background: #371f5a;
	color: #ffffff;
}

/* Ensure header logo displays for all image formats (not only SVG). */
.header-site-branding .img-header-logo,
.header-logo .img-header-logo {
	width: 175px !important;
	height: auto !important;
	max-width: 100%;
	display: block;
}

/* Prevent horizontal scrollbar on Arabic homepage promo row. */
.rtl .elementor-15059 .elementor-element.elementor-element-4eff4ea {
	--overflow: hidden;
	overflow-x: hidden;
}

/* Hide the "Departments" (departments-menu-v2) block that shows as a purple box on the left. */
.electro-navigation .departments-menu-v2,
.categories-list-menu .departments-menu-v2,
.home-vertical-nav.departments-menu-v2 {
	display: none !important;
}

/* Arabic typography */
.rtl body,
html[lang^="ar"] body {
	font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6,
html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3,
html[lang^="ar"] h4, html[lang^="ar"] h5, html[lang^="ar"] h6 {
	font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

/* Footer logo: ensure it has real dimensions even if saved with width=1 height=0. */
.footer-logo img,
.footer-logo .img-footer-logo {
	width: 300px !important;
	height: auto !important;
	max-width: 100%;
	display: block;
}

/* Brands carousel: show widget title and slightly larger logos */
.brands-carousel__header {
	margin-bottom: 0.75rem;
}

.brands-carousel__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #111;
}

.brands-carousel .item {
	height: 160px;
}

.brands-carousel .item figure img {
	max-height: 150px;
	opacity: 0.9;
}

/* Brands carousel: remove top/bottom borders and arrows */
.brands-carousel .owl-brands {
	border-top: 0 !important;
	border-bottom: 0 !important;
	padding: 0.6em 0 !important;
}

.brands-carousel .owl-brands .owl-nav {
	display: none !important;
}

/* Slider Revolution can re-enable horizontal overflow after init in RTL. */
.rtl.page-id-15059 .wp-block-themepunch-revslider,
.rtl.page-id-15059 .wp-block-themepunch-revslider rs-module-wrap,
.rtl.page-id-15059 .wp-block-themepunch-revslider sr7-module,
.rtl.page-id-15059 .wp-block-themepunch-revslider sr7-content {
	overflow-x: hidden !important;
	max-width: 100%;
}
