:root {
	--e-global-typography-primary-font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	--e-global-typography-secondary-font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	--e-global-typography-text-font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	--e-global-typography-accent-font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.havir-elementor-page .site-main,
.havir-elementor-full-width .site-main,
.havir-elementor-canvas .site-main {
	padding-block: 0;
}

.havir-elementor-canvas .site-header,
.havir-elementor-canvas .site-footer,
.havir-elementor-canvas .havir-overlay,
.havir-elementor-canvas .havir-mobile-menu,
.havir-elementor-canvas .havir-mini-cart,
.havir-elementor-canvas .havir-scroll-top,
.havir-elementor-canvas .havir-mobile-bottom-nav,
.havir-elementor-canvas .havir-sticky-cart {
	display: none !important;
}

.havir-elementor-content,
.havir-elementor-content > .elementor,
.havir-elementor-content .elementor,
.havir-elementor-content .elementor-section-wrap,
.havir-elementor-content .e-con,
.elementor-location-single,
.elementor-location-archive,
.havir-elementor-single-product {
	inline-size: 100%;
	max-inline-size: 100%;
	width: 100%;
}

/* Strip any unwanted white card surface, border, and padding on Elementor pages */
.havir-elementor-page .havir-page-content,
.havir-elementor-content .havir-page-content,
.havir-page-content--elementor,
.elementor-page .havir-page-content,
.havir-full-width-template .havir-page-content {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	inline-size: 100% !important;
	max-inline-size: 100% !important;
	width: 100% !important;
}

.havir-elementor-content .elementor-section.elementor-section-boxed > .elementor-container,
.havir-elementor-content .e-con-boxed > .e-con-inner {
	max-inline-size: min(100% - 2rem, 1280px);
}

.havir-elementor-content .elementor-section.elementor-section-stretched {
	inset-inline: auto;
}

/* In Elementor editor mode: prevent sticky header or mobile dock from overlaying editor */
.elementor-editor-active .site-header,
.elementor-editor-active .site-footer,
.havir-elementor-editing .site-header,
.havir-elementor-editing .site-footer {
	position: relative !important;
	z-index: 1 !important;
}

.elementor-editor-active .site-header--sticky,
.havir-elementor-editing .site-header--sticky {
	position: relative !important;
	top: 0 !important;
}

.elementor-editor-active .havir-mobile-bottom-nav,
.elementor-editor-active .havir-sticky-cart,
.elementor-editor-active .havir-scroll-top,
.havir-elementor-editing .havir-mobile-bottom-nav,
.havir-elementor-editing .havir-sticky-cart,
.havir-elementor-editing .havir-scroll-top {
	display: none !important;
}

/* Ensure Elementor editor handles and control icons (+, edit :::, delete x) always render */
.elementor-editor-active .elementor-editor-element-settings,
.elementor-editor-preview .elementor-editor-element-settings,
.havir-elementor-editing .elementor-editor-element-settings {
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.elementor-editor-active .elementor-editor-element-setting,
.elementor-editor-preview .elementor-editor-element-setting,
.havir-elementor-editing .elementor-editor-element-setting {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-editor-active .elementor-editor-element-setting i,
.elementor-editor-preview .elementor-editor-element-setting i,
.havir-elementor-editing .elementor-editor-element-setting i {
	display: inline-block !important;
	font-family: eicons !important;
	visibility: visible !important;
	opacity: 1 !important;
	font-size: 11px !important;
	line-height: 1 !important;
}

.elementor-widget-woocommerce-cart .woocommerce,
.elementor-widget-woocommerce-checkout-page .woocommerce,
.elementor-widget-woocommerce-my-account .woocommerce {
	font-family: inherit;
}

.elementor-widget-container .woocommerce-notices-wrapper {
	margin-block: 0 var(--space-4, 1rem);
}

.elementor-button,
.elementor-widget-button .elementor-button {
	line-height: 1.4;
}

.havir-elementor-header,
.havir-elementor-footer,
.site-header--elementor,
.site-footer--elementor,
.elementor-location-header,
.elementor-location-footer {
	direction: rtl;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	inline-size: 100%;
	max-inline-size: 100%;
	position: relative;
	clear: both;
}

.havir-elementor-header,
.site-header--elementor,
.elementor-location-header {
	z-index: 100;
}

.havir-elementor-footer,
.site-footer--elementor,
.elementor-location-footer {
	z-index: 10;
}



/* ==========================================================================
   WOOCOMMERCE PRODUCT GRIDS INSIDE ELEMENTOR & HOMEPAGE
   Prevents products from stretching into 1-column 100% width strips
   ========================================================================== */
.havir-elementor-content ul.products,
.elementor-widget-shortcode ul.products,
.elementor ul.products,
.woocommerce ul.products,
ul.products:not(.havir-product-carousel) {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px !important;
	margin: 0 0 24px 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	clear: both !important;
	float: none !important;
}

.havir-elementor-content ul.products::before,
.havir-elementor-content ul.products::after,
.elementor ul.products::before,
.elementor ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.havir-elementor-content ul.products li.product,
.elementor-widget-shortcode ul.products li.product,
.elementor ul.products li.product,
.woocommerce ul.products li.product,
ul.products li.product {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	box-sizing: border-box !important;
}

/* Specific column overrides for WooCommerce & Elementor products (Scoped to Desktop) */
@media (min-width: 1025px) {
	.havir-elementor-content ul.products.columns-6,
	.elementor ul.products.columns-6,
	.woocommerce ul.products.columns-6,
	.elementor-grid-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	}

	.havir-elementor-content ul.products.columns-5,
	.elementor ul.products.columns-5,
	.woocommerce ul.products.columns-5,
	.elementor-grid-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	}

	.havir-elementor-content ul.products.columns-4,
	.elementor ul.products.columns-4,
	.woocommerce ul.products.columns-4,
	.woocommerce.columns-4 ul.products,
	ul.products.columns-4,
	.elementor-grid-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}

	.havir-elementor-content ul.products.columns-3,
	.elementor ul.products.columns-3,
	.woocommerce ul.products.columns-3,
	.woocommerce.columns-3 ul.products,
	ul.products.columns-3,
	.elementor-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.havir-elementor-content ul.products.columns-2,
	.elementor ul.products.columns-2,
	.woocommerce ul.products.columns-2,
	.woocommerce.columns-2 ul.products,
	ul.products.columns-2,
	.elementor-grid-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.havir-elementor-content ul.products.columns-1,
	.elementor ul.products.columns-1,
	.woocommerce ul.products.columns-1,
	.elementor-grid-1 {
		grid-template-columns: 1fr !important;
	}
}

