/* ==========================================================================
   MDF Home — components.css
   دکمه‌ها، نشان‌ها، کارت‌ها، جدول مشخصات، فرم‌ها، صفحه‌بندی، گالری و…
   ========================================================================== */

/* ---------- دکمه‌ها ---------- */
.mdf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	border: 1px solid transparent;
	border-radius: var(--mdf-radius-sm);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	text-align: center;
}

.mdf-btn--primary {
	background: var(--mdf-wood-dark);
	color: #fff;
}

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

.mdf-btn--outline {
	background: var(--mdf-surface);
	color: var(--mdf-wood-dark);
	border-color: var(--mdf-wood-light);
}

.mdf-btn--outline:hover {
	background: var(--mdf-cream);
	border-color: var(--mdf-wood);
	color: var(--mdf-wood-dark);
}

.mdf-btn--ghost {
	background: transparent;
	color: var(--mdf-ink);
	border-color: var(--mdf-ink);
}

.mdf-btn--ghost:hover {
	background: var(--mdf-ink);
	color: #fff;
}

.mdf-btn--light {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

.mdf-btn--light:hover {
	background: #fff;
	color: var(--mdf-wood-dark);
}

.mdf-btn--sm {
	padding: 8px 16px;
	font-size: 13.5px;
}

.mdf-btn--lg {
	padding: 14px 28px;
	font-size: 16px;
}

.mdf-btn--block {
	width: 100%;
}

/* ---------- نشان‌ها ---------- */
.mdf-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 500;
	border-radius: 999px;
}

.mdf-badge--in-stock {
	background: var(--mdf-green-bg);
	color: var(--mdf-green);
}

.mdf-badge--order {
	background: var(--mdf-amber-bg);
	color: var(--mdf-amber);
}

.mdf-badge--out {
	background: var(--mdf-red-bg);
	color: var(--mdf-red);
}

.mdf-badge--cat {
	background: var(--mdf-cream);
	color: var(--mdf-wood-dark);
	border: 1px solid var(--mdf-line);
}

/* ---------- کارت محصول ---------- */
.mdf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.mdf-card:hover {
	box-shadow: var(--mdf-shadow);
	border-color: var(--mdf-wood-light);
}

.mdf-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--mdf-cream);
	overflow: hidden;
}

.mdf-card__img,
.mdf-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mdf-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--mdf-muted);
	background:
		linear-gradient(135deg, rgba(200, 159, 123, 0.10) 0%, rgba(200, 159, 123, 0.18) 100%);
}

.mdf-card__placeholder span {
	font-size: 13px;
}

.mdf-card__media .mdf-badge {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
}

.mdf-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
	gap: 6px;
}

.mdf-card__cat {
	font-size: 12.5px;
	color: var(--mdf-muted);
}

.mdf-card__cat:hover {
	color: var(--mdf-wood-dark);
}

.mdf-card__title {
	font-size: 16px;
	margin: 0;
	line-height: 1.7;
}

.mdf-card__title a {
	color: var(--mdf-ink);
}

.mdf-card__title a:hover {
	color: var(--mdf-wood-dark);
}

.mdf-card__meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 4px 0 0;
	color: var(--mdf-muted);
	font-size: 13px;
}

.mdf-card__meta li::before {
	content: "•";
	color: var(--mdf-wood-light);
	margin-inline-end: 6px;
}

.mdf-card__meta li:first-child::before {
	content: none;
}

.mdf-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px dashed var(--mdf-line);
}

.mdf-card__price {
	font-size: 15px;
	font-weight: 700;
	color: var(--mdf-wood-dark);
}

.mdf-card__inquiry {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--mdf-amber);
}

.mdf-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--mdf-cream);
	color: var(--mdf-wood-dark);
}

.mdf-card__more:hover {
	background: var(--mdf-wood-dark);
	color: #fff;
}

.mdf-card__excerpt {
	font-size: 14px;
	color: var(--mdf-muted);
	margin: 0;
}

.mdf-card__readmore {
	font-size: 14px;
	font-weight: 500;
	color: var(--mdf-wood-dark);
}

/* کارت دسته‌بندی */
.mdf-cat-card {
	display: flex;
	flex-direction: column;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius);
	overflow: hidden;
	transition: box-shadow 0.25s ease;
	color: var(--mdf-ink);
}

