/* ==========================================================================
   Atash Peykar — استایل اصلی
   ========================================================================== */

:root {
	--ap-red: #d32f2f;
	--ap-red-dark: #a81f1f;
	--ap-red-deep: #8e0e0e;
	--ap-orange: #ff6b35;
	--ap-ink: #1f1f23;
	--ap-ink-2: #2b2b31;
	--ap-ink-3: #3a3a42;
	--ap-text: #2c2c33;
	--ap-muted: #6b6b78;
	--ap-line: #e6e6ec;
	--ap-line-2: #f0f0f4;
	--ap-bg: #ffffff;
	--ap-bg-soft: #f7f7fa;
	--ap-bg-soft-2: #fbfbfd;
	--ap-green: #1f9d55;
	--ap-amber: #f0a500;
	--ap-radius: 10px;
	--ap-radius-lg: 14px;
	--ap-shadow-sm: 0 1px 2px rgba(20, 20, 30, .05);
	--ap-shadow: 0 4px 18px rgba(20, 20, 30, .07);
	--ap-shadow-lg: 0 14px 40px rgba(20, 20, 30, .12);
	--ap-container: 1320px;
	--ap-gap: 20px;
	--ap-font: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
	--ap-header-h: 84px;
}

/* ---------- ریست ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ap-font);
	font-size: 15px;
	line-height: 1.75;
	color: var(--ap-text);
	background: var(--ap-bg);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ap-red); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: 1.45; color: var(--ap-ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--ap-red); outline-offset: 2px; border-radius: 4px; }

.ap-container {
	width: 100%;
	max-width: var(--ap-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.ap-icon { flex: 0 0 auto; }

/* ---------- دکمه‌ها ---------- */
.ap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
	border: 1.5px solid transparent;
}
.ap-btn--primary {
	background: var(--ap-red);
	color: #fff;
	box-shadow: 0 4px 14px rgba(211, 47, 47, .28);
}
.ap-btn--primary:hover { background: var(--ap-red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(211, 47, 47, .34); }
.ap-btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.ap-btn--outline:hover { background: #fff; color: var(--ap-ink); border-color: #fff; }
.ap-btn--ghost { border-color: var(--ap-line); color: var(--ap-ink); background: #fff; }
.ap-btn--ghost:hover { border-color: var(--ap-red); color: var(--ap-red); }
.ap-btn--light { background: #fff; color: var(--ap-ink); }
.ap-btn--light:hover { background: var(--ap-bg-soft); color: var(--ap-red); }
.ap-btn--sm { padding: 9px 16px; font-size: 13px; }
.ap-btn--lg { padding: 14px 28px; font-size: 15px; }
.ap-btn--block { width: 100%; }

/* ---------- نوار بالایی ---------- */
.ap-topbar {
	background: var(--ap-ink);
	color: #cfcfd8;
	font-size: 12.5px;
}
.ap-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.ap-topbar__right,
.ap-topbar__left { display: flex; align-items: center; gap: 14px; }
.ap-topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ap-topbar__item .ap-icon { color: var(--ap-red); opacity: .95; }
.ap-topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .16); }
.ap-topbar__menu { display: flex; align-items: center; gap: 14px; }
.ap-topbar__menu a { display: inline-flex; align-items: center; min-height: 24px; color: #b9b9c6; font-weight: 600; }
.ap-topbar__menu a:hover { color: #fff; }
.ap-topbar__account { display: inline-flex; align-items: center; min-height: 24px; gap: 6px; color: #fff; font-weight: 600; }
.ap-topbar__account:hover { color: #fff; opacity: .85; }

/* شمارهٔ تماس بولد در نوار بالایی */
.ap-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #fff;
	font-weight: 800;
	font-size: 13.5px;
	letter-spacing: .2px;
	padding: 3px 10px 3px 4px;
	border-radius: 7px;
	background: rgba(211, 47, 47, .16);
	border: 1px solid rgba(211, 47, 47, .38);
	transition: background .18s ease, border-color .18s ease;
}
.ap-topbar__phone:hover { background: var(--ap-red); border-color: var(--ap-red); color: #fff; }
.ap-topbar__phone-icon { display: inline-flex; color: #ff6b6b; }
.ap-topbar__phone:hover .ap-topbar__phone-icon { color: #fff; }
.ap-topbar__phone-num { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }

/* ---------- هدر ---------- */
.ap-header {
	background: #fff;
	border-bottom: 1px solid var(--ap-line-2);
	position: relative;
	z-index: 40;
}
.ap-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
	min-height: var(--ap-header-h);
	padding-block: 12px;
}

/* لوگو */
.ap-logo { display: inline-flex; align-items: center; gap: 10px; }
.ap-logo__mark { display: block; line-height: 0; }
.ap-logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.ap-logo__title { font-size: 25px; font-weight: 900; color: var(--ap-ink); letter-spacing: -.4px; }
.ap-logo__tagline { font-size: 10.5px; color: var(--ap-muted); font-weight: 500; margin-top: 2px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { max-height: 74px; width: auto; object-fit: contain; }

/* جست‌وجو */
.ap-search {
	display: flex;
	align-items: center;
	background: var(--ap-bg-soft);
	border: 1.5px solid var(--ap-line);
	border-radius: 9px;
	overflow: hidden;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
	max-width: 640px;
	margin-inline: auto;
	width: 100%;
}
.ap-search:focus-within { border-color: var(--ap-red); background: #fff; box-shadow: 0 0 0 3px rgba(211, 47, 47, .08); }
.ap-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 12px 16px;
	font-size: 13.5px;
	color: var(--ap-text);
	min-width: 0;
}
.ap-search__input::placeholder { color: #9a9aa6; }
.ap-search__input:focus { outline: none; }
.ap-search__btn {
	display: grid;
	place-items: center;
	width: 46px;
	align-self: stretch;
	background: var(--ap-red);
	color: #fff;
	flex: 0 0 auto;
	transition: background .18s ease;
}
.ap-search__btn:hover { background: var(--ap-red-dark); }

/* اکشن‌ها */
.ap-header__actions { display: flex; align-items: center; gap: 12px; }
.ap-cart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border: 1.5px solid var(--ap-line);
	border-radius: 9px;
	transition: border-color .18s ease, background .18s ease;
}
.ap-cart:hover { border-color: var(--ap-red); background: #fffafa; }
.ap-cart__inner { display: inline-flex; align-items: center; gap: 10px; }
.ap-cart__icon { position: relative; display: grid; place-items: center; color: var(--ap-ink); }
.ap-cart__count {
	position: absolute;
	top: -7px;
	inset-inline-start: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--ap-red);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	display: grid;
	place-items: center;
	line-height: 1;
}
.ap-cart__label { display: flex; flex-direction: column; line-height: 1.3; }
.ap-cart__label-top { font-size: 12.5px; font-weight: 700; color: var(--ap-ink); }
.ap-cart__label-bottom { font-size: 11px; color: var(--ap-muted); }

.ap-burger { display: none; width: 42px; height: 42px; place-items: center; border: 1.5px solid var(--ap-line); border-radius: 9px; color: var(--ap-ink); }

/* ---------- نوار ناوبری ---------- */
.ap-nav {
	background: var(--ap-ink-2);
	color: #e8e8ee;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.ap-nav__inner { display: flex; align-items: stretch; gap: 0; min-height: 50px; }

.ap-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 0 20px;
	background: var(--ap-red);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	flex: 0 0 auto;
	transition: background .18s ease;
}
.ap-nav__toggle:hover { background: var(--ap-red-dark); }
.ap-nav__toggle-chev { opacity: .8; }

.ap-nav__scroll { flex: 1; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.ap-nav__scroll::-webkit-scrollbar { display: none; }

.ap-nav__list { display: flex; align-items: stretch; height: 100%; }
.ap-nav__list > li { position: relative; display: flex; }
.ap-nav__list > li > a {
	display: flex;
	align-items: center;
	padding: 0 15px;
	font-size: 13.5px;
	font-weight: 600;
	color: #dcdce4;
	white-space: nowrap;
	position: relative;
	transition: color .18s ease, background .18s ease;
}
.ap-nav__list > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 12px;
	bottom: 0;
	height: 2.5px;
	background: var(--ap-red);
	transform: scaleX(0);
	transition: transform .2s ease;
}
.ap-nav__list > li > a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.ap-nav__list > li > a:hover::after,
.ap-nav__list > li.current-menu-item > a::after { transform: scaleX(1); }
.ap-nav__list > li.current-menu-item > a { color: #fff; }

/* زیرمنو */
.ap-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 230px;
	background: #fff;
	border-radius: 0 0 10px 10px;
	box-shadow: var(--ap-shadow-lg);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 60;
}
.ap-nav__list > li:hover > .sub-menu,
.ap-nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ap-nav__list .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--ap-text);
	font-weight: 500;
}
.ap-nav__list .sub-menu a:hover { background: var(--ap-bg-soft); color: var(--ap-red); }

/* لینک‌های «تماس با ما» و «درباره ما» در انتهای نوار ناوبری */
.ap-nav__extra {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	margin-inline-start: auto;
	border-inline-start: 1px solid rgba(255, 255, 255, .12);
}
.ap-nav__extra li { display: flex; }
.ap-nav__extra a {
	display: flex;
	align-items: center;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: #dcdce4;
	white-space: nowrap;
	transition: color .18s ease, background .18s ease;
}
.ap-nav__extra a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- هیرو ---------- */
.ap-hero { position: relative; background: var(--ap-ink); overflow: hidden; }
.ap-hero__track { position: relative; }
.ap-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
	display: flex;
	align-items: center;
	min-height: 460px;
}
.ap-hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.ap-hero__media { position: absolute; inset: 0; }
.ap-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ap-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(15, 15, 20, .92) 0%, rgba(15, 15, 20, .78) 38%, rgba(15, 15, 20, .25) 68%, rgba(15, 15, 20, .1) 100%);
}
.ap-hero__content {
	position: relative;
	z-index: 2;
	padding-block: 64px;
	max-width: 100%;
}
.ap-hero__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #ffb4a2;
	margin: 0 0 14px;
	letter-spacing: .2px;
}
.ap-hero__title {
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 900;
	color: #fff;
	line-height: 1.4;
	margin: 0 0 16px;
	max-width: 760px;
	letter-spacing: -.5px;
	text-wrap: balance;
	overflow-wrap: normal;
	word-break: keep-all;
}
.ap-hero__text {
	font-size: clamp(14px, 1.2vw, 16.5px);
	color: #d6d6de;
	max-width: 520px;
	margin: 0 0 28px;
	line-height: 1.85;
}
.ap-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ap-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
	display: grid;
	place-items: center;
	z-index: 5;
	backdrop-filter: blur(6px);
	transition: background .18s ease, transform .18s ease;
}
.ap-hero__arrow:hover { background: var(--ap-red); border-color: var(--ap-red); }
.ap-hero__arrow--prev { inset-inline-end: 24px; }
.ap-hero__arrow--next { inset-inline-start: 24px; }

.ap-hero__dots {
	position: absolute;
	bottom: 20px;
	inset-inline: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}
.ap-hero__dot {
	width: 24px;
	height: 24px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	display: grid;
	place-items: center;
	position: relative;
	transition: background .2s ease;
}
/* نقطهٔ دیداری کوچک درون ناحیهٔ لمسی بزرگ‌تر */
.ap-hero__dot::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	transition: background .2s ease, width .2s ease;
}
.ap-hero__dot.is-active::before { background: #fff; width: 26px; border-radius: 5px; }

/* ---------- بخش‌ها ---------- */
.ap-section { padding-block: 44px; }
.ap-section__head { margin-bottom: 24px; }
.ap-section__head--center { text-align: center; }
.ap-section__head--split {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.ap-section__head--split .ap-link-more { margin-inline-start: auto; }
.ap-section__title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 20px;
	font-weight: 800;
	color: var(--ap-ink);
	position: relative;
}
.ap-section__dash {
	display: inline-block;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--ap-red);
}
.ap-section__icon { color: var(--ap-red); display: inline-flex; }
.ap-section__sub { font-size: 13px; color: var(--ap-muted); margin: 0; }

