/*!
 * LionCosmetic 2.2.0 – main stylesheet (RTL-first, no external resources)
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--bl-primary: #7b2cbf;
	--bl-accent: #f06bb6;
	--bl-dark: #17111d;

	/* derived colours – overridden by the inline dynamic CSS (computed in PHP, no color-mix needed) */
	--bl-primary-rgb: 123, 44, 191;
	--bl-accent-rgb: 240, 107, 182;
	--bl-footer-end: #2a1740;
	--bl-mix-ap: #d4519f;
	--bl-primary-700: #5a1c99;
	--bl-primary-100: #ede0f8;
	--bl-primary-50: #f7f0fc;
	--bl-accent-100: #fde0f0;
	--bl-accent-50: #fff4fa;
	--bl-line: #ebe0f4;

	--bl-white: #fff;
	--bl-ink: var(--bl-dark);
	--bl-muted: #6f647a;
	--bl-star: #f5a524;
	--bl-star-empty: #e6dcef;

	--bl-radius: 22px;
	--bl-radius-sm: 14px;
	--bl-shadow: 0 18px 50px rgba(81, 29, 104, .10);
	--bl-shadow-sm: 0 6px 20px rgba(81, 29, 104, .08);
	--bl-container: 1240px;
	--bl-header-h: 80px;

	--bl-font: "Pinar", "LionCosmetic Fallback", Tahoma, "Segoe UI", Arial, sans-serif;
	--bl-ease: cubic-bezier(.22, .8, .24, 1);
}