.mdf-cat-card:hover {
	box-shadow: var(--mdf-shadow);
	color: var(--mdf-ink);
}

.mdf-cat-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--mdf-cream);
	overflow: hidden;
}

.mdf-cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mdf-cat-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--mdf-wood-light);
}

.mdf-cat-card__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
}

.mdf-cat-card__name {
	font-weight: 700;
	font-size: 15px;
}

.mdf-cat-card__count {
	font-size: 12.5px;
	color: var(--mdf-muted);
}

/* ---------- breadcrumb ---------- */
.mdf-breadcrumb {
	padding-block: 16px 8px;
	font-size: 13px;
	color: var(--mdf-muted);
}

.mdf-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.mdf-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mdf-breadcrumb li + li::before {
	content: "/";
	color: var(--mdf-wood-light);
}

.mdf-breadcrumb a {
	color: var(--mdf-muted);
}

.mdf-breadcrumb a:hover {
	color: var(--mdf-wood-dark);
}

.mdf-breadcrumb [aria-current="page"] {
	color: var(--mdf-ink);
	font-weight: 500;
}

/* ---------- هیروی صفحات داخلی ---------- */
.mdf-page-hero {
	background: var(--mdf-cream);
	padding-bottom: 24px;
}

.mdf-page-hero--term,
.mdf-page-hero--image {
	position: relative;
	background-size: cover;
	background-position: center;
}

.mdf-page-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(250, 246, 240, 0.88);
}

.mdf-page-hero--image .mdf-container {
	position: relative;
}

.mdf-page-hero__title {
	font-size: clamp(24px, 4vw, 34px);
	margin-bottom: 6px;
}

.mdf-page-hero__desc {
	color: var(--mdf-muted);
	margin: 0;
	font-size: 15px;
}

.mdf-page-hero--plain {
	padding-bottom: 8px;
}

/* ---------- چیپ‌های دسته‌بندی ---------- */
.mdf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-block: 20px;
}

.mdf-chip {
	display: inline-block;
	padding: 8px 18px;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: 999px;
	color: var(--mdf-body);
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.mdf-chip:hover {
	border-color: var(--mdf-wood);
	color: var(--mdf-wood-dark);
}

.mdf-chip.is-active {
	background: var(--mdf-wood-dark);
	border-color: var(--mdf-wood-dark);
	color: #fff;
}

/* ---------- صفحه تک‌محصول ---------- */
.mdf-product__layout {
	display: grid;
	gap: 28px;
	padding-top: 8px;
}

.mdf-product__title {
	font-size: clamp(22px, 4vw, 30px);
	margin-bottom: 12px;
}

.mdf-product__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.mdf-product__code {
	font-size: 13px;
	color: var(--mdf-muted);
}

.mdf-product__excerpt {
	color: var(--mdf-muted);
	font-size: 15px;
	margin-bottom: 18px;
}

.mdf-product__quick-specs {
	list-style: none;
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}

.mdf-product__quick-specs li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	background: var(--mdf-cream);
	border-radius: var(--mdf-radius-sm);
	padding: 10px 14px;
	font-size: 14px;
}

.mdf-product__quick-specs span {
	color: var(--mdf-muted);
}

.mdf-product__quick-specs strong {
	font-weight: 500;
	color: var(--mdf-ink);
}

.mdf-colors {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.mdf-colors__label {
	font-size: 14px;
	color: var(--mdf-muted);
}

.mdf-colors__list {
	display: flex;
	gap: 8px;
}

.mdf-swatch {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--mdf-line);
	display: inline-block;
}

.mdf-product__price-row {
	padding-block: 14px;
	border-block: 1px dashed var(--mdf-line);
	margin-bottom: 18px;
}

.mdf-product__price {
	font-size: 20px;
	font-weight: 700;
	color: var(--mdf-wood-dark);
}

.mdf-product__price--inquiry {
	color: var(--mdf-amber);
	font-size: 17px;
}

.mdf-product__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mdf-product__sections {
	display: grid;
	gap: 32px;
	margin-top: 44px;
}

.mdf-product__section {
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius);
	padding: 26px 22px;
}

.mdf-product__section h2 {
	font-size: 19px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--mdf-line);
}

.mdf-product__inquiry {
	margin-top: 44px;
	background: var(--mdf-cream);
	border-radius: var(--mdf-radius);
	padding: 26px 22px;
}