.ap-link-more {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ap-muted);
	transition: color .18s ease, gap .18s ease;
}
.ap-link-more:hover { color: var(--ap-red); gap: 9px; }

/* ---------- دسته‌بندی‌ها ---------- */
.ap-cats { background: #fff; padding-block: 40px 48px; }
.ap-cats__grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 14px;
}
.ap-cat__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 10px 14px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	height: 100%;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
	position: relative;
}
.ap-cat__link:hover {
	border-color: rgba(211, 47, 47, .35);
	box-shadow: 0 8px 24px rgba(211, 47, 47, .1);
	transform: translateY(-3px);
}
.ap-cat__media {
	display: grid;
	place-items: center;
	width: 100%;
	height: 96px;
}
.ap-cat__media img { max-height: 96px; width: auto; object-fit: contain; }
.ap-cat__icon { color: var(--ap-red); display: grid; place-items: center; }
.ap-cat__title {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ap-ink);
	text-align: center;
	line-height: 1.5;
	min-height: 38px;
	display: flex;
	align-items: center;
}
.ap-cat__arrow {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ap-bg-soft);
	color: var(--ap-muted);
	transition: background .2s ease, color .2s ease;
}
.ap-cat__link:hover .ap-cat__arrow { background: var(--ap-red); color: #fff; }

/* ---------- کاربردها ---------- */
.ap-use { background: var(--ap-bg-soft-2); }
.ap-use__layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: stretch;
}
.ap-use__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}
.ap-use__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	height: 100%;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ap-use__link:hover { border-color: rgba(211, 47, 47, .3); box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.ap-use__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ap-bg-soft); }
.ap-use__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ap-use__link:hover .ap-use__media img { transform: scale(1.05); }
.ap-use__title {
	font-size: 12px;
	font-weight: 700;
	color: var(--ap-ink);
	text-align: center;
	padding: 0 8px;
	line-height: 1.5;
}
.ap-use__arrow {
	display: grid;
	place-items: center;
	margin: 0 auto 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ap-bg-soft);
	color: var(--ap-muted);
	transition: background .2s ease, color .2s ease;
}
.ap-use__link:hover .ap-use__arrow { background: var(--ap-red); color: #fff; }

/* پرومو */
.ap-use__promo,
.ap-products__promo,
.ap-knowledge__promo {
	position: relative;
	border-radius: var(--ap-radius-lg);
	overflow: hidden;
	background: linear-gradient(160deg, #2a0d0d 0%, #4a1010 45%, #1a1a1f 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	isolation: isolate;
}
.ap-use__promo-img,
.ap-products__promo-img,
.ap-knowledge__promo-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 62%;
	z-index: -1;
	opacity: .72;
}
.ap-use__promo::after,
.ap-products__promo::after,
.ap-knowledge__promo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 14, .95) 0%, rgba(10, 10, 14, .72) 45%, rgba(10, 10, 14, .15) 100%);
	z-index: -1;
}
.ap-use__promo-body,
.ap-products__promo-body,
.ap-knowledge__promo-body { padding: 22px; position: relative; z-index: 2; }
.ap-use__promo-title,
.ap-products__promo-title,
.ap-knowledge__promo-title {
	font-size: 19px;
	font-weight: 900;
	color: #fff;
	line-height: 1.5;
	margin: 0 0 8px;
}
.ap-use__promo-text,
.ap-products__promo-text {
	font-size: 12.5px;
	color: #d8d8e0;
	line-height: 1.8;
	margin: 0 0 16px;
}
.ap-knowledge__promo-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #ffb4a2;
	margin-bottom: 6px;
}