/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* جلوگیری از اسکرول افقی و «کوچک شدن صفحه» در Firefox موبایل: clip برخلاف hidden سرریز را از محاسبهٔ عرض صفحه خارج می‌کند. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body {
	margin: 0;
	background: var(--bl-white);
	color: var(--bl-ink);
	font-family: var(--bl-font);
	font-size: 15px;
	line-height: 1.9;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* نه hidden: تا body اسکرول‌کانتینر نشود و sticky هدر کار کند */
	max-width: 100%;
}
body.bl-lock { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
a:hover { color: var(--bl-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(var(--bl-primary-rgb), 0.55); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--bl-accent); color: #fff; }

.container { width: min(var(--bl-container), calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; z-index: 1000; top: 12px; right: 12px; width: auto; height: auto; margin: 0; padding: 12px 18px;
	clip: auto; clip-path: none; background: var(--bl-dark); color: #fff; border-radius: 10px;
}
.bl-icon { flex: none; vertical-align: middle; }
.bl-main { display: block; outline: 0; min-height: 50vh; }
[hidden] { display: none !important; }

/* ==========================================================================
   3. Buttons & form controls
   ========================================================================== */
.bl-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 26px; border: 1.5px solid transparent; border-radius: 999px;
	background: var(--bl-primary-50); color: var(--bl-primary); font-weight: 700; font-size: 14px; line-height: 1.4;
	cursor: pointer; transition: transform .25s var(--bl-ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.bl-btn:hover { transform: translateY(-2px); }
.bl-btn:active { transform: translateY(0); }
.bl-btn--primary {
	background: linear-gradient(135deg, var(--bl-primary), var(--bl-primary-700)); color: #fff;
	box-shadow: 0 10px 24px rgba(var(--bl-primary-rgb), 0.38);
}
.bl-btn--primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(var(--bl-primary-rgb), 0.48); }
.bl-btn--accent { background: linear-gradient(135deg, var(--bl-accent), var(--bl-mix-ap)); color: #fff; }
.bl-btn--accent:hover { color: #fff; }
.bl-btn--outline { background: transparent; border-color: var(--bl-primary); color: var(--bl-primary); }
.bl-btn--outline:hover { background: var(--bl-primary); color: #fff; }
.bl-btn--lg { min-height: 54px; padding-inline: 34px; font-size: 15px; }
.bl-btn--sm { min-height: 38px; padding: 6px 18px; font-size: 13px; }
.bl-btn--cart { width: 100%; background: var(--bl-primary-50); color: var(--bl-primary); border-radius: 14px; min-height: 44px; }
.bl-btn--cart:hover { background: var(--bl-primary); color: #fff; }
.bl-btn--cart.loading { opacity: .65; pointer-events: none; }
.bl-btn--cart.added { background: var(--bl-primary); color: #fff; }
a.added_to_cart { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--bl-primary); }

.bl-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: transparent; color: var(--bl-ink); }
.bl-iconbtn:hover { background: var(--bl-primary-50); color: var(--bl-primary); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], textarea, select {
	width: 100%; min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--bl-line); border-radius: 14px;
	background: #fff; color: var(--bl-ink); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--bl-primary); box-shadow: 0 0 0 4px var(--bl-primary-100); }
::placeholder { color: #9a8fa5; opacity: 1; }
label { font-weight: 700; font-size: 13.5px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bl-primary); width: 18px; height: 18px; }

.bl-hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ==========================================================================
   4. Top bar & header
   ========================================================================== */
.bl-topbar { background: var(--bl-dark); color: #f3e8fb; font-size: 12.5px; }
.bl-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.bl-topbar__note, .bl-topbar__links a { display: inline-flex; align-items: center; gap: 8px; }
.bl-topbar__note .bl-icon, .bl-topbar__links .bl-icon { color: var(--bl-accent); }
.bl-topbar__links { display: flex; align-items: center; gap: 22px; }
.bl-topbar__links a:hover { color: var(--bl-accent); }

.bl-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .98); transition: box-shadow .3s; }
.admin-bar .bl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bl-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bl-header { top: 0; } }
.bl-header.is-stuck { box-shadow: 0 8px 30px rgba(58, 24, 72, .10); }
.bl-header__main { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: center; gap: 36px; min-height: var(--bl-header-h); }
.bl-menu-toggle { display: none; }

.bl-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--bl-ink); }
.bl-brand:hover { color: var(--bl-ink); }
.bl-brand__mark {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #fff;
	background: linear-gradient(145deg, var(--bl-accent), var(--bl-primary)); box-shadow: 0 8px 20px rgba(var(--bl-primary-rgb), 0.35);
}
.bl-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.bl-brand__text strong { font-size: 23px; letter-spacing: -.5px; direction: ltr; text-align: right; }
.bl-brand__text small { font-size: 9.5px; letter-spacing: 2px; color: var(--bl-muted); direction: ltr; text-align: right; }
.bl-brand--light, .bl-brand--light:hover { color: #fff; }
.bl-brand--light small { color: #cdbbe0; }
.bl-brand .custom-logo, .custom-logo-link img { max-height: 58px; width: auto; }

/* Search */
.bl-search { position: relative; display: flex; align-items: center; height: 48px; padding: 4px 18px 4px 6px; border: 1.5px solid transparent; border-radius: 999px; background: var(--bl-primary-50); transition: border-color .25s, box-shadow .25s, background .25s; }
.bl-search:focus-within { background: #fff; border-color: var(--bl-primary); box-shadow: 0 0 0 4px var(--bl-primary-100); }
.bl-search input[type="search"] { flex: 1; min-width: 0; min-height: 0; height: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 12px; font-size: 13.5px; }
.bl-search input[type="search"]:focus { box-shadow: none; }
.bl-search__submit { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bl-primary); color: #fff; }
.bl-search__submit:hover { background: var(--bl-primary-700); }
.bl-search__results {
	position: absolute; top: calc(100% + 10px); inset-inline: 0; z-index: 100; max-height: 70vh; overflow: auto;
	padding: 8px; border: 1px solid var(--bl-line); border-radius: 20px; background: #fff; box-shadow: var(--bl-shadow);
}
.bl-sr-item { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.bl-sr-item:hover, .bl-sr-item.is-focus { background: var(--bl-primary-50); }
.bl-sr-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--bl-primary-50); }
.bl-sr-item b { display: block; font-size: 13.5px; line-height: 1.6; }
.bl-sr-item small { color: var(--bl-primary); font-weight: 700; }
.bl-sr-msg { padding: 14px; color: var(--bl-muted); font-size: 13px; text-align: center; }
.bl-sr-all { display: block; margin-top: 4px; padding: 10px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 13px; color: var(--bl-primary); background: var(--bl-primary-50); }

/* Actions */
.bl-actions { display: flex; align-items: center; gap: 6px; }
.bl-action { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 16px; font-size: 12.5px; font-weight: 700; color: var(--bl-ink); }
.bl-action:hover { background: var(--bl-primary-50); color: var(--bl-primary); }
.bl-action__icon { position: relative; display: inline-grid; place-items: center; color: var(--bl-primary); }
.bl-count {
	position: absolute; top: -8px; inset-inline-end: -9px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; background: var(--bl-accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; transition: transform .25s var(--bl-ease);
}
.bl-count.is-empty { transform: scale(0); }
.bl-count.is-bump { animation: bl-bump .4s var(--bl-ease); }

/* Mini cart */
.bl-minicart { position: relative; }
.bl-minicart__panel {
	position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 120; width: 340px; padding: 18px;
	border: 1px solid var(--bl-line); border-radius: 22px; background: #fff; box-shadow: var(--bl-shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--bl-ease);
}
.bl-minicart:hover .bl-minicart__panel, .bl-minicart:focus-within .bl-minicart__panel { opacity: 1; visibility: visible; transform: none; }

/* Navigation */
.bl-nav { border-top: 1px solid var(--bl-line); border-bottom: 1px solid var(--bl-line); background: #fff; }
.bl-nav__head { display: none; }
.bl-nav__inner { display: flex; align-items: center; gap: 28px; min-height: 56px; }
.bl-menu, .bl-menu ul { list-style: none; }
.bl-menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bl-menu > li { position: relative; }
.bl-menu a { display: block; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 13.5px; }
.bl-menu a:hover, .bl-menu .current-menu-item > a { color: var(--bl-primary); background: var(--bl-primary-50); }
.bl-menu .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; z-index: 60; min-width: 220px; padding: 8px; border: 1px solid var(--bl-line); border-radius: 18px;
	background: #fff; box-shadow: var(--bl-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s var(--bl-ease);
}
.bl-menu li:hover > .sub-menu, .bl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.bl-catnav { position: relative; }
.bl-catnav__btn {
	display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; color: #fff; font-weight: 700; font-size: 13.5px;
	background: linear-gradient(135deg, var(--bl-primary), var(--bl-primary-700));
}
.bl-catnav__chev { transition: transform .25s; }
.bl-catnav__btn[aria-expanded="true"] .bl-catnav__chev { transform: rotate(180deg); }
.bl-catnav__list {
	position: absolute; top: calc(100% + 10px); inset-inline-start: 0; z-index: 70; min-width: 250px; margin: 0; padding: 8px; list-style: none;
	border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; box-shadow: var(--bl-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s var(--bl-ease);
}
.bl-catnav:hover .bl-catnav__list, .bl-catnav:focus-within .bl-catnav__list, .bl-catnav__btn[aria-expanded="true"] + .bl-catnav__list { opacity: 1; visibility: visible; transform: none; }
.bl-catnav__list > li { position: relative; }
.bl-catnav__list a { display: block; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.bl-catnav__list a:hover { background: var(--bl-primary-50); color: var(--bl-primary); }
.bl-catnav__sub { position: absolute; top: -8px; inset-inline-start: calc(100% + 4px); min-width: 210px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; box-shadow: var(--bl-shadow); opacity: 0; visibility: hidden; transition: .2s; }
.bl-catnav__list li:hover > .bl-catnav__sub { opacity: 1; visibility: visible; }
.bl-catnav__sub li { position: relative; }
.bl-catnav__sub--3 { z-index: 2; }
.bl-catnav li.has-children > a { padding-inline-end: 32px; }
.bl-catnav li.has-children > a::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid currentColor; border-width: 0 0 2px 2px; opacity: .45; transform: rotate(45deg); transition: opacity .2s, transform .2s; }
.bl-catnav li.has-children:hover > a::after { opacity: .9; }
.bl-catnav li.has-children > a { position: relative; }
.bl-catnav__tg { display: none; }

.bl-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(23, 17, 29, .55); opacity: 0; transition: opacity .3s; }
.bl-overlay.is-open { opacity: 1; }

/* ==========================================================================
   5. Hero slider
   ========================================================================== */
.bl-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bl-accent-50) 0%, var(--bl-primary-50) 58%, #fff 100%); }
.bl-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.bl-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: bl-drift 14s ease-in-out infinite alternate; }
.bl-orb--1 { width: 360px; height: 360px; top: -90px; inset-inline-start: -80px; background: var(--bl-accent); }
.bl-orb--2 { width: 300px; height: 300px; bottom: -60px; inset-inline-end: 10%; background: var(--bl-primary); opacity: .35; animation-delay: -5s; }
.bl-orb--3 { width: 200px; height: 200px; top: 30%; inset-inline-end: 40%; background: #fff; opacity: .8; animation-delay: -9s; }

.bl-hero__track { position: relative; display: grid; touch-action: pan-y; }
.bl-slide { grid-area: 1 / 1; display: flex; align-items: center; min-height: 600px; padding-block: 56px 90px; opacity: 0; visibility: hidden; transition: opacity .7s var(--bl-ease), visibility .7s; }
.bl-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.bl-slide__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; width: min(var(--bl-container), calc(100% - 32px)); }
.bl-slide__copy { max-width: 560px; }

.bl-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--bl-primary); font-size: 13px; font-weight: 700; box-shadow: var(--bl-shadow-sm); }
.bl-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--bl-accent); box-shadow: 0 0 0 4px var(--bl-accent-100); }
.bl-slide__title { margin: 0 0 14px; font-size: clamp(34px, 5vw, 62px); line-height: 1.3; letter-spacing: -.5px; background: linear-gradient(120deg, var(--bl-dark) 30%, var(--bl-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-slide__sub { margin-bottom: 28px; font-size: clamp(15px, 1.8vw, 19px); color: var(--bl-muted); }
.bl-slide__trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--bl-muted); font-size: 13px; }
.bl-slide__trust .bl-icon { color: var(--bl-accent); }

.bl-slide__art { position: relative; justify-self: center; width: min(100%, 520px); }
.bl-slide__frame { position: relative; aspect-ratio: 1; }
.bl-slide__frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(81, 29, 104, .18)); }
.bl-chip {
	position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .92);
	box-shadow: var(--bl-shadow); font-size: 12px; line-height: 1.5; animation: bl-float 6s ease-in-out infinite;
}
.bl-chip .bl-icon { color: var(--bl-primary); }
.bl-chip b { display: block; font-size: 13px; }
.bl-chip small { color: var(--bl-muted); }
.bl-chip--one { top: 12%; inset-inline-end: -2%; }
.bl-chip--two { bottom: 14%; inset-inline-start: -2%; animation-delay: -3s; }

