/* === tokens.css === */
:root {
	/* CLIENT-PALETTE-WARM-01 — cream / mocha home & kitchen */
	--lihome-bg: #E8DFD3;
	--lihome-surface: #FAF6EF;
	/* CARD-CONTRAST-30 — ۴ سطح: صفحه → ریل → کارت → تصویر */
	--lihome-surface-rail: #EFE7DC;
	--lihome-surface-card: #FFFFFF;
	/* LAYOUT-CANVAS-01 — default canvas = site bg; home overrides to surface */
	--lihome-canvas: var(--lihome-bg);
	/* CONTAINER-ALIGN-34 — یک سیستم gutter برای hero/category/rail/footer */
	--lihome-container-max: 1280px;
	--lihome-gutter: 16px;
	--lihome-rail-peek: 12px;
	--lihome-home-gutter: var(--lihome-gutter);
	--lihome-text: #2D2A26;
	--lihome-text-muted: #6B6560;
	--lihome-primary: #8B6F47;
	--lihome-primary-hover: #735A38;
	--lihome-accent: #B87333;
	--lihome-accent-soft: #E8D5C4;
	/* Logo-aligned brand purple — luxury · creativity · premium */
	--lihome-brand: #7B4FB8;
	--lihome-brand-hover: #6842A0;
	--lihome-brand-soft: #EDE6F7;
	--lihome-brand-light: #C9A8E8;
	--lihome-brand-muted: #9B7AC4;
	--lihome-brand-glow: rgba(123, 79, 184, 0.22);
	--lihome-kicker: var(--lihome-brand);
	--lihome-border: #DDD4C8;
	--lihome-success: #3D7A5A;
	--lihome-danger: #C44B4B;
	--lihome-footer-bg: #2D2A26;
	--lihome-footer-text: #FAF7F2;
	--lihome-footer-surface: #F0EBE4;
	--lihome-footer-muted: #8A847C;
	--lihome-glass-bg: rgba(255, 255, 255, 0.72);
	--lihome-glass-border: rgba(229, 223, 214, 0.9);

	--lihome-radius-sm: 8px;
	--lihome-radius-md: 12px;
	--lihome-radius-lg: 20px;
	--lihome-shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
	--lihome-shadow-md: 0 4px 20px rgba(45, 42, 38, 0.08);
	--lihome-shadow-lg: 0 12px 40px rgba(45, 42, 38, 0.12);
	--lihome-shadow-hover: 0 8px 30px rgba(45, 42, 38, 0.14);

	--lihome-space-xs: 4px;
	--lihome-space-sm: 8px;
	--lihome-space-compact: 12px;
	--lihome-space-md: 16px;
	--lihome-space-roomy: 20px;
	--lihome-space-lg: 24px;
	--lihome-space-xl: 40px;
	--lihome-space-2xl: 56px;
	--lihome-space-3xl: 64px;
	--lihome-space-section: 32px;

	/* Semantic spacing (DS-01) */
	--lihome-gap-tight: var(--lihome-space-sm);
	--lihome-gap-inline: var(--lihome-space-compact);
	--lihome-gap-stack: var(--lihome-space-md);
	--lihome-gap-grid: var(--lihome-space-roomy);
	--lihome-gap-section: var(--lihome-space-lg);
	--lihome-gap-block: var(--lihome-space-xl);
	--lihome-padding-card: var(--lihome-space-compact) var(--lihome-space-md);
	--lihome-padding-section-box: var(--lihome-space-roomy) var(--lihome-space-md) var(--lihome-space-lg);
	--lihome-section-margin-y: var(--lihome-space-3xl) auto var(--lihome-space-xl);

	--lihome-type-lead: clamp(1rem, 1.6vw, 1.125rem);
	--lihome-type-title: clamp(1.15rem, 2.2vw, 1.5rem);
	--lihome-type-hero: clamp(1.35rem, 3.2vw, 2.15rem);

	--lihome-focus-color: var(--lihome-primary);
	--lihome-focus-halo: 0 0 0 2px var(--lihome-surface), 0 0 0 4px var(--lihome-focus-color);

	/* Bridge to DinaKala Redux vars */
	--dina-custom-color: var(--lihome-primary);
	--dina-add-btn-color: var(--lihome-primary);
	--dina-copy-bg-color: var(--lihome-footer-bg);
	--dina-copy-text-color: var(--lihome-footer-text);
}

body.lihome-theme {
	background-color: var(--lihome-canvas, var(--lihome-bg)) !important;
	background-image: none !important;
	color: var(--lihome-text);
	font-size: 16px;
	/* Override parent Redux green ATC token */
	--dina-add-btn-color: var(--lihome-primary);
}

/*
 * LAYOUT-CANVAS-01 — homepage: canvas ≈ surface so beige side gutters disappear.
 * Shop/PDP keep default --lihome-canvas (= --lihome-bg).
 */
body.lihome-theme.home,
body.lihome-theme.lihome-home-fullwidth {
	--lihome-canvas: var(--lihome-surface);
}

@media (max-width: 767px) {
	:root {
		--lihome-gutter: 12px;
		--lihome-rail-peek: 10px;
		--lihome-home-gutter: var(--lihome-gutter);
	}
}

/* A11Y-01 — keyboard focus ring (mouse clicks keep clean outline) */
body.lihome-theme :focus:not(:focus-visible) {
	outline: none;
}

body.lihome-theme :focus-visible {
	outline: 2px solid var(--lihome-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* A11Y-03 — skip navigation link */
.lihome-skip-link {
	position: fixed;
	top: -120px;
	inset-inline-start: 1rem;
	z-index: 100000;
	padding: 0.65rem 1rem;
	background: var(--lihome-primary);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--lihome-radius-sm);
	box-shadow: var(--lihome-shadow-md);
	transition: top 0.15s ease;
}

.lihome-skip-link:focus,
.lihome-skip-link:focus-visible {
	top: 1rem;
}

.lihome-skip-target:focus {
	outline: none;
}

/* Visually hidden — screen readers only */
.lihome-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* DS-001 — dark tokens SoT is assets/dark-mode.css (concatenated after this file). */

/* === focus-states.css === */
/**
 * DR-38 — contextual focus rings (extends A11Y-01 global :focus-visible).
 */

body.lihome-theme {
	--lihome-focus-color: var(--lihome-primary);
	--lihome-focus-halo: 0 0 0 2px var(--lihome-surface), 0 0 0 4px var(--lihome-focus-color);
}

.lihome-btn:focus-visible {
	outline: none;
	box-shadow: var(--lihome-focus-halo);
}

.lihome-hero-overlay .lihome-btn:focus-visible {
	--lihome-focus-color: var(--lihome-accent-soft);
	box-shadow: 0 0 0 2px rgba(45, 42, 38, 0.65), 0 0 0 4px var(--lihome-accent-soft);
}

.lihome-category-card:focus-visible {
	outline: 2px solid var(--lihome-primary);
	outline-offset: 3px;
	box-shadow: var(--lihome-shadow-hover);
}

.lihome-theme .main-navigation a:focus-visible,
.lihome-theme .dina-main-menu > li > a:focus-visible,
.lihome-theme header.site-header a:focus-visible {
	outline: 2px solid var(--lihome-primary);
	outline-offset: 3px;
	border-radius: var(--lihome-radius-sm);
}

body.lihome-theme .dina-slider .owl-dot:focus-visible span {
	box-shadow: 0 0 0 2px var(--lihome-surface), 0 0 0 4px var(--lihome-primary);
}

.lihome-theme footer .return-top-two:focus-visible {
	outline: 2px solid var(--lihome-accent-soft);
	outline-offset: 3px;
	border-radius: var(--lihome-radius-sm);
}

.lihome-blog-card:focus-within {
	outline: 2px solid var(--lihome-primary);
	outline-offset: 3px;
	border-radius: var(--lihome-radius-md);
}

.lihome-theme .woocommerce form .input-text:focus-visible,
.lihome-theme input[type="text"]:focus-visible,
.lihome-theme input[type="email"]:focus-visible,
.lihome-theme input[type="tel"]:focus-visible,
.lihome-theme input[type="search"]:focus-visible,
.lihome-theme input[type="number"]:focus-visible,
.lihome-theme input[type="password"]:focus-visible,
.lihome-theme select:focus-visible,
.lihome-theme textarea:focus-visible {
	outline: 2px solid var(--lihome-primary);
	outline-offset: 0;
	border-color: var(--lihome-primary);
}

.lihome-theme a.button:focus-visible,
.lihome-theme .btn-buy:focus-visible,
.lihome-theme .add_to_cart_button:focus-visible {
	outline: none;
	box-shadow: var(--lihome-focus-halo);
}

@media (prefers-contrast: more) {
	body.lihome-theme {
		--lihome-focus-color: #2d4a1f;
	}

	body.lihome-theme :focus-visible {
		outline-width: 3px;
	}
}

/* === motion-tokens.css === */
/**
 * Motion design tokens — LI Home child theme.
 */
:root {
	--lihome-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--lihome-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--lihome-duration-fast: 180ms;
	--lihome-duration-base: 320ms;
	--lihome-duration-slow: 560ms;
	--lihome-duration-hero: 14s;
	--lihome-stagger-step: 70ms;
}

@keyframes lihome-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes lihome-fade-in-scale {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes lihome-hero-ken-burns {
	from {
		transform: scale(1) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.05) translate3d(-0.8%, 0.3%, 0);
	}
}

@media (max-width: 991px) {
	@keyframes lihome-hero-ken-burns {
		from {
			transform: scale(1) translate3d(0, 0, 0);
		}
		to {
			transform: scale(1.03) translate3d(-0.4%, 0.2%, 0);
		}
	}
}

@keyframes lihome-dot-progress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@keyframes lihome-shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

/* === typography.css === */
/**
 * DR-06/DR-07 — Typography scale (Design System §4).
 */
:root {
	--lihome-space-1: 4px;
	--lihome-space-2: 8px;
	--lihome-space-3: 12px;
	--lihome-space-4: 16px;
	--lihome-space-5: 24px;
	--lihome-space-6: 32px;
	--lihome-space-7: 48px;
	--lihome-space-8: 64px;

	--lihome-font-body: dana, IRANYekanWeb, Tahoma, Arial, sans-serif;
	--lihome-text-base: 1rem;
	--lihome-leading-body: 1.7;
}

body.lihome-theme,
body.lihome-theme button,
body.lihome-theme input,
body.lihome-theme select,
body.lihome-theme textarea {
	font-family: var(--lihome-font-body);
	font-size: var(--lihome-text-base);
	line-height: var(--lihome-leading-body);
}

body.lihome-theme h1,
body.lihome-theme .h1 {
	font-size: clamp(1.75rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
}

body.lihome-theme h2,
body.lihome-theme .block-title-con,
body.lihome-theme .h2 {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
}

body.lihome-theme h3,
body.lihome-theme .h3 {
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	font-weight: 600;
	line-height: 1.35;
}

body.lihome-theme .price,
body.lihome-theme .product-price,
body.lihome-theme .woocommerce-Price-amount {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
}

body.lihome-theme small,
body.lihome-theme .small,
body.lihome-theme .lihome-section-sub {
	font-size: 0.875rem;
	line-height: 1.6;
}

body.lihome-theme .btn,
body.lihome-theme .lihome-btn {
	font-size: 0.95rem;
}

@media (max-width: 767px) {
	body.lihome-theme {
		font-size: 1rem;
	}
}

/* === buttons.css === */
/**
 * Shared CTA buttons — primary / secondary variants.
 * Hero overlay uses white secondary; light surfaces use brand primary outline.
 */

.lihome-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--lihome-radius-md);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lihome-btn-primary {
	background: var(--lihome-success);
	color: #fff;
	border: 2px solid var(--lihome-success);
}

.lihome-btn-primary:hover {
	background: color-mix(in srgb, var(--lihome-success) 78%, #1a1a1a);
	border-color: color-mix(in srgb, var(--lihome-success) 78%, #1a1a1a);
	color: #fff;
}

/* MGR-ATC-SIZE — product ATC uses mocha brand (not hero green primary) */
.lihome-btn-atc,
.lihome-theme .lihome-btn-atc,
.lihome-theme .lihome-loop-add-to-cart {
	background: var(--lihome-primary) !important;
	background-color: var(--lihome-primary) !important;
	color: #fff !important;
	border: 2px solid var(--lihome-primary) !important;
}

.lihome-btn-atc:hover,
.lihome-theme .lihome-btn-atc:hover,
.lihome-theme .lihome-loop-add-to-cart:hover {
	background: var(--lihome-primary-hover) !important;
	background-color: var(--lihome-primary-hover) !important;
	border-color: var(--lihome-primary-hover) !important;
	color: #fff !important;
}

.lihome-btn-secondary {
	background: transparent;
	color: var(--lihome-primary);
	border: 2px solid var(--lihome-primary);
}

.lihome-btn-secondary:hover {
	background: var(--lihome-primary);
	color: #fff;
}

/* Hero scrim — white outline on dark overlay */
.lihome-hero-overlay .lihome-btn-secondary {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
}

.lihome-hero-overlay .lihome-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.lihome-brand-story .lihome-btn-secondary {
	align-self: flex-start;
}

.lihome-blog-all {
	flex-shrink: 0;
}

/* === brand-accent.css === */
/**
 * Brand purple accents — هم‌راستا با لوگوی بنفش ال آی هوم (Palette A+)
 * روانشناسی: لوکس · خلاقیت · کیفیت برتر · اعتماد احساسی
 * قانون: بنفش = هویت برند · سبز = CTA/عمل · مس = گرمایی
 */

/* ── Section titles — خط accent زیر عنوان ── */
.lihome-section-header h2::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 10px auto 0;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		var(--lihome-brand) 0%,
		var(--lihome-brand-muted) 55%,
		var(--lihome-accent) 100%
	);
}

/* ── Category cards — accent premium روی hover ── */
.lihome-category-card {
	position: relative;
}

.lihome-category-card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 3px;
	border-radius: var(--lihome-radius-md) var(--lihome-radius-md) 0 0;
	background: linear-gradient(90deg, var(--lihome-brand), var(--lihome-brand-muted));
	opacity: 0;
	transition: opacity var(--lihome-duration-fast, 180ms) ease;
	pointer-events: none;
	z-index: 1;
}

.lihome-category-card:hover {
	border-color: color-mix(in srgb, var(--lihome-brand) 28%, var(--lihome-border));
}

.lihome-category-card:hover::before {
	opacity: 1;
}

/* ── Trust bar — همه آیتم‌ها بنفش برند (یکدستی با لوگو؛ نه فقط first-child) ── */
.lihome-trust-list .lihome-trust-icon {
	background: linear-gradient(145deg, var(--lihome-brand) 0%, var(--lihome-brand-hover) 100%);
	box-shadow: 0 4px 14px var(--lihome-brand-glow);
}

.lihome-trust-list > li:hover {
	border-color: var(--lihome-brand-soft);
}

/* ── Product rail «مشاهده همه» — لینک برند ── */
.lihome-product-rail-all .lihome-btn-secondary:hover,
.lihome-blog-all .lihome-btn-secondary:hover {
	background: var(--lihome-brand);
	border-color: var(--lihome-brand);
	color: #fff;
}

/* ── Brand story — پس‌زمینه نرم بنفش در گوشه ── */
.lihome-brand-story {
	background:
		linear-gradient(135deg, var(--lihome-brand-soft) 0%, transparent 42%),
		var(--lihome-surface);
}

/* === header.css === */
/**
 * Sticky product search — پیشنهاد ۱ (mobile fixed below header).
 */
@media (max-width: 991px) {
	body.lihome-theme .logo-box .dina-search-con.mobile-search-con,
	body.lihome-theme .logo-box .dina-search-con.cart-mobile-search-con,
	body.lihome-theme .logo-box .dina-search-con {
		z-index: 990;
		background: rgba(250, 246, 239, 0.96);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		padding-block: 8px;
		margin-bottom: 0;
		border-bottom: 1px solid var(--lihome-border);
		box-shadow: 0 4px 16px rgba(45, 42, 38, 0.06);
		transition: box-shadow 0.2s ease, background 0.2s ease;
	}

	body.lihome-theme .logo-box .dina-search-con.is-fixed {
		position: fixed;
		inset-inline: 0;
		top: var(--lihome-sticky-search-top, 0px);
		z-index: 991;
		/* Physical L/R — safe-area on inline-* is wrong in RTL */
		padding-left: max(12px, env(safe-area-inset-left, 0px));
		padding-right: max(12px, env(safe-area-inset-right, 0px));
		box-shadow: var(--lihome-shadow-md);
	}

	body.lihome-theme .logo-box .dina-search-con.is-stuck {
		box-shadow: var(--lihome-shadow-md);
	}

	body.lihome-theme .lihome-sticky-search-spacer {
		display: block;
		height: 0;
		pointer-events: none;
	}

	body.lihome-theme .logo-box .dina-search-con .dina-search-bar,
	body.lihome-theme .logo-box .dina-search-con .search-form {
		margin-bottom: 0;
	}

	body.lihome-theme .logo-box .dina-search-con .dina-search-input,
	body.lihome-theme .logo-box .dina-search-con input[type="search"] {
		background: var(--lihome-surface);
		border-color: var(--lihome-border);
	}
}