/* ---------- محصولات ---------- */
.ap-products { background: #fff; }
.ap-products--by-user { background: var(--ap-bg-soft-2); }
.ap-products__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: stretch;
}
.ap-products__main { min-width: 0; }
.ap-products__promo { min-height: 320px; }

/* کاروسل */
.ap-carousel { position: relative; }
.ap-carousel__viewport { overflow: hidden; }
.ap-carousel__track {
	display: flex;
	gap: 14px;
	transition: transform .4s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}
.ap-carousel__item { flex: 0 0 calc((100% - 42px) / 4); min-width: 0; }

.ap-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--ap-line);
	color: var(--ap-ink);
	display: grid;
	place-items: center;
	z-index: 6;
	box-shadow: var(--ap-shadow-sm);
	transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.ap-carousel__nav:hover { background: var(--ap-red); color: #fff; border-color: var(--ap-red); }
.ap-carousel__nav--prev { inset-inline-end: -14px; }
.ap-carousel__nav--next { inset-inline-start: -14px; }
.ap-carousel__nav[disabled] { opacity: .35; pointer-events: none; }

/* کارت محصول */
.ap-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	height: 100%;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ap-card:hover { border-color: rgba(211, 47, 47, .3); box-shadow: var(--ap-shadow); transform: translateY(-2px); }

.ap-card__media {
	position: relative;
	background: var(--ap-bg-soft);
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	padding: 14px;
	overflow: hidden;
}
.ap-card__img-link { display: grid; place-items: center; width: 100%; height: 100%; }
.ap-card__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .35s ease; }
.ap-card:hover .ap-card__media img { transform: scale(1.06); }