.mdf-product__inquiry h2 {
	font-size: 19px;
	margin-bottom: 18px;
}

.mdf-product__related {
	margin-top: 44px;
}

.mdf-product__related h2 {
	font-size: 19px;
	margin-bottom: 18px;
}

.mdf-inquiry-fallback {
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius);
	padding: 24px;
}

.mdf-inquiry-fallback h3 {
	font-size: 17px;
	margin-bottom: 8px;
}

/* ---------- گالری ---------- */
.mdf-gallery--empty .mdf-card__placeholder {
	aspect-ratio: 4 / 3;
	border: 1px dashed var(--mdf-line);
	border-radius: var(--mdf-radius);
}

.mdf-gallery__main {
	position: relative;
	margin: 0;
	border-radius: var(--mdf-radius);
	overflow: hidden;
	background: var(--mdf-cream);
	border: 1px solid var(--mdf-line);
}

.mdf-gallery__img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mdf-gallery__zoom {
	position: absolute;
	bottom: 12px;
	inset-inline-end: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--mdf-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mdf-gallery__zoom:hover {
	background: var(--mdf-wood-dark);
	color: #fff;
}

.mdf-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.mdf-gallery__thumb {
	flex: 0 0 auto;
	width: 84px;
	height: 66px;
	padding: 0;
	border: 2px solid var(--mdf-line);
	border-radius: var(--mdf-radius-sm);
	overflow: hidden;
	background: var(--mdf-cream);
}

.mdf-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mdf-gallery__thumb.is-active {
	border-color: var(--mdf-wood);
}

/* لایت‌باکس */
.mdf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	background: rgba(26, 22, 18, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.mdf-lightbox[hidden] {
	display: none;
}

.mdf-lightbox__img {
	max-width: min(1000px, 92vw);
	max-height: 86vh;
	border-radius: var(--mdf-radius-sm);
	object-fit: contain;
}

.mdf-lightbox__close {
	position: absolute;
	top: 18px;
	inset-inline-start: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mdf-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.mdf-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mdf-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.mdf-lightbox__nav--next {
	inset-inline-end: 18px;
}

.mdf-lightbox__nav--prev {
	inset-inline-start: 18px;
}

/* ---------- جدول مشخصات ---------- */
.mdf-specs__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.mdf-specs__table th,
.mdf-specs__table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--mdf-line);
	text-align: start;
	vertical-align: top;
}

.mdf-specs__table th {
	width: 170px;
	color: var(--mdf-muted);
	font-weight: 500;
	background: var(--mdf-cream);
	border-radius: 6px;
}

.mdf-specs__table td {
	color: var(--mdf-ink);
}

.mdf-specs__table tr:last-child th,
.mdf-specs__table tr:last-child td {
	border-bottom: 0;
}

/* ---------- صفحه‌بندی ---------- */
.mdf-pagination {
	margin-block: 36px 12px;
}

.mdf-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.mdf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius-sm);
	background: var(--mdf-surface);
	color: var(--mdf-body);
	font-size: 14px;
}

.mdf-pagination .page-numbers.current {
	background: var(--mdf-wood-dark);
	border-color: var(--mdf-wood-dark);
	color: #fff;
	font-weight: 700;
}

.mdf-pagination .page-numbers:hover:not(.current) {
	border-color: var(--mdf-wood);
	color: var(--mdf-wood-dark);
}

/* جهت فلش‌ها در RTL */
.mdf-pagination .nav-previous .mdf-icon {
	transform: scaleX(-1);
}

/* ---------- حالت خالی و خطا ---------- */
.mdf-empty {
	text-align: center;
	padding-block: 48px;
	color: var(--mdf-muted);
}

.mdf-empty .mdf-icon {
	color: var(--mdf-wood-light);
	margin-bottom: 12px;
}

.mdf-error {
	padding-block: 48px;
}

.mdf-error__box {
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
	background: var(--mdf-cream);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius);
	padding: 40px 24px;
}

.mdf-error__code {
	display: block;
	font-size: 56px;
	font-weight: 700;
	color: var(--mdf-wood-light);
	line-height: 1;
	margin-bottom: 12px;
}

.mdf-error__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-block: 20px 24px;
}

.mdf-error .mdf-searchform {
	max-width: 380px;
	margin-inline: auto;
}