/* Desktop search — optional subtle stick below header when scrolled */
@media (min-width: 992px) {
	body.lihome-theme.lihome-sticky-search-active .dina-search-con:not(.mobile-search-con) {
		position: sticky;
		top: var(--lihome-sticky-search-top, 0px);
		z-index: 980;
	}
}

.lihome-theme .dina-sticky-nav.is-scrolled,
.lihome-theme .dina-site-header.scrolled,
.lihome-theme .site-header.sticky,
.lihome-theme header.site-header {
	background: rgba(250, 246, 239, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* === cards.css === */
.lihome-theme .mini-product-con .mini-product,
.lihome-theme .lihome-product-card,
.lihome-theme ul.products li.product {
	background: var(--lihome-surface-card, #fff);
	border: 1px solid var(--lihome-border);
	border-radius: var(--lihome-radius-md);
	box-shadow: var(--lihome-shadow-sm);
	transition:
		box-shadow var(--lihome-duration-base) var(--lihome-ease-out),
		transform var(--lihome-duration-base) var(--lihome-ease-out);
	overflow: hidden;
}

.lihome-theme .mini-product-con .mini-product:hover,
.lihome-theme ul.products li.product:hover {
	box-shadow: var(--lihome-shadow-md);
	transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
	.lihome-theme .mini-product-con .mini-product,
	.lihome-theme ul.products li.product {
		transition: box-shadow var(--lihome-duration-fast) ease;
	}

	.lihome-theme .mini-product-con .mini-product:hover,
	.lihome-theme ul.products li.product:hover {
		transform: none;
	}
}

.lihome-theme .product-title a {
	color: var(--lihome-text);
	font-weight: 600;
}

.lihome-theme .btn-buy,
.lihome-theme .ajax_add_to_cart,
.lihome-theme .add_to_cart_button,
.lihome-theme .lihome-btn-atc,
.lihome-theme .lihome-loop-add-to-cart {
	/* MGR-ATC-SIZE / LAYOUT L2 — brand mocha, not forest green */
	background: var(--lihome-primary) !important;
	background-color: var(--lihome-primary) !important;
	border-color: var(--lihome-primary) !important;
	color: #fff !important;
	border-radius: var(--lihome-radius-md) !important;
	min-height: 44px;
}

.lihome-theme .btn-buy:hover,
.lihome-theme .ajax_add_to_cart:hover,
.lihome-theme .add_to_cart_button:hover,
.lihome-theme .lihome-btn-atc:hover,
.lihome-theme .lihome-loop-add-to-cart:hover {
	background: var(--lihome-primary-hover) !important;
	background-color: var(--lihome-primary-hover) !important;
	border-color: var(--lihome-primary-hover) !important;
	color: #fff !important;
}

.lihome-theme .product-price,
.lihome-theme .price {
	color: var(--lihome-text);
	font-weight: 700;
}

@media (max-width: 767px) {
	body.lihome-theme .mini-product .btn-buy,
	body.lihome-theme .mini-product .btn-buy-fixed,
	body.lihome-theme .mini-product .btn-buy-fixed-mobile,
	body.lihome-theme .mini-product .dina-add-cart-archive,
	body.lihome-theme .mini-product .ajax_add_to_cart {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		position: relative !important;
		display: inline-flex !important;
		width: 100%;
		margin-top: 8px;
	}
}

.lihome-section-sub {
	color: var(--lihome-text-muted);
	font-size: 0.95rem;
	margin-top: -0.5rem;
	margin-bottom: 1.25rem;
}

/* CARD-CONTRAST-30 — shop archive page vs white product cards */
body.lihome-theme.lihome-shop-archive .dina-product-archive-con,
body.lihome-theme.woocommerce-shop .dina-product-archive-con {
	background: var(--lihome-surface-rail, var(--lihome-bg));
	border-radius: var(--lihome-radius-md);
	padding: 8px;
}


/* === loop-atc-loadmore.css === */
/**
 * LOOP-ATC-ICON-01 — Cabsa-style unified cart icon on product cards.
 * LOAD-MORE-01 — style manual load-more (auto infinite scroll disabled in theme-options).
 */

/* Screen-reader helper (WP core may already define .screen-reader-text) */
body.lihome-theme .lihome-loop-atc-icon-only .screen-reader-text,
body.lihome-theme .lihome-loop-atc-labeled .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.lihome-theme a.btn-buy.lihome-loop-atc-icon-only,
body.lihome-theme a.lihome-loop-atc-icon-only,
body.lihome-theme .dina-add-cart-archive a.btn-buy.lihome-loop-atc-icon-only,
body.lihome-theme .lihome-rail-card-actions .lihome-loop-atc-icon-only {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 !important;
	margin: 0;
	border-radius: 50% !important;
	font-size: 0 !important;
	line-height: 1 !important;
	gap: 0 !important;
	text-indent: 0 !important;
	overflow: hidden;
	background: var(--lihome-primary) !important;
	background-color: var(--lihome-primary) !important;
	border: 2px solid var(--lihome-primary) !important;
	color: #fff !important;
	box-shadow: var(--lihome-shadow-sm);
	vertical-align: middle;
}

body.lihome-theme a.btn-buy.lihome-loop-atc-icon-only:hover,
body.lihome-theme a.lihome-loop-atc-icon-only:hover,
body.lihome-theme .dina-add-cart-archive a.btn-buy.lihome-loop-atc-icon-only:hover {
	background: var(--lihome-primary-hover) !important;
	background-color: var(--lihome-primary-hover) !important;
	border-color: var(--lihome-primary-hover) !important;
	color: #fff !important;
}

body.lihome-theme .lihome-loop-atc-icon-only .lihome-loop-cart-glyph,
body.lihome-theme .lihome-loop-atc-icon-only .fal,
body.lihome-theme .lihome-loop-atc-icon-only .fa,
body.lihome-theme .lihome-loop-atc-icon-only i {
	font-size: 1.05rem !important;
	line-height: 1 !important;
	color: #fff !important;
	margin: 0 !important;
	width: auto !important;
	height: auto !important;
}

/* Hide leftover list/text icons from parent variable CTA */
body.lihome-theme .lihome-loop-atc-icon-only .fa-list,
body.lihome-theme .lihome-loop-atc-icon-only .fa-bars {
	display: none !important;
}

/* Fallback: variable buttons without our class (cached HTML) */
@media (max-width: 767px) {
	body.lihome-theme .mini-product a.btn-buy.product_type_variable:not(.lihome-loop-atc-icon-only) {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		min-width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		border-radius: 50% !important;
		font-size: 0 !important;
		overflow: hidden;
	}

	body.lihome-theme .mini-product a.btn-buy.product_type_variable:not(.lihome-loop-atc-icon-only)::before {
		content: "\f07a";
		font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome";
		font-weight: 300;
		font-size: 1.05rem;
		color: #fff;
		speak: never;
	}
}

/* LOAD-MORE-01 — visible, branded manual load control */
body.lihome-theme.woocommerce .load-more,
body.lihome-theme.lihome-shop-archive .load-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: var(--lihome-space-lg) auto var(--lihome-space-xl);
	padding-inline: var(--lihome-home-gutter, 16px);
	text-align: center;
}

body.lihome-theme .load-more .infinite-scroll-request {
	display: none !important; /* only show on active request via infinite-scroll lib */
}

body.lihome-theme #load-more-button,
body.lihome-theme a.load-more-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	min-width: min(280px, 86vw);
	padding: 12px 28px;
	border-radius: var(--lihome-radius-md);
	border: 2px solid var(--lihome-primary) !important;
	background: var(--lihome-surface) !important;
	color: var(--lihome-primary) !important;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
	box-shadow: var(--lihome-shadow-sm);
	transition:
		background var(--lihome-duration-base, 320ms) ease,
		color var(--lihome-duration-base, 320ms) ease,
		border-color var(--lihome-duration-base, 320ms) ease;
}

body.lihome-theme #load-more-button:hover,
body.lihome-theme a.load-more-button:hover {
	background: var(--lihome-primary) !important;
	color: #fff !important;
	border-color: var(--lihome-primary) !important;
}

/* Hide auto-load sentinel spinner when auto is disabled */
body.lihome-theme .ajax-prod:not(.ajax-prod-auto) .infinite-scroll-request {
	display: none !important;
}

/* === footer.css === */
.lihome-theme .site-footer,
.lihome-theme .dina-footer,
.lihome-theme .copy-right,
.lihome-theme footer .copyright {
	background-color: var(--lihome-footer-bg) !important;
	color: var(--lihome-footer-text) !important;
}

.lihome-theme .copy-right a,
.lihome-theme footer .copyright a {
	color: var(--lihome-accent-soft);
}

.lihome-brand-story {
	margin: 48px auto;
	max-width: 1120px;
	padding: 0;
	background: var(--lihome-surface);
	border-radius: var(--lihome-radius-md);
	box-shadow: var(--lihome-shadow-sm);
	overflow: hidden;
	border: 1px solid var(--lihome-border);
}

.lihome-brand-story--has-image {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: stretch;
}

.lihome-brand-story-media {
	position: relative;
	min-height: 280px;
	background: var(--lihome-bg);
}

.lihome-brand-story-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 35% center;
	display: block;
}

.lihome-brand-story-inner {
	text-align: start;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lihome-brand-story-kicker {
	margin: 0 0 10px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--lihome-kicker);
	letter-spacing: 0.02em;
}

.lihome-brand-story h2 {
	margin: 0 0 16px;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	color: var(--lihome-text);
	line-height: 1.45;
}

.lihome-brand-story p {
	margin: 0 0 20px;
	color: var(--lihome-text-muted);
	line-height: 1.8;
	max-width: none;
}

/* ═══════════════════════════════════════════════════════════════
   Enterprise Footer — DinaKala sfooter overrides
   ═══════════════════════════════════════════════════════════════ */

.lihome-theme footer.sfooter {
	background:
		linear-gradient(180deg, var(--lihome-bg) 0%, var(--lihome-footer-surface) 48%, #ebe4db 100%) !important;
	background-attachment: scroll !important;
	margin-top: var(--lihome-space-xl);
	box-shadow: 0 -1px 0 var(--lihome-border), 0 -20px 56px rgba(45, 42, 38, 0.07);
	position: relative;
	overflow: hidden;
}

.lihome-theme footer.sfooter::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--lihome-brand) 0%,
		var(--lihome-primary) 35%,
		var(--lihome-accent) 65%,
		var(--lihome-success) 100%
	);
	opacity: 0.92;
	pointer-events: none;
}

.lihome-theme footer.sfooter::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 100% 0%, rgba(123, 79, 184, 0.07) 0%, transparent 55%),
		radial-gradient(ellipse 60% 40% at 0% 100%, rgba(184, 115, 51, 0.05) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.lihome-theme footer.sfooter > .container {
	position: relative;
	z-index: 1;
}

.lihome-theme footer.sfooter > .container {
	max-width: 1200px;
	padding-inline: 16px;
}

.lihome-theme footer.sfooter > .container > div {
	border-bottom-color: var(--lihome-border) !important;
}

.lihome-theme footer .fwidget-1 .widget_nav_menu,
.lihome-theme footer .fwidget-1 .logo-namad_widget {
	margin-bottom: 0;
}

/* Hide samandehi source after JS merges into licenses column */
.lihome-theme footer .fwidget-1 .logo-namad_widget.lihome-trust-source-hidden {
	display: none !important;
	margin: 0;
	padding: 0;
	border: 0;
}

.lihome-theme footer .return-top.return-top-two {
	background: var(--lihome-surface) !important;
	border: 1px solid var(--lihome-border);
	color: var(--lihome-text) !important;
	font-weight: 600;
	font-size: 0.88rem;
	transition:
		transform var(--lihome-duration-fast) var(--lihome-ease-out),
		box-shadow var(--lihome-duration-fast) ease;
}

.lihome-theme footer .return-top.return-top-two:hover {
	transform: translate(-50%, -2px);
	box-shadow: var(--lihome-shadow-md);
}

/* Stats bar */
.lihome-theme footer .info-bar.row {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--lihome-space-md);
	padding: var(--lihome-space-lg) 0;
	margin-inline: 0 !important;
}

.lihome-theme footer .info-bar > .col,
.lihome-theme footer .info-bar > [class*="col-"] {
	flex: none !important;
	max-width: none !important;
	width: auto !important;
	padding: 0 !important;
}

.lihome-theme footer .dina-info-icon {
	background: var(--lihome-surface);
	border: 1px solid var(--lihome-border);
	border-inline-start: 3px solid var(--lihome-primary);
	border-radius: var(--lihome-radius-md);
	padding: var(--lihome-space-md) var(--lihome-space-sm);
	box-shadow: var(--lihome-shadow-sm);
	transition:
		transform var(--lihome-duration-fast) var(--lihome-ease-out),
		box-shadow var(--lihome-duration-fast) ease,
		border-color var(--lihome-duration-fast) ease;
}

.lihome-theme footer .dina-info-icon:hover {
	transform: translateY(-2px);
	box-shadow: var(--lihome-shadow-md);
}

.lihome-theme footer .dina-info-icon .fal {
	font-size: 1.5rem;
	width: 52px;
	height: 52px;
	border-color: var(--lihome-border) !important;
	color: var(--lihome-primary);
	background: var(--lihome-bg);
}

.lihome-theme footer .dina-info-icon .count-num {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--lihome-text);
}

.lihome-theme footer .dina-info-icon .count-text {
	color: var(--lihome-text-muted);
	font-size: 0.85rem;
}

/* Widget grid — override Bootstrap .row / .col-* inside footer */
.lihome-theme footer .fwidgets.row {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: var(--lihome-space-lg);
	padding: var(--lihome-space-xl) 0 var(--lihome-space-lg);
	margin-inline: 0 !important;
}

.lihome-theme footer .fwidgets > .fwidget,
.lihome-theme footer .fwidgets > [class*="col-"] {
	flex: none !important;
	max-width: none !important;
	width: auto !important;
	padding: 0 !important;
	min-width: 0;
}

.lihome-theme footer .fwidget {
	background: var(--lihome-surface);
	border: 1px solid var(--lihome-border);
	border-radius: var(--lihome-radius-md);
	padding: var(--lihome-space-lg) var(--lihome-space-md);
	box-shadow: var(--lihome-shadow-sm);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	transition:
		transform var(--lihome-duration-fast) var(--lihome-ease-out),
		box-shadow var(--lihome-duration-fast) ease,
		border-color var(--lihome-duration-fast) ease;
}

.lihome-theme footer .fwidget > .widget_nav_menu,
.lihome-theme footer .fwidget > .widget_epay_widget,
.lihome-theme footer .fwidget > .widget_custom_html,
.lihome-theme footer .fwidget > .widget_text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.lihome-theme footer .fwidget::before {
	content: "";
	position: absolute;
	inset-inline: var(--lihome-space-md);
	top: 0;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--lihome-primary), var(--lihome-accent-soft));
	opacity: 0.85;
}

.lihome-theme footer .fwidget:hover {
	transform: translateY(-3px);
	box-shadow: var(--lihome-shadow-md);
	border-color: rgba(92, 107, 74, 0.22);
}

.lihome-theme footer .fwidget-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--lihome-text);
	margin-bottom: var(--lihome-space-md);
	padding-bottom: var(--lihome-space-sm);
	padding-top: 4px;
	border-bottom: none;
	position: relative;
}

.lihome-theme footer .fwidget-title::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--lihome-brand), var(--lihome-primary), var(--lihome-accent));
}

/* Quick links */
.lihome-theme footer .fwidget-1 .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lihome-theme footer .fwidget-1 .menu li {
	margin-bottom: 6px;
}

.lihome-theme footer .fwidget-1 .menu a {
	color: var(--lihome-text-muted);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding-inline: 4px;
	transition: color var(--lihome-duration-fast) ease, padding-inline-start var(--lihome-duration-fast) var(--lihome-ease-out);
}

.lihome-theme footer .fwidget-1 .menu a::before {
	content: "‹";
	margin-inline-end: 6px;
	color: var(--lihome-primary);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--lihome-duration-fast) ease, transform var(--lihome-duration-fast) ease;
}

.lihome-theme footer .fwidget-1 .menu a:hover {
	color: var(--lihome-primary);
	padding-inline-start: 6px;
}

.lihome-theme footer .fwidget-1 .menu a:hover::before {
	opacity: 1;
	transform: translateX(0);
}

/* Trust badges — samandehi (legacy col 1, hidden after merge) */
.lihome-theme footer .logo-namad_widget {
	margin-top: var(--lihome-space-lg);
	padding-top: var(--lihome-space-md);
	border-top: 1px dashed var(--lihome-border);
}

