/* ============ صفحه الگوی برش (المان اختصاصی) ============ */
.ffbe-dp {
	--ffbe-primary: #e01e26;
	--ffbe-primary-dark: #b8141b;
	--ffbe-dark: #141414;
	--ffbe-text: #2b2b2b;
	--ffbe-muted: #747474;
	--ffbe-soft: #fbf0ed;
	--ffbe-cream: #fbf6f1;
	--ffbe-max: 1280px;
	--ffbe-space: 84px;
	--ffbe-radius: 16px;
	--ffbe-btn-radius: 11px;
	direction: rtl;
	color: var(--ffbe-text);
	line-height: 1.8;
	overflow: hidden;
}
.ffbe-dp *, .ffbe-dp *::before, .ffbe-dp *::after { box-sizing: border-box; }
.ffbe-dp img { max-width: 100%; height: auto; }
.ffbe-dp h1, .ffbe-dp h2, .ffbe-dp h3, .ffbe-dp h4 { color: var(--ffbe-dark); margin: 0; }
.ffbe-dp .ffbe-ico { width: 1em; height: 1em; flex: none; }
.ffbe-hl { color: var(--ffbe-primary); }

.ffbe-wrap { max-width: var(--ffbe-max); margin: 0 auto; padding: 0 24px; }
.ffbe-sec { padding: calc(var(--ffbe-space) * .8) 0; }

/* ---- دکمه ---- */
.ffbe-dp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 22px;
	border: 1.5px solid var(--ffbe-primary);
	border-radius: var(--ffbe-btn-radius, 11px);
	background-color: var(--ffbe-primary);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.ffbe-dp-btn .ffbe-ico { font-size: 19px; }
.ffbe-dp-btn:hover, .ffbe-dp-btn:focus-visible {
	background-color: var(--ffbe-primary-dark);
	border-color: var(--ffbe-primary-dark);
	color: #fff;
	box-shadow: 0 10px 24px -12px var(--ffbe-primary);
}
.ffbe-dp-btn--pill { border-radius: 999px; padding-inline: 28px; min-height: 52px; }
.ffbe-dp-btn--outline { background: transparent; color: var(--ffbe-primary); }
.ffbe-dp-btn--outline:hover { background-color: var(--ffbe-primary); color: #fff; }

/* ---- عنوان بخش‌ها ---- */
.ffbe-sec-head { margin-bottom: 38px; }
.ffbe-sec-head.is-center { text-align: center; }
.ffbe-sec-eyebrow {
	color: var(--ffbe-primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	direction: ltr;
	display: inline-block;
	margin-bottom: 6px;
}
.ffbe-sec-head:not(.is-center) .ffbe-sec-eyebrow { display: block; text-align: right; }
.ffbe-sec-title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; line-height: 1.45; }
.ffbe-sec-line { display: block; width: 64px; height: 3px; margin: 10px 0 14px; border-radius: 3px; background-color: var(--ffbe-primary); }
.ffbe-sec-head.is-center .ffbe-sec-line { margin-inline: auto; }
.ffbe-sec-desc { margin: 0; color: var(--ffbe-muted); font-size: 15px; }

/* ---- هیرو ---- */
.ffbe-hero {
	--ffbe-hero-img: 55%;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 520px;
	background: linear-gradient(90deg, #fff 0%, var(--ffbe-cream) 100%);
}
.ffbe-hero__media { flex: 0 0 var(--ffbe-hero-img); align-self: stretch; position: relative; }
.ffbe-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ffbe-hero__text { flex: 1; padding: 64px 6% 64px 4%; }
.ffbe-hero.ffbe-img-left .ffbe-hero__media { order: 2; }
.ffbe-hero.ffbe-img-left .ffbe-hero__text { order: 1; }
.ffbe-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--ffbe-primary);
	font-size: 15px;
	font-weight: 600;
}
.ffbe-hero__badge .ffbe-ico { font-size: 20px; }
.ffbe-hero__title {
	font-size: clamp(32px, 4.4vw, 62px);
	font-weight: 900;
	line-height: 1.35;
	margin-bottom: 16px !important;
}
.ffbe-hero__title .ffbe-hl { display: block; }
.ffbe-hero__desc { margin: 0 0 26px; max-width: 520px; color: var(--ffbe-muted); font-size: 16px; }
.ffbe-hero__feats {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 34px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}
.ffbe-hero__feats li { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 92px; line-height: 1.6; }
.ffbe-hero__feat-ico { color: var(--ffbe-primary); font-size: 36px; display: grid; place-items: center; height: 46px; margin-bottom: 4px; }
.ffbe-hero__feat-ico .ffbe-ico { stroke-width: 1.5; }
.ffbe-hero__feats strong { color: var(--ffbe-primary); font-size: 14px; font-weight: 700; }
.ffbe-hero__feats small { color: var(--ffbe-muted); font-size: 13px; }