/* ---------- متن‌های غنی (گوتنبرگ) ---------- */
.mdf-prose {
	font-size: 15.5px;
}

.mdf-prose h2,
.mdf-prose h3,
.mdf-prose h4 {
	margin-block: 1.4em 0.6em;
}

.mdf-prose ul,
.mdf-prose ol {
	padding-inline-start: 1.6em;
	margin-block: 0.8em;
}

.mdf-prose ul {
	list-style: disc;
}

.mdf-prose ol {
	list-style: decimal;
}

.mdf-prose li {
	margin-bottom: 4px;
}

.mdf-prose figure {
	margin: 1.4em 0;
}

.mdf-prose figcaption {
	font-size: 13px;
	color: var(--mdf-muted);
	text-align: center;
}

.mdf-prose blockquote {
	margin: 1.2em 0;
	padding: 14px 20px;
	background: var(--mdf-cream);
	border-inline-start: 3px solid var(--mdf-wood);
	border-radius: var(--mdf-radius-sm);
}

.mdf-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.mdf-prose table th,
.mdf-prose table td {
	border: 1px solid var(--mdf-line);
	padding: 10px 12px;
	text-align: start;
}

.mdf-prose code {
	background: var(--mdf-cream);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.9em;
}

.mdf-page-links {
	margin-top: 1.4em;
}

.mdf-search-term {
	color: var(--mdf-wood-dark);
}

.mdf-search-inline {
	max-width: 440px;
	margin-top: 16px;
}

/* ==========================================================================
   جست‌وجوی زنده (Ajax) — نتایج پیشنهادی زیر فرم جست‌وجو
   ========================================================================== */
.mdf-searchform-wrap {
	position: relative;
}

.mdf-search-live {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline: 0;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius-sm);
	box-shadow: var(--mdf-shadow);
	padding: 8px;
	z-index: 90;
	max-height: 420px;
	overflow: auto;
}

.mdf-search-live[hidden] {
	display: none;
}

.mdf-search-live__empty {
	padding: 14px 12px;
	color: var(--mdf-body);
	font-size: 14px;
	text-align: center;
}

.mdf-search-live__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
}

.mdf-search-live__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--mdf-radius-sm);
	color: var(--mdf-ink);
}

.mdf-search-live__list a:hover {
	background: var(--mdf-cream);
}

.mdf-search-live__thumb {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--mdf-line);
	flex-shrink: 0;
}

.mdf-search-live__badge {
	font-size: 11px;
	background: var(--mdf-cream);
	color: var(--mdf-wood-dark);
	border-radius: 999px;
	padding: 2px 9px;
	flex-shrink: 0;
	font-weight: 600;
}

.mdf-search-live__title {
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mdf-search-live__meta {
	font-size: 12px;
	color: var(--mdf-body);
	margin-inline-start: auto;
	flex-shrink: 0;
	white-space: nowrap;
}

.mdf-search-live__all {
	display: block;
	margin-top: 6px;
	padding: 10px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--mdf-wood-dark);
	border-top: 1px solid var(--mdf-line);
}

/* ==========================================================================
   کارت محصول: دکمه استعلام قیمت (به برگه استعلام می‌رود)
   ========================================================================== */
.mdf-card__footer {
	align-items: center;
}

.mdf-card__cta {
	margin-inline-start: auto;
	white-space: nowrap;
}

/* ==========================================================================
   مقاله وبلاگ (single.php) — تایپوگرافی محتوا
   ========================================================================== */
.mdf-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	color: var(--mdf-body);
	font-size: 13.5px;
	margin-top: 10px;
	opacity: 0.85;
}

.mdf-single {
	max-width: 840px;
	margin-inline: auto;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius);
	padding: clamp(18px, 4vw, 34px);
}

.mdf-single__thumb {
	margin: 0 0 20px;
}

.mdf-single__thumb img {
	width: 100%;
	height: auto;
	border-radius: var(--mdf-radius-sm);
}

.mdf-content {
	font-size: 16.5px;
	line-height: 2.05;
	color: var(--mdf-body);
	overflow-wrap: break-word;
}

.mdf-content > * + * {
	margin-top: 1em;
}

.mdf-content h2,
.mdf-content h3,
.mdf-content h4 {
	color: var(--mdf-ink);
	line-height: 1.6;
	margin-top: 1.7em;
}