/* Tablet Responsive grid (3 columns) */
@media (min-width: 768px) and (max-width: 1024px) {
	.havir-elementor-content ul.products,
	.havir-elementor-content ul.products[class*='columns-'],
	.elementor-widget-shortcode ul.products,
	.elementor-widget-shortcode ul.products[class*='columns-'],
	.elementor ul.products,
	.elementor ul.products[class*='columns-'],
	.woocommerce ul.products,
	.woocommerce ul.products[class*='columns-'],
	.woocommerce [class*='columns-'] ul.products,
	ul.products[class*='columns-'],
	ul.products:not(.havir-product-carousel),
	.elementor-grid-4,
	.elementor-grid-5,
	.elementor-grid-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
}

/* Mobile Responsive grid: strictly 2 columns */
@media (max-width: 767px) {
	.havir-elementor-content ul.products,
	.havir-elementor-content ul.products[class*='columns-'],
	.elementor-widget-shortcode ul.products,
	.elementor-widget-shortcode ul.products[class*='columns-'],
	.elementor ul.products,
	.elementor ul.products[class*='columns-'],
	.woocommerce ul.products,
	.woocommerce ul.products[class*='columns-'],
	.woocommerce [class*='columns-'] ul.products,
	ul.products,
	ul.products[class*='columns-'],
	ul.products:not(.havir-product-carousel),
	.products[class*='columns-'],
	.elementor-grid-3,
	.elementor-grid-4,
	.elementor-grid-5,
	.elementor-grid-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	.havir-elementor-content ul.products li.product,
	.elementor-widget-shortcode ul.products li.product,
	.elementor ul.products li.product,
	.woocommerce ul.products li.product,
	ul.products li.product {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		margin: 0 !important;
	}
}

@media (max-width: 380px) {
	.havir-elementor-content ul.products,
	.havir-elementor-content ul.products[class*='columns-'],
	.elementor-widget-shortcode ul.products,
	.elementor-widget-shortcode ul.products[class*='columns-'],
	.elementor ul.products,
	.elementor ul.products[class*='columns-'],
	.woocommerce ul.products,
	.woocommerce ul.products[class*='columns-'],
	ul.products,
	ul.products[class*='columns-'],
	ul.products:not(.havir-product-carousel) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}
}

/* Category cards inside Elementor columns */
.elementor-widget-image-box .elementor-image-box-wrapper {
	text-align: center;
}

.elementor-widget-image-box .elementor-image-box-img {
	margin-bottom: 12px;
	border-radius: 14px;
	overflow: hidden;
}

.elementor-widget-image-box .elementor-image-box-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.35s ease;
	display: block;
}