/* entrance animation of the active slide */
.bl-slide.is-active .bl-slide__copy > * { animation: bl-rise .8s var(--bl-ease) both; }
.bl-slide.is-active .bl-slide__copy > :nth-child(2) { animation-delay: .08s; }
.bl-slide.is-active .bl-slide__copy > :nth-child(3) { animation-delay: .16s; }
.bl-slide.is-active .bl-slide__copy > :nth-child(4) { animation-delay: .24s; }
.bl-slide.is-active .bl-slide__copy > :nth-child(5) { animation-delay: .32s; }
.bl-slide.is-active .bl-slide__frame { animation: bl-pop .9s var(--bl-ease) both; }
.bl-slide.is-active .bl-slide__frame img { animation: bl-float 7s ease-in-out .9s infinite; }

.bl-hero__controls { position: absolute; z-index: 5; bottom: 26px; inset-inline: 0; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 14px; pointer-events: none; }
.bl-hero__controls > * { pointer-events: auto; }
.bl-hero__arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--bl-primary); box-shadow: var(--bl-shadow-sm); }
.bl-hero__arrow:hover { background: var(--bl-primary); color: #fff; }
.bl-hero__dots { display: flex; align-items: center; gap: 8px; }
.bl-hero__dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(var(--bl-primary-rgb), 0.25); transition: width .3s var(--bl-ease), background .3s; }
.bl-hero__dot.is-active { width: 34px; background: var(--bl-primary); }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.bl-section { padding-block: 72px; }
.bl-heading { margin-bottom: 40px; text-align: center; }
.bl-heading--page { margin-top: 20px; }
.bl-heading__kicker { display: inline-block; margin-bottom: 8px; padding: 2px 14px; border-radius: 999px; background: var(--bl-accent-100); color: var(--bl-primary-700); font-size: 11px; font-weight: 700; letter-spacing: 2px; direction: ltr; }
.bl-heading__title { margin: 0 0 6px; font-size: clamp(25px, 3.4vw, 36px); }
.bl-heading__sub { margin: 0; color: var(--bl-muted); }
.bl-center { margin-top: 38px; text-align: center; }
.bl-link { display: inline-flex; align-items: center; gap: 8px; color: var(--bl-primary); font-weight: 700; }
.bl-link:hover { gap: 12px; }

/* Benefits */
.bl-benefits { position: relative; z-index: 3; margin-top: -34px; }
.bl-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 22px 10px; border: 1px solid var(--bl-line); border-radius: 26px; background: #fff; box-shadow: var(--bl-shadow); }
.bl-benefit { display: flex; align-items: center; gap: 14px; padding: 6px 22px; }
.bl-benefit + .bl-benefit { border-inline-start: 1px dashed var(--bl-line); }
.bl-benefit__icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 18px; background: var(--bl-primary-50); color: var(--bl-primary); transition: .3s var(--bl-ease); }
.bl-benefit:hover .bl-benefit__icon { background: var(--bl-primary); color: #fff; transform: rotate(-8deg) scale(1.06); }
.bl-benefit b { display: block; font-size: 14.5px; }
.bl-benefit small { color: var(--bl-muted); font-size: 12.5px; }

/* Categories */
.bl-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bl-cat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bl-cat__img { position: relative; display: block; width: 100%; max-width: 170px; aspect-ratio: 1; margin-bottom: 14px; padding: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--bl-accent), var(--bl-primary)); transition: transform .4s var(--bl-ease), box-shadow .4s; }
.bl-cat__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: var(--bl-primary-50); }
.bl-cat:hover .bl-cat__img { transform: translateY(-6px) rotate(-3deg); box-shadow: 0 18px 34px rgba(var(--bl-primary-rgb), 0.28); }
.bl-cat b { font-size: 15px; }
.bl-cat small { color: var(--bl-muted); font-size: 12px; }