.mdf-content h2 {
	font-size: 22px;
}

.mdf-content h3 {
	font-size: 18.5px;
}

.mdf-content a {
	color: var(--mdf-wood-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mdf-content ul,
.mdf-content ol {
	padding-inline-start: 1.5em;
}

.mdf-content ul {
	list-style: disc;
}

.mdf-content ol {
	list-style: decimal;
}

.mdf-content li + li {
	margin-top: 0.45em;
}

.mdf-content img,
.mdf-content figure,
.mdf-content iframe {
	max-width: 100%;
	height: auto;
	border-radius: var(--mdf-radius-sm);
}

.mdf-content blockquote {
	border-inline-start: 3px solid var(--mdf-wood);
	background: var(--mdf-cream);
	padding: 14px 18px;
	border-radius: var(--mdf-radius-sm);
	color: var(--mdf-ink);
}

.mdf-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.mdf-content th,
.mdf-content td {
	border: 1px solid var(--mdf-line);
	padding: 8px 12px;
	text-align: start;
}

.mdf-content code {
	background: var(--mdf-cream);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.9em;
}

.mdf-single__back {
	margin-top: 26px;
}

.mdf-single__pages {
	margin-top: 18px;
}

/* ==========================================================================
   نوار اسکرول افقی — محصولات مرتبط، محصولات تصادفی صفحه اصلی و موارد مشابه
   ========================================================================== */
.mdf-hscroll {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	overflow-x: auto;
	padding: 4px 4px 12px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.mdf-hscroll > * {
	flex: 0 0 clamp(250px, 24vw, 310px);
	scroll-snap-align: start;
}

.mdf-hscroll > .mdf-card {
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   نوار دسته‌بندی سلسله‌مراتبی (آرشیو و صفحات دسته)
   ========================================================================== */
.mdf-catnav {
	position: relative;
	margin-bottom: 22px;
}

.mdf-catnav__row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 10px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.mdf-catnav__row::-webkit-scrollbar {
	display: none;
}

.mdf-catnav__item {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: 999px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mdf-catnav__item:hover,
.mdf-catnav__item.is-open {
	border-color: var(--mdf-wood);
	box-shadow: var(--mdf-shadow);
}

.mdf-catnav__link {
	display: block;
	padding: 9px 16px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--mdf-body);
	white-space: nowrap;
}

.mdf-catnav__link:hover,
.mdf-catnav__link.is-active {
	background: var(--mdf-cream);
	color: var(--mdf-wood-dark);
}

.mdf-catnav__link.is-active {
	background: var(--mdf-wood-dark);
	color: #fff;
}

.mdf-catnav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 34px;
	border: 0;
	border-inline-start: 1px solid var(--mdf-line);
	background: none;
	color: var(--mdf-body);
	cursor: pointer;
}

.mdf-catnav__toggle svg {
	transition: transform 0.2s ease;
}

.mdf-catnav__toggle.is-open svg {
	transform: rotate(180deg);
}

.mdf-catnav__toggle:hover {
	color: var(--mdf-wood-dark);
}

/* زیرمنو: نوار دوم زیر نوار اصلی، در جریان صفحه (بدون کلیپ شدن) */
.mdf-catnav__panel {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 16px;
	margin-top: 6px;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius-sm);
	box-shadow: var(--mdf-shadow);
}

.mdf-catnav__panel[hidden] {
	display: none;
}

.mdf-catnav__sublink {
	padding: 7px 14px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--mdf-body);
	background: var(--mdf-cream);
	border-radius: 999px;
	white-space: nowrap;
}

.mdf-catnav__sublink:hover {
	background: var(--mdf-wood);
	color: #fff;
}

/* ==========================================================================
   دیدگاه‌ها (محصولات و مقالات)
   ========================================================================== */
.mdf-comments {
	max-width: 860px;
	margin-inline: auto;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius);
	padding: clamp(18px, 4vw, 30px);
}

.mdf-comments__title,
.mdf-comments__reply-title {
	font-size: 19px;
	color: var(--mdf-ink);
	margin: 0 0 16px;
}

.mdf-comments__title {
	border-bottom: 1px solid var(--mdf-line);
	padding-bottom: 12px;
}