.elementor-widget-image-box:hover .elementor-image-box-img img {
	transform: scale(1.05);
}

.elementor-widget-image-box .elementor-image-box-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.elementor-widget-image-box .elementor-image-box-description {
	font-size: 12px;
	color: #64748b;
	line-height: 1.6;
}

/* Icon-boxes inside Elementor */
.elementor-widget-icon-box .elementor-icon-box-icon {
	margin-bottom: 10px;
}

.elementor-widget-icon-box .elementor-icon-box-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.elementor-widget-icon-box .elementor-icon-box-description {
	font-size: 12px;
	color: #64748b;
	line-height: 1.6;
}

/* ==========================================================================
   FULL-WIDTH HERO BANNER
   --------------------------------------------------------------------------
   `.havir-hero-banner` is stamped server-side by
   havir_elementor_mark_hero_section() on the first top-level section of the
   Elementor front page. Anchoring on that single class (instead of long
   `:first-child` descendant chains) keeps the banner full-bleed across
   Elementor 3.x sections and 3.20+ flexbox containers alike.
   ========================================================================== */

/* --- Banner surface ------------------------------------------------------ */
/* NOTE: .havir-hero-banner must not be clipped by any ancestor — the full-bleed
   escape below relies on overflowing its container. An `overflow-x: clip` on
   .havir-elementor-content silently crops the banner back to the content
   width, which is exactly the "small, non-full-width banner" bug. */
.havir-hero-banner {
	position: relative !important;
	isolation: isolate;
	display: flex !important;
	align-items: center !important;
	box-sizing: border-box;

	/* Escape any container/page gutter so the banner is truly edge-to-edge.
	   The negative inline margin pulls the section out to the viewport edges. */
	inline-size: 100vw !important;
	width: 100vw !important;
	max-inline-size: 100vw !important;
	max-width: 100vw !important;
	margin-inline: calc(50% - 50vw) !important;

	min-block-size: clamp(420px, 56vh, 620px) !important;
	padding-block: clamp(48px, 6vw, 80px) !important;
	padding-inline: clamp(16px, 4vw, 40px) !important;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden !important;
	border-radius: 0 !important;
}

/* Fallback default background ONLY when no custom background image is applied */
.havir-hero-banner:not(.has-custom-bg):not([style*="background"]):not([data-settings*="background"]) {
	background-color: #0b1220;
	background-image: url('../images/lumia-hero-banner.webp');
}

/* Elementor image widget aspect ratio and dimension boundaries */
.elementor-image-box-img,
.elementor-widget-image .elementor-image {
	display: block;
	width: 100%;
	overflow: hidden;
}

.elementor-image-box-img img,
.elementor-widget-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* `100vw` includes the classic scrollbar gutter, so the full-bleed escape can
   overshoot the viewport by a few px and introduce a horizontal scrollbar.
   Absorb it on <html> — NOT on an ancestor of the hero, which would clip the
   banner, and not on <body>, which would break sticky headers. The
   `havir-elementor-hero-page` class on <html> is emitted server-side by
   havir_elementor_html_attributes(), so this needs no `:has()` support. */
html.havir-elementor-hero-page {
	overflow-x: hidden;
}

/* Layered scrim: only for default vector artwork so white demo text stays legible.
   Automatically hidden when user sets a custom background so their photo and artwork are crisp. */
.havir-hero-banner:not(.has-custom-bg):not([style*="background"]):not([data-settings*="background"])::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to left, rgba(6, 10, 20, 0.92) 0%, rgba(6, 10, 20, 0.74) 38%, rgba(6, 10, 20, 0.18) 72%, rgba(6, 10, 20, 0.05) 100%),
		linear-gradient(to top, rgba(6, 10, 20, 0.55) 0%, rgba(6, 10, 20, 0) 55%);
}

.havir-hero-banner.has-custom-bg::before,
.havir-hero-banner[data-settings*="background"]::before,
.havir-hero-banner[style*="background"]::before {
	display: none !important;
}

/* --- Inner container ----------------------------------------------------- */
.havir-hero-banner > .elementor-container,
.havir-hero-banner > .e-con-inner,
.havir-hero-banner > .e-con-inner:first-child {
	position: relative !important;
	z-index: 2 !important;
	max-inline-size: min(100%, 1320px) !important;
	inline-size: 100% !important;
	margin-inline: auto !important;
	padding-inline: 0 !important;
}

/* Collapse any leftover multi-column split so text gets the full measure. */
.havir-hero-banner .elementor-column,
.havir-hero-banner .e-con.e-flex {
	inline-size: 100% !important;
	max-inline-size: 100% !important;
}