/* Product grid */
.bl-products { background: linear-gradient(180deg, #fff, var(--bl-accent-50)); }
.bl-grid { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.bl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bl-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bl-grid--5 { grid-template-columns: repeat(5, 1fr); }
.bl-grid__item { min-width: 0; margin: 0; }
.bl-grid__item:nth-child(4n+2) .reveal { transition-delay: .07s; }
.bl-grid__item:nth-child(4n+3) .reveal { transition-delay: .14s; }
.bl-grid__item:nth-child(4n+4) .reveal { transition-delay: .21s; }

/* Product card */
.bl-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--bl-line); border-radius: var(--bl-radius); background: #fff; transition: transform .4s var(--bl-ease), box-shadow .4s, border-color .3s; }
.bl-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--bl-shadow); }
.bl-card__media { position: relative; overflow: hidden; aspect-ratio: 1; background: linear-gradient(135deg, var(--bl-accent-50), var(--bl-primary-50)); }
.bl-card__media a { display: block; width: 100%; height: 100%; }
.bl-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--bl-ease); }
.bl-card:hover .bl-card__img { transform: scale(1.08); }
.bl-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; padding: 2px 12px; border-radius: 999px; background: var(--bl-accent); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.9; box-shadow: 0 6px 14px rgba(var(--bl-accent-rgb), 0.4); }
.bl-badge--muted { background: var(--bl-dark); box-shadow: none; }
.bl-wish {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .94); color: var(--bl-ink); box-shadow: var(--bl-shadow-sm); transition: transform .25s var(--bl-ease), color .2s, background .2s;
}
.bl-wish:hover { color: var(--bl-accent); transform: scale(1.1); }
.bl-wish[disabled] { cursor: default; }
.bl-wish.is-active { color: #fff; background: var(--bl-accent); }
.bl-wish.is-active .bl-icon { fill: currentColor; }
.bl-wish.is-pop { animation: bl-bump .45s var(--bl-ease); }
.bl-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 16px 8px; }
.bl-card__cat { color: var(--bl-muted); font-size: 11.5px; }
.bl-card__title { margin: 0; font-size: 14.5px; line-height: 1.7; min-height: 3.4em; }
.bl-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__price { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--bl-primary); font-size: 15px; }
.bl-card__price small { font-size: 11px; color: var(--bl-muted); }
.bl-card__price del { margin-inline-end: 6px; color: #a99fb2; font-size: 12.5px; font-weight: 400; }
.bl-card__price ins { text-decoration: none; }
.bl-card__price .woocommerce-Price-currencySymbol { font-size: .75em; margin-inline-start: 3px; color: var(--bl-muted); font-weight: 400; }
.bl-card__action { padding: 8px 16px 16px; }

/* Rating */
.bl-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--bl-muted); font-size: 12px; }
.bl-stars {
	display: inline-block; width: 5em; height: 1em; font-size: 15px;
	background: linear-gradient(to left, var(--bl-star) var(--bl-rating, 0%), var(--bl-star-empty) var(--bl-rating, 0%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.4l2.6 5.4 5.9.8-4.3 4.1 1 5.8L10 14.7l-5.2 2.8 1-5.8L1.5 7.6l5.9-.8L10 1.4z'/%3E%3C/svg%3E") right center / 1em 1em repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.4l2.6 5.4 5.9.8-4.3 4.1 1 5.8L10 14.7l-5.2 2.8 1-5.8L1.5 7.6l5.9-.8L10 1.4z'/%3E%3C/svg%3E") right center / 1em 1em repeat-x;
}

/* Editorial */
.bl-editorial { padding-block: 80px; background: linear-gradient(135deg, var(--bl-primary-50), var(--bl-accent-50)); }
.bl-editorial__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.bl-editorial__media { position: relative; border-radius: 40px; overflow: hidden; background: linear-gradient(135deg, var(--bl-accent-100), var(--bl-primary-100)); aspect-ratio: 1; box-shadow: var(--bl-shadow); }
.bl-editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.bl-editorial__seal { position: absolute; bottom: 22px; inset-inline-start: 22px; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--bl-dark); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-align: center; line-height: 1.5; direction: ltr; animation: bl-spin 24s linear infinite; }
.bl-editorial__copy h2 { font-size: clamp(26px, 3.4vw, 40px); }
.bl-editorial__copy p { color: var(--bl-muted); font-size: 16px; }

/* Newsletter band */
.bl-newsband { padding-block: 56px; background: linear-gradient(120deg, var(--bl-primary-700), var(--bl-primary)); color: #fff; }
.bl-newsband__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.bl-newsband h2 { margin-bottom: 4px; }
.bl-newsband p { margin: 0; opacity: .85; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.bl-footer { margin-top: 0; background: linear-gradient(160deg, var(--bl-dark) 0%, var(--bl-footer-end) 120%); color: #d8cce4; }
.bl-footer__grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.3fr; gap: 44px; padding-block: 64px 40px; }
.bl-footer h3 { margin-bottom: 18px; color: #fff; font-size: 16px; }
.bl-footer p { font-size: 13.5px; }
.bl-footer a:hover { color: var(--bl-accent); }
.bl-footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.bl-footer__hint { opacity: .6; font-size: 12px; }
.bl-socials { display: flex; gap: 10px; margin-top: 18px; }
.bl-socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #fff; }
.bl-socials a:hover { background: var(--bl-accent); border-color: var(--bl-accent); color: #fff; transform: translateY(-3px); }
.bl-footer__badges { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 32px; }
.bl-footer__badges .bl-footer-badge { padding: 10px; border-radius: 16px; background: #fff; }
.bl-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .25); font-size: 12.5px; }
.bl-footer__bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 56px; }
.bl-inline-heart { color: var(--bl-accent); fill: currentColor; }

.bl-news__row { display: flex; gap: 8px; padding: 5px; border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .08); }
.bl-news__row input[type="email"] { flex: 1; min-width: 0; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: #fff; box-shadow: none; padding-inline: 16px; }
.bl-news__row input[type="email"]::placeholder { color: #b9a9ca; }
.bl-news__row:focus-within { border-color: var(--bl-accent); }
.bl-news__row .bl-btn { min-height: 42px; padding-inline: 22px; }
.bl-news__msg { min-height: 1.6em; margin: 10px 8px 0; font-size: 12.5px; }
.bl-news__msg.is-ok { color: #8be0b5; }
.bl-news__msg.is-error { color: #ffadc9; }
.bl-news__note { display: block; margin-inline: 8px; color: #a898b9; font-size: 11.5px; }
.bl-newsband .bl-news__row { background: rgba(255, 255, 255, .14); }
.bl-newsband .bl-news__msg.is-ok { color: #c9ffe1; }

/* ==========================================================================
   8. Mobile bar, scroll-top, toast
   ========================================================================== */
.bl-bottombar { display: none; }
.bl-totop { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bl-primary); color: #fff; box-shadow: var(--bl-shadow); transition: transform .3s var(--bl-ease), opacity .3s; }
.bl-totop:hover { transform: translateY(-4px); }
.bl-toast { position: fixed; bottom: 28px; inset-inline: 0; margin-inline: auto; z-index: 200; width: fit-content; max-width: calc(100% - 32px); padding: 12px 22px; border-radius: 999px; background: var(--bl-dark); color: #fff; font-size: 13.5px; box-shadow: var(--bl-shadow); animation: bl-rise .35s var(--bl-ease); }

/* ==========================================================================
   9. Pages, posts, blog
   ========================================================================== */
.bl-page { padding-block: 40px 72px; }
.bl-page-title { margin-bottom: 18px; font-size: clamp(24px, 3vw, 34px); }
.bl-panel { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--bl-line); border-radius: 26px; background: #fff; box-shadow: var(--bl-shadow-sm); }
.bl-page-thumb { margin-bottom: 24px; overflow: hidden; border-radius: 20px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content a:not(.bl-btn):not(.button) { color: var(--bl-primary); text-decoration: underline; text-underline-offset: 4px; }
.entry-content img { border-radius: 16px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.6em; }
.entry-content blockquote { margin-inline: 0; padding: 16px 22px; border-inline-start: 4px solid var(--bl-accent); border-radius: 12px; background: var(--bl-accent-50); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--bl-line); text-align: right; }
.entry-content th { background: var(--bl-primary-50); }
.alignwide { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--bl-muted); font-size: 12.5px; text-align: center; }
.bl-page-links { margin-top: 20px; }
.bl-tags a { display: inline-block; margin: 0 0 6px 6px; padding: 2px 14px; border-radius: 999px; background: var(--bl-primary-50); font-size: 12.5px; }
.bl-single .cat-links a { color: var(--bl-primary); }

.bl-widget { margin-bottom: 24px; padding: 22px; border: 1px solid var(--bl-line); border-radius: var(--bl-radius); }
.bl-widget__title { font-size: 16px; }
.bl-widget ul { padding-inline-start: 1.2em; }

.navigation.pagination { margin-top: 40px; }
.nav-links, .woocommerce-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--bl-line); border-radius: 14px; background: #fff; font-weight: 700; }
a.page-numbers:hover { border-color: var(--bl-primary); color: var(--bl-primary); }
.page-numbers.current { border-color: transparent; background: var(--bl-primary); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; margin-top: 30px; }
.post-navigation a { display: block; max-width: 48%; padding: 14px 20px; border: 1px solid var(--bl-line); border-radius: 18px; font-weight: 700; }
.post-navigation span { display: block; color: var(--bl-muted); font-size: 12px; font-weight: 400; }

.bl-comments { margin-top: 30px; }
.bl-comments__list, .bl-comments__list ol { list-style: none; }
.bl-comments__list .comment-body { margin-bottom: 18px; padding: 18px; border: 1px solid var(--bl-line); border-radius: 18px; }
.bl-comments__list .avatar { float: right; margin-left: 14px; border-radius: 50%; }
.comment-form p { margin-bottom: 16px; }

.bl-searchform { display: flex; gap: 8px; max-width: 520px; margin: 18px auto; }
.bl-empty { max-width: 560px; margin: 40px auto; padding: 48px 24px; text-align: center; }
.bl-empty__icon { color: var(--bl-accent); margin-bottom: 14px; }
.bl-404 { display: block; font-size: clamp(70px, 14vw, 140px); font-weight: 700; line-height: 1.1; background: linear-gradient(135deg, var(--bl-accent), var(--bl-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-wishlist__loading { text-align: center; color: var(--bl-muted); }

/* ==========================================================================
   10. Animation
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--bl-ease), transform .8s var(--bl-ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .bl-card.reveal.is-visible { transition: opacity .8s var(--bl-ease), transform .4s var(--bl-ease), box-shadow .4s, border-color .3s; }

@keyframes bl-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bl-pop { from { opacity: 0; transform: scale(.88) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bl-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.15); } }
@keyframes bl-spin { to { transform: rotate(360deg); } }
@keyframes bl-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.bl-cat-grid { grid-template-columns: repeat(3, 1fr); }
	.bl-grid--4, .bl-grid--5 { grid-template-columns: repeat(3, 1fr); }
	.bl-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
	:root { --bl-header-h: 64px; }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.bl-topbar__links { display: none; }
	.bl-topbar__inner { justify-content: center; }

	.bl-header__main { grid-template-columns: auto 1fr auto; grid-template-areas: "menu brand actions" "search search search"; gap: 8px 10px; padding-block: 8px 12px; }
	.bl-menu-toggle { display: inline-grid; grid-area: menu; }
	.bl-header__main > .bl-brand { grid-area: brand; justify-self: center; }
	.bl-search { grid-area: search; }
	.bl-actions { grid-area: actions; }
	.bl-actions .bl-action__label, .bl-actions .bl-action:not(.bl-action--cart) { display: none; }
	.bl-brand__mark { width: 40px; height: 40px; border-radius: 13px; }
	.bl-brand__text strong { font-size: 19px; }
	.bl-minicart__panel { display: none; }

	/* off-canvas navigation */
	.bl-overlay:not([hidden]) { display: block; }
	.bl-nav {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100; width: 0; overflow: hidden; border: 0; padding-bottom: 40px;
		visibility: hidden; transition: width .35s var(--bl-ease), visibility .35s; box-shadow: var(--bl-shadow);
	}
	.bl-nav.bl-nav > * { width: min(340px, 88vw); min-width: min(340px, 88vw); flex-shrink: 0; }
	.bl-nav.is-open { width: min(340px, 88vw); overflow-x: hidden; overflow-y: auto; visibility: visible; }
	.bl-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--bl-line); }
	.bl-nav__inner { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; padding: 16px; }
	.bl-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.bl-menu a { padding: 12px 14px; font-size: 14.5px; }
	.bl-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 14px 0 0; border: 0; box-shadow: none; }
	.bl-catnav__btn { width: 100%; justify-content: space-between; border-radius: 16px; }
	.bl-catnav__list { position: static; display: none; margin-top: 8px; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
	.bl-catnav__btn[aria-expanded="true"] + .bl-catnav__list { display: block; }
	.bl-catnav:hover .bl-catnav__list, .bl-catnav:focus-within .bl-catnav__list { display: none; }
	.bl-catnav__btn[aria-expanded="true"] + .bl-catnav__list { display: block; }
	.bl-catnav__sub { position: static; opacity: 1; visibility: visible; min-width: 0; border: 0; box-shadow: none; padding: 0 12px 0 0; }
	.bl-catnav__sub { display: none; margin: 2px 0 4px; }
	.bl-catnav li.is-open > .bl-catnav__sub { display: block; }
	.bl-catnav li.has-children > a::after { display: none; }
	.bl-catnav li.has-children { position: relative; }
	.bl-catnav__tg { position: absolute; inset-inline-end: 4px; top: 4px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: var(--bl-primary-50); color: var(--bl-primary); cursor: pointer; }
	.bl-catnav__tg svg { transition: transform .25s; }
	.bl-catnav__tg[aria-expanded="true"] svg { transform: rotate(180deg); }

	/* hero */
	.bl-slide { min-height: 0; padding-block: 28px 76px; }
	.bl-slide__grid { grid-template-columns: 1fr; gap: 10px; text-align: center; }
	.bl-slide__art { order: -1; width: min(78%, 340px); }
	.bl-slide__copy { max-width: none; margin-inline: auto; }
	.bl-slide__trust { justify-content: center; }
	.bl-chip { padding: 6px 12px; font-size: 11px; }
	.bl-chip .bl-icon { width: 18px; height: 18px; }
	.bl-chip--one { inset-inline-end: -6%; }
	.bl-chip--two { inset-inline-start: -6%; }
	.bl-hero__arrow { display: none; }

	.bl-benefits { margin-top: -26px; }
	.bl-benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 14px 0; padding: 16px 8px; }
	.bl-benefit { padding: 4px 12px; }
	.bl-benefit:nth-child(odd) { border-inline-start: 0; }
	.bl-benefit + .bl-benefit { border-inline-start: 0; }
	.bl-benefit:nth-child(even) { border-inline-start: 1px dashed var(--bl-line); }
	.bl-benefit__icon { width: 46px; height: 46px; border-radius: 15px; }

	.bl-section { padding-block: 52px; }
	.bl-editorial { padding-block: 52px; }
	.bl-editorial__grid, .bl-newsband__inner { grid-template-columns: 1fr; gap: 28px; }
	.bl-editorial__media { max-width: 440px; margin-inline: auto; }

	/* bottom bar */
	.bl-bottombar {
		position: fixed; inset-inline: 0; bottom: 0; z-index: 85; display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bl-line); background: rgba(255, 255, 255, .98); box-shadow: 0 -10px 30px rgba(58, 24, 72, .08);
	}
	.bl-bottombar a, .bl-bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; border: 0; background: transparent; color: var(--bl-muted); font-size: 10.5px; font-weight: 700; }
	.bl-bottombar .is-active, .bl-bottombar a:hover { color: var(--bl-primary); }
	.bl-bottombar__icon { position: relative; display: inline-grid; }
	.bl-totop { bottom: 84px; inset-inline-start: 14px; }
	.bl-toast { bottom: 90px; }
}

@media (max-width: 767px) {
	.bl-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
	.bl-cat b { font-size: 12.5px; }
	.bl-cat small { display: none; }
	.bl-cat__img { padding: 4px; }
	.bl-cat__img img { border-width: 3px; }
	.bl-grid, .bl-grid--3, .bl-grid--4, .bl-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.bl-card { border-radius: 18px; }
	.bl-card__body { padding: 12px 12px 4px; }
	.bl-card__title { font-size: 13px; }
	.bl-card__price { font-size: 13.5px; }
	.bl-card__action { padding: 6px 12px 12px; }
	.bl-card .bl-btn--cart { min-height: 40px; padding-inline: 10px; font-size: 12.5px; }
	.bl-wish { width: 36px; height: 36px; }
	.bl-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 44px 24px; }
	.bl-footer__bottom .container { justify-content: center; text-align: center; }
	.bl-heading { margin-bottom: 26px; }
	.bl-hero__controls { bottom: 18px; }
}

@media (max-width: 420px) {
	.bl-topbar { font-size: 11.5px; }
	.bl-news__row { flex-direction: column; border-radius: 22px; }
	.bl-news__row .bl-btn { width: 100%; }
	.bl-benefit b { font-size: 13px; }
	.bl-benefit small { font-size: 11.5px; }
}

@media print {
	.bl-topbar, .bl-header, .bl-footer, .bl-bottombar, .bl-totop, .bl-toast { display: none !important; }
}


/* ==========================================================================
   Homepage builder (v3.4) – wrapper .bl-home, widgets .bl-home-widget--{id}
   متغیرها از front-page / home-builder.php روی .bl-home تنظیم می‌شوند.
   ========================================================================== */
.bl-home { --bl-home-bg: #fff; --bl-home-card-bg: #faf7fc; --bl-home-gap: 64px; --bl-home-pad: 40px; --bl-home-radius: 16px; }
.bl-home--w-wide { --bl-container: 1440px; }
.bl-home--w-full { --bl-container: 100%; }
.bl-home-widget { margin-block-end: var(--bl-home-gap); }
.bl-home-widget:last-child { margin-block-end: 0; }
.bl-home-widget--benefits .bl-benefits { margin-top: 0; }
/* hero → benefits: the two margins cancel out, then the bar overlaps the hero as designed */
.bl-home-widget--hero + .bl-home-widget--benefits { margin-top: calc(var(--bl-home-gap) * -1); }
.bl-home-widget--hero + .bl-home-widget--benefits .bl-benefits { margin-top: -34px; }
.bl-home .bl-section,
.bl-home .bl-home-banners { padding-block: var(--bl-home-pad); margin-block: 0; background: var(--bl-home-bg); }
.bl-home .bl-products,
.bl-home .bl-categories { background: var(--bl-home-bg); }
.bl-home .bl-editorial,
.bl-home .bl-benefits { background: transparent; }
.bl-home .bl-cat,
.bl-home .bl-grid__item .bl-card { border-radius: var(--bl-home-radius); }
.bl-home .bl-grid__item .bl-card { background: var(--bl-home-card-bg); }
.bl-home .bl-home-banner { border-radius: var(--bl-home-radius); background: var(--bl-home-card-bg); }

/* Promotional banners */
.bl-home-banners__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bl-home-banner { position: relative; min-height: 230px; overflow: hidden; display: flex; align-items: center; border-radius: 24px; background: var(--bl-home-card-bg, #faf7fc); isolation: isolate; }
.bl-home-banner__image { position: absolute; inset: 0; z-index: -2; }
.bl-home-banner__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 15, 30, .78), rgba(25, 15, 30, .12)); }
.bl-home-banner__image img { width: 100%; height: 100%; object-fit: cover; }
.bl-home-banner__content { position: relative; z-index: 1; max-width: 75%; padding: 30px; color: var(--bl-dark, #17111d); }
.bl-home-banner:has(.bl-home-banner__image) .bl-home-banner__content { color: #fff; }
.bl-home-banner__content h2 { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 30px); }
.bl-home-banner__content p { margin: 0 0 18px; }
@media (max-width: 700px) { .bl-home-banners__grid { grid-template-columns: 1fr; } .bl-home-banner { min-height: 190px; } .bl-home-banner__content { max-width: 90%; padding: 22px; } }

/* Product lists & category lists: --bl-cols (desktop) / --bl-cols-t (tablet) / --bl-cols-m (mobile) */
.bl-grid.bl-home-products,
.bl-cat-grid.bl-home-categories { --bl-cols: 4; --bl-cols-t: 3; --bl-cols-m: 2; --bl-item-gap: 18px; gap: var(--bl-item-gap); }
.bl-home-products--grid { display: grid; grid-template-columns: repeat(var(--bl-cols), minmax(0, 1fr)); }
.bl-home-categories--grid { display: grid; grid-template-columns: repeat(var(--bl-cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--bl-rows, 2), auto); }
.bl-home-products--carousel,
.bl-home-categories--carousel { display: flex; overflow-x: auto; padding: 10px 2px 22px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.bl-home-products--carousel::-webkit-scrollbar,
.bl-home-categories--carousel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.bl-home-products--carousel > .bl-grid__item,
.bl-home-categories--carousel > .bl-cat { flex: 0 0 calc((100% - (var(--bl-cols) - 1) * var(--bl-item-gap)) / var(--bl-cols)); min-width: 0; scroll-snap-align: start; }
@media (max-width: 1023px) {
	.bl-home-products--grid,
	.bl-home-categories--grid { grid-template-columns: repeat(var(--bl-cols-t), minmax(0, 1fr)); grid-template-rows: repeat(var(--bl-rows-t, 2), auto); }
	.bl-home-products--carousel > .bl-grid__item,
	.bl-home-categories--carousel > .bl-cat { flex-basis: calc((100% - (var(--bl-cols-t) - 1) * var(--bl-item-gap)) / var(--bl-cols-t)); }
}
@media (max-width: 767px) {
	.bl-grid.bl-home-products,
	.bl-cat-grid.bl-home-categories { --bl-item-gap: 12px; }
	.bl-home-products--grid,
	.bl-home-categories--grid { grid-template-columns: repeat(var(--bl-cols-m), minmax(0, 1fr)); grid-template-rows: repeat(var(--bl-rows-m, 3), auto); }
	.bl-home-products--carousel > .bl-grid__item,
	.bl-home-categories--carousel > .bl-cat { flex-basis: calc((100% - (var(--bl-cols-m) - 1) * var(--bl-item-gap)) / var(--bl-cols-m)); }
	.bl-home .bl-section,
	.bl-home .bl-home-banners { padding-block: calc(var(--bl-home-pad) * .7); }
}

/* Elementor homepage widgets: deals countdown, brands, campaign banners */
.bl-deals-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 28px; }
.bl-deals-head h2 { margin: 4px 0; }
.bl-deals-head p { margin: 0; color: var(--bl-muted); }
.bl-deals-kicker { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--bl-accent-100); color: var(--bl-primary-700); font-size: 11px; font-weight: 700; letter-spacing: 2px; direction: ltr; }
.bl-deals-clock { display: inline-flex; align-items: center; gap: 6px; direction: ltr; }
.bl-deals-clock b { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 6px; border-radius: 12px; background: var(--bl-primary); color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; }
.bl-deals-clock i { color: var(--bl-primary); font-style: normal; font-weight: 700; }
.bl-deals-products,
.bl-tabs-products { min-width: 0; }
.bl-deals-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) { .bl-deals-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.bl-home-brands-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; align-items: center; }
.bl-home-brands-row a { display: grid; place-items: center; min-height: 84px; padding: 14px; border: 1px solid var(--bl-line); border-radius: 16px; background: #fff; color: var(--bl-dark); transition: transform .25s var(--bl-ease), border-color .25s; }
.bl-home-brands-row a:hover { transform: translateY(-3px); border-color: var(--bl-primary); }
.bl-home-brands-row img { max-width: 100%; max-height: 52px; object-fit: contain; }
.bl-campaign-grid { --campaign-cols: 3; display: grid; grid-template-columns: repeat(var(--campaign-cols), minmax(0, 1fr)); gap: 16px; }
.bl-campaign-grid a { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--bl-primary-50); }
.bl-campaign-grid img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--bl-ease); }
.bl-campaign-grid a:hover img { transform: scale(1.05); }
.bl-campaign-grid span { position: absolute; inset-inline: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--bl-dark); font-weight: 700; }
@media (max-width: 767px) { .bl-campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product tabs and reviews */
.bl-tabs-nav{display:flex;gap:8px;overflow:auto;margin:22px 0;padding-bottom:8px}.bl-tabs-nav button{white-space:nowrap;border:1px solid #eadfe8;border-radius:999px;background:#fff;padding:10px 20px;color:#70566a;cursor:pointer;font:inherit}.bl-tabs-nav button[aria-selected=true]{background:#8e547f;color:#fff;border-color:#8e547f}.bl-tabs-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bl-tabs-products>div{min-width:0}.bl-reviews-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bl-reviews-grid article{padding:22px;border:1px solid #eee;border-radius:16px;background:#fff}.bl-review-stars{color:#e4a229;letter-spacing:2px}.bl-reviews-grid p{font-size:13px;line-height:2;color:#777}.bl-reviews-grid strong,.bl-reviews-grid small{display:block}.bl-reviews-grid small{margin-top:5px;color:#999;font-size:11px}
@media(max-width:1024px){.bl-tabs-products{grid-template-columns:repeat(3,minmax(0,1fr))}.bl-reviews-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.bl-tabs-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bl-reviews-grid{grid-template-columns:1fr}}


/* ==========================================================================
   v3.8.0 – تناسب ابعاد در دسکتاپ (لپ‌تاپ‌ها و صفحه‌های کوچک‌تر)
   ========================================================================== */
@media (min-width: 992px) {
	:root { --bl-header-h: 68px; }
	.bl-nav__inner { min-height: 48px; }
	.bl-section { padding-block: 52px; }
	.bl-heading { margin-bottom: 28px; }
	.bl-heading__title { font-size: clamp(22px, 2.4vw, 30px); }
	.bl-heading__sub { font-size: 14px; }
	.bl-center { margin-top: 28px; }

	.bl-slide { min-height: 470px; padding-block: 36px 74px; }
	.bl-slide__title { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 10px; }
	.bl-slide__sub { margin-bottom: 20px; font-size: clamp(14px, 1.4vw, 17px); }
	.bl-slide__art { width: min(100%, 400px); }
	.bl-slide__grid { gap: 28px; }
	.bl-benefits { margin-top: -26px; }
	.bl-benefits__grid { padding: 16px 8px; border-radius: 22px; }
	.bl-benefit__icon { width: 46px; height: 46px; border-radius: 15px; }

	.bl-cat-grid { gap: 16px; }
	.bl-cat__img { max-width: 130px; margin-bottom: 10px; }
	.bl-cat b { font-size: 14px; }

	.bl-editorial { padding-block: 56px; }
	.bl-editorial__grid { gap: 44px; }
	.bl-editorial__media { max-width: 440px; border-radius: 32px; }
	.bl-editorial__copy h2 { font-size: clamp(22px, 2.6vw, 32px); }
	.bl-editorial__copy p { font-size: 14.5px; }
	.bl-newsband { padding-block: 40px; }
	.bl-footer__grid { padding-block: 44px 28px; gap: 36px; }
}
@media (min-width: 992px) and (max-height: 820px) {
	.bl-slide { min-height: 400px; padding-block: 28px 64px; }
	.bl-slide__art { width: min(100%, 340px); }
	.bl-slide__title { font-size: clamp(28px, 3.2vw, 40px); }
}


/* ==========================================================================
   LionCosmetic 3.9.0 – desktop layout refinement
   Values are controlled from Appearance > Theme Settings > Homepage widgets.
   ========================================================================== */
@media (min-width: 1024px) {
  .bl-home { --bl-container: var(--bl-home-max-width, 1280px); }
  .bl-home .bl-grid.bl-home-products,
  .bl-home .bl-cat-grid.bl-home-categories { --bl-card-gap: var(--bl-item-gap, 16px); }
  .bl-home .bl-cat__img {
    width: var(--bl-category-image-size, 88px);
    height: var(--bl-category-image-size, 88px);
    max-width: var(--bl-category-image-size, 88px);
    padding: 4px;
    margin-inline: auto;
    margin-bottom: 10px;
  }
  .bl-home .bl-cat__img img { border-width: 3px; }
  .bl-home .bl-cat { padding-inline: 4px; }
  .bl-home .bl-section__head { margin-bottom: 22px; }
  .bl-home .bl-section__head h2 { font-size: clamp(21px, 1.8vw, 27px); }
}
@media (min-width: 768px) {
  .bl-home .bl-home-products .bl-card__media {
    height: var(--bl-product-image-height, 190px);
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bl-home .bl-home-products .bl-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .bl-home .bl-home-products .bl-card { border-radius: 18px; }
  .bl-home .bl-home-products .bl-card__body { padding: 12px 12px 2px; }
}


/* LionCosmetic 3.9.3 – configurable responsive category layouts */
.bl-home .bl-home-categories--grid {
	display: grid !important;
	grid-template-columns: repeat(var(--bl-cols), minmax(0, 1fr)) !important;
	grid-template-rows: repeat(var(--bl-rows, 2), auto);
	justify-content: center;
	align-items: start;
	gap: 26px 30px !important;
	width: 100%;
	max-width: 100%;
	overflow: visible !important;
	padding: 8px 0 18px !important;
}
.bl-home .bl-home-categories--carousel {
	display: flex !important;
	flex-wrap: nowrap !important;
	grid-template-columns: none !important;
	justify-content: flex-start;
	gap: 26px 30px !important;
	width: 100%;
	max-width: 100%;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	padding: 8px 0 18px !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch;
}
@media (max-width: 1023px) {
	.bl-home .bl-home-categories--grid { grid-template-columns: repeat(var(--bl-cols-t), minmax(0, 1fr)) !important; grid-template-rows: repeat(var(--bl-rows-t, 2), auto); }
}
@media (max-width: 767px) {
	.bl-home .bl-home-categories--grid { grid-template-columns: repeat(var(--bl-cols-m), minmax(0, 1fr)) !important; grid-template-rows: repeat(var(--bl-rows-m, 3), auto); }
	.bl-home .bl-home-categories--grid,
	.bl-home .bl-home-categories--carousel { gap: 18px 16px !important; }
}
.bl-home .bl-home-categories--carousel > .bl-cat { flex: 0 0 calc((100% - (var(--bl-cols) - 1) * 30px) / var(--bl-cols)) !important; }
@media (max-width: 1023px) { .bl-home .bl-home-categories--carousel > .bl-cat { flex-basis: calc((100% - (var(--bl-cols-t) - 1) * 30px) / var(--bl-cols-t)) !important; } }
@media (max-width: 767px) { .bl-home .bl-home-categories--carousel > .bl-cat { flex-basis: calc((100% - (var(--bl-cols-m) - 1) * 16px) / var(--bl-cols-m)) !important; } }
.bl-home .bl-home-categories > .bl-cat {
	width: 100%;
	min-width: 0;
	max-width: 100%;	
	flex: initial !important;
	margin: 0 auto;
}
.bl-home .bl-home-categories .bl-cat__img {
	width: min(100%, var(--bl-category-image-size, 88px));
	height: auto;
	aspect-ratio: 1;
	max-width: var(--bl-category-image-size, 88px);
	margin: 0 auto 10px;
	padding: 4px;
}
.bl-home .bl-home-categories .bl-cat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-width: 3px;
}
@media (max-width: 767px) {
	.bl-home .bl-home-categories--carousel,
	.bl-home .bl-home-categories--grid {
		grid-template-columns: repeat(auto-fit, minmax(92px, 112px)) !important;
		gap: 18px 16px !important;
	}
	.bl-home .bl-home-categories > .bl-cat { max-width: 100%; }
	.bl-home .bl-home-categories .bl-cat__img {
		width: min(100%, 84px);
		max-width: 84px;
	}
}


/* LionCosmetic 3.9.2 – trust seals and payment badges in footer */
.bl-footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 28px;
	padding-top: 22px;
	padding-bottom: 22px;
}
.bl-footer__trust-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	max-width: 100%;
}
.bl-footer__trust-item img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 92px;
	object-fit: contain;
}
.bl-footer__trust-item iframe {
	max-width: 100%;
	border: 0;
}
@media (max-width: 767px) {
	.bl-footer__trust { gap: 14px 18px; padding-top: 18px; padding-bottom: 18px; }
	.bl-footer__trust-item img { max-height: 76px; }
}