.mdf-comments__empty,
.mdf-comments__closed,
.mdf-comments__login {
	color: var(--mdf-body);
	font-size: 14.5px;
	background: var(--mdf-cream);
	border-radius: var(--mdf-radius-sm);
	padding: 12px 16px;
}

.mdf-comments__login a {
	color: var(--mdf-wood-dark);
	font-weight: 700;
	text-decoration: underline;
}

.mdf-comments__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mdf-comments__list ol.children {
	list-style: none;
	margin: 0;
	padding-inline-start: 44px;
}

.mdf-comments__list .comment {
	border-bottom: 1px solid var(--mdf-line);
	padding: 16px 0;
}

.mdf-comments__list .comment:last-child {
	border-bottom: 0;
}

.mdf-comments__list .comment .avatar {
	border-radius: 50%;
	border: 1px solid var(--mdf-line);
	margin-inline-end: 10px;
	vertical-align: middle;
}

.mdf-comments__list .comment-author {
	font-weight: 700;
	color: var(--mdf-ink);
}

.mdf-comments__list .comment-metadata {
	font-size: 12.5px;
	color: var(--mdf-body);
	opacity: 0.8;
	margin-top: 4px;
}

.mdf-comments__list .comment-metadata a {
	color: inherit;
}

.mdf-comments__list .comment-content {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.9;
	color: var(--mdf-body);
	overflow-wrap: break-word;
}

.mdf-comments__list .reply {
	margin-top: 8px;
}

.mdf-comments__list .reply a,
.mdf-comments__list .comment-edit-link {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--mdf-wood-dark);
}

/* فرم دیدگاه */
.mdf-comments .comment-form p {
	margin: 0 0 14px;
}

.mdf-comments .comment-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--mdf-ink);
	margin-bottom: 6px;
}

.mdf-comments .comment-form input[type="text"],
.mdf-comments .comment-form input[type="email"],
.mdf-comments .comment-form input[type="url"],
.mdf-comments .comment-form textarea {
	width: 100%;
	background: var(--mdf-cream);
	border: 1px solid var(--mdf-line);
	border-radius: var(--mdf-radius-sm);
	padding: 11px 14px;
	font-size: 15px;
	color: var(--mdf-ink);
	font-family: inherit;
}

.mdf-comments .comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.mdf-comments .comment-form input:focus,
.mdf-comments .comment-form textarea:focus {
	outline: 2px solid var(--mdf-wood);
	outline-offset: 1px;
	border-color: var(--mdf-wood);
}

.mdf-comments .comment-form .submit {
	display: inline-flex;
	align-items: center;
	background: var(--mdf-wood-dark);
	color: #fff;
	border: 0;
	border-radius: var(--mdf-radius-sm);
	padding: 11px 26px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

.mdf-comments .comment-form .submit:hover {
	background: var(--mdf-wood);
}

.mdf-comments .comment-form .comment-subscription-form {
	font-size: 13px;
}

.mdf-comments .comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	font-size: 13.5px;
}

.mdf-comments .comment-navigation .nav-links a {
	color: var(--mdf-wood-dark);
	font-weight: 600;
}

/* ==========================================================================
   فاصله‌ها و قیمت تخفیف ویژه — نسخه ۱٫۳٫۱
   ========================================================================== */

/* فاصله محتوا از بالای صفحه (برگه‌ها، مقالات، دسته‌بندی‌ها و آرشیوها) */
.mdf-page-hero {
	padding-top: 28px;
}

/* فاصله بخش نظرات محصول از مشخصات فنی */
.mdf-product__section--comments {
	margin-top: 36px;
}

/* قیمت تخفیف ویژه */
.mdf-price-del {
	color: var(--mdf-body);
	opacity: 0.55;
	text-decoration: line-through;
	font-weight: 500;
	margin-inline-end: 6px;
}

.mdf-price-sale {
	color: var(--mdf-wood-dark);
	font-weight: 800;
	font-style: normal;
	text-decoration: none;
}

.mdf-price-off {
	display: inline-block;
	background: #b3261e;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 9px;
	vertical-align: middle;
	margin-inline-start: 4px;
}

.mdf-card__price .mdf-price-del,
.mdf-card__price .mdf-price-off {
	font-size: 12.5px;
}

@media (max-width: 767px) {
	.mdf-page-hero {
		padding-top: 18px;
	}
}