.ap-card__badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	background: var(--ap-red);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 5px;
	z-index: 2;
}
.ap-card__wish {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--ap-line);
	color: var(--ap-muted);
	display: grid;
	place-items: center;
	z-index: 2;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.ap-card__wish:hover { color: var(--ap-red); border-color: var(--ap-red); background: #fff5f5; }

.ap-card__body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ap-card__title { font-size: 12.5px; font-weight: 700; line-height: 1.65; margin: 0; min-height: 42px; }
.ap-card__title a { color: var(--ap-ink); }
.ap-card__title a:hover { color: var(--ap-red); }

.ap-card__rating { display: flex; align-items: center; gap: 5px; }
.ap-stars { display: inline-flex; gap: 1px; }
.ap-star { display: inline-flex; }
.ap-star.is-on { color: var(--ap-amber); }
.ap-star.is-on svg { fill: currentColor; }
.ap-star.is-off { color: #d8d8e0; }
.ap-card__reviews { font-size: 10.5px; color: var(--ap-muted); }

.ap-card__price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.ap-card__old { font-size: 11px; color: #a8a8b4; text-decoration: line-through; }
.ap-card__now { font-size: 15px; font-weight: 800; color: var(--ap-ink); display: inline-flex; align-items: baseline; gap: 4px; }
.ap-card__unit { font-size: 10.5px; font-weight: 500; color: var(--ap-muted); }

.ap-card__stock { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; }
.ap-card__stock.is-in { color: var(--ap-green); }
.ap-card__stock.is-out { color: #b0b0bc; }

.ap-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: auto;
	padding: 9px 12px;
	background: var(--ap-red);
	color: #fff;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 700;
	transition: background .18s ease;
}
.ap-card__btn:hover { background: var(--ap-red-dark); color: #fff; }

/* ---------- دانشنامه ---------- */
.ap-knowledge { background: var(--ap-bg-soft-2); }
.ap-knowledge__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: stretch;
}
.ap-knowledge__main { min-width: 0; }
.ap-knowledge__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
.ap-article {
	display: flex;
	flex-direction: column;
	gap: 9px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ap-article:hover { border-color: rgba(211, 47, 47, .3); box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.ap-article__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ap-bg-soft); }
.ap-article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ap-article:hover .ap-article__media img { transform: scale(1.05); }
.ap-article__ph { display: grid; place-items: center; height: 100%; color: #c8c8d4; }
.ap-article__title {
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.65;
	color: var(--ap-ink);
	padding: 0 10px 12px;
	display: block;
}
.ap-knowledge__promo { min-height: 240px; }

/* ---------- برندها ---------- */
.ap-brands { background: #fff; padding-block: 36px 48px; }
.ap-brands__wrap { position: relative; display: flex; align-items: center; gap: 10px; }
.ap-brands__list {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
	padding-block: 4px;
}
.ap-brands__list::-webkit-scrollbar { display: none; }
.ap-brand {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	min-width: 150px;
	height: 74px;
	padding: 12px 20px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ap-brand:hover { border-color: rgba(211, 47, 47, .3); box-shadow: var(--ap-shadow-sm); }

/* برندهای فارسی به‌صورت متن، با فونت قالب */
.ap-brand--text a { display: grid; place-items: center; width: 100%; height: 100%; }
.ap-brand__text {
	font-size: 21px;
	font-weight: 800;
	color: #6f6f7c;
	letter-spacing: -.2px;
	line-height: 1.4;
	white-space: nowrap;
	transition: color .2s ease;
}
.ap-brand:hover .ap-brand__text { color: var(--ap-red); }
.ap-brand img { max-height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease; }
.ap-brand:hover img { filter: none; opacity: 1; }
.ap-brands__nav {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--ap-line);
	background: #fff;
	color: var(--ap-ink);
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.ap-brands__nav:hover { background: var(--ap-red); color: #fff; border-color: var(--ap-red); }

/* ---------- فوتر ---------- */
.ap-footer {
	background: var(--ap-ink);
	color: #b9b9c6;
	font-size: 13px;
	padding-top: 46px;
}
.ap-footer__top {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
	gap: 32px;
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.ap-footer .ap-logo__title { color: #fff; }
.ap-footer .ap-logo__tagline { color: #a8a8b6; }

/* لوگوی تیره روی فوتر تیره؛ پس‌زمینهٔ روشن تا خوانا بماند */
.ap-footer .custom-logo-link {
	background: #fff;
	padding: 8px 12px;
	border-radius: 10px;
}
.ap-footer .custom-logo-link img { max-height: 62px; }
.ap-footer__about { font-size: 12.5px; line-height: 1.9; color: #9d9dab; margin: 14px 0 16px; max-width: 300px; }
.ap-footer__social { display: flex; gap: 8px; }
.ap-footer__social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .07);
	color: #cfcfd8;
	transition: background .18s ease, color .18s ease;
}
.ap-footer__social a:hover { background: var(--ap-red); color: #fff; }

.ap-footer__title { font-size: 14px; font-weight: 800; color: #fff; margin: 0 0 16px; }
.ap-footer__links { display: flex; flex-direction: column; gap: 4px; }
.ap-footer__links li { display: flex; }
.ap-footer__links a { display: inline-flex; align-items: center; min-height: 26px; color: #9d9dab; font-size: 12.5px; transition: color .18s ease, padding .18s ease; }
.ap-footer__links a:hover { color: #fff; padding-inline-start: 4px; }

.ap-footer__contact { display: flex; flex-direction: column; gap: 11px; }
.ap-footer__contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #9d9dab; }
.ap-footer__contact .ap-icon { color: var(--ap-red); margin-top: 3px; flex: 0 0 auto; }
.ap-footer__contact a { color: #9d9dab; unicode-bidi: plaintext; }
.ap-footer__contact a:hover { color: #fff; }

.ap-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 18px;
}
.ap-footer__copy { font-size: 11.5px; color: #a8a8b6; margin: 0; }
.ap-footer__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-badge-mini {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 7px;
	font-size: 11px;
	color: #b9b9c6;
	background: rgba(255, 255, 255, .04);
}

/* ---------- ویجت شناور تماس و شبکه‌های اجتماعی ---------- */
.ap-fab {
	position: fixed;
	bottom: 26px;
	inset-inline-start: 26px;
	z-index: 95;
	width: 60px;
	height: 60px;
	direction: ltr;
}

/* دکمهٔ اصلی */
.ap-fab__main {
	position: absolute;
	inset: 0;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(145deg, #e8483f, #b71c1c);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 26px rgba(211, 47, 47, .42);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease, background .3s ease;
	z-index: 3;
}
.ap-fab__main:hover { transform: scale(1.06); box-shadow: 0 10px 32px rgba(211, 47, 47, .55); }
.ap-fab__main-icon { position: absolute; display: grid; place-items: center; transition: opacity .25s ease, transform .3s ease; }
.ap-fab__main-icon--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.ap-fab.is-open .ap-fab__main-icon--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.ap-fab.is-open .ap-fab__main-icon--close { opacity: 1; transform: rotate(0) scale(1); }

/* حلقهٔ نبض */
.ap-fab__pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(211, 47, 47, .55);
	animation: ap-fab-pulse 2.4s ease-out infinite;
	pointer-events: none;
}
.ap-fab.is-open .ap-fab__pulse { animation: none; opacity: 0; }
@keyframes ap-fab-pulse {
	0%   { transform: scale(1);   opacity: .8; }
	70%  { transform: scale(1.55); opacity: 0; }
	100% { transform: scale(1.55); opacity: 0; }
}

/* حلقهٔ شبکه‌های اجتماعی */
.ap-fab__ring {
	position: absolute;
	inset: 0;
	width: 60px;
	height: 60px;
	pointer-events: none;
}
.ap-fab__item {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	/* کمان ۹۰ درجه (از بالا تا راست) با فاصلهٔ کافی بین آیکون‌ها */
	--angle: calc(var(--i) * 18deg);
	transform: rotate(var(--angle)) translateY(0) rotate(calc(-1 * var(--angle))) scale(.3);
	opacity: 0;
	transition: transform .46s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
	transition-delay: calc(var(--i) * .05s);
	pointer-events: none;
}
.ap-fab.is-open .ap-fab__item {
	transform: rotate(var(--angle)) translateY(-250px) rotate(calc(-1 * var(--angle))) scale(1);
	opacity: 1;
	pointer-events: auto;
}

.ap-fab__link {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ap-fab-color, #333);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ap-fab__link:hover { transform: scale(1.14); box-shadow: 0 8px 24px rgba(0, 0, 0, .36); filter: brightness(1.08); color: #fff; }

/* برچسب نام شبکه */
.ap-fab__tip {
	position: absolute;
	inset-inline-end: calc(100% + 9px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	background: rgba(20, 20, 26, .94);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	padding: 5px 10px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.ap-fab__link:hover .ap-fab__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* واکنش‌گرایی */
@media (max-width: 768px) {
	.ap-fab { bottom: 18px; inset-inline-start: 16px; width: 54px; height: 54px; }
	.ap-fab__main { width: 54px; height: 54px; }
	.ap-fab__ring { width: 54px; height: 54px; }
	.ap-fab__item { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
	.ap-fab__link { width: 42px; height: 42px; }
	.ap-fab.is-open .ap-fab__item { transform: rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle))) scale(1); }
	.ap-fab__tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ap-fab__pulse { animation: none; }
	.ap-fab__item, .ap-fab__main { transition-duration: .01ms; }
}
.ap-to-top {
	position: fixed;
	bottom: 24px;
	inset-inline-start: 24px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--ap-red);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 20px rgba(211, 47, 47, .35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	z-index: 90;
}
.ap-to-top .ap-icon { transform: rotate(90deg); }
.ap-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ap-to-top:hover { background: var(--ap-red-dark); }

/* ---------- منوی موبایل ---------- */
.ap-mobile-nav {
	position: fixed;
	top: 0;
	inset-inline-start: 0;
	width: min(340px, 88vw);
	height: 100%;
	background: #fff;
	z-index: 120;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	display: flex;
	flex-direction: column;
	box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
	overflow-y: auto;
	visibility: hidden;
	pointer-events: none;
}
[dir="rtl"] .ap-mobile-nav { transform: translateX(100%); }
.ap-mobile-nav.is-open { transform: translateX(0) !important; visibility: visible; pointer-events: auto; }

/* جلوگیری از افتادن نوار مدیریت وردپرس روی منوی موبایل. */
.admin-bar .ap-mobile-nav { top: 32px; height: calc(100% - 32px); }
@media screen and (max-width: 782px) {
	.admin-bar .ap-mobile-nav { top: 46px; height: calc(100% - 46px); }
}

.ap-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--ap-line-2);
	background: var(--ap-ink);
	color: #fff;
}
.ap-mobile-nav__title { font-weight: 800; font-size: 15px; }
.ap-mobile-nav__close { color: #fff; display: grid; place-items: center; }

.ap-mobile-nav__search { padding: 14px 16px; border-bottom: 1px solid var(--ap-line-2); }
.ap-search--mobile { max-width: none; }
.ap-search--mobile button {
	display: grid;
	place-items: center;
	width: 42px;
	align-self: stretch;
	background: var(--ap-red);
	color: #fff;
}

.ap-mobile-nav__body { flex: 1; padding: 8px 0; }
.ap-mobile-nav__list > li > a {
	display: block;
	padding: 12px 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ap-ink);
	border-bottom: 1px solid var(--ap-line-2);
}
.ap-mobile-nav__list > li > a:hover { background: var(--ap-bg-soft); color: var(--ap-red); }
.ap-mobile-nav__list .sub-menu { padding-inline-start: 14px; background: var(--ap-bg-soft-2); }
.ap-mobile-nav__list .sub-menu a { font-size: 12.5px; font-weight: 500; }

.ap-mobile-nav__foot { padding: 16px; border-top: 1px solid var(--ap-line-2); display: flex; flex-direction: column; gap: 10px; }
.ap-mobile-nav__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ap-ink);
	direction: ltr;
}

.ap-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 16, .55);
	z-index: 110;
	opacity: 0;
	transition: opacity .3s ease;
	backdrop-filter: blur(2px);
}
.ap-overlay.is-visible { opacity: 1; }
.admin-bar .ap-overlay { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .ap-overlay { top: 46px; }
}

/* ---------- محتوای عمومی ---------- */
.ap-main { min-height: 40vh; }
.ap-page { padding-block: 40px 60px; }
.ap-page__head { margin-bottom: 28px; }
.ap-page__title { font-size: 26px; font-weight: 900; }
.ap-entry { font-size: 15px; line-height: 2; }
.ap-entry h2 { font-size: 21px; margin: 1.6em 0 .6em; }
.ap-entry h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.ap-entry a { color: var(--ap-red); text-decoration: underline; text-underline-offset: 3px; }
.ap-entry ul, .ap-entry ol { padding-inline-start: 22px; margin: 0 0 1.2em; list-style: disc; }
.ap-entry ol { list-style: decimal; }
.ap-entry li { margin-bottom: .4em; }
.ap-entry img { border-radius: var(--ap-radius); }
.ap-entry blockquote {
	margin: 1.4em 0;
	padding: 16px 20px;
	border-inline-start: 3px solid var(--ap-red);
	background: var(--ap-bg-soft);
	border-radius: 0 var(--ap-radius) var(--ap-radius) 0;
	color: var(--ap-ink-3);
}
.ap-entry table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.ap-entry th, .ap-entry td { border: 1px solid var(--ap-line); padding: 9px 12px; text-align: right; }
.ap-entry th { background: var(--ap-bg-soft); font-weight: 700; }

/* بلاگ */
.ap-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ap-post-card {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.ap-post-card:hover { box-shadow: var(--ap-shadow); transform: translateY(-2px); border-color: rgba(211, 47, 47, .3); }
.ap-post-card__media { aspect-ratio: 16 / 10; background: var(--ap-bg-soft); overflow: hidden; }
.ap-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ap-post-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ap-post-card__meta { font-size: 11px; color: var(--ap-muted); display: flex; gap: 10px; }
.ap-post-card__title { font-size: 15px; font-weight: 800; line-height: 1.6; }
.ap-post-card__excerpt { font-size: 12.5px; color: var(--ap-muted); line-height: 1.85; margin: 0; }
.ap-post-card__more { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--ap-red); display: inline-flex; align-items: center; gap: 5px; }

/* صفحه‌بندی */
.ap-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.ap-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--ap-line);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ap-text);
	background: #fff;
}
.ap-pagination .page-numbers:hover { border-color: var(--ap-red); color: var(--ap-red); }
.ap-pagination .page-numbers.current { background: var(--ap-red); border-color: var(--ap-red); color: #fff; }

/* ابزارک‌ها */
.ap-widgets { display: flex; flex-direction: column; gap: 20px; }
.widget {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	padding: 18px;
}
.widget-title { font-size: 15px; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ap-line-2); }
.widget ul { display: flex; flex-direction: column; gap: 8px; }
.widget ul li a { font-size: 13px; color: var(--ap-text); }
.widget ul li a:hover { color: var(--ap-red); }

/* چیدمان با ستون کنار */
.ap-with-sidebar { display: grid; grid-template-columns: 1fr 290px; gap: 30px; align-items: start; }

/* 404 و جست‌وجو */
.ap-empty { text-align: center; padding: 60px 20px; }
.ap-empty__title { font-size: 22px; margin-bottom: 10px; }
.ap-empty__text { color: var(--ap-muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- نقشهٔ موقعیت ---------- */
.ap-map {
	margin-bottom: 34px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius-lg);
	overflow: hidden;
}
.ap-map__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 16px 20px;
	border-bottom: 1px solid var(--ap-line-2);
}
.ap-map__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15.5px;
	font-weight: 800;
	margin: 0;
}
.ap-map__title .ap-icon { color: var(--ap-red); }
.ap-map__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ap-red);
	transition: gap .18s ease;
}
.ap-map__link:hover { gap: 9px; color: var(--ap-red-dark); }
.ap-map__frame { line-height: 0; background: var(--ap-bg-soft); }
.ap-map__frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.ap-map__address {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 13px 20px;
	font-size: 12.5px;
	color: var(--ap-muted);
	border-top: 1px solid var(--ap-line-2);
}
.ap-map__address .ap-icon { color: var(--ap-red); flex: 0 0 auto; }

/* ---------- راهنمای خرید و روش‌های پرداخت ---------- */
.ap-guide { display: flex; flex-direction: column; gap: 38px; }
.ap-guide__title { font-size: 19px; font-weight: 900; margin: 0 0 18px; position: relative; padding-inline-start: 14px; }
.ap-guide__title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 20px;
	border-radius: 2px;
	background: var(--ap-red);
}

/* مراحل خرید */
.ap-steps__list { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.ap-step {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ap-step:hover { border-color: rgba(211, 47, 47, .3); box-shadow: var(--ap-shadow-sm); }
.ap-step__num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(211, 47, 47, .09);
	color: var(--ap-red);
	font-size: 17px;
	font-weight: 900;
}
.ap-step__body { min-width: 0; }
.ap-step__title { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.ap-step__text { font-size: 13px; line-height: 1.95; color: var(--ap-muted); margin: 0; }

/* پرسش‌های پرتکرار */
.ap-faq {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	margin-bottom: 10px;
	overflow: hidden;
	transition: border-color .2s ease;
}
.ap-faq[open] { border-color: rgba(211, 47, 47, .3); }
.ap-faq__q {
	cursor: pointer;
	padding: 15px 18px;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--ap-ink);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	transition: color .18s ease, background .18s ease;
}
.ap-faq__q::-webkit-details-marker { display: none; }
.ap-faq__q::after {
	content: "+";
	font-size: 19px;
	font-weight: 400;
	color: var(--ap-red);
	flex: 0 0 auto;
	line-height: 1;
	transition: transform .2s ease;
}
.ap-faq[open] .ap-faq__q::after { content: "−"; }
.ap-faq__q:hover { background: var(--ap-bg-soft); color: var(--ap-red); }
.ap-faq__a {
	margin: 0;
	padding: 0 18px 16px;
	font-size: 12.5px;
	line-height: 2;
	color: var(--ap-muted);
}

/* نکتهٔ پرداخت */
.ap-pay-note {
	background: var(--ap-bg-soft);
	border: 1px solid var(--ap-line);
	border-inline-start: 3px solid var(--ap-red);
	border-radius: var(--ap-radius);
	padding: 20px 22px;
}
.ap-pay-note .ap-guide__title { font-size: 16px; margin-bottom: 10px; padding-inline-start: 0; }
.ap-pay-note .ap-guide__title::before { display: none; }
.ap-pay-note__text { font-size: 13px; line-height: 2.05; color: var(--ap-text); margin: 0; }
.ap-pay-note__text a { color: var(--ap-red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* چک‌لیست */
.ap-checklist { display: flex; flex-direction: column; gap: 10px; }
.ap-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	line-height: 1.95;
	color: var(--ap-text);
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: 8px;
}
.ap-checklist .ap-icon { color: var(--ap-green); flex: 0 0 auto; margin-top: 4px; }

@media (max-width: 768px) {
	.ap-step { padding: 14px 15px; gap: 12px; }
	.ap-step__num { width: 34px; height: 34px; font-size: 15px; }
	.ap-guide { gap: 28px; }
	.ap-pay-note { padding: 16px; }
}

/* ---------- برگهٔ تماس با ما ---------- */
.ap-page__head--center { text-align: center; }
.ap-page__lead {
	font-size: 14.5px;
	color: var(--ap-muted);
	line-height: 1.9;
	max-width: 620px;
	margin: 10px auto 0;
}

.ap-contact__cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 34px;
}
.ap-contact-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.ap-contact-card:hover { border-color: rgba(211, 47, 47, .35); box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.ap-contact-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(211, 47, 47, .09);
	color: var(--ap-red);
	flex: 0 0 auto;
}
.ap-contact-card__icon--wa { background: rgba(37, 211, 102, .12); color: #1f9d55; }
.ap-contact-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-contact-card__label { font-size: 11.5px; color: var(--ap-muted); }
.ap-contact-card__value { font-size: 13.5px; font-weight: 800; color: var(--ap-ink); unicode-bidi: plaintext; }

.ap-contact__grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.ap-contact__form-wrap,
.ap-contact__side {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius-lg);
	padding: 24px;
}
.ap-contact__title { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.ap-contact__hint { font-size: 12.5px; color: var(--ap-muted); margin: 0 0 18px; }

.ap-form { display: flex; flex-direction: column; gap: 14px; }
.ap-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-form__field { display: flex; flex-direction: column; gap: 6px; }
.ap-form__label { font-size: 12.5px; font-weight: 700; color: var(--ap-ink); }
.ap-form input,
.ap-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--ap-line);
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--ap-text);
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
	resize: vertical;
}
.ap-form input:focus,
.ap-form textarea:focus {
	border-color: var(--ap-red);
	box-shadow: 0 0 0 3px rgba(211, 47, 47, .08);
	outline: none;
}
.ap-form .ap-btn { align-self: flex-start; margin-top: 4px; }

/* فیلد تلهٔ هرزنامه — از دید کاربر پنهان است */
.ap-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* پیام نتیجهٔ فرم */
.ap-notice {
	padding: 13px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
	border: 1px solid transparent;
	margin-bottom: 4px;
}
.ap-notice--success {
	background: #f2fbf6;
	border-color: #b7e4c9;
	color: #14713c;
}
.ap-notice--error {
	background: #fef5f5;
	border-color: #f3c2c2;
	color: #a81f1f;
}

.ap-contact__socials { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 22px; }
.ap-contact__socials a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--ap-line);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ap-text);
	transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.ap-contact__socials a:hover { border-color: var(--ap-red); background: #fffafa; color: var(--ap-red); }
.ap-contact__socials .ap-icon { color: var(--ap-red); }

.ap-contact__hours {
	padding-top: 18px;
	border-top: 1px solid var(--ap-line-2);
}
.ap-contact__subtitle {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 800;
	margin: 0 0 8px;
}
.ap-contact__subtitle .ap-icon { color: var(--ap-red); }
.ap-contact__hours p { font-size: 12.5px; color: var(--ap-muted); margin: 0; }

/* ---------- برگهٔ درباره ما ---------- */
.ap-about { display: flex; flex-direction: column; gap: 40px; }

.ap-about__intro {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 30px;
	align-items: center;
}
.ap-about__title { font-size: 20px; font-weight: 900; margin: 0 0 14px; }
.ap-about__text p { font-size: 14px; line-height: 2.1; color: var(--ap-text); margin: 0 0 14px; }
.ap-about__media {
	border-radius: var(--ap-radius-lg);
	overflow: hidden;
	background: linear-gradient(160deg, #2a0d0d, #1a1a1f);
	aspect-ratio: 1 / 1;
}
.ap-about__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.ap-about__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	padding: 26px;
	background: var(--ap-ink);
	border-radius: var(--ap-radius-lg);
}
.ap-stat { text-align: center; color: #fff; }
.ap-stat__num { display: block; font-size: 28px; font-weight: 900; color: #fff; line-height: 1.3; }
.ap-stat__label { display: block; font-size: 12px; color: #a8a8b8; margin-top: 4px; }

.ap-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ap-value {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	padding: 20px;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ap-value:hover { border-color: rgba(211, 47, 47, .3); box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.ap-value__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(211, 47, 47, .09);
	color: var(--ap-red);
	margin-bottom: 12px;
}
.ap-value__title { font-size: 14px; font-weight: 800; margin: 0 0 6px; }
.ap-value__text { font-size: 12.5px; line-height: 1.9; color: var(--ap-muted); margin: 0; }

.ap-about__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 28px;
	border-radius: var(--ap-radius-lg);
	background: linear-gradient(135deg, #2a0d0d, #4a1010 55%, #1a1a1f);
	color: #fff;
}
.ap-about__cta-title { font-size: 19px; font-weight: 900; color: #fff; margin: 0 0 6px; }
.ap-about__cta-text { font-size: 13px; color: #d0d0da; margin: 0; }
.ap-about__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1024px) {
	.ap-contact__cards { grid-template-columns: repeat(2, 1fr); }
	.ap-contact__grid { grid-template-columns: 1fr; }
	.ap-about__intro { grid-template-columns: 1fr; }
	.ap-about__media { max-width: 320px; margin-inline: auto; }
	.ap-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.ap-contact__cards { grid-template-columns: 1fr; gap: 10px; }
	.ap-contact__form-wrap, .ap-contact__side { padding: 18px; }
	.ap-form__row { grid-template-columns: 1fr; }
	.ap-form .ap-btn { align-self: stretch; }
	.ap-map__frame iframe { height: 280px; }
	.ap-map__head { padding: 14px 16px; }
	.ap-map__address { padding: 12px 16px; font-size: 11.5px; }
	.ap-about__stats { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px; }
	.ap-stat__num { font-size: 22px; }
	.ap-values { grid-template-columns: 1fr; }
	.ap-about__cta { padding: 20px; }
	.ap-about__cta-actions { width: 100%; }
	.ap-about__cta-actions .ap-btn { flex: 1; }
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 1200px) {
	.ap-cats__grid { grid-template-columns: repeat(4, 1fr); }
	.ap-use__grid { grid-template-columns: repeat(3, 1fr); }
	.ap-knowledge__grid { grid-template-columns: repeat(3, 1fr); }
	.ap-carousel__item { flex: 0 0 calc((100% - 28px) / 3); }
	.ap-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
	.ap-footer__col:nth-child(4) { display: none; }
}

@media (max-width: 1024px) {
	.ap-header__inner { grid-template-columns: auto 1fr auto; gap: 16px; }
	.ap-use__layout,
	.ap-products__layout,
	.ap-knowledge__layout { grid-template-columns: 1fr; }
	.ap-use__promo,
	.ap-products__promo,
	.ap-knowledge__promo { min-height: 220px; }
	.ap-products__promo,
	.ap-knowledge__promo { order: -1; }
	.ap-with-sidebar { grid-template-columns: 1fr; }
	.ap-posts { grid-template-columns: repeat(2, 1fr); }
	.ap-hero__slide { min-height: 400px; }
}

@media (max-width: 900px) {
	.ap-topbar__right .ap-topbar__item:nth-child(n+2),
	.ap-topbar__right .ap-topbar__sep { display: none; }
	.ap-nav__list > li > a { padding: 0 12px; font-size: 12.5px; }
	.ap-nav__toggle { padding: 0 14px; font-size: 12.5px; }
	.ap-nav__toggle span { display: none; }
	.ap-footer__top { grid-template-columns: 1fr 1fr; gap: 26px; }
	.ap-footer__col:nth-child(4) { display: block; }
	.ap-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	:root { --ap-header-h: 68px; }

	.ap-container { padding-inline: 14px; }

	.ap-topbar { font-size: 11.5px; }
	.ap-topbar__inner { min-height: 36px; }
	.ap-topbar__menu { display: none; }
	.ap-topbar__left .ap-topbar__sep { display: none; }
	.ap-topbar__phone { font-size: 12px; padding: 2px 8px 2px 3px; gap: 5px; }
	.ap-topbar__phone-num { white-space: nowrap; }
	.ap-topbar__account span { display: none; }

	.ap-header__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"brand actions"
			"search search";
		gap: 10px;
		padding-block: 10px;
	}
	.ap-header__brand { grid-area: brand; }
	.ap-header__search { grid-area: search; }
	.ap-header__actions { grid-area: actions; }
	.ap-logo__title { font-size: 20px; }
	.ap-logo__tagline { font-size: 9.5px; }
	.ap-logo__mark svg { width: 36px; height: 36px; }
	.custom-logo-link img { max-height: 52px; }
	.ap-search { max-width: none; }
	.ap-search__input { padding: 10px 13px; font-size: 12.5px; }
	.ap-search__btn { width: 42px; }
	.ap-cart { padding: 7px 10px; }
	.ap-cart__label { display: none; }
	.ap-burger { display: grid; }

	.ap-nav { position: static; }
	.ap-nav__inner { min-height: 44px; }
	.ap-nav__toggle { width: 100%; justify-content: center; }
	.ap-nav__toggle span { display: inline; }
	.ap-nav__scroll { display: none; }
	/* لینک‌های «تماس با ما» و «درباره ما» در موبایل داخل منوی کشویی هستند */
	.ap-nav__extra { display: none; }

	.ap-hero__slide { min-height: 340px; }
	.ap-hero__content { padding-block: 40px; }
	.ap-hero__overlay { background: linear-gradient(to top, rgba(12, 12, 18, .95) 0%, rgba(12, 12, 18, .8) 55%, rgba(12, 12, 18, .45) 100%); }
	.ap-hero__title { font-size: 24px; }
	.ap-hero__text { font-size: 13px; margin-bottom: 20px; }
	.ap-hero__arrow { display: none; }
	.ap-hero__actions .ap-btn { flex: 1; padding: 11px 16px; font-size: 13px; }

	.ap-section { padding-block: 30px; }
	.ap-section__title { font-size: 16.5px; }
	.ap-section__head--split { gap: 8px; }
	.ap-section__sub { width: 100%; order: 3; }

	.ap-cats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ap-cat__link { padding: 14px 8px 12px; }
	.ap-cat__media { height: 78px; }
	.ap-cat__media img { max-height: 78px; }
	.ap-cat__title { font-size: 11.5px; min-height: 34px; }

	.ap-use__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ap-use__title { font-size: 11px; }

	.ap-carousel__item { flex: 0 0 calc((100% - 10px) / 2); }
	.ap-carousel__track { gap: 10px; }
	.ap-carousel__nav { display: none; }
	.ap-card__title { font-size: 11.5px; min-height: 38px; }
	.ap-card__now { font-size: 13.5px; }
	.ap-card__btn { font-size: 11px; padding: 8px 10px; }

	.ap-knowledge__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ap-article__title { font-size: 11px; }

	.ap-brand { min-width: 118px; height: 62px; padding: 10px 14px; }
	.ap-brand img { max-height: 32px; }
	.ap-brand__text { font-size: 16px; }

	.ap-footer { padding-top: 32px; }
	.ap-footer__top { grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 26px; }
	.ap-footer__title { font-size: 13px; margin-bottom: 12px; }
	.ap-footer__links a, .ap-footer__contact li { font-size: 12px; }
	.ap-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
	.ap-footer__copy { font-size: 10.5px; line-height: 1.8; }

	.ap-posts { grid-template-columns: 1fr; }
	.ap-to-top { bottom: 16px; inset-inline-start: 16px; width: 38px; height: 38px; }
	.ap-page { padding-block: 26px 40px; }
	.ap-page__title { font-size: 21px; }
}

@media (max-width: 420px) {
	.ap-cats__grid { grid-template-columns: repeat(2, 1fr); }
	.ap-carousel__item { flex: 0 0 78%; }
	.ap-footer__top { grid-template-columns: 1fr; }
}

/* ---------- اصلاح نهایی عرض محتوای مقالات و صفحات داخلی ---------- */
.ap-with-sidebar,
.ap-with-sidebar > *,
.ap-single,
.ap-entry,
.ap-contact,
.ap-contact__cards,
.ap-contact__grid,
.ap-contact__form-wrap,
.ap-contact__side,
.ap-map,
.ap-map__frame {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.ap-entry,
.ap-entry * ,
.ap-contact,
.ap-contact * {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.ap-entry p,
.ap-entry li,
.ap-entry a,
.ap-entry span,
.ap-entry strong,
.ap-entry em,
.ap-contact p,
.ap-contact a,
.ap-contact span {
	overflow-wrap: anywhere;
	word-break: normal;
}

.ap-entry img,
.ap-entry video,
.ap-entry iframe,
.ap-entry figure,
.ap-contact img,
.ap-contact iframe {
	max-width: 100% !important;
	height: auto;
}

.ap-entry figure,
.ap-entry table {
	margin-inline: 0;
}

.ap-entry table {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ap-entry th,
.ap-entry td {
	white-space: normal;
	overflow-wrap: anywhere;
	min-width: 0;
}

@media (max-width: 768px) {
	.ap-container.ap-page {
		width: 100%;
		max-width: 100%;
		padding-inline: 14px;
	}

	.ap-with-sidebar {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	.ap-with-sidebar > *,
	.ap-single,
	.ap-entry {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.ap-entry {
		font-size: 14px;
		line-height: 1.95;
	}

	.ap-entry h1,
	.ap-entry h2,
	.ap-entry h3,
	.ap-entry h4 {
		max-width: 100%;
		font-size: clamp(17px, 5vw, 22px);
		overflow-wrap: anywhere;
	}

	.ap-entry pre,
	.ap-entry code {
		max-width: 100%;
		white-space: pre-wrap;
		overflow-wrap: anywhere;
	}

	.ap-contact__cards,
	.ap-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ap-contact-card,
	.ap-contact__form-wrap,
	.ap-contact__side,
	.ap-form,
	.ap-form__field {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.ap-contact-card__body {
		flex: 1 1 0;
		min-width: 0;
	}

	.ap-contact-card__value {
		font-size: 12px;
		overflow-wrap: anywhere;
	}

	.ap-map__frame iframe {
		width: 100% !important;
		max-width: 100% !important;
		height: 280px;
	}
}

/* ---------- دسترس‌پذیری ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- چاپ ---------- */
@media print {
	.ap-topbar, .ap-nav, .ap-hero, .ap-footer, .ap-to-top, .ap-mobile-nav, .ap-overlay { display: none !important; }
	body { font-size: 12pt; color: #000; }
}


/* ---------- اصلاح واکنش‌گرایی مقالات و صفحات داخلی ---------- */
html, body {
	max-width: 100%;
	overflow-x: clip;
}

.ap-page,
.ap-contact,
.ap-contact__cards,
.ap-contact__grid,
.ap-contact__form-wrap,
.ap-contact__side,
.ap-map,
.ap-map__frame,
.entry-content,
.post-content,
article {
	min-width: 0;
	max-width: 100%;
}

.ap-page img,
.entry-content img,
.post-content img,
article img,
.ap-contact img,
.ap-map iframe {
	max-width: 100%;
	height: auto;
}

.entry-content p,
.entry-content li,
.post-content p,
.post-content li,
.ap-contact-card__value,
.ap-contact__hint,
.ap-contact__hours,
.ap-map__address {
	overflow-wrap: anywhere;
	word-break: normal;
}

.entry-content table,
.post-content table,
article table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.post-content th,
.post-content td,
article th,
article td {
	white-space: normal;
	min-width: 90px;
}

@media (max-width: 767px) {
	.ap-container,
	.ap-page {
		width: 100%;
		max-width: 100%;
		padding-inline: 14px;
	}

	.ap-page__head,
	.ap-page__lead {
		max-width: 100%;
		padding-inline: 0;
	}

	.ap-page__title {
		font-size: clamp(20px, 6vw, 26px);
		line-height: 1.5;
	}

	.ap-contact__cards,
	.ap-contact__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		gap: 14px;
	}

	.ap-contact-card {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.ap-contact-card__body,
	.ap-contact-card__value {
		min-width: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.ap-contact__form-wrap,
	.ap-contact__side,
	.ap-form,
	.ap-form__field {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.ap-form__row {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}

	.ap-form input,
	.ap-form textarea,
	.ap-form select {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.ap-map__head {
		flex-wrap: wrap;
		gap: 10px;
	}

	.ap-map__frame {
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	.ap-map__frame iframe {
		width: 100%;
		max-width: 100%;
	}

	.entry-content,
	.post-content,
	article {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding-inline: 0;
	}

	.entry-content h1,
	.entry-content h2,
	.entry-content h3,
	.post-content h1,
	.post-content h2,
	.post-content h3,
	article h1,
	article h2,
	article h3 {
		max-width: 100%;
		overflow-wrap: anywhere;
		font-size: clamp(18px, 5vw, 24px);
	}

	.entry-content pre,
	.post-content pre,
	article pre {
		max-width: 100%;
		overflow-x: auto;
	}

	.entry-content figure,
	.post-content figure,
	article figure {
		max-width: 100%;
		margin-inline: 0;
	}

	.entry-content img,
	.post-content img,
	article img {
		display: block;
		width: auto;
		max-width: 100%;
		margin-inline: auto;
		object-fit: contain;
	}
}

/* ---------- جدول خوانا برای مشخصات فنی فن لاریسا ---------- */
.ap-entry table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	table-layout: auto;
	direction: rtl;
	font-size: 13px;
	line-height: 1.7;
}
.ap-entry table th,
.ap-entry table td {
	padding: 10px 8px;
	border: 1px solid #dfe3ea;
	text-align: center;
	vertical-align: middle;
	white-space: normal;
	word-break: normal;
	min-width: 0;
}
.ap-entry table th {
	background: #172b45;
	color: #fff;
	font-weight: 800;
}
.ap-entry table tbody tr:nth-child(even) { background: #f5f7fa; }
.ap-entry table td:first-child { font-weight: 800; direction: ltr; }

@media (max-width: 768px) {
	/* تبدیل ردیف های جدول ۹ ستونه به کارت های مشخصات */
	.ap-entry table {
		display: block;
		width: 100%;
		overflow: visible;
		border: 0;
	}
	.ap-entry table thead { display: none; }
	.ap-entry table tbody,
	.ap-entry table tr,
	.ap-entry table td { display: block; width: 100%; }
	.ap-entry table tbody tr {
		margin: 0 0 14px;
		padding: 8px 12px;
		border: 1px solid #dfe3ea;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 2px 8px rgba(20, 35, 55, .06);
	}
	.ap-entry table tbody tr:nth-child(even) { background: #fff; }
	.ap-entry table td {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		padding: 7px 0;
		border: 0;
		border-bottom: 1px solid #edf0f4;
		text-align: left;
		font-size: 13px;
	}
	.ap-entry table td:last-child { border-bottom: 0; }
	.ap-entry table td::before {
		flex: 0 0 43%;
		color: #526174;
		font-weight: 700;
		text-align: right;
	}
	.ap-entry table td:nth-child(1)::before { content: "مدل"; }
	.ap-entry table td:nth-child(2)::before { content: "قطر"; }
	.ap-entry table td:nth-child(3)::before { content: "ولتاژ"; }
	.ap-entry table td:nth-child(4)::before { content: "فرکانس"; }
	.ap-entry table td:nth-child(5)::before { content: "سرعت چرخش"; }
	.ap-entry table td:nth-child(6)::before { content: "توان موتور"; }
	.ap-entry table td:nth-child(7)::before { content: "دبی هوا"; }
	.ap-entry table td:nth-child(8)::before { content: "فشار"; }
	.ap-entry table td:nth-child(9)::before { content: "میزان صدا"; }

	/* رفع عرض اضافه در صفحه تماس با ما */
	body.page-id-35,
	body.page-id-35 #page,
	body.page-id-35 .ap-site,
	body.page-id-35 .ap-container,
	body.page-id-35 .ap-page,
	body.page-id-35 .ap-contact {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: clip;
	}
	body.page-id-35 .ap-container.ap-page {
		margin-inline: auto;
		padding-inline: 14px;
	}
	body.page-id-35 .ap-contact *,
	body.page-id-35 .ap-page__head * {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}
	body.page-id-35 .ap-contact__cards,
	body.page-id-35 .ap-contact__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}
	body.page-id-35 .ap-contact-card {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
	body.page-id-35 .ap-contact-card__body {
		flex: 1 1 0;
		width: 1%;
		min-width: 0;
	}
	body.page-id-35 .ap-contact-card__value {
		display: block;
		max-width: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
		unicode-bidi: plaintext;
	}
	body.page-id-35 .ap-contact__form-wrap,
	body.page-id-35 .ap-contact__side,
	body.page-id-35 .ap-form,
	body.page-id-35 .ap-form__field,
	body.page-id-35 .ap-form input,
	body.page-id-35 .ap-form textarea {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
	body.page-id-35 .ap-map,
	body.page-id-35 .ap-map__frame {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
	}
	body.page-id-35 .ap-map__head {
		flex-wrap: wrap;
		width: 100%;
		max-width: 100%;
	}
	body.page-id-35 .ap-map__frame iframe {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ---------- کارت های دسته بندی دانشنامه ---------- */
.ap-blog-categories {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 28px 0 42px;
}
.ap-blog-category {
	display: grid;
	grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
	align-items: stretch;
	min-width: 0;
	border: 1px solid #e2e7ef;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 5px 18px rgba(20, 35, 55, .06);
}
.ap-blog-category > img {
	width: 100%;
	height: 100%;
	min-height: 190px;
	object-fit: cover;
}
.ap-blog-category__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	padding: 18px;
	min-width: 0;
}
.ap-blog-category__body strong { font-size: 19px; color: #172b45; }
.ap-blog-category__body span { color: #596579; font-size: 13px; line-height: 1.9; }
.ap-blog-category__body em { color: #d32f2f; font-size: 12px; font-style: normal; font-weight: 800; }
.ap-blog-section-title { margin: 0 0 18px; font-size: 20px; }
.ap-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ap-blog-card { min-width: 0; border: 1px solid #e2e7ef; border-radius: 14px; overflow: hidden; background: #fff; }
.ap-blog-card > a > img { width: 100%; height: 210px; object-fit: cover; }
.ap-blog-card__body { padding: 18px; }
.ap-blog-card__category { display: inline-block; margin-bottom: 8px; color: #d32f2f; font-size: 12px; font-weight: 800; }
.ap-blog-card h3 { font-size: 17px; line-height: 1.8; margin-bottom: 8px; }
.ap-blog-card p { color: #596579; font-size: 13px; line-height: 1.9; }
.ap-blog-card__more { color: #d32f2f; font-size: 13px; font-weight: 800; }
.ap-blog-note { margin-top: 28px; padding: 16px; border-radius: 10px; background: #f4f6fa; color: #475569; }
@media (max-width: 768px) {
	.ap-blog-categories,
	.ap-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.ap-blog-category { grid-template-columns: 34% minmax(0, 1fr); }
	.ap-blog-category > img { min-height: 150px; }
	.ap-blog-category__body { padding: 12px; gap: 7px; }
	.ap-blog-category__body strong { font-size: 16px; }
	.ap-blog-category__body span { font-size: 12px; }
	.ap-blog-card > a > img { height: 190px; }
}