.lihome-theme footer .logo-namad_widget .fwidget-title {
	font-size: 0.9rem;
	border-bottom: none;
	margin-bottom: var(--lihome-space-sm);
	padding-bottom: 0;
}

.lihome-theme footer .namad-row {
	display: flex;
	justify-content: center;
	margin: 0;
}

.lihome-theme footer .namad-img,
.lihome-theme footer .lihome-enamad-img {
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: var(--lihome-radius-sm);
	border: 1px solid var(--lihome-border);
	padding: 6px;
	background: var(--lihome-bg);
	transition: transform var(--lihome-duration-fast) var(--lihome-ease-out), box-shadow var(--lihome-duration-fast) ease;
}

.lihome-theme footer .namad-img:hover,
.lihome-theme footer .lihome-enamad-img:hover {
	transform: scale(1.04);
	box-shadow: var(--lihome-shadow-sm);
}

/* Unified trust grid — licenses column (ساماندهی + e-Namad) */
.lihome-theme footer .fwidget-3 .custom-html-widget,
.lihome-theme footer .lihome-trust-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--lihome-space-lg);
	min-height: 140px;
	padding: var(--lihome-space-sm) 0;
}

.lihome-theme footer .lihome-trust-item {
	flex: 0 0 auto;
}

.lihome-theme footer .lihome-trust-item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: var(--lihome-radius-sm);
	border: 1px solid var(--lihome-border);
	background: var(--lihome-bg);
	transition: transform var(--lihome-duration-fast) var(--lihome-ease-out), box-shadow var(--lihome-duration-fast) ease;
	text-decoration: none;
}

.lihome-theme footer .lihome-trust-item a:hover {
	transform: scale(1.03);
	box-shadow: var(--lihome-shadow-sm);
}

.lihome-theme footer .lihome-trust-item img {
	display: block;
}

/* Bank payment grid — keep sprite dimensions from parent theme */
.lihome-theme footer .b-ul {
	display: grid !important;
	grid-template-columns: repeat(4, 42px);
	justify-content: center;
	gap: 6px;
	width: auto !important;
	max-width: none;
	margin: 0 auto !important;
	float: none !important;
	list-style: none;
	padding: 0;
}

.lihome-theme footer .b-ul li.b-img {
	float: none !important;
	margin: 0 !important;
	width: 42px !important;
	height: 42px !important;
	flex-shrink: 0;
	border-radius: var(--lihome-radius-sm);
	border: 1px solid var(--lihome-border);
	background-color: var(--lihome-surface) !important;
	filter: grayscale(0.25);
	opacity: 0.95;
	transition:
		filter var(--lihome-duration-base) ease,
		opacity var(--lihome-duration-base) ease,
		transform var(--lihome-duration-fast) var(--lihome-ease-out);
}

.lihome-theme footer .b-ul li.b-img:hover {
	filter: grayscale(0);
	opacity: 1;
	transform: translateY(-2px);
}

/* Contact strip */
.lihome-theme footer .footer-addr {
	padding: var(--lihome-space-lg) 0 !important;
}

.lihome-theme footer .footer-addr .addr-con.row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-inline: 0 !important;
	gap: var(--lihome-space-md);
	background: var(--lihome-glass-bg);
	border: 1px solid var(--lihome-glass-border);
	border-radius: var(--lihome-radius-md);
	padding: var(--lihome-space-md) var(--lihome-space-lg);
	box-shadow: var(--lihome-shadow-sm);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lihome-theme footer .footer-addr .addr-con > [class*="col-"] {
	flex: 1 1 280px;
	max-width: 100% !important;
	width: auto !important;
	padding: 0 !important;
}

.lihome-theme footer .addr-text {
	line-height: 1.7 !important;
	color: var(--lihome-text-muted);
	font-size: 0.92rem;
	padding: 0 !important;
}

.lihome-theme footer .addr-text .fal {
	color: var(--lihome-primary);
	margin-inline-end: 8px;
}

.lihome-theme footer .ftel {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lihome-space-md);
	justify-content: flex-end !important;
	padding: 0 !important;
}

.lihome-theme footer .ftel a {
	text-decoration: none;
}

.lihome-theme footer .foot-tel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--lihome-surface);
	border: 1px solid var(--lihome-border);
	color: var(--lihome-text) !important;
	font-weight: 600;
	transition:
		background var(--lihome-duration-fast) ease,
		border-color var(--lihome-duration-fast) ease,
		transform var(--lihome-duration-fast) var(--lihome-ease-out);
}

.lihome-theme footer .foot-tel:hover {
	background: var(--lihome-bg);
	border-color: var(--lihome-primary);
	transform: translateY(-1px);
}

.lihome-theme footer .foot-tel .fal {
	color: var(--lihome-success);
}

/* About section — editorial */
.lihome-theme footer .footer-section-text {
	padding: var(--lihome-space-xl) 0 var(--lihome-space-lg) !important;
	margin-top: var(--lihome-space-lg);
	border-top: 1px solid var(--lihome-border);
	position: relative;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 100%);
	border-radius: var(--lihome-radius-md);
}

.lihome-theme footer .footer-text-title h3 {
	font-size: var(--lihome-type-title);
	color: var(--lihome-text);
	margin-bottom: var(--lihome-space-md);
	text-align: start;
	position: relative;
	padding-inline-start: 14px;
}

.lihome-theme footer .footer-text-title h3::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 4px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--lihome-primary), var(--lihome-accent));
}

.lihome-theme footer .footer-text .dina-more-less-content,
.lihome-theme footer .footer-section-text .footer-text {
	max-width: 72ch;
	margin-inline: 0;
	text-align: start;
	color: var(--lihome-text-muted);
	line-height: 1.9;
	font-size: 0.95rem;
}

.lihome-theme footer .footer-text .dina-more-less-content p:first-child {
	font-size: 1.08rem;
	color: var(--lihome-text);
	font-weight: 600;
	line-height: 1.75;
	padding: var(--lihome-space-md);
	margin-bottom: var(--lihome-space-md);
	border-inline-start: 3px solid var(--lihome-accent-soft);
	border-radius: 0 var(--lihome-radius-sm) var(--lihome-radius-sm) 0;
	background: rgba(255, 255, 255, 0.72);
}

.lihome-theme footer .footer-section-text.row {
	display: block !important;
	margin-inline: 0 !important;
}

.lihome-theme footer .footer-section-text > [class*="col-"] {
	flex: none !important;
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
}

.lihome-theme footer .footer-text.lihome-about-expanded,
.lihome-theme footer .footer-less.dina-more-less.lihome-about-expanded,
.lihome-theme footer .footer-section-text .footer-text {
	max-height: none !important;
	height: auto !important;
	overflow: visible !important;
}

.lihome-theme footer .showmore-button,
.lihome-theme footer .showmore-wrap.lihome-about-wrap-expanded .showmore-button,
.lihome-theme footer .showmore-wrap:has(.lihome-about-expanded) .showmore-button {
	display: none !important;
}

/* Phase 2 — section order + open cards on mobile */
.lihome-theme footer.sfooter.lihome-footer-phase2 > .container {
	display: flex;
	flex-direction: column;
}

.lihome-theme footer.lihome-footer-phase2 .return-top-two {
	order: 0;
}

.lihome-theme footer.lihome-footer-phase2 .lihome-footer-trust-strip {
	order: 1;
}

.lihome-theme footer.lihome-footer-phase2 .info-bar.row {
	order: 2;
}

.lihome-theme footer.lihome-footer-phase2 .footer-addr {
	order: 2;
}

.lihome-theme footer.lihome-footer-phase2 .fwidgets {
	order: 3;
}

.lihome-theme footer.lihome-footer-phase2 .footer-section-text {
	order: 4;
}

.lihome-theme footer .lihome-about-more-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--lihome-space-sm);
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--lihome-border);
	background: var(--lihome-bg);
	color: var(--lihome-primary);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition:
		background var(--lihome-duration-fast) ease,
		border-color var(--lihome-duration-fast) ease;
}

.lihome-theme footer .lihome-about-more-link:hover {
	background: var(--lihome-surface);
	border-color: var(--lihome-primary);
}

body.lihome-theme.home footer.sfooter.lihome-footer-compact {
	margin-top: var(--lihome-space-md);
}

.lihome-theme footer.sfooter.lihome-footer-compact {
	margin-top: var(--lihome-space-lg);
}

/* Copyright + social — premium closing band */
.lihome-theme .container-fluid.copyright {
	background: linear-gradient(135deg, #2d2a26 0%, #3d3832 48%, #2d2a26 100%) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: var(--lihome-space-md) 0 calc(var(--lihome-space-md) + env(safe-area-inset-bottom, 0px));
	margin-top: 0;
}

.lihome-theme .container-fluid.copyright .container > .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--lihome-space-md);
}

.lihome-theme .container-fluid.copyright .copy-text {
	color: rgba(250, 247, 242, 0.92) !important;
	font-size: 0.88rem;
	line-height: 1.65;
	text-align: center;
	flex: 1 1 100%;
	width: 100%;
}

.lihome-theme .container-fluid.copyright .copy-text a {
	color: var(--lihome-accent-soft) !important;
	text-decoration: none;
}

.lihome-theme .container-fluid.copyright .social-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.lihome-theme .container-fluid.copyright .footer-social-circle a,
.lihome-theme .container-fluid.copyright .footer-social-square a {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	color: #faf7f2 !important;
	margin: 0 4px !important;
	transition:
		background var(--lihome-duration-fast) ease,
		transform var(--lihome-duration-fast) var(--lihome-ease-out),
		border-color var(--lihome-duration-fast) ease;
}

.lihome-theme .container-fluid.copyright .footer-social-circle a:hover,
.lihome-theme .container-fluid.copyright .footer-social-square a:hover {
	background: var(--lihome-primary) !important;
	border-color: var(--lihome-primary) !important;
	transform: translateY(-2px);
	color: #fff !important;
}

/* Dark mode footer */
body.lihome-theme.dina-dark footer.sfooter {
	background: linear-gradient(180deg, var(--lihome-bg) 0%, var(--lihome-surface) 100%) !important;
}

body.lihome-theme.dina-dark footer .fwidget,
body.lihome-theme.dina-dark footer .dina-info-icon,
body.lihome-theme.dina-dark footer .footer-addr .addr-con,
body.lihome-theme.dina-dark footer .foot-tel {
	background: var(--lihome-surface);
	border-color: var(--lihome-border);
}

@media (max-width: 767px) {
	.lihome-brand-story {
		margin: var(--lihome-space-lg) auto;
	}

	.lihome-brand-story--has-image {
		grid-template-columns: 1fr;
	}

	.lihome-brand-story-media {
		min-height: 200px;
		max-height: 220px;
	}

	.lihome-brand-story-inner {
		text-align: center;
		padding: 24px 20px;
	}

	.lihome-brand-story .lihome-btn-secondary {
		align-self: center;
	}

	/* Stats duplicate homepage trust bar — hide on mobile footer */
	.lihome-theme footer.lihome-footer-phase2 .info-bar.row {
		display: none !important;
	}

	.lihome-theme footer .info-bar.row {
		grid-template-columns: 1fr;
		gap: var(--lihome-space-sm);
	}

	.lihome-theme footer.lihome-footer-phase2 > .container {
		padding-inline: 12px;
		gap: var(--lihome-space-sm);
	}

	.lihome-theme footer .fwidgets.row {
		grid-template-columns: 1fr !important;
		gap: var(--lihome-space-sm);
		padding: 0;
	}

	.lihome-theme footer .fwidget {
		padding: var(--lihome-space-md) var(--lihome-space-sm);
		transform: none !important;
	}

	.lihome-theme footer .fwidget:hover {
		transform: none;
		box-shadow: var(--lihome-shadow-sm);
		border-color: var(--lihome-border);
	}

	.lihome-theme footer .fwidget-title {
		margin-bottom: var(--lihome-space-sm);
		font-size: 0.95rem;
	}

	.lihome-theme footer .fwidget-title::after {
		width: 32px;
		height: 2px;
		margin-top: 6px;
	}

	.lihome-theme footer .fwidget::before {
		inset-inline: var(--lihome-space-sm);
		height: 2px;
	}

	.lihome-theme footer .footer-addr {
		padding: 0 !important;
	}

	.lihome-theme footer .ftel {
		justify-content: stretch !important;
		flex-direction: column;
		align-items: stretch;
		gap: var(--lihome-space-sm);
	}

	.lihome-theme footer .foot-tel {
		justify-content: center;
		width: 100%;
		min-height: 48px;
	}

	.lihome-theme footer .addr-text {
		text-align: start;
		font-size: 0.88rem;
	}

	.lihome-theme footer .b-ul {
		grid-template-columns: repeat(4, 40px);
		gap: 5px;
	}

	.lihome-theme footer .b-ul li.b-img {
		width: 40px !important;
		height: 40px !important;
	}

	.lihome-theme footer .footer-addr .addr-con.row {
		flex-direction: column;
		text-align: start;
		padding: var(--lihome-space-md);
		gap: var(--lihome-space-sm);
	}

	.lihome-theme footer .lihome-trust-grid {
		min-height: 0;
		gap: var(--lihome-space-md);
		padding: var(--lihome-space-xs) 0;
	}

	.lihome-theme footer .namad-img,
	.lihome-theme footer .lihome-enamad-img {
		width: 76px;
		height: 76px;
	}

	.lihome-theme footer .footer-section-text {
		margin-top: 0;
		padding: var(--lihome-space-md) !important;
		background: var(--lihome-surface);
		border: 1px solid var(--lihome-border);
		border-radius: var(--lihome-radius-md);
		box-shadow: var(--lihome-shadow-sm);
	}

	.lihome-theme footer .footer-text-title h3,
	.lihome-theme footer .footer-text .dina-more-less-content,
	.lihome-theme footer .footer-section-text .footer-text {
		text-align: start;
	}

	.lihome-theme footer .footer-text-title h3 {
		font-size: 0.95rem;
		margin-bottom: var(--lihome-space-sm);
	}

	.lihome-theme footer .footer-text .dina-more-less-content,
	.lihome-theme footer .footer-section-text .footer-text {
		font-size: 0.88rem;
		line-height: 1.75;
	}

	.lihome-theme footer .footer-text .dina-more-less-content p:nth-child(n + 3),
	.lihome-theme footer .footer-section-text .footer-text > p:nth-child(n + 3) {
		display: none;
	}

	.lihome-theme footer .footer-text .dina-more-less-content p:first-child {
		font-size: 0.95rem;
		padding: var(--lihome-space-sm);
		margin-bottom: var(--lihome-space-sm);
		border-inline-start: none;
		border-top: 2px solid var(--lihome-accent-soft);
		border-radius: var(--lihome-radius-sm) var(--lihome-radius-sm) 0 0;
	}

	.lihome-theme .container-fluid.copyright .copy-text,
	.lihome-theme .container-fluid.copyright .social-footer {
		text-align: center;
		justify-content: center;
		flex: 1 1 100%;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.lihome-theme footer .fwidgets.row {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.lihome-theme footer .fwidget-3 {
		grid-column: 1 / -1;
	}
}

@media (min-width: 768px) {
	.lihome-theme footer .footer-addr .addr-con.row {
		justify-content: space-between;
		align-items: center;
	}

	.lihome-theme footer .footer-addr .addr-text {
		flex: 1 1 55%;
		text-align: start;
		padding-inline-end: var(--lihome-space-md) !important;
	}

	.lihome-theme footer .ftel {
		flex: 0 1 auto;
		justify-content: flex-end !important;
	}

	.lihome-theme footer .fwidget-2 .b-ul,
	.lihome-theme footer .fwidget-3 .lihome-trust-grid {
		margin-top: auto;
	}

	.lihome-theme footer .footer-section-text {
		background: var(--lihome-surface);
		border: 1px solid var(--lihome-border);
		border-radius: var(--lihome-radius-md);
		padding: var(--lihome-space-lg) var(--lihome-space-xl) !important;
		box-shadow: var(--lihome-shadow-sm);
	}
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER-REDESIGN-01 — Compact Trust Footer
   ═══════════════════════════════════════════════════════════════ */

.lihome-theme footer.sfooter.lihome-footer-compact > .container {
	gap: var(--lihome-space-md);
}

/* Trust strip — tier 1 */
.lihome-theme footer .lihome-footer-trust-strip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--lihome-space-md) var(--lihome-space-lg);
	padding: 14px var(--lihome-space-lg);
	margin-bottom: var(--lihome-space-xs);
	background:
		linear-gradient(135deg, rgba(237, 230, 247, 0.45) 0%, rgba(255, 255, 255, 0.98) 42%),
		var(--lihome-surface);
	border: 1px solid var(--lihome-border);
	border-radius: var(--lihome-radius-md);
	box-shadow: var(--lihome-shadow-sm);
}

.lihome-theme footer .lihome-footer-trust-strip-badges {
	display: none !important;
}

.lihome-theme footer .lihome-footer-trust-strip-stats {
	justify-self: center;
	text-align: center;
}

.lihome-theme footer .lihome-footer-trust-strip-address {
	justify-self: stretch;
	text-align: right;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 10px;
	max-width: none;
	margin-inline: 0;
	font-size: 0.86rem;
	line-height: 1.7;
	color: var(--lihome-text-muted);
	direction: rtl;
}

.lihome-theme footer .lihome-footer-trust-strip-address .fal {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--lihome-brand);
}