/* ---- دسته‌ها ---- */
.ffbe-cats__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ffbe-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 12px 18px;
	border: 1.5px solid transparent;
	border-radius: var(--ffbe-radius);
	background-color: var(--ffbe-soft);
	color: inherit;
	font: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ffbe-cat:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(120, 30, 20, .4); }
.ffbe-cat.is-active { border-color: var(--ffbe-primary); background-color: #fff; }
.ffbe-cat__img { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: calc(var(--ffbe-radius) - 6px); overflow: hidden; }
.ffbe-cat__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ffbe-cat__title { display: block; color: var(--ffbe-dark); font-weight: 800; font-size: 16px; line-height: 1.6; }
.ffbe-cat__sub { display: block; color: var(--ffbe-muted); font-size: 13px; line-height: 1.7; }

/* ---- قالب‌ها ---- */
.ffbe-tpl-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: -12px 0 28px; }
.ffbe-search {
	position: relative;
	display: flex;
	align-items: center;
	width: min(420px, 100%);
	margin: 0;
}
.ffbe-search .ffbe-ico { position: absolute; right: 16px; color: var(--ffbe-muted); font-size: 18px; pointer-events: none; }
.ffbe-dp .ffbe-search input {
	width: 100%;
	height: 48px;
	padding: 0 46px 0 16px;
	border: 1.5px solid #e6e1dc;
	border-radius: 999px;
	background: #fff;
	color: var(--ffbe-text);
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.ffbe-dp .ffbe-search input:focus { border-color: var(--ffbe-primary); box-shadow: 0 0 0 4px rgba(224, 30, 38, .1); }
.ffbe-clear-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background-color: var(--ffbe-soft);
	color: var(--ffbe-primary);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.ffbe-clear-filter[hidden] { display: none; }

.ffbe-tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ffbe-tpl {
	display: flex;
	flex-direction: column;
	padding: 14px 14px 16px;
	border: 1px solid #ece8e4;
	border-radius: var(--ffbe-radius);
	background-color: #fff;
	transition: box-shadow .25s, transform .25s;
}
.ffbe-tpl:hover { box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .3); transform: translateY(-3px); }
.ffbe-tpl.is-more, .ffbe-tpl.is-filtered { display: none; }

.ffbe-tpl__preview {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / .86;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	border-radius: calc(var(--ffbe-radius) - 6px);
	background-color: #fff;
	overflow: hidden;
	cursor: pointer;
	font: inherit;
}
div.ffbe-tpl__preview { cursor: default; }
.ffbe-tpl__dieline {
	position: absolute;
	inset: 4% 4% 4% 4%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ffbe-tpl__preview.has-box .ffbe-tpl__dieline { inset: 2% 4% 22% 18%; }
.ffbe-tpl__dieline img,
.ffbe-tpl__dieline canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ffbe-tpl__dieline.is-rendered .ffbe-tpl__fallback { display: none; }
.ffbe-tpl__dieline.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border: 3px solid rgba(224, 30, 38, .18);
	border-top-color: var(--ffbe-primary);
	border-radius: 50%;
	animation: ffbe-spin .8s linear infinite;
}
.ffbe-tpl__dieline.is-loading:has(.ffbe-tpl__fallback)::after { display: none; }
@keyframes ffbe-spin { to { transform: rotate(360deg); } }
.ffbe-tpl__noimg { color: #c9c3bd; font-size: 64px; }
.ffbe-tpl__box {
	position: absolute;
	left: 2%;
	bottom: 2%;
	width: 48%;
	height: auto;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .14));
	mix-blend-mode: multiply;
	transition: transform .35s;
}
.ffbe-tpl:hover .ffbe-tpl__box { transform: translateY(-4px) rotate(-2deg); }
.ffbe-tpl__zoom {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .95);
	color: var(--ffbe-primary);
	font-size: 17px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
	opacity: 0;
	transform: scale(.8);
	transition: opacity .2s, transform .2s;
}
.ffbe-tpl__preview:hover .ffbe-tpl__zoom, .ffbe-tpl__preview:focus-visible .ffbe-tpl__zoom { opacity: 1; transform: none; }