/* LionCosmetic 3.9.6: final responsive category layout rules.
   These rules intentionally come last to override legacy auto-fit/flex rules. */
.bl-home .bl-home-categories.bl-home-categories--grid {
	display: grid !important;
	grid-template-columns: repeat(var(--bl-cols, 6), minmax(0, 1fr)) !important;
	grid-template-rows: repeat(var(--bl-rows, 2), auto) !important;
	overflow: visible !important;
}
.bl-home .bl-home-categories.bl-home-categories--grid > .bl-cat {
	flex: none !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}
.bl-home .bl-home-categories.bl-home-categories--carousel {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory !important;
}
.bl-home .bl-home-categories.bl-home-categories--carousel > .bl-cat {
	flex: 0 0 calc((100% - (var(--bl-cols, 6) - 1) * 30px) / var(--bl-cols, 6)) !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	scroll-snap-align: start;
}
@media (max-width: 1023px) {
	.bl-home .bl-home-categories.bl-home-categories--grid {
		grid-template-columns: repeat(var(--bl-cols-t, 4), minmax(0, 1fr)) !important;
		grid-template-rows: repeat(var(--bl-rows-t, 2), auto) !important;
	}
	.bl-home .bl-home-categories.bl-home-categories--carousel > .bl-cat {
		flex-basis: calc((100% - (var(--bl-cols-t, 4) - 1) * 30px) / var(--bl-cols-t, 4)) !important;
	}
}
@media (max-width: 767px) {
	.bl-home .bl-home-categories.bl-home-categories--grid {
		grid-template-columns: repeat(var(--bl-cols-m, 2), minmax(0, 1fr)) !important;
		grid-template-rows: repeat(var(--bl-rows-m, 3), auto) !important;
	}
	.bl-home .bl-home-categories.bl-home-categories--carousel > .bl-cat {
		flex-basis: calc((100% - (var(--bl-cols-m, 2) - 1) * 16px) / var(--bl-cols-m, 2)) !important;
	}
}