.lihome-theme footer .lihome-footer-trust-maps {
	display: inline-flex;
	align-items: center;
	margin-inline-start: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--lihome-border, #e0d5c8);
	background: var(--lihome-surface, #fff);
	color: var(--lihome-brand, #6b4f3a);
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.lihome-theme footer .lihome-footer-trust-maps:hover {
	border-color: var(--lihome-brand, #6b4f3a);
}

.lihome-theme footer .lihome-footer-trust-strip-actions {
	justify-self: end;
	margin-inline-start: 0;
	flex-shrink: 0;
}

.lihome-theme footer .lihome-footer-trust-strip-badges .lihome-trust-grid {
	min-height: 0;
	padding: 0;
	gap: var(--lihome-space-md);
}

.lihome-theme footer .lihome-footer-trust-strip-badges .namad-img,
.lihome-theme footer .lihome-footer-trust-strip-badges .lihome-enamad-img {
	width: 72px;
	height: 72px;
}

.lihome-theme footer .lihome-footer-trust-strip-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.lihome-theme footer .lihome-footer-trust-phone,
.lihome-theme footer .lihome-footer-trust-bale,
.lihome-theme footer .lihome-footer-trust-instagram {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	transition:
		background var(--lihome-duration-fast) ease,
		border-color var(--lihome-duration-fast) ease,
		transform var(--lihome-duration-fast) var(--lihome-ease-out);
}

.lihome-theme footer .lihome-footer-trust-phone {
	background: var(--lihome-bg);
	border: 1px solid var(--lihome-border);
	color: var(--lihome-text);
}

.lihome-theme footer .lihome-footer-trust-phone .fal {
	color: var(--lihome-success);
}

.lihome-theme footer .lihome-footer-trust-bale {
	background: linear-gradient(135deg, #2db87a 0%, #239a66 100%);
	border: 1px solid transparent;
	color: #fff;
}

.lihome-theme footer .lihome-footer-trust-instagram {
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 0;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--lihome-border);
	border-radius: 50%;
	color: #fff;
	font-size: 1.15rem;
	overflow: hidden;
	box-shadow: var(--lihome-shadow-sm);
}

.lihome-theme footer .lihome-footer-trust-instagram-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.lihome-theme footer .lihome-footer-trust-instagram:hover {
	border-color: color-mix(in srgb, var(--lihome-brand) 35%, var(--lihome-border));
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lihome-theme footer .lihome-footer-trust-phone:hover,
.lihome-theme footer .lihome-footer-trust-bale:hover,
.lihome-theme footer .lihome-footer-trust-instagram:hover {
	transform: translateY(-1px);
}

/* Hide duplicate tiers absorbed into strip + column 3 */
.lihome-theme footer.lihome-footer-compact .info-bar.row,
.lihome-theme footer.lihome-footer-compact .footer-addr,
.lihome-theme footer.lihome-footer-compact .lihome-trust-samandehi-source,
.lihome-theme footer.lihome-footer-compact .lihome-trust-enamad-source,
.lihome-theme footer.lihome-footer-compact .lihome-footer-payment-source {
	display: none !important;
}

/* Unified 3-column panel */
.lihome-theme footer.lihome-footer-compact .fwidgets.row {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 0;
	padding: 0;
	margin-bottom: var(--lihome-space-sm);
	background: var(--lihome-surface);
	border: 1px solid var(--lihome-border);
	border-radius: var(--lihome-radius-md);
	box-shadow: var(--lihome-shadow-sm);
	overflow: hidden;
}

.lihome-theme footer.lihome-footer-compact .fwidget {
	padding: var(--lihome-space-sm) var(--lihome-space-md);
	min-height: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.lihome-theme footer.lihome-footer-compact .fwidget:not(:last-child) {
	border-inline-end: 1px solid var(--lihome-border);
}

.lihome-theme footer.lihome-footer-compact .fwidget::before {
	display: none;
}

.lihome-theme footer.lihome-footer-compact .fwidget-title,
.lihome-theme footer.lihome-footer-compact .lihome-footer-col-title {
	margin-bottom: var(--lihome-space-sm);
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--lihome-text);
}

.lihome-theme footer.lihome-footer-compact .lihome-footer-col-title::after,
.lihome-theme footer.lihome-footer-compact .fwidget-title::after {
	width: 36px;
	height: 3px;
	margin-top: 8px;
	background: linear-gradient(90deg, var(--lihome-brand), var(--lihome-brand-muted));
}

.lihome-theme footer.lihome-footer-compact .fwidget:hover {
	transform: none;
}

/* Category column */
.lihome-theme footer .lihome-footer-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lihome-theme footer .lihome-footer-category-list li {
	margin-bottom: 4px;
}

.lihome-theme footer .lihome-footer-category-list a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding-inline: 4px;
	color: var(--lihome-text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color var(--lihome-duration-fast) ease, padding-inline-start var(--lihome-duration-fast) ease;
}

.lihome-theme footer .lihome-footer-category-list a::before {
	content: "‹";
	margin-inline-end: 6px;
	color: var(--lihome-brand);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--lihome-duration-fast) ease, transform var(--lihome-duration-fast) ease;
}

.lihome-theme footer .lihome-footer-category-list a:hover {
	color: var(--lihome-brand);
	padding-inline-start: 6px;
}

.lihome-theme footer .lihome-footer-category-list a:hover::before {
	opacity: 1;
	transform: translateX(0);
}

/* Trust licenses + payment column */
.lihome-theme footer .lihome-footer-contact-col {
	display: flex;
	flex-direction: column;
	gap: var(--lihome-space-sm);
}

.lihome-theme footer .lihome-footer-trust-badges-row {
	margin-bottom: 2px;
}

.lihome-theme footer .lihome-footer-trust-badges-row .lihome-trust-grid--licenses {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-height: 0;
	padding: 0;
}

.lihome-theme footer .lihome-footer-trust-badges-row .lihome-trust-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	background: #fff;
	border: 1px solid var(--lihome-border);
	border-radius: var(--lihome-radius-sm);
	box-shadow: var(--lihome-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lihome-theme footer .lihome-footer-trust-badges-row .lihome-trust-item:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lihome-theme footer .lihome-footer-trust-badges-row .namad-img,
.lihome-theme footer .lihome-footer-trust-badges-row .lihome-enamad-img,
.lihome-theme footer .lihome-footer-trust-badges-row img {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: contain;
	border-radius: calc(var(--lihome-radius-sm) - 2px);
}

.lihome-theme footer .lihome-footer-payment-compact {
	margin-top: 0;
	padding-top: var(--lihome-space-sm);
	border-top: 1px dashed var(--lihome-border);
}

.lihome-theme footer .lihome-footer-payment-label {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--lihome-brand-muted);
}

.lihome-theme footer .lihome-zarinpal-trust-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 100%;
	border-radius: var(--lihome-radius-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lihome-theme footer .lihome-zarinpal-trust-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lihome-theme footer .lihome-zarinpal-trust-img {
	display: block;
	width: auto;
	max-width: 108px;
	height: auto;
	max-height: 118px;
	object-fit: contain;
	border-radius: var(--lihome-radius-sm);
	background: #fff;
	padding: 3px;
	border: 1px solid var(--lihome-border);
}

.lihome-theme footer .lihome-payment-compact-list {
	grid-template-columns: repeat(4, 38px) !important;
	gap: 5px !important;
}

.lihome-theme footer .lihome-payment-compact-list .b-img.lihome-payment-hidden {
	display: none !important;
}

.lihome-theme footer .lihome-payment-compact-list .b-img {
	width: 38px !important;
	height: 38px !important;
}

/* About teaser — max 2 lines desktop */
.lihome-theme footer.lihome-footer-compact .footer-section-text {
	margin-top: 0;
	padding: var(--lihome-space-sm) var(--lihome-space-lg) !important;
	direction: rtl;
}

.lihome-theme footer.lihome-footer-compact .footer-text .dina-more-less-content,
.lihome-theme footer.lihome-footer-compact .footer-section-text .footer-text {
	text-align: right;
	direction: rtl;
}

.lihome-theme footer.lihome-footer-compact .footer-text-title h3 {
	margin-bottom: 6px;
	font-size: 0.98rem;
	color: var(--lihome-text);
}

.lihome-theme footer.lihome-footer-compact .lihome-about-more-link {
	color: var(--lihome-brand);
	border-color: color-mix(in srgb, var(--lihome-brand) 25%, var(--lihome-border));
	background: var(--lihome-brand-soft);
}

.lihome-theme footer.lihome-footer-compact .lihome-about-more-link:hover {
	background: color-mix(in srgb, var(--lihome-brand) 12%, #fff);
	border-color: var(--lihome-brand);
}

/* Return-to-top — slim, centered above strip */
.lihome-theme footer.lihome-footer-compact .return-top.return-top-two {
	position: static;
	transform: none !important;
	width: fit-content;
	margin: 0 auto var(--lihome-space-xs);
	padding: 6px 16px;
	min-height: 36px;
	font-size: 0.82rem;
	border-radius: 999px;
	box-shadow: var(--lihome-shadow-sm);
}

.lihome-theme footer.lihome-footer-compact .return-top.return-top-two:hover {
	transform: translateY(-1px) !important;
}
.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser .dina-more-less-content p,
.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser > p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser .dina-more-less-content p:nth-child(1),
.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser > p:nth-child(1) {
	-webkit-line-clamp: 2;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--lihome-text);
	background: transparent;
	border: none;
	padding: 0;
}

.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser .dina-more-less-content p:nth-child(n + 2):not(.lihome-about-extra-line),
.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser > p:nth-child(n + 2):not(.lihome-about-extra-line) {
	display: none;
}

.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser .dina-more-less-content p.lihome-about-extra-line,
.lihome-theme footer.lihome-footer-compact .footer-text.lihome-about-teaser > p.lihome-about-extra-line {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 0.88rem;
	font-weight: 400;
	color: var(--lihome-text-muted);
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.lihome-theme footer .lihome-footer-trust-strip {
		min-height: 60px;
	}

	.lihome-theme footer.lihome-footer-compact .fwidget-1 .menu a {
		min-height: 30px;
	}

	.lihome-theme footer.lihome-footer-compact .fwidgets.row {
		min-height: 220px;
	}
}

@media (max-width: 767px) {
	.lihome-theme footer .lihome-footer-trust-strip {
		grid-template-columns: 1fr;
		padding: var(--lihome-space-md);
	}

	.lihome-theme footer .lihome-footer-trust-strip-address,
	.lihome-theme footer .lihome-footer-trust-strip-actions {
		justify-self: stretch;
		text-align: start;
	}

	.lihome-theme footer .lihome-footer-trust-strip-address {
		justify-content: flex-start;
		text-align: right;
		max-width: none;
	}

	.lihome-theme footer.lihome-footer-compact .fwidgets.row {
		grid-template-columns: 1fr !important;
		min-height: 0;
	}

	.lihome-theme footer.lihome-footer-compact .fwidget:not(:last-child) {
		border-inline-end: none;
		border-bottom: 1px solid var(--lihome-border);
	}

	.lihome-theme footer .lihome-footer-trust-strip-actions {
		margin-inline-start: 0;
		width: 100%;
		justify-content: flex-start;
	}

	.lihome-theme footer .lihome-footer-trust-phone,
	.lihome-theme footer .lihome-footer-trust-bale {
		flex: 1 1 auto;
		justify-content: center;
	}

	.lihome-theme footer .lihome-footer-trust-instagram {
		flex: 0 0 40px;
	}
}

/* === floating-contact.css === */
/* Floating contact hub — capsa-style multi-channel (replaces Bale-only FAB) */

.lihome-theme .di-socialbtn {
	display: none !important;
}

.lihome-floating-contact {
	position: fixed;
	z-index: 9990;
	bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
	left: calc(1.15rem + env(safe-area-inset-left, 0px));
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 10px;
	direction: rtl;
}

.lihome-floating-contact-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 3.25rem;
	padding: 0.65rem 1rem 0.65rem 0.85rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--lihome-brand, #6b4c9a) 0%, color-mix(in srgb, var(--lihome-brand, #6b4c9a) 78%, #3d2d5c) 100%);
	color: #fff;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--lihome-brand, #6b4c9a) 38%, transparent);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lihome-floating-contact-toggle:hover,
.lihome-floating-contact-toggle:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px color-mix(in srgb, var(--lihome-brand, #6b4c9a) 45%, transparent);
	outline: none;
}

.lihome-floating-contact-toggle-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	font-size: 1.05rem;
}

.lihome-floating-contact-icon-close {
	display: none;
}

.lihome-floating-contact.is-open .lihome-floating-contact-icon-open {
	display: none;
}

.lihome-floating-contact.is-open .lihome-floating-contact-icon-close {
	display: inline;
}

.lihome-floating-contact-panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 11.5rem;
	padding: 10px;
	border-radius: var(--lihome-radius-md, 12px);
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid var(--lihome-border, #e8e4df);
	box-shadow: var(--lihome-shadow-md, 0 12px 32px rgba(0, 0, 0, 0.12));
	backdrop-filter: blur(8px);
}

.lihome-floating-contact-panel[hidden] {
	display: none !important;
}

.lihome-floating-contact.is-open .lihome-floating-contact-panel {
	animation: lihome-floating-contact-in 0.22s var(--lihome-ease-out, ease-out);
}

@keyframes lihome-floating-contact-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.lihome-floating-contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--lihome-bg, #faf7f2);
	border: 1px solid transparent;
	color: var(--lihome-text, #2d2a26);
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 600;
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		transform 0.18s ease;
}

.lihome-floating-contact-item:hover,
.lihome-floating-contact-item:focus-visible {
	background: #fff;
	border-color: var(--lihome-border, #e8e4df);
	transform: translateX(-2px);
	color: var(--lihome-text, #2d2a26);
}

.lihome-floating-contact-item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--lihome-border, #e8e4df);
	color: var(--lihome-brand, #6b4c9a);
	font-size: 0.95rem;
}

.lihome-floating-contact-item-icon img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
	border-radius: 50%;
}

.lihome-floating-contact-item--phone .lihome-floating-contact-item-icon {
	color: var(--lihome-success, #2db87a);
}

.lihome-floating-contact-item--bale .lihome-floating-contact-item-icon {
	border-color: rgba(45, 184, 122, 0.25);
	background: rgba(45, 184, 122, 0.08);
}

.lihome-floating-contact-item--instagram .lihome-floating-contact-item-icon {
	border-color: color-mix(in srgb, var(--lihome-brand, #6b4c9a) 25%, var(--lihome-border, #e8e4df));
	background: var(--lihome-brand-soft, rgba(107, 76, 154, 0.08));
}

.lihome-floating-contact-item--telegram .lihome-floating-contact-item-icon {
	border-color: color-mix(in srgb, #2aabee 30%, var(--lihome-border, #e8e4df));
	background: color-mix(in srgb, #2aabee 10%, #fff);
	color: #229ed9;
}

/*
 * FAB-OVERLAP-01 — icon-only FAB + clear lift above mobile-footer.
 * Root: wide pill label «راه‌های ارتباطی» covered سبد خرید (test7).
 */
@media (max-width: 767px) {
	body.lihome-theme:has(.mobile-footer) .lihome-floating-contact {
		bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
		left: calc(0.75rem + env(safe-area-inset-left, 0px));
		max-width: calc(100vw - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
	}

	body.lihome-theme.single-product:has(.dina-mobile-sticky-add:not(.hide-mbar)) .lihome-floating-contact {
		bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px));
	}

	body.lihome-theme.single-product:has(.dina-mobile-sticky-add:not(.hide-mbar)):has(.mobile-footer) .lihome-floating-contact {
		bottom: calc(12.85rem + env(safe-area-inset-bottom, 0px));
	}

	.lihome-floating-contact-toggle {
		min-height: 3.15rem;
		min-width: 3.15rem;
		padding: 0.65rem;
		justify-content: center;
		gap: 0;
	}

	.lihome-floating-contact-toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.lihome-floating-contact-panel {
		min-width: 10.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lihome-floating-contact-toggle,
	.lihome-floating-contact-item,
	.lihome-floating-contact.is-open .lihome-floating-contact-panel {
		animation: none;
		transition: none;
	}
}

/* === bale-support.css === */
/* GRW-03 — Bale support channel (contact card, PDP/checkout hints) */
.lihome-bale-contact-card {
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.35rem;
	border: 1px solid rgba(45, 184, 122, 0.25);
	border-radius: var(--lihome-radius-md, 12px);
	background: linear-gradient(145deg, rgba(45, 184, 122, 0.08) 0%, rgba(92, 107, 74, 0.06) 100%);
}

.lihome-bale-contact-card h2 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	color: var(--lihome-primary, #5c6b4a);
}

.lihome-bale-contact-card p {
	margin: 0 0 1rem;
	color: #444;
	line-height: 1.7;
}

.lihome-bale-contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.lihome-bale-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.1rem;
	border-radius: 999px;
	background: #2db87a;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: transform 0.2s ease, background 0.2s ease;
}

.lihome-bale-btn:hover,
.lihome-bale-btn:focus-visible {
	background: #239a66;
	color: #fff !important;
	transform: translateY(-1px);
}

.lihome-bale-btn img {
	width: 1.25rem;
	height: 1.25rem;
}

.lihome-bale-phone-link {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(92, 107, 74, 0.25);
	color: var(--lihome-primary, #5c6b4a);
	text-decoration: none;
	font-weight: 600;
}

.lihome-bale-product-hint {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.85rem;
	border-radius: var(--lihome-radius-md, 12px);
	background: rgba(45, 184, 122, 0.08);
	font-size: 0.875rem;
	line-height: 1.6;
}

.lihome-bale-product-hint a {
	color: #1f7a52;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lihome-trust-bar .lihome-trust-bale-link {
	color: inherit;
	text-decoration: none;
}

.lihome-trust-bar .lihome-trust-bale-link:hover,
.lihome-trust-bar .lihome-trust-bale-link:focus-visible {
	text-decoration: underline;
}

.lihome-checkout-bale-hint {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: var(--lihome-radius-md, 12px);
	background: rgba(45, 184, 122, 0.1);
	font-size: 0.9rem;
	line-height: 1.6;
}

.lihome-checkout-bale-hint a {
	color: #1f7a52;
	font-weight: 600;
}

/* === shop-instock-filter.css === */
/* Shop archive — «فقط محصولات موجود» (INSTOCK-TOGGLE-LAYOUT-01). */

.lihome-shop-instock-filter {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: var(--lihome-space-sm) 0 var(--lihome-space-compact);
	padding-inline: 0;
	clear: both;
	float: none;
}

.lihome-shop-instock-toggle {
	display: inline-flex;
	align-items: center;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	width: auto;
	max-width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--lihome-border);
	border-radius: var(--lihome-radius-md);
	background: var(--lihome-surface-card, var(--lihome-surface));
	color: var(--lihome-text);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	box-sizing: border-box;
	transition:
		border-color var(--lihome-duration-fast, 180ms) ease,
		background var(--lihome-duration-fast, 180ms) ease,
		box-shadow var(--lihome-duration-fast, 180ms) ease;
}

.lihome-shop-instock-toggle:hover {
	border-color: var(--lihome-primary);
	box-shadow: var(--lihome-shadow-sm);
}

.lihome-shop-instock-toggle:focus-visible {
	outline: 2px solid var(--lihome-primary);
	outline-offset: 2px;
}

.lihome-shop-instock-toggle.is-active {
	border-color: var(--lihome-primary);
	background: color-mix(in srgb, var(--lihome-primary) 8%, var(--lihome-surface));
}

.lihome-shop-instock-toggle-box {
	width: 18px;
	height: 18px;
	border: 2px solid var(--lihome-border);
	border-radius: 4px;
	background: var(--lihome-bg);
	position: relative;
	flex: 0 0 18px;
}

.lihome-shop-instock-toggle.is-active .lihome-shop-instock-toggle-box {
	border-color: var(--lihome-primary);
	background: var(--lihome-primary);
}

.lihome-shop-instock-toggle.is-active .lihome-shop-instock-toggle-box::after {
	content: '';
	position: absolute;
	inset: 3px 5px 4px 4px;
	border: solid #fff;
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg);
}

.lihome-shop-instock-toggle-label {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lihome-shop-instock-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--lihome-bg);
	color: var(--lihome-text-muted);
	font-size: 0.78rem;
	font-weight: 700;
	flex: 0 0 auto;
}

.lihome-shop-instock-toggle.is-active .lihome-shop-instock-count {
	background: var(--lihome-primary);
	color: #fff;
}

/* Ordering bar: stack toggle on its own full-width row (fixes collapsed 26×71 pill). */
body.lihome-theme .woocommerce-ordering-con {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

body.lihome-theme .woocommerce-ordering-con .lihome-shop-instock-filter {
	flex: 1 1 100%;
	order: 10;
	width: 100%;
	max-width: 100%;
	min-width: 100%;
	margin-top: var(--lihome-space-compact);
	margin-bottom: 0;
}

body.lihome-theme .woocommerce-ordering-con .lihome-shop-instock-toggle {
	width: 100%;
	justify-content: flex-start;
}

@media (max-width: 767px) {
	.lihome-shop-instock-toggle {
		width: 100%;
		justify-content: flex-start;
		white-space: normal;
	}

	.lihome-shop-instock-toggle-label {
		white-space: normal;
	}
}

/* === material-category-layer.css === */
/* MAT-LAYER-01 — Material filter chips (پیرکس / بامبو / بلور) */

.lihome-material-row {
	margin-bottom: var(--lihome-space-md, 1rem);
}

.lihome-material-layer {
	padding: var(--lihome-padding-section-box, 1.25rem);
}

.lihome-material-layer-head {
	margin-bottom: 0.85rem;
}

.lihome-material-layer-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--lihome-text, #222);
}

.lihome-material-layer-sub {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	color: var(--lihome-text-muted, #666);
}

.lihome-material-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.lihome-material-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	border: 1px solid var(--lihome-border, #e4e0d8);
	background: var(--lihome-bg, #fff);
	color: var(--lihome-text, #222);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lihome-material-chip:hover,
.lihome-material-chip:focus-visible {
	border-color: var(--lihome-material-accent, var(--lihome-primary, #5c6b4a));
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.lihome-material-chip.is-active {
	border-color: var(--lihome-material-accent, var(--lihome-cta, #3d7a5a));
	background: color-mix(in srgb, var(--lihome-material-accent, var(--lihome-cta, #3d7a5a)) 12%, #fff);
	color: var(--lihome-text, #222);
}

.lihome-material-chip-dot {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: var(--lihome-material-accent, var(--lihome-primary, #5c6b4a));
	flex-shrink: 0;
}

.lihome-material-chip-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: rgba(92, 107, 74, 0.1);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--lihome-primary, #5c6b4a);
}

.lihome-material-chip.is-active .lihome-material-chip-count {
	background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
	.lihome-material-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.25rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.lihome-material-chip {
		flex: 0 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lihome-material-chip {
		transition: none;
	}
}

/* === global-offcanvas.css === */
/**
 * FIX-GLOBAL-OFFCANVAS-01 — all pages @ mobile (P7 site-wide).
 * Parent .dina-side-panel positioning can be stripped by LiteSpeed UCSS on non-shop URLs.
 */

@media (max-width: 991px) {
	html {
		overflow-x: clip;
	}

	body.lihome-theme {
		overflow-x: clip;
		max-width: 100%;
		width: 100%;
	}

	body.lihome-theme #dinaGlobalCanvas {
		overflow-x: clip;
		max-width: 100%;
	}

	body.lihome-theme .main-con.container,
	body.lihome-theme .page-row,
	body.lihome-theme .page-row > article,
	body.lihome-theme .prod-row {
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	/*
	 * PAGE-GUTTER-SYMMETRY-02 — Bootstrap .row negative margins + overflow-x:clip
	 * shift content ~20px toward inline-end on RTL mobile. Zero row/col gutters;
	 * use physical left/right padding on .main-con only (not safe-area on inline-*).
	 */
	body.lihome-theme .page-row.row,
	body.lihome-theme .prod-row.row {
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-inline: 0 !important;
		max-width: 100%;
		width: 100%;
	}

	body.lihome-theme .page-row > [class*='col-'],
	body.lihome-theme .prod-row > [class*='col-'] {
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-inline: 0 !important;
		max-width: 100%;
	}

	body.lihome-theme:not(.lihome-home-fullwidth) .main-con.container {
		padding-left: max(var(--lihome-gutter, 12px), env(safe-area-inset-left, 0px)) !important;
		padding-right: max(var(--lihome-gutter, 12px), env(safe-area-inset-right, 0px)) !important;
	}

	body.lihome-theme:not(.lihome-home-fullwidth) .page-con.shadow-box {
		margin-inline: 0;
		padding-inline: 0;
		box-sizing: border-box;
		max-width: 100%;
		width: 100%;
	}

	body.lihome-theme:not(.home):not(.lihome-home-fullwidth) .entry-content {
		padding-inline: 0;
	}

	body.lihome-theme.lihome-contact-page .elementor-section-full_width > .elementor-container {
		padding-inline: 0;
		max-width: 100%;
	}

	body.lihome-theme .prod-row {
		margin-inline: 0;
		overflow-x: clip;
	}

	body.lihome-theme .dina-side-panel {
		position: fixed !important;
		top: 0;
		width: min(340px, 100vw);
		height: 100%;
		max-width: 100%;
		z-index: 99999;
		overflow-x: hidden;
		background-color: var(--dina-box-bg-color, #fff);
	}

	/*
	 * Account drawer shares .dina-side-panel with shop offcanvas.
	 * Shop panels need light surface; account nav uses white text on dashboard teal.
	 * Without this override, light mode is white-on-white (dark mode looked fine by accident).
	 */
	body.lihome-theme #dinaAccountNav.dina-side-panel,
	body.lihome-theme .woocommerce-MyAccount-navigation-con.dina-side-panel {
		background-color: var(--dina-dashboard-bg-color, #006064) !important;
		color: var(--dina-dashboard-text-color, #fff);
	}

	body.lihome-theme #dinaAccountNav.dina-side-panel a,
	body.lihome-theme .woocommerce-MyAccount-navigation-con.dina-side-panel a,
	body.lihome-theme #dinaAccountNav.dina-side-panel .side-uname,
	body.lihome-theme .woocommerce-MyAccount-navigation-con.dina-side-panel .side-uname {
		color: var(--dina-dashboard-text-color, #fff);
	}

	body.lihome-theme .dina-side-panel:not(.open)[data-direction='right'] {
		right: -340px;
		left: auto;
	}

	/* SIDE-ICON-01 — CSS fallback if Redux override misses a panel */
	body.lihome-theme .dina-side-panel .side-icon,
	body.lihome-theme .dina-side-panel .dina-side-image {
		display: none !important;
	}

	body.lihome-theme .dina-side-panel:not(.open)[data-direction='left'] {
		left: -340px;
		right: auto;
	}

	/* Filter sidebar has no data-direction until opened. */
	body.lihome-theme #dinaSidebar:not(.open) {
		right: -340px;
		left: auto;
	}

	/* Owl carousels — contain wide stage on PDP/blog (not flattened). */
	body.lihome-theme .dina-related-product .owl-stage-outer,
	body.lihome-theme .dina-accessories .owl-stage-outer,
	body.lihome-theme .upsells.products .owl-stage-outer {
		overflow: hidden !important;
		max-width: 100% !important;
	}

	body.lihome-theme .dina-related-product .owl-stage,
	body.lihome-theme .dina-accessories .owl-stage {
		max-width: 100% !important;
	}
}

@media (max-width: 767px) {
	body.lihome-theme.woocommerce-cart .woocommerce-cart-form {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
	}

	body.lihome-theme.woocommerce-cart .woocommerce {
		overflow-x: clip;
	}
}

/* === archive-titles.css === */
/**
 * SEO-A11Y-H1-01 — archive + page title polish
 */
body.lihome-theme .lihome-archive-title-con {
	margin-bottom: 1rem;
}

body.lihome-theme .lihome-archive-title-con .lihome-archive-title,
body.lihome-theme .lihome-page-header .lihome-page-title {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.65rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--lihome-text, #1a1a1a);
}

body.lihome-theme .lihome-contact-page-header {
	margin: 0 0 1rem;
	padding: 0 0.25rem;
}

@media (max-width: 767px) {
	body.lihome-theme .lihome-archive-title-con {
		margin-bottom: 0.75rem;
	}

	body.lihome-theme .lihome-contact-page-header {
		margin-bottom: 0.75rem;
	}
}

/* === shop-archive-overflow.css === */
/**
 * FIX-SHOP-OVERFLOW-01/02 — shop/category archives @ mobile (VIS-S01 / P7)
 * Root cause: #dinaSidebar missing data-direction + Owl subcat stage + side panels in flow when UCSS strips parent CSS.
 */

@media (max-width: 991px) {
	html {
		overflow-x: clip;
	}

	body.lihome-theme.lihome-shop-archive {
		overflow-x: clip;
		max-width: 100%;
		width: 100%;
	}

	body.lihome-theme.lihome-shop-archive #dinaGlobalCanvas {
		overflow-x: clip;
		max-width: 100vw;
	}

	body.lihome-theme.lihome-shop-archive .main-con.container,
	body.lihome-theme.lihome-shop-archive .page-row,
	body.lihome-theme.lihome-shop-archive .page-row > article,
	body.lihome-theme.lihome-shop-archive .woocommerce,
	body.lihome-theme.lihome-shop-archive .prod-row,
	body.lihome-theme.lihome-shop-archive .dina-product-archive-con,
	body.lihome-theme.lihome-shop-archive .dina-sub-cats,
	body.lihome-theme.lihome-shop-archive .woocommerce-ordering-con,
	body.lihome-theme.lihome-shop-archive .lihome-material-layer,
	body.lihome-theme.lihome-shop-archive .lihome-shop-instock-filter {
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	body.lihome-theme.lihome-shop-archive .prod-row {
		margin-inline: 0;
		overflow-x: clip;
	}

	/* Off-canvas panels — shop-scoped reinforcement (global-offcanvas.css is primary). */
	body.lihome-theme.lihome-shop-archive .dina-sub-cats,
	body.lihome-theme.lihome-shop-archive .lihome-material-row {
		overflow-x: clip;
	}

	body.lihome-theme.lihome-shop-archive .lihome-material-chips {
		max-width: 100%;
	}

	/* Subcat strip — CSS grid (no Owl wide stage). */
	body.lihome-theme.lihome-shop-archive .dina-subcat-list.owl-carousel .owl-stage-outer,
	body.lihome-theme.lihome-shop-archive .dina-subcat-list.lihome-subcat-flat .owl-stage-outer {
		overflow: hidden !important;
		max-width: 100% !important;
	}

	body.lihome-theme.lihome-shop-archive .dina-subcat-list.lihome-subcat-flat .owl-stage-outer,
	body.lihome-theme.lihome-shop-archive .dina-subcat-list.lihome-subcat-flat .owl-stage,
	body.lihome-theme.lihome-shop-archive .dina-subcat-list.lihome-subcat-flat .owl-item,
	body.lihome-theme.lihome-shop-archive .dina-subcat-list.owl-carousel.lihome-subcat-flat .owl-stage-outer,
	body.lihome-theme.lihome-shop-archive .dina-subcat-list.owl-carousel.lihome-subcat-flat .owl-stage,
	body.lihome-theme.lihome-shop-archive .dina-subcat-list.owl-carousel.lihome-subcat-flat .owl-item {
		display: contents !important;
		width: auto !important;
		transform: none !important;
	}

	/* Products visible immediately — no off-screen opacity hide on archives. */
	body.lihome-theme.lihome-shop-archive ul.products li.product.lihome-reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	/* P7 — filter sidebar off-canvas; product grid full width (RTL empty viewport fix). */
	body.lihome-theme.lihome-shop-archive .prod-row.right-side,
	body.lihome-theme.lihome-shop-archive .prod-row {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		width: 100%;
		max-width: 100%;
	}

	body.lihome-theme.lihome-shop-archive #dinaSidebar.sidebar,
	body.lihome-theme.lihome-shop-archive #dinaSidebar {
		position: fixed !important;
		top: 0;
		width: min(340px, 100vw) !important;
		max-width: 100vw;
		height: 100%;
		z-index: 99999;
		overflow-x: hidden;
		order: 99;
		flex: 0 0 auto;
	}

	body.lihome-theme.lihome-shop-archive #dinaSidebar:not(.open) {
		right: -340px;
		left: auto;
	}

	body.lihome-theme.lihome-shop-archive .dina-product-archive-con {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		order: 1;
		min-width: 0;
	}

	body.lihome-theme.lihome-shop-archive ul.products {
		width: 100% !important;
		max-width: 100% !important;
		transform: none !important;
		margin-inline-start: 0 !important;
	}
}

@media (max-width: 767px) {
	body.lihome-theme.lihome-shop-archive .main-con.container {
		padding-inline: var(--lihome-space-compact);
	}

	body.lihome-theme.lihome-shop-archive .dina-sub-cats {
		padding-inline: var(--lihome-space-sm);
	}

	body.lihome-theme.lihome-shop-archive ul.products {
		margin-inline: 0;
		padding-inline: 0;
	}
}

/* === homepage-layout.css === */
/**
 * Homepage full-width layout — DR-17 / DR-18
 * No structural sidebar column; boxed Elementor max-width aligned to design system.
 *
 * L1 (v1.9.33): LAYOUT-CANVAS / UNBOX / HERO-BLEED / GUTTER — Cabsa-inspired geometry.
 * Scope: body.home / body.lihome-home-fullwidth only.
 */

body.lihome-home-fullwidth .bread-row,
body.lihome-home-fullwidth .ptitle {
	display: none;
}

body.lihome-home-fullwidth .page-row.right-side > aside#dinaSidebar.sidebar.sidesticky {
	display: none !important;
}

body.lihome-home-fullwidth .page-row.right-side > article,
body.lihome-home-fullwidth .page-row.right-side > article.col-lg-9 {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
}

/*
 * LAYOUT-UNBOX-01 + LAYOUT-GUTTER-01 —
 * Drop the floating white frame; keep readable max-width on inner sections.
 */
body.lihome-home-fullwidth .main-con.container {
	max-width: 100%;
	width: 100%;
	padding-inline: 0 !important;
}

/* HOME-OVERFLOW-01 / HOME-OVERFLOW-02 — kill residual ~10px desktop scroll
 * Root cause: Bootstrap .page-row.row ±10px negative margins on full-width home
 * (PAGE-GUTTER-SYMMETRY-02 only covered ≤991px). Also clip html — body clip alone
 * still leaves documentElement.scrollWidth > clientWidth.
 */
html:has(body.home),
html:has(body.lihome-home-fullwidth) {
	overflow-x: clip;
}

body.home,
body.lihome-home-fullwidth {
	overflow-x: clip;
	max-width: 100%;
}

body.home .page-row.row,
body.lihome-home-fullwidth .page-row.row {
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-inline: 0 !important;
	max-width: 100%;
	width: 100%;
}

body.home .page-row > [class*='col-'],
body.lihome-home-fullwidth .page-row > [class*='col-'] {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-inline: 0 !important;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.home .dina-slider,
body.home .dina-slider .owl-stage-outer {
	overflow: hidden;
	max-width: 100%;
}

body.lihome-home-fullwidth .page-con.shadow-box {
	box-shadow: none !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	background-image: none !important;
	padding-inline: 0 !important;
	margin-inline: 0;
	max-width: 100%;
	width: 100%;
}

body.lihome-home-fullwidth .entry-content .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 100%;
	padding-inline: 0;
}

/* Content sections: uniform physical L/R gutter (RTL-safe) */
body.home .lihome-home-ssr > .lihome-trust-bar,
body.home .lihome-category-section,
body.home .lihome-product-rails,
body.home .lihome-brand-story,
body.home .lihome-blog-section {
	padding-left: max(var(--lihome-home-gutter, 16px), env(safe-area-inset-left, 0px));
	padding-right: max(var(--lihome-home-gutter, 16px), env(safe-area-inset-right, 0px));
	margin-inline: auto;
	max-width: 1280px;
	box-sizing: border-box;
	width: 100%;
}

/* LAYOUT-SECTION-GAP-01 — one vertical rhythm token between SSR blocks */
body.home .lihome-product-rails,
body.home .lihome-brand-story,
body.home .lihome-blog-section {
	margin-block: var(--lihome-space-section) var(--lihome-space-lg);
}

/* Tighter trust → categories (test2: excess white void) */
body.home .lihome-category-section {
	margin-block: var(--lihome-space-md) var(--lihome-space-lg);
}

body.home .lihome-home-ssr > .lihome-trust-bar {
	margin-bottom: var(--lihome-space-sm);
}

/* Track inherits section gutter — do not double-pad */
body.home .lihome-product-rail-track {
	padding-inline: 0;
}

body.lihome-home-fullwidth {
	overflow-x: clip;
}

/* CLIENT-HOME-GAP-02 — desktop white void after hero (پیشنهاد ۲) */
@media (min-width: 992px) {
	body.home .elementor-top-section:has([data-lihome-anchor="hero"]) {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-inline: 0 !important;
		max-width: none;
		width: 100%;
	}

	body.home .elementor-top-section:has([data-lihome-anchor="hero"]) .elementor-container,
	body.home .elementor-top-section:has([data-lihome-anchor="hero"]) .elementor-column,
	body.home .elementor-top-section:has([data-lihome-anchor="hero"]) .elementor-widget-wrap,
	body.home .elementor-top-section:has([data-lihome-anchor="hero"]) .elementor-widget-slider .elementor-widget-container {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
		padding-inline: 0 !important;
		max-width: 100% !important;
	}

	body.home .elementor-top-section:has([data-lihome-anchor="hero"]) .dina-slider {
		margin-bottom: 0;
		min-height: 0;
		aspect-ratio: 16 / 5;
		max-height: min(540px, calc(100vw * 5 / 16));
	}

	body.home .lihome-home-ssr {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	body.home .lihome-home-ssr > .lihome-trust-bar:first-child {
		margin-top: var(--lihome-space-sm);
	}

	/* Collapse entire legacy Elementor sections (not just inner widgets). */
	body.home .elementor-top-section:has(.elementor-element-1293172),
	body.home .elementor-top-section:has(.elementor-element-196b75b),
	body.home .elementor-top-section:has(.elementor-element-0d0dd06),
	body.home .elementor-top-section:has([data-lihome-anchor="bestsellers"]),
	body.home .elementor-top-section:has([data-lihome-anchor="legacy-blog"]) {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		max-height: 0 !important;
		overflow: hidden !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
}

/* Keep legacy Elementor collapse + SSR gap on tablet too */
@media (min-width: 768px) and (max-width: 991px) {
	body.home .elementor-top-section:has([data-lihome-anchor="hero"]) {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
		padding-inline: 0 !important;
	}

	body.home .lihome-home-ssr {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	body.home .lihome-home-ssr > .lihome-trust-bar:first-child {
		margin-top: var(--lihome-space-sm);
	}

	body.home .elementor-top-section:has(.elementor-element-1293172),
	body.home .elementor-top-section:has(.elementor-element-196b75b),
	body.home .elementor-top-section:has(.elementor-element-0d0dd06),
	body.home .elementor-top-section:has([data-lihome-anchor="bestsellers"]),
	body.home .elementor-top-section:has([data-lihome-anchor="legacy-blog"]) {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		max-height: 0 !important;
		overflow: hidden !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
}

/* === main.css === */
/* Hidden sections removed via DR-23 — keep safety fallback */
body.home .elementor-element-ce2c8fc,
body.home .elementor-element-e666b1f,
body.home .elementor-element-ab2cee8,
body.home .elementor-element-cb08fa5,
body.home .elementor-element-49db263,
body.home .elementor-element-f4c6551,
body.home .elementor-element-c750efe,
body.home .elementor-element-e198ec9,
body.home .elementor-element-b72511b,
body.home .elementor-element-1b30fc6 {
	display: none !important;
}

body.home .lihome-home-ssr {
	display: block;
}
body.home .lihome-legacy-blog-hidden,
body.home [data-lihome-anchor="legacy-blog"] {
	display: none !important;
}

/* Legacy Elementor bestsellers owl — replaced by lihome-product-rails (v1.7.6) */
body.home .lihome-legacy-bestsellers-hidden,
body.home [data-lihome-anchor="bestsellers"] {
	display: none !important;
}

/* Production homepage Elementor sections — collapse before Owl paints (HOST-01) */
body.home .elementor-top-section:has(.elementor-element-1293172),
body.home .elementor-top-section:has(.elementor-element-196b75b),
body.home .elementor-top-section:has(.elementor-element-0d0dd06),
body.home .elementor-element-196b75b,
body.home .elementor-element-0d0dd06,
body.home .elementor-element-1293172,
body.home .lihome-legacy-services-hidden {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	visibility: hidden !important;
}

/* UI-CONTACT-BLANK-01 — Google Maps shell blank for many IR users */
body.lihome-contact-page .elementor-widget-google_maps,
body.page-id-448 .elementor-widget-google_maps {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Blog: single column on mobile (DR mobile UX) — legacy fallback if widget visible */
@media (max-width: 767px) {
	body.home [data-lihome-anchor="legacy-blog"]:not(.lihome-legacy-blog-hidden) .owl-stage {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		transform: none !important;
	}

	body.home [data-lihome-anchor="legacy-blog"] .owl-item {
		width: 100% !important;
		margin-bottom: 16px;
	}

	body.home [data-lihome-anchor="legacy-blog"] .owl-nav,
	body.home [data-lihome-anchor="legacy-blog"] .owl-dots {
		display: none !important;
	}

	body.home [data-lihome-anchor="legacy-blog"] .mini-post {
		max-width: 100%;
	}
}

/* Services row — compact on mobile */
@media (max-width: 767px) {
	body.home .dina-ser-col-one,
	body.home .dina-ser-col-two,
	body.home .dina-ser-col-three,
	body.home .dina-ser-col-four {
		flex: 0 0 50%;
		max-width: 50%;
		margin-bottom: var(--lihome-gap-tight);
	}
}

/* Elementor hero slider visible immediately */
body.home .elementor-widget-slider.elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
	animation: none !important;
	transform: none !important;
}

/* Section rhythm — homepage only; hero section has no extra gap (پیشنهاد ۲) */
body.home .elementor-top-section:not(:has([data-lihome-anchor="hero"])) {
	margin-bottom: var(--lihome-gap-tight);
}

body.home .lihome-blog-section {
	margin-bottom: var(--lihome-gap-stack);
}

body.lihome-theme.home footer.sfooter {
	margin-top: var(--lihome-gap-stack);
}

body.home .block-title-con {
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 700;
	color: var(--lihome-text);
}

body.home .block-title-line {
	margin-bottom: var(--lihome-space-roomy);
}

body.home .product-block.white-box,
body.home .dina-columnar-slider.white-box {
	padding: var(--lihome-padding-section-box);
	margin-bottom: var(--lihome-gap-section);
}

/* Unified product card buttons */
.lihome-theme .btn-buy,
.lihome-theme .ajax_add_to_cart,
.lihome-theme .add_to_cart_button,
.lihome-theme a.btn-buy-fixed {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

/* Footer trust badges sizing */
.lihome-theme .copy-right img,
.lihome-theme footer .enamad img,
.lihome-theme .footer-widget-area img {
	max-height: 72px;
	width: auto;
}

/* DR-22: legacy pink/purple backgrounds */
.lihome-theme .elementor-section[style*="#FFDFEF"],
.lihome-theme .elementor-section[style*="#ffdfef"],
.lihome-theme .elementor-section[style*="#D69ADE"],
.lihome-theme .elementor-section[style*="#d69ade"],
.lihome-theme .elementor-section[style*="#EABDE6"],
.lihome-theme .elementor-section[style*="#FA79F7"],
.lihome-theme .elementor-section[style*="#F390E4"] {
	background-color: var(--lihome-bg) !important;
}

.lihome-theme .white-box,
.lihome-theme .product-block.white-box {
	background: var(--lihome-surface) !important;
	border-radius: var(--lihome-radius-md);
	box-shadow: var(--lihome-shadow-md);
}

@media (max-width: 767px) {
	.lihome-sticky-atc {
		position: fixed;
		bottom: 0;
		inset-inline: 0;
		z-index: 999;
		background: var(--lihome-surface);
		padding: var(--lihome-space-compact) var(--lihome-space-md);
		box-shadow: 0 -4px 20px rgba(45, 42, 38, 0.12);
	}
}

/* ARCH-02 — noscript homepage fallback (no JS / crawlers without script) */
.lihome-noscript-home {
	display: block;
	max-width: 1320px;
	margin: 0 auto;
	padding: var(--lihome-space-md) var(--lihome-space-md) var(--lihome-space-2xl);
}

.lihome-noscript-home .lihome-reveal,
.lihome-noscript-home .lihome-reveal-child {
	opacity: 1;
	transform: none;
	filter: none;
	transition: none;
}

.lihome-noscript-hero {
	margin-bottom: var(--lihome-space-lg);
	padding: var(--lihome-space-lg);
	background: var(--lihome-surface);
	border: 1px solid var(--lihome-border);
	border-radius: var(--lihome-radius-md);
	box-shadow: var(--lihome-shadow-sm);
}

.lihome-noscript-hero-kicker {
	margin: 0 0 var(--lihome-space-sm);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--lihome-accent);
}

.lihome-noscript-hero-title {
	margin: 0 0 var(--lihome-space-sm);
	font-size: var(--lihome-type-hero);
	line-height: 1.35;
	color: var(--lihome-text);
}

.lihome-noscript-hero-sub {
	margin: 0 0 var(--lihome-space-md);
	color: var(--lihome-text-muted);
	line-height: 1.7;
}

.lihome-noscript-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lihome-space-sm);
}

.lihome-noscript-home .lihome-trust-bar,
.lihome-noscript-home .lihome-category-section,
.lihome-noscript-home .lihome-product-rails,
.lihome-noscript-home .lihome-brand-story,
.lihome-noscript-home .lihome-blog-section {
	margin-bottom: var(--lihome-space-xl);
}

/* === motion.css === */
@media (prefers-reduced-motion: reduce) {
	.lihome-reveal,
	.lihome-reveal-child {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}
}

.lihome-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity var(--lihome-duration-slow, 560ms) var(--lihome-ease-out, ease),
		transform var(--lihome-duration-slow, 560ms) var(--lihome-ease-out, ease);
}

.lihome-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.lihome-reveal-child {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity var(--lihome-duration-base, 320ms) var(--lihome-ease-out, ease),
		transform var(--lihome-duration-base, 320ms) var(--lihome-ease-out, ease);
}

.lihome-reveal.is-visible .lihome-reveal-child {
	opacity: 1;
	transform: none;
}

.lihome-reveal.is-visible .lihome-reveal-child:nth-child(1) { transition-delay: calc(var(--lihome-stagger-step, 70ms) * 1); }
.lihome-reveal.is-visible .lihome-reveal-child:nth-child(2) { transition-delay: calc(var(--lihome-stagger-step, 70ms) * 2); }
.lihome-reveal.is-visible .lihome-reveal-child:nth-child(3) { transition-delay: calc(var(--lihome-stagger-step, 70ms) * 3); }
.lihome-reveal.is-visible .lihome-reveal-child:nth-child(4) { transition-delay: calc(var(--lihome-stagger-step, 70ms) * 4); }
.lihome-reveal.is-visible .lihome-reveal-child:nth-child(5) { transition-delay: calc(var(--lihome-stagger-step, 70ms) * 5); }
.lihome-reveal.is-visible .lihome-reveal-child:nth-child(6) { transition-delay: calc(var(--lihome-stagger-step, 70ms) * 6); }

/* REVEAL-CHILD-FLASH — after stagger rules so SSR children stay visible (no delay flash) */
.lihome-home-ssr .lihome-reveal.is-visible .lihome-reveal-child:nth-child(n),
.lihome-home-ssr .lihome-reveal-child,
.lihome-blog-section.is-visible .lihome-reveal-child {
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

/* ── Image shimmer (lazy-load placeholder) ── */
.lihome-img-shimmer-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--lihome-bg);
}

.lihome-img-loadable {
	display: block;
	opacity: 0;
	transition: opacity var(--lihome-duration-base, 320ms) var(--lihome-ease-out, ease);
	/* IMG-SHIMMER-STUCK — reveal even if load/JS events miss (LiteSpeed / cached) */
	animation: lihome-img-reveal-fallback 0.01s linear 2.2s forwards;
}

.lihome-img-loadable.is-loaded {
	opacity: 1;
	animation: none;
}

@keyframes lihome-img-reveal-fallback {
	to {
		opacity: 1;
	}
}

.lihome-img-shimmer-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		110deg,
		var(--lihome-bg) 0%,
		var(--lihome-accent-soft) 45%,
		var(--lihome-bg) 90%
	);
	background-size: 200% 100%;
	animation: lihome-shimmer 1.4s ease-in-out infinite;
	opacity: 0;
	transition: opacity var(--lihome-duration-fast, 180ms) ease;
}

.lihome-img-shimmer-wrap:has(.lihome-img-loadable:not(.is-loaded))::before {
	opacity: 1;
	/* Stop endless shimmer if stuck */
	animation: lihome-shimmer 1.4s ease-in-out 3, lihome-shimmer-fade 0.01s linear 2.2s forwards;
}

@keyframes lihome-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@keyframes lihome-shimmer-fade {
	to {
		opacity: 0;
	}
}

/* ── Brand story parallax (JS sets --lihome-parallax-y) ── */
.lihome-brand-story--has-image .lihome-brand-story-media {
	overflow: hidden;
}

.lihome-brand-parallax-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	will-change: transform;
	transform: translate3d(0, var(--lihome-parallax-y, 0px), 0) scale(1.06);
	transition: transform 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
	.lihome-img-shimmer-wrap::before {
		animation: none;
		opacity: 0 !important;
	}

	.lihome-img-loadable {
		opacity: 1;
	}

	.lihome-brand-parallax-img {
		transform: none !important;
		will-change: auto;
	}

	/* PRM-GAPS — hover transforms on trust / bale / home-blog */
	.lihome-trust-list > li,
	.lihome-trust-list > li:hover,
	.lihome-bale-btn,
	.lihome-bale-btn:hover,
	.lihome-bale-btn:focus-visible,
	.lihome-blog-card,
	.lihome-blog-card:hover,
	.lihome-blog-card:hover .lihome-blog-card-media img,
	.lihome-blog-card-media img {
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}
}

/* === dark-mode.css === */
/**
 * Dark mode — LI Home child theme overrides (DR dark UX).
 * Root cause: tokens.css + component CSS load after dina-dark.css and
 * re-apply Palette A light colors on body.lihome-theme.
 */

/* --- Design tokens (dark) — warm charcoal, not flat #121212 --- */
body.lihome-theme.dina-dark {
	--lihome-bg: #161412;
	--lihome-surface: #24201c;
	--lihome-surface-elevated: #2e2924;
	--lihome-surface-rail: #1c1916;
	--lihome-surface-card: #2a2520;
	--lihome-text: #f0ebe4;
	--lihome-text-muted: #b8b0a6;
	--lihome-primary: #8fa67a;
	--lihome-primary-hover: #a3bc8c;
	--lihome-accent: #d4a574;
	--lihome-accent-soft: #c9b8a8;
	--lihome-brand: #9B7AC4;
	--lihome-brand-hover: #B094D4;
	--lihome-brand-soft: rgba(123, 79, 184, 0.22);
	--lihome-brand-light: #C9A8E8;
	--lihome-brand-muted: #8A6AAF;
	--lihome-brand-glow: rgba(155, 122, 196, 0.32);
	--lihome-kicker: var(--lihome-brand-light);
	--lihome-border: #3d3730;
	--lihome-success: #5a9a72;
	--lihome-footer-bg: #12100e;
	--lihome-footer-text: #e8e2da;
	--lihome-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
	--lihome-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
	--lihome-canvas: var(--lihome-bg);

	/* Re-bridge Redux inline :root vars (dynamic_style.php) for dark surfaces */
	--dina-main-bg-color: var(--lihome-bg);
	--dina-box-bg-color: var(--lihome-surface);
	--dina-main-text-color: var(--lihome-text);
	--dina-main-border-color: var(--lihome-border);
	--dina-footer-text-color: var(--dina-sec-text-color, #ddd);
	--dina-copy-text-color: var(--lihome-text);
	--dina-shop-box-bg: var(--lihome-surface);
	--dina-input-bg-color: #1c1916;
	--dina-input-text-color: #eee;
	color: var(--lihome-text);
	background-color: var(--lihome-bg);
	background-image:
		radial-gradient(ellipse 120% 80% at 50% -20%, rgba(155, 122, 196, 0.07), transparent 55%),
		linear-gradient(180deg, #161412 0%, #141210 100%);
}

/* --- Global readable text --- */
body.lihome-theme.dina-dark .main-con,
body.lihome-theme.dina-dark .page-con,
body.lihome-theme.dina-dark .shadow-box,
body.lihome-theme.dina-dark .white-box,
body.lihome-theme.dina-dark .product-block,
body.lihome-theme.dina-dark .entry-content,
body.lihome-theme.dina-dark .post-content,
body.lihome-theme.dina-dark .term-description,
body.lihome-theme.dina-dark .archive-desc,
body.lihome-theme.dina-dark .woocommerce-Tabs-panel,
body.lihome-theme.dina-dark .woocommerce-product-details__short-description {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .entry-content h1,
body.lihome-theme.dina-dark .entry-content h2,
body.lihome-theme.dina-dark .entry-content h3,
body.lihome-theme.dina-dark .entry-content h4,
body.lihome-theme.dina-dark .entry-content h5,
body.lihome-theme.dina-dark .entry-content h6,
body.lihome-theme.dina-dark .ptitle,
body.lihome-theme.dina-dark .block-title-con,
body.lihome-theme.dina-dark .page-title,
body.lihome-theme.dina-dark .woocommerce-products-header__title {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .entry-content p,
body.lihome-theme.dina-dark .entry-content li,
body.lihome-theme.dina-dark .entry-content td,
body.lihome-theme.dina-dark .entry-content th,
body.lihome-theme.dina-dark .entry-content blockquote,
body.lihome-theme.dina-dark .footer-text,
body.lihome-theme.dina-dark .footer-text p,
body.lihome-theme.dina-dark .dina-more-less-content,
body.lihome-theme.dina-dark .dina-more-less-content p,
body.lihome-theme.dina-dark .mini-post-excerpt,
body.lihome-theme.dina-dark .post-excerpt,
body.lihome-theme.dina-dark .archive-description,
body.lihome-theme.dina-dark .term-description p {
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .entry-content a,
body.lihome-theme.dina-dark .footer-text a,
body.lihome-theme.dina-dark .dina-more-less-content a {
	color: var(--lihome-accent-soft);
}

body.lihome-theme.dina-dark .entry-content a:hover,
body.lihome-theme.dina-dark .footer-text a:hover {
	color: #fff;
}

/* --- Surfaces --- */
body.lihome-theme.dina-dark .page-con.shadow-box,
body.lihome-theme.dina-dark .shadow-box.page-con,
body.lihome-theme.dina-dark .post-pub,
body.lihome-theme.dina-dark .mini-post,
body.lihome-theme.dina-dark .dina-term-cat.shadow-box {
	background-color: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .breadcrumbs,
body.lihome-theme.dina-dark .bread-row,
body.lihome-theme.dina-dark .col-12.shadow-box.breadcrumbs {
	background-color: var(--lihome-surface);
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .breadcrumbs a,
body.lihome-theme.dina-dark .bread-row a,
body.lihome-theme.dina-dark .woocommerce-breadcrumb a {
	color: var(--lihome-text);
}

/* --- Sidebar & widgets --- */
body.lihome-theme.dina-dark .sidebar,
body.lihome-theme.dina-dark .dina-side-panel:not(#dinaAccountNav):not(.woocommerce-MyAccount-navigation-con),
body.lihome-theme.dina-dark #dinaSidebar,
body.lihome-theme.dina-dark .widget,
body.lihome-theme.dina-dark .widget-title,
body.lihome-theme.dina-dark .sidebar .widget li,
body.lihome-theme.dina-dark .sidebar .widget a,
body.lihome-theme.dina-dark .dina-side-panel:not(#dinaAccountNav):not(.woocommerce-MyAccount-navigation-con) a {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .sidebar .widget,
body.lihome-theme.dina-dark .dina-side-panel .widget {
	background-color: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .sidebar .widget li a:hover,
body.lihome-theme.dina-dark .dina-side-panel:not(#dinaAccountNav):not(.woocommerce-MyAccount-navigation-con) a:hover {
	color: var(--lihome-accent-soft);
}

/* --- Footer --- */
body.lihome-theme.dina-dark .site-footer,
body.lihome-theme.dina-dark .dina-footer,
body.lihome-theme.dina-dark .copy-right,
body.lihome-theme.dina-dark footer .copyright,
body.lihome-theme.dina-dark .footer-section-text,
body.lihome-theme.dina-dark .footer-text-title,
body.lihome-theme.dina-dark .footer-text-title h3,
body.lihome-theme.dina-dark .fwidget,
body.lihome-theme.dina-dark .fwidget a,
body.lihome-theme.dina-dark .addr-text,
body.lihome-theme.dina-dark .footer-widget-area {
	color: var(--lihome-footer-text) !important;
}

body.lihome-theme.dina-dark .copy-right a,
body.lihome-theme.dina-dark footer .copyright a,
body.lihome-theme.dina-dark .fwidget a {
	color: var(--lihome-accent-soft) !important;
}

/* --- Header (sticky) --- */
body.lihome-theme.dina-dark .dina-sticky-nav.is-scrolled,
body.lihome-theme.dina-dark .dina-site-header.scrolled,
body.lihome-theme.dina-dark .site-header.sticky,
body.lihome-theme.dina-dark header.site-header {
	background: rgba(18, 18, 18, 0.94);
}

body.lihome-theme.dina-dark .main-navigation a,
body.lihome-theme.dina-dark .dina-main-menu > li > a,
body.lihome-theme.dina-dark .navbar-nav a {
	color: var(--lihome-text);
}

/* --- WooCommerce archive --- */
body.lihome-theme.dina-dark .mini-product,
body.lihome-theme.dina-dark .mini-product-con .mini-product,
body.lihome-theme.dina-dark .lihome-product-card,
body.lihome-theme.dina-dark .products .product,
body.lihome-theme.dina-dark .woocommerce ul.products li.product {
	background-color: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .product-title a,
body.lihome-theme.dina-dark .woocommerce-loop-product__title,
body.lihome-theme.dina-dark .product-price,
body.lihome-theme.dina-dark .price,
body.lihome-theme.dina-dark .woocommerce-Price-amount {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .woocommerce-result-count,
body.lihome-theme.dina-dark .woocommerce-ordering label,
body.lihome-theme.dina-dark .woocommerce-ordering select {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .woocommerce-ordering select,
body.lihome-theme.dina-dark input[type="text"],
body.lihome-theme.dina-dark input[type="search"],
body.lihome-theme.dina-dark input[type="email"],
body.lihome-theme.dina-dark input[type="tel"],
body.lihome-theme.dina-dark textarea,
body.lihome-theme.dina-dark select {
	background-color: var(--dina-input-bg-color, #202020);
	color: var(--dina-input-text-color, #ddd);
	border-color: var(--lihome-border);
}

/* --- Blog --- */
body.lihome-theme.dina-dark .blog-post,
body.lihome-theme.dina-dark article.post,
body.lihome-theme.dina-dark .single-post-content {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .post-meta,
body.lihome-theme.dina-dark .post-date,
body.lihome-theme.dina-dark .mini-post-date {
	color: var(--lihome-text-muted);
}

/* --- Child theme components --- */
body.lihome-theme.dina-dark .lihome-trust-bar {
	background: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .lihome-brand-story {
	background: var(--lihome-surface);
}

body.lihome-theme.dina-dark .lihome-brand-story h2 {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-brand-story p {
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .lihome-brand-story .lihome-btn-secondary {
	color: var(--lihome-accent-soft);
	border-color: var(--lihome-accent-soft);
}

body.lihome-theme.dina-dark .lihome-category-card,
body.lihome-theme.dina-dark .lihome-category-card-body {
	background: var(--lihome-surface-card, var(--lihome-surface));
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .lihome-category-card-title {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-category-card-sub,
body.lihome-theme.dina-dark .lihome-section-sub {
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .lihome-category-icon-medallion {
	background:
		radial-gradient(
			circle at 35% 28%,
			color-mix(in srgb, var(--lihome-surface) 80%, #fff) 0%,
			var(--lihome-surface) 55%,
			var(--lihome-surface-rail, var(--lihome-surface)) 100%
		);
	border-color: color-mix(in srgb, var(--lihome-brand) 28%, var(--lihome-border));
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

body.lihome-theme.dina-dark .lihome-category-icon-title {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-category-icon-sub {
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .lihome-category-icon:hover .lihome-category-icon-title {
	color: var(--lihome-brand-light);
}

body.lihome-theme.dina-dark .lihome-section-header h2 {
	color: var(--lihome-text);
}

/* --- Homepage Elementor blocks --- */
body.lihome-theme.dina-dark.home .product-block.white-box,
body.lihome-theme.dina-dark.home .dina-columnar-slider.white-box,
body.lihome-theme.dina-dark.home .white-box {
	background: var(--lihome-surface) !important;
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark.home .block-title-con {
	color: var(--lihome-text);
}

/* --- Sub-category grid --- */
body.lihome-theme.dina-dark .dina-sub-cats,
body.lihome-theme.dina-dark .dina-sub-cats.shadow-box {
	background-color: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .dina-subcat-list-title,
body.lihome-theme.dina-dark .dina-cat-title {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .dina-cat-img-con {
	background: var(--lihome-bg);
	border-color: var(--lihome-border);
}

/* Keep hero overlay readable — photo-first with gradient scrim (all viewports) */
body.lihome-theme.dina-dark .lihome-hero-title,
body.lihome-theme.dina-dark .lihome-hero-sub,
body.lihome-theme.dina-dark .lihome-hero-kicker {
	color: #fff;
}

body.lihome-theme.dina-dark .lihome-hero-title {
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/*
 * DARK-HERO-01 (test8) — root fix:
 * Old rule forced solid --lihome-surface on mobile overlay → opaque dock under
 * a thin image strip (broken hero). Restore same bottom gradient as light mode.
 */
@media (max-width: 767px) {
	body.lihome-theme.dina-dark .lihome-hero-overlay,
	body.lihome-theme.dina-dark .lihome-hero-overlay.lihome-hero-scrim--right,
	body.lihome-theme.dina-dark .lihome-hero-overlay.lihome-hero-scrim--left {
		background:
			linear-gradient(
				0deg,
				rgba(18, 16, 14, 0.88) 0%,
				rgba(18, 16, 14, 0.5) 48%,
				rgba(18, 16, 14, 0.14) 78%,
				transparent 100%
			) !important;
		border-top-color: transparent;
	}

	body.lihome-theme.dina-dark .lihome-hero-kicker {
		color: var(--lihome-brand-light);
	}

	body.lihome-theme.dina-dark .lihome-hero-title {
		color: #fff !important;
		text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	}

	body.lihome-theme.dina-dark .lihome-hero-sub {
		color: rgba(255, 255, 255, 0.92);
	}

	/* Keep photo vivid — do not dim slider images in dark mode */
	body.lihome-theme.dina-dark .dina-slider .slider-img,
	body.lihome-theme.dina-dark .dina-slider img {
		filter: none;
		opacity: 1;
	}
}

body.lihome-theme.dina-dark .lihome-blog-section .lihome-blog-header h2,
body.lihome-theme.dina-dark .lihome-blog-card-title a {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-rail-card {
	background: var(--lihome-surface-card, var(--lihome-surface));
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .lihome-rail-card-title a {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-blog-card {
	background: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .lihome-blog-card-excerpt,
body.lihome-theme.dina-dark .lihome-blog-sub {
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .lihome-blog-card-date {
	background: rgba(39, 39, 39, 0.92);
	color: var(--lihome-text);
}

/* --- DR-DARK-02 — extended readability (all templates) --- */

body.lihome-theme.dina-dark,
body.lihome-theme.dina-dark .lihome-archive-title,
body.lihome-theme.dina-dark .lihome-page-title,
body.lihome-theme.dina-dark .lihome-material-layer-title,
body.lihome-theme.dina-dark .lihome-product-rail-header h2,
body.lihome-theme.dina-dark .lihome-product-rail-kicker,
body.lihome-theme.dina-dark .lihome-product-rail-sub,
body.lihome-theme.dina-dark .lihome-trust-label,
body.lihome-theme.dina-dark .lihome-footer-col-title,
body.lihome-theme.dina-dark .lihome-footer-about-text,
body.lihome-theme.dina-dark .lihome-footer-trust-strip-address,
body.lihome-theme.dina-dark .lihome-zarinpal-trust-caption {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-product-rail-sub,
body.lihome-theme.dina-dark .lihome-material-layer-sub,
body.lihome-theme.dina-dark .lihome-footer-about-text,
body.lihome-theme.dina-dark .lihome-rail-card-price del,
body.lihome-theme.dina-dark .woocommerce-review-link,
body.lihome-theme.dina-dark .star-rating::before {
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .lihome-product-rail--campaign {
	background:
		linear-gradient(
			145deg,
			color-mix(in srgb, var(--lihome-accent) 22%, var(--lihome-surface-rail)) 0%,
			var(--lihome-surface-rail) 55%,
			var(--lihome-surface) 100%
		);
	border-color: color-mix(in srgb, var(--lihome-accent) 40%, var(--lihome-border));
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body.lihome-theme.dina-dark .lihome-product-rail--campaign .lihome-product-rail-all,
body.lihome-theme.dina-dark .lihome-sale-intro .lihome-product-rail-all,
body.lihome-theme.dina-dark .lihome-product-rail--campaign .lihome-loop-atc-labeled {
	background: linear-gradient(145deg, color-mix(in srgb, var(--lihome-accent) 70%, #d4a017), var(--lihome-accent)) !important;
	color: #fff !important;
	border: none !important;
}

body.lihome-theme.dina-dark .lihome-sale-seal {
	background: radial-gradient(circle at 32% 28%, #3a342c 0%, #2a2622 100%);
	border-color: color-mix(in srgb, var(--lihome-accent) 70%, #d4a017);
}

body.lihome-theme.dina-dark .lihome-sale-stats li,
body.lihome-theme.dina-dark .lihome-sale-trust li,
body.lihome-theme.dina-dark .lihome-sale-chip {
	background: color-mix(in srgb, var(--lihome-surface) 88%, transparent);
	border-color: color-mix(in srgb, var(--lihome-accent) 32%, var(--lihome-border));
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-rail-card-spotlight-flag {
	color: #f7e7b6;
	background: linear-gradient(90deg, #5a3d12, #8a6a12, #5a3d12);
}

body.lihome-theme.dina-dark .lihome-product-rail--featured {
	background:
		linear-gradient(
			160deg,
			color-mix(in srgb, var(--lihome-primary) 24%, var(--lihome-surface-rail)) 0%,
			var(--lihome-surface-rail) 50%,
			var(--lihome-surface) 100%
		);
	border-color: color-mix(in srgb, var(--lihome-primary) 36%, var(--lihome-border));
}

body.lihome-theme.dina-dark .lihome-product-rail--featured .lihome-product-rail-all {
	background: color-mix(in srgb, var(--lihome-surface) 80%, transparent);
}

body.lihome-theme.dina-dark .lihome-product-rail--curated {
	background:
		linear-gradient(
			155deg,
			color-mix(in srgb, var(--lihome-brand) 26%, var(--lihome-surface-rail)) 0%,
			var(--lihome-surface-rail) 50%,
			var(--lihome-surface) 100%
		);
	border-color: color-mix(in srgb, var(--lihome-brand) 40%, var(--lihome-border));
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

body.lihome-theme.dina-dark .lihome-product-rail--curated .lihome-product-rail-all {
	background: color-mix(in srgb, var(--lihome-surface) 80%, transparent);
}

body.lihome-theme.dina-dark .lihome-pdp-trust {
	background: color-mix(in srgb, var(--lihome-surface-rail) 90%, var(--lihome-brand));
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .lihome-pdp-trust-ico {
	background: color-mix(in srgb, var(--lihome-primary) 22%, transparent);
	color: var(--lihome-accent-soft, var(--lihome-primary));
}

body.lihome-theme.dina-dark .lihome-material-layer,
body.lihome-theme.dina-dark .lihome-material-chip,
body.lihome-theme.dina-dark .lihome-shop-instock-toggle,
body.lihome-theme.dina-dark .lihome-archive-title-con .shadow-box,
body.lihome-theme.dina-dark .lihome-bale-contact-card,
body.lihome-theme.dina-dark .lihome-contact-page-header {
	background-color: var(--lihome-surface);
	border-color: var(--lihome-border);
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-material-chip.is-active {
	background: color-mix(in srgb, var(--lihome-material-accent, var(--lihome-primary)) 18%, var(--lihome-surface));
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-material-chip-count {
	background: rgba(255, 255, 255, 0.08);
	color: var(--lihome-accent-soft);
}

body.lihome-theme.dina-dark .lihome-material-chip.is-active .lihome-material-chip-count {
	background: rgba(255, 255, 255, 0.14);
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-bale-contact-card h2,
body.lihome-theme.dina-dark .lihome-bale-contact-card p {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-bale-contact-card p {
	color: var(--lihome-text-muted);
}

body.lihome-theme.dina-dark .lihome-floating-contact-panel {
	background: rgba(39, 39, 39, 0.97);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .lihome-floating-contact-link {
	background: var(--lihome-bg);
	border-color: var(--lihome-border);
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-floating-contact-link:hover,
body.lihome-theme.dina-dark .lihome-floating-contact-link:focus-visible {
	background: color-mix(in srgb, var(--lihome-brand) 12%, var(--lihome-surface));
	border-color: color-mix(in srgb, var(--lihome-brand) 35%, var(--lihome-border));
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-btn-secondary {
	color: var(--lihome-accent-soft);
	border-color: color-mix(in srgb, var(--lihome-accent-soft) 55%, var(--lihome-border));
	background: transparent;
}

body.lihome-theme.dina-dark .lihome-btn-secondary:hover {
	color: #fff;
	border-color: var(--lihome-accent-soft);
	background: color-mix(in srgb, var(--lihome-accent-soft) 18%, transparent);
}

body.lihome-theme.dina-dark .lihome-shop-instock-toggle-label,
body.lihome-theme.dina-dark .lihome-shop-instock-count {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .lihome-shop-instock-toggle.is-active {
	background: color-mix(in srgb, var(--lihome-success) 16%, var(--lihome-surface));
	border-color: var(--lihome-success);
}

body.lihome-theme.dina-dark footer.sfooter.lihome-footer-compact {
	background: linear-gradient(180deg, var(--lihome-bg) 0%, var(--lihome-surface) 100%) !important;
}

body.lihome-theme.dina-dark footer .lihome-footer-trust-strip {
	background: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark footer .lihome-footer-trust-phone {
	background: var(--lihome-bg);
	color: var(--lihome-text);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark footer.lihome-footer-compact .fwidgets.row {
	background: var(--lihome-surface);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark footer .lihome-footer-col-link,
body.lihome-theme.dina-dark footer .lihome-footer-col-link:hover {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark footer .lihome-footer-col-link:hover {
	color: var(--lihome-accent-soft);
}

body.lihome-theme.dina-dark .container-fluid.copyright {
	background: linear-gradient(135deg, #1a1a1a 0%, #242424 48%, #1a1a1a 100%) !important;
	color: var(--lihome-text-muted) !important;
}

body.lihome-theme.dina-dark .dina-search-form input,
body.lihome-theme.dina-dark .search-form input,
body.lihome-theme.dina-dark .header-search input {
	background-color: var(--dina-input-bg-color, #202020);
	color: var(--dina-input-text-color, #eee);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .woocommerce-tabs .tabs li a,
body.lihome-theme.dina-dark .woocommerce-tabs .panel,
body.lihome-theme.dina-dark table.shop_attributes th,
body.lihome-theme.dina-dark table.shop_attributes td,
body.lihome-theme.dina-dark .woocommerce-product-attributes-item__label,
body.lihome-theme.dina-dark .woocommerce-product-attributes-item__value {
	color: var(--lihome-text);
	background-color: transparent;
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .woocommerce-message,
body.lihome-theme.dina-dark .woocommerce-info,
body.lihome-theme.dina-dark .woocommerce-error {
	background-color: var(--lihome-surface);
	color: var(--lihome-text);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .pagination .page-numbers,
body.lihome-theme.dina-dark .woocommerce-pagination .page-numbers {
	background: var(--lihome-surface);
	color: var(--lihome-text);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .pagination .page-numbers.current,
body.lihome-theme.dina-dark .woocommerce-pagination .page-numbers.current {
	background: var(--lihome-primary);
	color: #fff;
}

body.lihome-theme.dina-dark .elementor-widget-heading .elementor-heading-title,
body.lihome-theme.dina-dark .elementor-widget-text-editor,
body.lihome-theme.dina-dark .elementor-icon-list-text {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .return-top-two,
body.lihome-theme.dina-dark .return-top-two a {
	background: var(--lihome-surface);
	color: var(--lihome-text);
	border-color: var(--lihome-border);
}

/* --- DARK-SURFACE-02 — depth across templates (test8) --- */
body.lihome-theme.dina-dark #dinaGlobalCanvas,
body.lihome-theme.dina-dark .main-con,
body.lihome-theme.dina-dark .site-content {
	background-color: transparent;
}

body.lihome-theme.dina-dark.home,
body.lihome-theme.dina-dark.lihome-home-fullwidth {
	--lihome-canvas: var(--lihome-bg);
}

body.lihome-theme.dina-dark .lihome-trust-bar .lihome-trust-item,
body.lihome-theme.dina-dark .lihome-trust-item {
	background: var(--lihome-surface-elevated, var(--lihome-surface));
	border-color: var(--lihome-border);
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .mobile-footer {
	background: rgba(18, 16, 14, 0.96);
	border-top-color: var(--lihome-border);
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .mobile-footer a,
body.lihome-theme.dina-dark .mobile-footer .mf-title {
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark .dina-search-con .dina-search-input,
body.lihome-theme.dina-dark .mobile-search-con .dina-search-input {
	background-color: var(--dina-input-bg-color, #1c1916);
	color: var(--lihome-text);
	border-color: var(--lihome-border);
}

body.lihome-theme.dina-dark .lihome-floating-contact-item {
	background: var(--lihome-surface-elevated, var(--lihome-surface));
	border-color: var(--lihome-border);
	color: var(--lihome-text);
}

/* Product / rail media stay bright in dark mode */
body.lihome-theme.dina-dark .lihome-rail-card-media img,
body.lihome-theme.dina-dark .lihome-category-card-media img,
body.lihome-theme.dina-dark .lihome-blog-card-media img,
body.lihome-theme.dina-dark .mini-product img,
body.lihome-theme.dina-dark .products .product img,
body.lihome-theme.dina-dark .woocommerce ul.products li.product img {
	filter: none;
	opacity: 1;
}

body.lihome-theme.dina-dark .lihome-btn-atc,
body.lihome-theme.dina-dark .lihome-loop-atc-icon-only {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body.lihome-theme.dina-dark #load-more-button,
body.lihome-theme.dina-dark a.load-more-button {
	background: var(--lihome-surface-elevated, var(--lihome-surface));
	border-color: var(--lihome-border);
	color: var(--lihome-text);
}

body.lihome-theme.dina-dark header.site-header,
body.lihome-theme.dina-dark .dina-site-header {
	background: rgba(22, 20, 18, 0.94);
	border-bottom-color: var(--lihome-border);
}


/* === responsive.css === */
/**
 * Mobile responsive fixes — sticky ATC, cart, shop archive, footer, hero, homepage.
 */
@media (max-width: 767px) {
	body.lihome-theme.home {
		overflow-x: clip;
	}

	/*
	 * LAYOUT-UNBOX / GUTTER — container flush; sections own the gutter.
	 * (Previously this file re-applied padding after LAYOUT-EDGE-01.)
	 */
	body.lihome-theme.home .main-con.container {
		max-width: 100%;
		padding-inline: 0 !important;
	}

	body.lihome-theme.home footer.sfooter > .container {
		max-width: 100%;
		padding-inline: var(--lihome-home-gutter, 12px);
	}

	body.lihome-theme.home .entry-content .elementor-section.elementor-section-boxed > .elementor-container {
		padding-inline: 0;
	}

	body.lihome-theme.home .product-block.white-box,
	body.lihome-theme.home .dina-columnar-slider.white-box {
		padding: var(--lihome-space-md) 10px var(--lihome-space-roomy);
		margin-bottom: var(--lihome-space-sm);
	}

	body.lihome-theme.home .lihome-category-section,
	body.lihome-theme.home .lihome-product-rails,
	body.lihome-theme.home .lihome-brand-story,
	body.lihome-theme.home .lihome-blog-section {
		max-width: 1280px;
		padding-inline: var(--lihome-home-gutter, 12px);
	}

	/* FAB-CAT-OVERLAP: must beat the padding-inline shorthand above (same specificity, later). */
	@media (max-width: 420px) {
		body.lihome-theme.home .lihome-category-section {
			padding-inline-end: 6rem;
		}
	}

	body.lihome-theme.home .lihome-trust-bar {
		padding-block: var(--lihome-space-compact);
		padding-inline: var(--lihome-home-gutter, 12px);
		margin-bottom: var(--lihome-space-sm);
	}

	body.lihome-theme.home .page-con.shadow-box {
		padding-inline: 0 !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		background-color: transparent !important;
	}

	/* --- Hero (synced with hero.css) --- */
	body.lihome-theme .dina-slider .owl-dots {
		bottom: 12px;
	}

	/* --- Footer touch targets --- */
	.lihome-theme footer .fwidget-1 .menu a {
		min-height: 44px;
	}
	/* --- Sticky add-to-cart (DR-32) — override parent width:max-content --- */
	body.lihome-theme .dina-mobile-sticky-add {
		position: fixed !important;
		inset-inline: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		/* Parent Dina uses translateX(-50%) with left:50%. After inset 0 that
		 * shifts the bar ~half-viewport off-screen (live 1.9.91 CDP). */
		transform: none !important;
		box-sizing: border-box;
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--lihome-surface);
		border-top: 1px solid var(--lihome-border);
		box-shadow: 0 -8px 24px rgba(45, 42, 38, 0.14);
		z-index: 10050;
	}

	/*
	 * MOBILE-FOOTER-75 — when Dina .mobile-footer is present, park sticky ATC above it.
	 * Parent .hide-mbar means the bar is OFF → stay at bottom:0 (do NOT lift).
	 */
	body.lihome-theme:has(.mobile-footer) .dina-mobile-sticky-add:not(.hide-mbar) {
		bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
		padding-bottom: 10px;
	}

	body.lihome-theme .dina-mobile-sticky-add.hide-mbar {
		bottom: 0 !important;
	}

	body.lihome-theme .dina-mobile-sticky-price {
		flex: 0 0 auto;
		width: 100%;
		padding: 0;
		margin: 0;
		justify-content: flex-start;
		font-weight: 700;
		color: var(--lihome-text);
	}

	body.lihome-theme .dina-mobile-sticky-add .stock {
		display: none;
	}

	body.lihome-theme .dina-mobile-sticky-add form.cart {
		display: flex !important;
		flex-wrap: nowrap;
		align-items: center;
		width: 100%;
		max-width: 100%;
		margin: 0;
		gap: 8px;
		box-sizing: border-box;
	}

	body.lihome-theme .dina-mobile-sticky-add .dina-quantity-con {
		display: flex !important;
		flex: 0 0 auto;
		margin: 0 !important;
		max-width: 118px;
	}

	body.lihome-theme .dina-mobile-sticky-add .single_add_to_cart_button,
	body.lihome-theme .dina-mobile-sticky-add .button,
	body.lihome-theme .dina-mobile-sticky-add .go-to-add {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		min-height: 44px;
		height: auto !important;
		padding: 8px 12px !important;
		margin: 0 !important;
		border-radius: var(--lihome-radius-md) !important;
		background: var(--lihome-primary) !important;
		border-color: var(--lihome-primary-hover) !important;
		color: #fff !important;
		font-weight: 700;
		font-size: 0.85rem !important;
		line-height: 1.3 !important;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		position: relative;
	}

	body.lihome-theme .dina-mobile-sticky-add .single_add_to_cart_button::after {
		display: none !important;
	}

	body.lihome-theme .dina-mobile-sticky-add .single_add_to_cart_button::before {
		margin-inline-start: 6px;
		margin-inline-end: 0;
		width: auto;
		font-size: 18px;
	}

	/* Space for sticky ATC (+ mobile footer when present) */
	body.lihome-theme.single-product {
		padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
	}

	body.lihome-theme.single-product:has(.mobile-footer) {
		padding-bottom: calc(152px + env(safe-area-inset-bottom, 0px));
	}

	/* Keep mobile nav fixed above sticky ATC / copyright — do not inflate its height */
	body.lihome-theme .mobile-footer {
		position: fixed !important;
		inset-inline: 0;
		bottom: 0;
		z-index: 10040;
		display: block !important;
	}

	body.lihome-theme.single-product .mobile-footer {
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	/* --- Shop archive: product cards full width --- */
	body.lihome-theme.lihome-shop-archive .mini-product-con {
		padding-inline: 4px;
	}

	body.lihome-theme.lihome-shop-archive .dina-add-cart-archive {
		flex-wrap: wrap;
		gap: 6px;
	}

	body.lihome-theme.lihome-shop-archive .dina-add-cart-archive .single_add_to_cart_button,
	body.lihome-theme.lihome-shop-archive .mini-product .btn-buy {
		min-height: 44px;
		font-size: 0.85rem;
	}

	/* --- Cart page: scroll table only, not whole page --- */
	body.lihome-theme.woocommerce-cart .woocommerce-cart-form {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
	}

	body.lihome-theme.woocommerce-cart .woocommerce {
		overflow-x: clip;
	}

	body.lihome-theme.woocommerce-cart .cart_totals,
	body.lihome-theme.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
		width: 100%;
	}

	body.lihome-theme.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Clear mobile footer so checkout CTA is not covered */
	body.lihome-theme.woocommerce-cart:has(.mobile-footer) .cart_totals {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
		margin-bottom: 0.5rem;
	}

	body.lihome-theme.woocommerce-cart:has(.mobile-footer) .wc-proceed-to-checkout {
		position: relative;
		z-index: 1;
	}

	/* Side mini-cart: keep CTAs above mobile footer */
	body.lihome-theme:has(.mobile-footer) .dina-side-cart .widget_shopping_cart_content {
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}

	/* Gutters owned by PAGE-GUTTER-SYMMETRY-02 on .main-con — avoid double pad */
	body.lihome-theme:not(.home):not(.lihome-home-fullwidth) .page-con.shadow-box,
	body.lihome-theme:not(.home):not(.lihome-home-fullwidth) .entry-content {
		padding-inline: 0;
	}

	body.lihome-theme .entry-content iframe {
		max-width: 100%;
	}
}

@media (max-width: 420px) {
	body.lihome-theme .dina-mobile-sticky-add .single_add_to_cart_button::before {
		margin-inline-start: 4px;
		font-size: 16px;
	}

	body.lihome-theme .dina-mobile-sticky-add .single_add_to_cart_button {
		font-size: 0.82rem !important;
		padding-inline: 8px !important;
	}
}