/* Legacy small-thumbnail column: hide it, the artwork is the background now. */
.havir-hero-banner > .elementor-container > .elementor-column:last-child:not(:first-child),
.havir-hero-banner > .e-con-inner > .e-con:last-child:not(:first-child) {
	display: none !important;
}

/* --- Typography ---------------------------------------------------------- */
.havir-hero-banner h1.elementor-heading-title,
.havir-hero-banner h2.elementor-heading-title,
.havir-hero-banner .elementor-heading-title {
	color: #ffffff !important;
	font-size: clamp(1.8rem, 3.1vw, 2.6rem) !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55) !important;
	margin-block: 0 14px !important;
}

.havir-hero-banner p {
	color: #e2e8f0 !important;
	font-size: clamp(13.5px, 1.15vw, 16px) !important;
	line-height: 2 !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
	max-inline-size: 620px;
	margin-block: 0 26px !important;
}

/* --- Eyebrow pill -------------------------------------------------------- */
.havir-hero-banner .havir-hero-eyebrow,
.havir-hero-banner .elementor-widget-text-editor:first-child div {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 8px 18px !important;
	background: rgba(225, 29, 72, 0.18) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fb7185 !important;
	border: 1px solid rgba(251, 113, 133, 0.35) !important;
	border-radius: 30px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	margin-block-end: 14px !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

/* --- Buttons ------------------------------------------------------------- */
.havir-hero-banner .havir-hero-buttons {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 14px !important;
	align-items: center !important;
	margin-block-end: 26px !important;
}

.havir-hero-banner .havir-hero-buttons a {
	border-radius: 14px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}

.havir-hero-banner .havir-hero-buttons a:hover {
	transform: translateY(-2px) !important;
}

.havir-hero-banner .btn-sale,
.havir-hero-banner a[href*="on_sale"] {
	background: rgba(255, 255, 255, 0.12) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.havir-hero-banner .btn-sale:hover,
.havir-hero-banner a[href*="on_sale"]:hover {
	background: rgba(255, 255, 255, 0.22) !important;
	border-color: rgba(255, 255, 255, 0.5) !important;
	color: #ffffff !important;
}

/* --- Trust row ----------------------------------------------------------- */
.havir-hero-banner .havir-hero-trust {
	color: #cbd5e1 !important;
	font-weight: 600;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
	.havir-hero-banner {
		min-block-size: clamp(360px, 52vh, 460px) !important;
	}
}

@media (max-width: 768px) {
	.havir-hero-banner {
		min-block-size: auto !important;
		padding-block: 44px 34px !important;
		background-position: 62% center;
	}

	.havir-hero-banner:not(.has-custom-bg):not([style*="background"]):not([data-settings*="background"])::before {
		background:
			linear-gradient(to top, rgba(6, 10, 20, 0.95) 0%, rgba(6, 10, 20, 0.88) 55%, rgba(6, 10, 20, 0.72) 100%) !important;
	}

	.havir-hero-banner .havir-hero-buttons a {
		flex: 1 1 auto;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.havir-hero-banner .havir-hero-buttons a {
		width: 100%;
	}
}

/* ==========================================================================
   ELEMENTOR CORE WIDGETS & MODAL ENHANCEMENTS
   ========================================================================== */

/* Template library, lightbox and dialog z-index guarantee */
.elementor-templates-modal,
.dialog-widget-content,
.elementor-lightbox,
.dialog-type-lightbox {
	z-index: 1000001 !important;
}

/* RTL Icon List alignment */
.rtl .elementor-icon-list-icon {
	margin-inline-end: 8px !important;
	margin-inline-start: 0 !important;
}

/* RTL Star Rating alignment */
.rtl .elementor-star-rating {
	direction: ltr;
	display: inline-flex;
}

/* Responsive Embeds & Videos */
.elementor-widget-video .elementor-video-wrapper,
.elementor-fit-aspect-ratio iframe {
	border-radius: 12px;
	overflow: hidden;
}

/* Form inputs inside Elementor */
.elementor-field-group input:not([type="button"]):not([type="submit"]):not([type="reset"]),
.elementor-field-group textarea,
.elementor-field-group select {
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
	border-radius: 8px !important;
}

/* Hero banner motion-effects layer override to ensure optimized WebP banner is used */
.havir-hero-banner .elementor-motion-effects-container > .elementor-motion-effects-layer,
.havir-hero-banner > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-section.havir-hero-banner .elementor-motion-effects-layer {
	background-image: inherit !important;
	background-size: cover !important;
	background-position: center center !important;
}

/* Font display swap for Elementor icon sets */
@font-face {
	font-family: 'Font Awesome 5 Free';
	font-display: swap;
}
@font-face {
	font-family: 'FontAwesome';
	font-display: swap;
}