.ffbe-tpl__title { font-size: 16px; font-weight: 800; line-height: 1.6; margin-bottom: 4px !important; }
.ffbe-tpl__meta { margin-bottom: 14px; color: var(--ffbe-muted); font-size: 13.5px; line-height: 1.9; }
.ffbe-tpl__lbl { color: var(--ffbe-text); font-weight: 600; }
.ffbe-tpl .ffbe-dp-btn { width: 100%; margin-top: auto; }

.ffbe-tpl-empty { text-align: center; color: var(--ffbe-muted); padding: 30px 0; }
.ffbe-tpl-empty[hidden] { display: none; }
.ffbe-more-wrap { text-align: center; margin-top: 30px; }
.ffbe-more-wrap[hidden] { display: none; }

/* ---- لایت‌باکس ---- */
.ffbe-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; direction: rtl; }
.ffbe-lb[hidden] { display: none; }
.ffbe-lb__backdrop { position: absolute; inset: 0; background: rgba(15, 10, 8, .72); backdrop-filter: blur(3px); animation: ffbe-fade .2s; }
.ffbe-lb__box {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(980px, 100%);
	max-height: calc(100vh - 40px);
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
	animation: ffbe-pop .25s ease-out;
}
@keyframes ffbe-fade { from { opacity: 0; } }
@keyframes ffbe-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.ffbe-lb__close {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f1ef;
	color: var(--ffbe-dark);
	font-size: 20px;
	cursor: pointer;
}
.ffbe-lb__close:hover { background: var(--ffbe-primary); color: #fff; }
.ffbe-lb__stage {
	position: relative;
	flex: 1;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px;
	background: #f8f6f4;
	overflow: auto;
}
.ffbe-lb__stage img, .ffbe-lb__stage canvas { max-width: 100%; max-height: calc(100vh - 220px); width: auto; height: auto; object-fit: contain; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.ffbe-lb__stage.is-loading::after {
	content: "";
	position: absolute;
	width: 34px;
	height: 34px;
	border: 3px solid rgba(224, 30, 38, .18);
	border-top-color: var(--ffbe-primary);
	border-radius: 50%;
	animation: ffbe-spin .8s linear infinite;
}
.ffbe-lb__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-top: 1px solid #efebe7; }
.ffbe-lb__title { font-size: 18px; font-weight: 800; }
.ffbe-lb__meta { color: var(--ffbe-muted); font-size: 14px; }
.ffbe-lb__actions { display: flex; flex-wrap: wrap; gap: 10px; }
html.ffbe-lb-open { overflow: hidden; }

/* ---- چرا ---- */
.ffbe-why {
	display: flex;
	align-items: stretch;
	background: linear-gradient(90deg, var(--ffbe-cream), #fff);
	min-height: 420px;
}
.ffbe-why__media { flex: 0 0 42%; position: relative; }
.ffbe-why__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ffbe-why__text { flex: 1; padding: calc(var(--ffbe-space) * .8) 6% calc(var(--ffbe-space) * .8) 4%; align-self: center; }
.ffbe-why.ffbe-img-left .ffbe-why__media { order: 2; }
.ffbe-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 640px; }
.ffbe-why__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 20px 22px;
	border-radius: var(--ffbe-radius);
	background-color: #fff;
	box-shadow: 0 10px 30px -18px rgba(70, 30, 10, .3);
	transition: transform .25s;
}
.ffbe-why__item:hover { transform: translateY(-3px); }
.ffbe-why__item h4 { font-size: 15.5px; font-weight: 800; line-height: 1.6; }
.ffbe-why__item p { margin: 2px 0 0; color: var(--ffbe-muted); font-size: 13px; line-height: 1.7; }
.ffbe-why__ico { color: var(--ffbe-primary); font-size: 38px; display: grid; place-items: center; }
.ffbe-why__ico .ffbe-ico { stroke-width: 1.4; }

/* ---- راهنما ---- */
.ffbe-how { padding: calc(var(--ffbe-space) * .7) 0; background: #fff; }
.ffbe-how__inner { display: flex; align-items: center; gap: 40px; }
.ffbe-how__text { flex: 1; }
.ffbe-how__media { flex: 0 0 34%; position: relative; text-align: center; }
.ffbe-how__media::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 78%;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--ffbe-primary);
	transform: translate(-50%, -50%);
	z-index: 0;
}
.ffbe-how__media img { position: relative; z-index: 1; max-height: 340px; width: auto; filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .18)); }
.ffbe-how.ffbe-img-right .ffbe-how__media { order: -1; }
.ffbe-how__steps { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ffbe-how__step { flex: 1; text-align: center; padding: 0 6px; }
.ffbe-how__top { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ffbe-how__num {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: var(--ffbe-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.ffbe-how__ico { color: var(--ffbe-primary); font-size: 42px; display: grid; }
.ffbe-how__ico .ffbe-ico { stroke-width: 1.4; }
.ffbe-how__step h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px !important; }
.ffbe-how__step p { margin: 0; color: var(--ffbe-muted); font-size: 13.5px; line-height: 1.8; }
.ffbe-how__arrow { flex: 0 0 auto; align-self: center; margin-top: -40px; color: var(--ffbe-primary); font-size: 24px; display: grid; }

/* ---- فراخوان ---- */
.ffbe-cta {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 360px;
	background-color: #121212;
	color: #fff;
}
.ffbe-cta__media { flex: 0 0 44%; position: relative; }
.ffbe-cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ffbe-cta.ffbe-img-left .ffbe-cta__media { order: 2; }
.ffbe-cta__panel {
	flex: 1;
	align-self: center;
	margin: 32px 4%;
	padding: 36px 40px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 20px;
	background-color: #1b1b1b;
}
.ffbe-cta__badge { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #e9e9e9; font-size: 14px; }
.ffbe-cta__badge .ffbe-ico { color: var(--ffbe-primary); font-size: 18px; }
.ffbe-dp .ffbe-cta__title { color: #fff; font-size: clamp(24px, 3vw, 38px); font-weight: 900; line-height: 1.5; margin-bottom: 12px; }
.ffbe-cta__title .ffbe-hl { display: block; }
.ffbe-cta__desc { margin: 0 0 22px; color: #c9c9c9; font-size: 15px; max-width: 520px; }

/* ---- واکنش‌گرا ---- */
@media (max-width: 1024px) {
	.ffbe-dp { --ffbe-space: 64px; }
	.ffbe-hero { flex-direction: column; min-height: 0; }
	.ffbe-hero__media, .ffbe-hero.ffbe-img-left .ffbe-hero__media { order: 0; flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; }
	.ffbe-hero__text, .ffbe-hero.ffbe-img-left .ffbe-hero__text { order: 1; padding: 36px 24px 46px; text-align: center; }
	.ffbe-hero__desc { margin-inline: auto; }
	.ffbe-hero__feats { justify-content: center; }
	.ffbe-hero__badge { justify-content: center; }
	.ffbe-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ffbe-tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ffbe-why { flex-direction: column; }
	.ffbe-why__media, .ffbe-why.ffbe-img-left .ffbe-why__media { order: 0; flex-basis: auto; aspect-ratio: 16 / 9; }
	.ffbe-why__text { padding: 40px 24px 56px; }
	.ffbe-why__grid { max-width: none; }
	.ffbe-how__inner { flex-direction: column; }
	.ffbe-how__media, .ffbe-how.ffbe-img-right .ffbe-how__media { order: 2; flex-basis: auto; }
	.ffbe-how__media img { max-height: 260px; }
	.ffbe-cta { flex-direction: column; }
	.ffbe-cta__media, .ffbe-cta.ffbe-img-left .ffbe-cta__media { order: 0; flex-basis: auto; aspect-ratio: 16 / 8; }
	.ffbe-cta__panel { margin: -40px 16px 24px; position: relative; text-align: center; }
	.ffbe-cta__badge { justify-content: center; }
	.ffbe-cta__desc { margin-inline: auto; }
}
@media (max-width: 767px) {
	.ffbe-dp { --ffbe-space: 48px; }
	.ffbe-wrap { padding: 0 14px; }
	.ffbe-sec-head { margin-bottom: 26px; }
	.ffbe-hero__feats { gap: 14px 18px; }
	.ffbe-hero__feats li { min-width: 80px; }
	.ffbe-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ffbe-cat__title { font-size: 14px; }
	.ffbe-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ffbe-tpl { padding: 10px 10px 12px; }
	.ffbe-tpl__title { font-size: 14px; }
	.ffbe-tpl__meta { font-size: 12px; }
	.ffbe-tpl .ffbe-dp-btn { font-size: 13px; padding: 8px 8px; min-height: 40px; gap: 6px; }
	.ffbe-why__grid { grid-template-columns: 1fr; }
	.ffbe-how__steps { flex-direction: column; align-items: stretch; gap: 22px; }
	.ffbe-how__arrow { display: none; }
	.ffbe-cta__panel { padding: 26px 20px; }
	.ffbe-lb__foot { flex-direction: column; align-items: stretch; text-align: center; }
	.ffbe-lb__actions { justify-content: center; }
	.ffbe-lb__actions .ffbe-dp-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.ffbe-dp * { animation: none !important; transition: none !important; }
}
