/*
 * Dakhily Carpet — استایل اصلی قالب (RTL / فارسی)
 * Author: Matin Khamooshi — https://matinkhamooshi.ir/
 * Version: 2.0.0 — ری‌دیزاین «روایت بافت»: پالت زرشکی/کرم/طلایی، سریف Markazi، قوس‌های طاقی
 */

/* ---------- فونت لوکال ---------- */
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn-fanum.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-display: swap;
	font-style: normal;
}
/* فونت سرلوحه‌ای عناوین (متغیر ۴۰۰–۷۰۰) — دو زیرمجموعه عربی/لاتین */
@font-face {
	font-family: 'Markazi Text';
	src: url('../fonts/markazi-text-arabic.woff2') format('woff2-variations');
	font-weight: 400 700;
	font-display: swap;
	font-style: normal;
	unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
	font-family: 'Markazi Text';
	src: url('../fonts/markazi-text-latin.woff2') format('woff2-variations');
	font-weight: 400 700;
	font-display: swap;
	font-style: normal;
	unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanwebthinfanum.woff');
	font-weight: 200;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanweblightfanum.woff');
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanwebregularfanum.woff');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanwebmediumfanum.woff');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanwebboldfanum.woff');
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanwebextraboldfanum.woff');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanwebblackfanum.woff');
	font-weight: 800;
	font-display: swap;
}
@font-face {
	font-family: 'IranYekanFN';
	src: url('../fonts/iranyekanfn/iranyekanwebextrablackfanum.woff');
	font-weight: 900;
	font-display: swap;
}

/* ---------- متغیرهای طراحی ---------- */
:root {
	--dk-cream: #faf6ef;
	--dk-cream-2: #fffcf5;
	--dk-card: #ffffff;
	--dk-maroon: #4b0300;
	--dk-maroon-dark: #3a0602;
	--dk-maroon-soft: #6e1a12;
	--dk-deep: #2e0503;
	--dk-gold: #b8925f;
	--dk-gold-light: #caa984;
	--dk-teal: #4b0300;
	--dk-teal-dark: #2e0503;
	--dk-ink: #020101;
	--dk-text: #3d3833;
	--dk-muted: #777777;
	--dk-cream-text: #f5efe3;
	--dk-line: #e5dccb;
	--dk-serif: 'IranYekanFN', serif;
	--dk-radius: 8px;
	--dk-radius-sm: 5px;
	--dk-shadow: 0 6px 24px rgba(46, 5, 3, 0.10);
	--dk-shadow-sm: 0 2px 10px rgba(46, 5, 3, 0.07);
	--dk-container: 1280px;
}

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

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

body, button, input, select, textarea {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.9;
	color: var(--dk-text);
	background: var(--dk-cream);
	direction: rtl;
	text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dk-maroon); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--dk-maroon-dark); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--dk-ink); line-height: 1.5; margin: 0 0 .6em; font-family: var(--dk-serif); font-weight: 800; }
p { margin: 0 0 1em; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	word-wrap: normal !important;
}
.skip-link { position: absolute; top: -100px; right: 8px; z-index: 999; background: var(--dk-maroon); color: #fff; padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { top: 8px; color: #fff; }

:focus-visible { outline: 2px solid var(--dk-gold); outline-offset: 2px; }

.dk-icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- دکمه‌ها ---------- */
.dk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 26px;
	border-radius: var(--dk-radius-sm);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.6;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.dk-btn:hover { transform: translateY(-1px); }
.dk-btn--primary { background: var(--dk-maroon); color: #fff !important; }
.dk-btn--primary:hover { background: var(--dk-maroon-dark); }
.dk-btn--outline { border-color: var(--dk-maroon); color: var(--dk-maroon); background: transparent; }
.dk-btn--outline:hover { background: var(--dk-maroon); color: #fff; }
.dk-btn--light { background: rgba(255, 255, 255, .14); color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.dk-btn--light:hover { background: #fff; color: var(--dk-ink) !important; }
.dk-btn--ghost { color: var(--dk-maroon); border-color: var(--dk-line); background: var(--dk-card); }
.dk-btn--ghost:hover { border-color: var(--dk-maroon); }
/* دکمه قاب‌دار روی باندهای تیره (روایت‌ها و باند تماس) */
.dk-btn--frame { background: transparent; color: var(--dk-gold-light); border: 1px solid var(--dk-gold-light); }
.dk-btn--frame:hover { background: rgba(202, 169, 132, .15); color: var(--dk-gold-light); }

/* ---------- نوار بالا ---------- */
.dk-topbar { background: var(--dk-maroon-dark); color: #f4e3cf; font-size: 12.5px; }
.dk-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.dk-topbar__features { display: flex; gap: 22px; }
.dk-topbar__features li, .dk-topbar__contact a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.dk-topbar__contact { display: flex; gap: 18px; }
.dk-topbar__contact a:hover { color: var(--dk-gold-light); }

/* ---------- سربرگ اصلی: منو (راست) | لوگو (وسط) | تماس/اکشن‌ها (چپ) ---------- */
.dk-header { background: var(--dk-cream); border-bottom: 1px solid var(--dk-line); }
.dk-header__main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	padding-block: 18px;
}
.dk-header__menu-area { display: flex; align-items: center; justify-self: start; min-width: 0; }
.dk-header__brand { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.dk-header__brand .custom-logo { max-height: 64px; width: auto; }
.dk-header__site-name { font-family: var(--dk-serif); font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--dk-ink); }
.dk-header__tagline { font-size: 10.5px; letter-spacing: 4px; color: var(--dk-gold); margin: 0; }
.dk-header__actions { display: flex; align-items: center; justify-self: end; gap: 14px; }
.dk-header__phone { font-size: 13px; color: var(--dk-muted); }
.dk-header__phone:hover { color: var(--dk-maroon); }
.dk-header__cta { padding: 10px 20px; font-size: 13px; }
.dk-header__action {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: transparent;
	border: 1px solid var(--dk-line);
	color: var(--dk-maroon);
	position: relative;
	cursor: pointer;
}
.dk-header__action:hover { border-color: var(--dk-gold-light); color: var(--dk-maroon-dark); }
/* آیکن تلفن گرد فقط در موبایل دیده می‌شود؛ در دسکتاپ شماره و دکمه مشاوره هست. */
.dk-header__call { display: none; }
.dk-header__cart-count {
	position: absolute; top: -6px; left: -6px;
	min-width: 20px; height: 20px;
	background: var(--dk-gold);
	color: #fff;
	font-size: 11px; font-weight: 700;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	padding-inline: 5px;
}

/* جستجو — ردیف باریک زیر سربرگ */
.dk-header__search { border-top: 1px solid var(--dk-line); padding-block: 10px; }
.dk-search { display: flex; max-width: 560px; margin-inline: auto; background: #fff; border: 1px solid var(--dk-line); border-radius: 999px; position: relative; }
.dk-search__field { border-radius: 999px; }
.dk-search:focus-within { border-color: var(--dk-gold); }
.dk-search__field { flex: 1; border: 0; padding: 11px 20px; font-family: inherit; font-size: 14px; background: transparent; color: var(--dk-ink); }
.dk-search__field:focus { outline: none; }
.dk-search__submit { border: 0; background: transparent; padding-inline: 16px; color: var(--dk-maroon); cursor: pointer; display: flex; align-items: center; }

/* ناوبری — دسکتاپ: درون‌خطی در ستون راستِ سربرگ */
.dk-nav__list { display: flex; gap: 2px; flex-wrap: wrap; }
.dk-nav__list a {
	display: block;
	padding: 8px 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--dk-muted);
	border-bottom: 2px solid transparent;
}
.dk-nav__list a:hover { color: var(--dk-ink); }
.dk-nav__list .current-menu-item > a,
.dk-nav__list .current_page_item > a { color: var(--dk-ink); font-weight: 600; border-bottom-color: var(--dk-gold-light); }
.dk-nav__list .sub-menu {
	display: none; position: absolute; z-index: 60;
	background: #fff; border: 1px solid var(--dk-line); border-radius: var(--dk-radius-sm);
	box-shadow: var(--dk-shadow); min-width: 200px; padding: 6px;
}
.dk-nav__list li { position: relative; }
.dk-nav__list li:hover > .sub-menu, .dk-nav__list li:focus-within > .sub-menu { display: block; }
.dk-nav-toggle { display: none; flex-direction: column; gap: 4.5px; }
.dk-nav-toggle__bar { width: 20px; height: 2px; background: var(--dk-maroon); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- اسلایدر بنری بالای صفحه (Swiper لوکال) ---------- */
.dk-banner { padding-block: 18px 0; background: var(--dk-cream); }
.dk-banner__swiper { border-radius: var(--dk-radius); overflow: hidden; box-shadow: var(--dk-shadow-sm); }
/* پیش از init یا بدون JS: فقط اسلاید نخست دیده شود */
.dk-banner__swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.dk-banner__link { display: block; }
.dk-banner__img { width: 100%; height: auto; object-fit: cover; }
/* بولت‌های صفحه‌بندی همرنگ قالب */
.dk-banner__swiper .swiper-pagination-bullet { background: #fff; opacity: .7; }
.dk-banner__swiper .swiper-pagination-bullet-active { background: var(--dk-gold); opacity: 1; }
/* دکمه‌های قبلی/بعدی (در صورت فعال بودن در تنظیمات) همرنگ قالب */
.dk-banner__swiper .swiper-button-prev,
.dk-banner__swiper .swiper-button-next { color: #fff; }
.dk-banner__swiper .swiper-button-prev::after,
.dk-banner__swiper .swiper-button-next::after { font-size: 26px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.dk-motion .dk-banner__swiper .swiper-button-prev,
.dk-motion .dk-banner__swiper .swiper-button-next { transition: color .2s ease; }
.dk-banner__swiper .swiper-button-prev:hover,
.dk-banner__swiper .swiper-button-next:hover { color: var(--dk-gold); }

/* ---------- هیرو مرکزی ---------- */
.dk-hero { background: var(--dk-cream); text-align: center; }
.dk-hero__inner { padding-block: 60px 4px; }
.dk-hero__eyebrow { display: inline-block; margin: 0; color: var(--dk-gold); font-size: 12px; font-weight: 600; letter-spacing: 3px; }
.dk-hero__title {
	font-family: var(--dk-serif);
	font-size: clamp(42px, 7vw, 84px);
	font-weight: 900;
	line-height: 1.25;
	color: var(--dk-maroon);
	max-width: 800px;
	margin: 10px auto 0;
}
.dk-hero__text { max-width: 560px; margin: 14px auto 0; color: var(--dk-muted); font-size: 15.5px; line-height: 2; }
.dk-hero__actions { display: flex; gap: 12px; margin-top: 26px; justify-content: center; flex-wrap: wrap; }

/* ---------- نوار متحرک (مارکی) ---------- */
.dk-marquee {
	background: var(--dk-gold-light);
	color: var(--dk-maroon);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	padding: 12px 0;
	overflow: hidden;
}
.dk-marquee__track { display: flex; width: max-content; white-space: nowrap; }
.dk-marquee__track span { padding: 0 12px; }

/* ---------- بخش‌ها ---------- */
.dk-section { padding-block: 44px; }
.dk-section__title {
	text-align: center;
	font-family: var(--dk-serif);
	font-size: clamp(30px, 4.5vw, 48px);
	font-weight: 800;
	color: var(--dk-ink);
	margin-bottom: 30px;
}
.dk-section__title span { color: var(--dk-gold-light); font-size: .38em; vertical-align: middle; }
.dk-section__title--light { color: var(--dk-cream-text); }

/* دسته‌بندی‌ها — قاب‌های طاقی زیر هیرو (اسلایدر Swiper لوکال) */
.dk-cats { padding-block: 36px 8px; }
/* پدینگ بالا جای رشد اسلاید فعال (scale) را نگه می‌دارد تا زیر overflow قیچی نشود */
.dk-cats__swiper { padding: 32px 0 14px; }
/* پیش از init یا بدون JS: ردیف وسط‌چین ساده */
.dk-cats__swiper:not(.swiper-initialized) .dk-cats__band { justify-content: center; gap: 24px; }
.dk-cats__slide { width: clamp(210px, 23vw, 300px); }
.dk-cats__slide.swiper-slide-active { z-index: 2; }
.dk-cats__item { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; color: var(--dk-ink); }
.dk-cats__thumb {
	display: flex; align-items: center; justify-content: center;
	width: 100%;
	aspect-ratio: 5 / 6;
	border-radius: 170px 170px 8px 8px;
	overflow: hidden;
	border: 1px solid var(--dk-gold-light);
	background: var(--dk-cream-2);
	color: var(--dk-gold);
	transform-origin: bottom center;
	transition: border-color .2s ease;
}
.dk-cats__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* اسلاید فعال (میانی) بزرگ‌تر — ریتم طاقیِ تمپلیت */
.dk-cats__swiper .swiper-slide-active .dk-cats__thumb { transform: scale(1.08); }
.dk-cats__item:hover .dk-cats__thumb { border-color: var(--dk-gold); }
.dk-cats__name { font-size: 14px; font-weight: 600; text-align: center; }
.dk-cats__arrow { color: var(--dk-gold); }

/* ---------- کارت محصول (ووکامرس) ---------- */
ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 0; }
ul.products li.product {
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	box-shadow: var(--dk-shadow-sm);
	padding: 14px;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s ease, transform .25s ease;
}
ul.products li.product:hover { box-shadow: var(--dk-shadow); transform: translateY(-4px); }
ul.products li.product img {
	border-radius: var(--dk-radius-sm);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	margin-bottom: 12px;
}
.dk-card__badge, ul.products .onsale {
	position: absolute;
	top: 24px; right: 24px;
	z-index: 5;
	background: var(--dk-teal);
	color: #fff;
	font-size: 11.5px; font-weight: 600;
	padding: 3px 12px;
	border-radius: 999px;
}
ul.products .onsale { background: var(--dk-maroon); top: 24px; right: auto; left: 24px; }
.dk-card__title { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; min-height: 44px; }
.dk-card__title a { color: var(--dk-ink); }
.dk-card__meta { font-size: 12.5px; color: var(--dk-muted); margin-bottom: 8px; }
ul.products .price { color: var(--dk-maroon); font-weight: 800; font-size: 16px; margin-top: auto; display: block; }
ul.products .price del { color: var(--dk-muted); font-weight: 400; font-size: 13px; margin-inline-start: 6px; }
ul.products .price ins { text-decoration: none; }
ul.products .button, ul.products .added_to_cart {
	margin-top: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent;
	color: var(--dk-maroon);
	border: 1.5px solid var(--dk-maroon);
	border-radius: var(--dk-radius-sm);
	padding: 8px 14px;
	font-family: inherit; font-size: 13.5px; font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
ul.products .button:hover, ul.products .added_to_cart:hover { background: var(--dk-maroon); color: #fff; }

/* اسلایدر محصولات منتخب */
.dk-slider { position: relative; }
.dk-slider__track {
	display: flex !important;
	grid-template-columns: none !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: 18px;
	padding-bottom: 8px;
	scrollbar-width: none;
}
.dk-slider__track::-webkit-scrollbar { display: none; }
.dk-slider__track li.product { flex: 0 0 250px; scroll-snap-align: start; }
.dk-slider__btn {
	position: absolute; top: 40%; z-index: 10;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--dk-line);
	background: #fff;
	color: var(--dk-maroon);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--dk-shadow-sm);
}
.dk-slider__btn:hover { background: var(--dk-maroon); color: #fff; }
.dk-slider__btn--prev { right: -14px; }
.dk-slider__btn--next { left: -14px; }
.dk-featured__more { text-align: center; margin-top: 26px; }

/* ---------- مزیت‌ها ---------- */
.dk-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dk-trust__item {
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	padding: 22px 20px;
	text-align: center;
}
.dk-trust__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--dk-cream);
	color: var(--dk-gold);
	margin-bottom: 12px;
}
.dk-trust__item h3 { font-size: 15px; margin-bottom: 6px; }
.dk-trust__item p { font-size: 13px; color: var(--dk-muted); margin: 0; }

/* ---------- روایت‌های تمام‌عرض (باکس‌های سه‌گانه) ----------
   هر باکس یک باند به سبک «چهل سال پای دار قالی»: قاب طاقی + مدالیون + متن. */
.dk-story { position: relative; overflow: hidden; }
.dk-story--deep { background: var(--dk-deep); }
.dk-story--maroon { background: var(--dk-maroon); }
.dk-story--light { background: var(--dk-cream); }
.dk-story__corner { position: absolute; width: 190px; height: 190px; opacity: .18; pointer-events: none; }
.dk-story__corner--a { top: 0; right: 0; transform: scaleX(-1); }
.dk-story__corner--b { bottom: 0; left: 0; transform: scaleY(-1); }
.dk-story__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 56px;
	align-items: center;
	padding-block: 64px;
	position: relative;
}
.dk-story--flip .dk-story__media { order: 2; }
.dk-story--flip .dk-story__content { order: 1; }
.dk-story__media { justify-self: center; }
.dk-story__frame {
	display: block;
	position: relative;
	border: 1px solid rgba(202, 169, 132, .5);
	border-radius: 180px 180px 8px 8px;
	padding: 10px;
}
.dk-story__medallion {
	position: absolute;
	bottom: 38px;
	inset-inline-end: -34px;
	width: 76px; height: 76px;
	background: var(--dk-deep);
	border-radius: 50%;
	padding: 9px;
	border: 1px solid rgba(202, 169, 132, .5);
	z-index: 2;
}
.dk-story--maroon .dk-story__medallion { background: var(--dk-maroon); }
.dk-story--light .dk-story__medallion { background: var(--dk-cream); }
.dk-story__img {
	width: min(330px, 76vw);
	aspect-ratio: 33 / 40;
	object-fit: cover;
	border-radius: 172px 172px 4px 4px;
}
.dk-story__content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--dk-cream-text); }
.dk-story__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--dk-gold-light); font-size: 12px; letter-spacing: 3px; }
.dk-story__eyebrow-line { width: 32px; height: 1px; background: var(--dk-gold-light); }
.dk-story__title {
	font-family: var(--dk-serif);
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.35;
	color: inherit;
	margin: 0;
}
.dk-story__content p { margin: 0; font-size: 14.5px; line-height: 2.1; color: rgba(245, 239, 227, .75); max-width: 480px; }
.dk-story__content ul { display: grid; gap: 8px; }
.dk-story__content li { font-size: 14px; line-height: 2; color: rgba(245, 239, 227, .75); }
.dk-story__content li::before { content: '◆ '; color: var(--dk-gold-light); font-size: .8em; }
.dk-story__content .dk-btn { margin-top: 8px; }
/* باکس بدون تصویر: متن هر دو ستون را می‌گیرد و وسط‌چین می‌شود */
.dk-story__content--wide { grid-column: 1 / -1; max-width: 720px; margin-inline: auto; align-items: center; text-align: center; }
/* نسخه روشن: متن تیره و دکمه قاب‌دار زرشکی */
.dk-story--light .dk-story__content { color: var(--dk-maroon); }
.dk-story--light .dk-story__content p,
.dk-story--light .dk-story__content li { color: var(--dk-text); }
.dk-story--light .dk-btn--frame { color: var(--dk-maroon); }
.dk-story--light .dk-btn--frame:hover { color: var(--dk-maroon); background: rgba(202, 169, 132, .18); }

/* ---------- نظرات — باند تیره ---------- */
.dk-reviews { position: relative; overflow: hidden; padding-block: 64px; }
.dk-reviews .dk-story__corner { opacity: .12; }
.dk-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.dk-reviews__card {
	margin: 0;
	background: rgba(202, 169, 132, .06);
	border: 1px solid rgba(202, 169, 132, .35);
	border-radius: var(--dk-radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
}
.dk-reviews__card::before {
	content: '”';
	font-family: var(--dk-serif);
	font-size: 52px;
	line-height: .6;
	color: var(--dk-gold-light);
	display: block;
	margin-bottom: 12px;
}
.dk-reviews__stars { display: inline-flex; gap: 2px; margin-bottom: 10px; }
.dk-reviews__stars .is-on { color: var(--dk-gold-light); }
.dk-reviews__stars .is-off { color: rgba(245, 239, 227, .2); }
.dk-reviews__card p { font-size: 13.5px; line-height: 2.1; }
.dk-reviews__card footer { margin-top: auto; }
.dk-reviews__card cite { font-style: normal; font-family: var(--dk-serif); font-weight: 600; font-size: 17px; }

/* ---------- باند دعوت به تماس ---------- */
.dk-callband {
	position: relative;
	overflow: hidden;
	background: var(--dk-maroon);
	color: var(--dk-cream-text);
	text-align: center;
	padding: 64px 20px 56px;
	margin-top: 34px;
}
/* در صفحه اصلی، باند تیره نظرات مستقیم به باند تماس می‌چسبد */
.home .dk-callband { margin-top: 0; }
.dk-callband__medallion {
	position: absolute;
	top: -160px;
	right: 50%;
	transform: translateX(50%);
	width: 420px; height: 420px;
	opacity: .1;
	pointer-events: none;
}
.dk-callband__corner { position: absolute; bottom: 0; width: 150px; height: 150px; opacity: .15; pointer-events: none; }
.dk-callband__corner--a { right: 0; transform: scale(-1, -1); }
.dk-callband__corner--b { left: 0; transform: scaleY(-1); }
.dk-callband__eyebrow { position: relative; margin: 0; font-size: 12px; letter-spacing: 3px; color: var(--dk-gold-light); }
.dk-callband__number {
	position: relative;
	display: inline-block;
	font-family: var(--dk-serif);
	font-size: clamp(38px, 7vw, 58px);
	font-weight: 600;
	line-height: 1.3;
	color: var(--dk-cream-text);
	margin-top: 10px;
}
.dk-callband__number:hover { color: var(--dk-gold-light); }
.dk-callband__sub { position: relative; margin: 6px 0 0; font-size: 13px; color: rgba(245, 239, 227, .65); }

/* ---------- فوتر ---------- */
.dk-footer { background: var(--dk-deep); color: rgba(245, 239, 227, .75); }
.dk-footer a { color: rgba(245, 239, 227, .75); }
.dk-footer a:hover { color: var(--dk-gold-light); }
.dk-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
	gap: 32px;
	padding-block: 44px 32px;
}
.dk-footer__title { color: var(--dk-gold-light); font-family: var(--dk-serif); font-weight: 600; font-size: 20px; margin-bottom: 12px; }
.dk-footer__menu { display: grid; gap: 8px; font-size: 13.5px; }
.dk-footer__contact { display: grid; gap: 10px; font-size: 13.5px; }
.dk-footer__contact li { display: flex; align-items: flex-start; gap: 8px; }
.dk-footer__contact .dk-icon { color: var(--dk-gold-light); margin-top: 4px; }
.dk-footer__about p { font-size: 13.5px; }
.dk-footer__logo { margin-bottom: 10px; }
.dk-footer__logo .custom-logo,
.dk-footer__logo-img { max-height: 64px; max-width: 100%; width: auto; height: auto; }
.dk-footer__site-name { font-family: var(--dk-serif); font-size: 24px; font-weight: 600; color: var(--dk-cream-text); }
.dk-social { display: flex; gap: 10px; margin-top: 14px; }
.dk-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	transition: background .2s ease;
}
.dk-social a:hover { background: var(--dk-maroon); color: #fff; }
/* آیکن سفارشی آپلودشده: رنگ خودش را دارد و currentColor را دنبال نمی‌کند. */
.dk-icon--custom { display: block; object-fit: contain; }
/* نوار پایانی روشن با نقش لوزی — مطابق تمپلیت */
.dk-footer__bottom { background: var(--dk-cream); border-top: 1px solid var(--dk-line); color: #848484; font-size: 12px; }
.dk-footer__bottom a { color: #848484; }
.dk-footer__bottom a:hover { color: var(--dk-maroon); }
.dk-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; min-height: 56px; flex-wrap: wrap; gap: 10px; padding-block: 10px; }
.dk-footer__bottom p { margin: 0; }
.dk-footer__pattern {
	height: 12px;
	width: 220px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12'%3E%3Crect x='6' y='3' width='6' height='6' transform='rotate(45 9 6)' fill='%23CAA984'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: center;
}
.dk-footer__legal { display: flex; align-items: center; gap: 16px; }
.dk-footer__credit { color: #848484; }
.dk-footer__credit a { color: var(--dk-gold); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.dk-footer__credit a:hover { color: var(--dk-gold); border-bottom-color: currentColor; }
.dk-footer__enamad { margin-top: 14px; background: #fff; border-radius: var(--dk-radius-sm); padding: 8px; display: inline-block; }

/* ---------- فروشگاه (PLP) ---------- */
.dk-shop-hero {
	background: linear-gradient(135deg, #faf6ef, #f3ecdd);
	border-bottom: 1px solid var(--dk-line);
	padding-block: 30px 34px;
}
.dk-shop-hero__title { font-size: clamp(24px, 3.5vw, 34px); margin: 6px 0 4px; }
.dk-shop-hero .term-description, .dk-shop-hero p { max-width: 70ch; color: var(--dk-text); font-size: 14px; margin: 0; }
.rank-math-breadcrumb, .rank-math-breadcrumb p { font-size: 12.5px; color: var(--dk-muted); margin: 0; }
.rank-math-breadcrumb a { color: var(--dk-muted); }
.rank-math-breadcrumb a:hover { color: var(--dk-maroon); }

.dk-shop-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 26px;
	align-items: start;
	padding-block: 34px;
}
.dk-shop-sidebar {
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	padding: 20px;
	position: sticky;
	top: 16px;
}
.dk-shop-sidebar__title { font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--dk-line); }
.dk-filter-widget { padding-block: 14px; border-bottom: 1px solid var(--dk-line); }
.dk-filter-widget:last-child { border-bottom: 0; }
.dk-filter-widget__title { font-size: 14px; margin-bottom: 10px; }
.dk-filter-widget ul { display: grid; gap: 7px; font-size: 13.5px; }
.dk-filter-widget a { color: var(--dk-text); }
.dk-filter-widget a:hover { color: var(--dk-maroon); }
.dk-filter-widget .count { color: var(--dk-muted); font-size: 12px; }
.dk-shop-sidebar__empty { font-size: 12.5px; color: var(--dk-muted); }

.dk-shop-toolbar {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.woocommerce-result-count { margin: 0; font-size: 13px; color: var(--dk-muted); }
.woocommerce-ordering select {
	font-family: inherit; font-size: 13.5px;
	padding: 8px 14px;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	background: #fff;
	color: var(--dk-ink);
}

/* صفحه‌بندی */
.woocommerce-pagination, .dk-page .pagination { text-align: center; margin-top: 30px; }
.woocommerce-pagination .page-numbers, .dk-page .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px;
	padding-inline: 10px;
	margin-inline: 2px;
	border-radius: var(--dk-radius-sm);
	background: #fff;
	color: var(--dk-ink);
	font-size: 13.5px;
}
.woocommerce-pagination .page-numbers.current, .dk-page .page-numbers.current { background: var(--dk-maroon); color: #fff; border-color: var(--dk-maroon); }
.woocommerce-pagination ul { display: inline-flex; }

/* ---------- صفحه محصول (PDP) ---------- */
.dk-product-wrap { padding-block: 20px 10px; }
.dk-product-wrap .rank-math-breadcrumb { margin-bottom: 6px; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 36px; padding-block: 34px; }
/* گالری سفارشی محصول */
.dk-gallery { position: relative; overflow: hidden; }
.dk-gallery__stage {
	position: relative;
	margin: 0;
	overflow: hidden;
}
.dk-gallery__viewport {
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y; /* کشیدن افقی مال اسلایدر است، اسکرول عمودی آزاد می‌ماند. */
}
.dk-gallery__viewport.is-dragging { cursor: grabbing; }
.dk-gallery__track {
	display: flex;
	flex-wrap: nowrap;
	will-change: transform;
	transition: transform .35s ease;
}
.dk-gallery__slide {
	flex: 0 0 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dk-gallery__image {
	display: block;
	width: fit-content;
	max-height: 540px;
	object-fit: contain;
	border: 1px solid var(--dk-line);
    border-radius: var(--dk-radius);
    background: var(--dk-cream-2);
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
}
.dk-gallery__nav,
.dk-gallery__zoom {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: #fff;
	color: var(--dk-maroon);
	border: 1px solid var(--dk-line);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	transition: border-color .2s ease, opacity .2s ease;
}
.dk-gallery__nav { top: 50%; transform: translateY(-50%); }
.dk-gallery__nav--prev { inset-inline-start: 12px; }
.dk-gallery__nav--next { inset-inline-end: 12px; }
.dk-gallery__nav[disabled] { opacity: .35; cursor: default; }
.dk-gallery__zoom { top: 12px; inset-inline-start: 12px; }
.dk-gallery__nav:not([disabled]):hover,
.dk-gallery__zoom:hover { border-color: var(--dk-gold); }

/* بندانگشتی‌ها همیشه در یک خط؛ سرریز در چیپ «+N تصویر دیگر» جمع می‌شود. */
.dk-gallery__thumbs {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow: hidden;
}
.dk-gallery__thumb-item { list-style: none; margin: 0; flex: 0 0 auto; }
.dk-gallery__thumbs [hidden] { display: none; }
.dk-gallery__thumb {
	display: block;
	width: 84px;
	padding: 0;
	background: none;
	border: 2px solid transparent;
	border-radius: var(--dk-radius-sm);
	overflow: hidden;
	cursor: pointer;
	opacity: .75;
	transition: opacity .2s ease, border-color .2s ease;
}
.dk-gallery__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.dk-gallery__thumb:hover, .dk-gallery__thumb.is-active { border-color: var(--dk-gold); opacity: 1; }
.dk-gallery__thumb:focus-visible { outline: 2px solid var(--dk-maroon); outline-offset: 2px; }
.dk-gallery__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 84px;
	aspect-ratio: 1 / 1;
	padding: 4px;
	background: var(--dk-cream-2);
	color: var(--dk-maroon);
	border: 1px dashed var(--dk-line);
	border-radius: var(--dk-radius-sm);
	cursor: pointer;
	line-height: 1.4;
	transition: border-color .2s ease, background .2s ease;
}
.dk-gallery__more:hover { border-color: var(--dk-gold); background: #fff; }
.dk-gallery__more-count { font-size: 16px; font-weight: 800; }
.dk-gallery__more-label { font-size: 11px; color: var(--dk-muted); }

/* پاپ‌آپ گالری: تصویر بزرگ + بندانگشتی کناری */
.dk-popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(20, 14, 12, .9);
}
.dk-popup__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 1100px;
	max-height: 100%;
}
.dk-popup__stage {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	touch-action: pan-y;
}
.dk-popup__image {
	max-width: 100%;
	max-height: 86vh;
	object-fit: contain;
	border-radius: var(--dk-radius);
	background: #fff;
	user-select: none;
	-webkit-user-drag: none;
}
.dk-popup__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, .14);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.dk-popup__nav:hover { background: rgba(255, 255, 255, .28); }
.dk-popup__nav--prev { inset-inline-start: 10px; }
.dk-popup__nav--next { inset-inline-end: 10px; }
.dk-popup__thumbs {
	flex: 0 0 96px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 86vh;
	overflow-y: auto;
	padding-inline-end: 4px;
}
.dk-popup__thumb {
	display: block;
	width: 88px;
	padding: 0;
	background: none;
	border: 2px solid transparent;
	border-radius: var(--dk-radius-sm);
	overflow: hidden;
	cursor: pointer;
	opacity: .6;
	transition: opacity .2s ease, border-color .2s ease;
}
.dk-popup__thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.dk-popup__thumb:hover, .dk-popup__thumb.is-active { opacity: 1; border-color: var(--dk-gold); }
.dk-popup__close {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	width: 40px;
	height: 40px;
	font-size: 24px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.single-product .product_title { font-size: clamp(20px, 3vw, 27px); }
.single-product .woocommerce-product-details__short-description { color: var(--dk-muted); font-size: 14px; }
.single-product p.price { color: var(--dk-maroon); font-size: 26px; font-weight: 800; }
.single-product p.price del { font-size: 17px; color: var(--dk-muted); font-weight: 400; }
.single-product p.price ins { text-decoration: none; }
.single-product .stock.in-stock { color: #2c7a4b; font-weight: 600; font-size: 13.5px; }
.single-product .stock.out-of-stock { color: var(--dk-maroon); font-weight: 600; font-size: 13.5px; }

/* مشخصات فرش */
.dk-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-block: 18px;
}
.dk-specs__item {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	background: var(--dk-cream);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	padding: 9px 14px;
	font-size: 13.5px;
}
.dk-specs__label { color: var(--dk-muted); }
.dk-specs__value { font-weight: 700; color: var(--dk-ink); }

/* فرم افزودن به سبد */
.single-product form.cart { display: flex; gap: 12px; align-items: stretch; margin-block: 18px; flex-wrap: wrap; }
.single-product form.cart .quantity input {
	width: 76px; height: 100%;
	min-height: 48px;
	text-align: center;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	font-family: inherit; font-size: 15px;
}
.single-product form.cart .single_add_to_cart_button {
	flex: 1;
	min-height: 48px;
	background: var(--dk-maroon);
	color: #fff;
	border: 0;
	border-radius: var(--dk-radius-sm);
	font-family: inherit; font-size: 15.5px; font-weight: 700;
	cursor: pointer;
	transition: background .2s ease;
}
.single-product form.cart .single_add_to_cart_button:hover { background: var(--dk-maroon-dark); }

/* نوار اعتماد PDP */
.dk-pdp-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	border: 1px dashed var(--dk-line);
	border-radius: var(--dk-radius);
	padding: 14px 10px;
	margin-top: 18px;
}
.dk-pdp-trust__item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--dk-muted); }
.dk-pdp-trust__item .dk-icon { color: var(--dk-gold); }

/* تب‌ها */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 10px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--dk-line); flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 22px;
	font-size: 14px; font-weight: 600;
	color: var(--dk-muted);
	border-radius: var(--dk-radius-sm) var(--dk-radius-sm) 0 0;
}
.woocommerce-tabs ul.tabs li.active a { background: var(--dk-card); color: var(--dk-maroon); box-shadow: 0 -2px 0 var(--dk-maroon) inset; }
.woocommerce-tabs .panel {
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-top: 0;
	border-radius: 0 0 var(--dk-radius) var(--dk-radius);
	padding: 24px;
	font-size: 14px;
}
.woocommerce-tabs .panel h2:first-child { font-size: 17px; }

/* CTA مشاوره */
.dk-consult-cta {
	grid-column: 1 / -1;
	display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
	background: linear-gradient(135deg, var(--dk-maroon), var(--dk-maroon-dark));
	color: #f6e7d5;
	border-radius: var(--dk-radius);
	padding: 26px 30px;
	margin-block: 26px;
}
.dk-consult-cta h2 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.dk-consult-cta p { margin: 0; font-size: 13.5px; }

/* حالت کاتالوگ — جایگزین دکمه خرید */
.dk-catalog-cta {
	border: 1px dashed var(--dk-gold);
	border-radius: var(--dk-radius);
	background: rgba(0, 0, 0, .02);
	padding: 16px 18px;
	margin-block: 18px;
}
.dk-catalog-cta__note { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.dk-catalog-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dk-catalog-cta__actions .dk-btn { display: inline-flex; align-items: center; gap: 8px; }

/* محصولات مرتبط */
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 8px; }
.related.products > h2, .upsells.products > h2 { text-align: center; font-size: 21px; margin-bottom: 24px; }

/* امتیاز ستاره‌ای ووکامرس */
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.star-rating { direction: ltr; }

/* ---------- سبد خرید / تسویه / حساب ---------- */
.woocommerce-cart .dk-shop-layout, .woocommerce-checkout .dk-shop-layout, .woocommerce-account .dk-shop-layout { display: block; }
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	overflow: hidden;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 16px; border-bottom: 1px solid var(--dk-line); text-align: right; font-size: 14px; }
.woocommerce table.shop_table th { background: var(--dk-cream); color: var(--dk-ink); }
.woocommerce .button, .woocommerce button.button, .woocommerce input.button {
	background: var(--dk-maroon);
	color: #fff;
	border: 0;
	border-radius: var(--dk-radius-sm);
	padding: 10px 22px;
	font-family: inherit; font-weight: 600; font-size: 14px;
	cursor: pointer;
}
.woocommerce .button:hover { background: var(--dk-maroon-dark); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	font-family: inherit; font-size: 14px;
	background: #fff;
}
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; color: var(--dk-ink); }

/* پیام‌های ووکامرس */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none;
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-right: 4px solid var(--dk-gold);
	border-radius: var(--dk-radius-sm);
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
}
.woocommerce-error { border-right-color: var(--dk-maroon); }
.woocommerce-message a.button, .woocommerce-info a.button { margin-inline-start: 10px; }

/* ---------- برگه‌ها و نوشته‌ها ---------- */
.dk-page { padding-block: 34px; }
.dk-page--narrow { max-width: 860px; }
.dk-page__title { font-size: clamp(23px, 3.5vw, 32px); }
.dk-entry__content { font-size: 15px; }
.dk-entry__content h2 { font-size: 21px; margin-top: 1.4em; }
.dk-entry__content h3 { font-size: 17px; margin-top: 1.2em; }
.dk-entry__content img { border-radius: var(--dk-radius); }
.dk-entry__thumb img { border-radius: var(--dk-radius); width: 100%; }
.dk-entry__meta { color: var(--dk-muted); font-size: 12.5px; }

.dk-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dk-post-card {
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	overflow: hidden;
	box-shadow: var(--dk-shadow-sm);
}
.dk-post-card__thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.dk-post-card__body { padding: 18px; }
.dk-post-card__title { font-size: 15.5px; }
.dk-post-card__title a { color: var(--dk-ink); }
.dk-post-card__body p { font-size: 13px; color: var(--dk-muted); }
.dk-post-card__more { font-size: 13px; font-weight: 600; }

/* 404 */
.dk-404 { text-align: center; padding-block: 70px; }
.dk-404__code { font-size: 90px; color: var(--dk-gold); margin: 0; line-height: 1; }
.dk-404__search { max-width: 420px; margin: 24px auto; }
.dk-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 1080px) {
	.dk-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.dk-story__inner { gap: 36px; }
	.dk-reviews__grid { grid-template-columns: repeat(2, 1fr); }
	.dk-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.dk-shop-layout { grid-template-columns: 240px 1fr; }
}

@media (max-width: 860px) {
	/* هدر موبایل: همبرگر سمت راست (ستون منو)، لوگو وسط، تلفن/سبد سمت چپ.
	   منوی درون‌خطی دراور می‌شود؛ شماره و دکمه مشاوره جای خود را به آیکن تلفن می‌دهند. */
	.dk-header__main { gap: 10px; padding-block: 12px; }
	.dk-header__site-name { font-size: 24px; }
	.dk-header__tagline { letter-spacing: 2.5px; }
	.dk-header__brand .custom-logo { max-height: 52px; }
	.dk-header__phone, .dk-header__cta { display: none; }
	.dk-header__call { display: inline-flex; }
	.dk-header__actions { gap: 8px; }
	.dk-header__action { width: 38px; height: 38px; }
	.dk-search { max-width: none; }
	/* منوی موبایل: دراور معلق از راست — ساختار صفحه را جابه‌جا نمی‌کند */
	.dk-nav {
		position: fixed;
		top: 0; right: 0;
		width: min(320px, 88vw);
		height: 100dvh;
		background: var(--dk-cream-2);
		z-index: 200;
		box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
		/* کاملاً خارج از کادر تا سایه دراور هم دیده نشود. */
		transform: translateX(calc(100% + 40px));
		visibility: hidden;
		transition: transform .3s ease, visibility 0s linear .3s;
		overflow-y: auto;
		padding-block: 18px;
	}
	.dk-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
	.dk-nav__list { flex-direction: column; padding-block: 8px; gap: 0; }
	.dk-nav__list a { padding: 12px 18px; border-bottom: 1px solid var(--dk-line); border-inline-start: 3px solid transparent; }
	.dk-nav__list .current-menu-item > a, .dk-nav__list .current_page_item > a { border-bottom-color: var(--dk-line); border-inline-start-color: var(--dk-maroon); }
	.dk-nav__list .sub-menu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding-inline-start: 16px; }
	.dk-nav-toggle { display: inline-flex; }

	/* فیلتر فروشگاه: دراور معلق */
	.dk-shop-toolbar .dk-filter-toggle { display: inline-flex; }
	.dk-shop-sidebar {
		position: fixed;
		top: 0; right: 0;
		width: min(340px, 90vw);
		height: 100dvh;
		z-index: 200;
		border-radius: 0;
		border: 0;
		box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
		transform: translateX(calc(100% + 40px));
		visibility: hidden;
		transition: transform .3s ease, visibility 0s linear .3s;
		overflow-y: auto;
	}
	.dk-shop-sidebar.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
	.dk-shop-sidebar .dk-drawer-close { display: inline-flex; }
	.dk-nav-toggle[aria-expanded="true"] .dk-nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	.dk-nav-toggle[aria-expanded="true"] .dk-nav-toggle__bar:nth-child(2) { opacity: 0; }
	.dk-nav-toggle[aria-expanded="true"] .dk-nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

	.dk-hero__inner { padding-block: 40px 0; }
	.dk-cats__swiper { padding-top: 26px; }
	.dk-story__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
	.dk-story--flip .dk-story__media { order: 0; }
	.dk-story--flip .dk-story__content { order: 1; }
	.dk-story__corner { width: 120px; height: 120px; }
	.dk-footer__pattern { display: none; }
	.dk-shop-layout { grid-template-columns: 1fr; }
	.single-product div.product { grid-template-columns: 1fr; gap: 24px; }
	.dk-posts-grid { grid-template-columns: repeat(2, 1fr); }
	.dk-topbar__features li:not(:first-child) { display: none; }
	.dk-gallery__image { max-height: 389px; }
}

@media (max-width: 560px) {
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	ul.products li.product { padding: 10px; }
	.dk-card__title { font-size: 13px; min-height: 40px; }
	.dk-header__account { display: none; }
	.dk-callband { padding: 48px 16px 44px; }
	.dk-trust__grid { grid-template-columns: 1fr; }
	.dk-reviews__grid { grid-template-columns: 1fr; }
	.dk-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.dk-posts-grid { grid-template-columns: 1fr; }
	.dk-specs { grid-template-columns: 1fr; }
	.dk-pdp-trust { grid-template-columns: repeat(2, 1fr); }
	.dk-slider__btn { display: none; }
	.dk-slider__track li.product { flex-basis: 72%; }
	.dk-gallery__thumb { width: 68px; }
	.dk-gallery__more { width: 68px; }
	.dk-gallery__more-count { font-size: 14px; }
	.dk-gallery__more-label { font-size: 10px; }

	/* در موبایل بندانگشتی‌های پاپ‌آپ زیر تصویر بزرگ می‌نشینند. */
	.dk-popup { padding: 14px; }
	.dk-popup__inner { flex-direction: column; gap: 10px; }
	.dk-popup__image { max-height: 64vh; }
	.dk-popup__thumbs {
		flex: 0 0 auto;
		flex-direction: row;
		width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-block-end: 4px;
	}
	.dk-popup__thumb { width: 64px; flex: 0 0 auto; }
}

/* ============================================================
   جایگزین استایل‌های پیش‌فرض ووکامرس (استایل هسته حذف شده است)
   ============================================================ */

/* امتیاز ستاره‌ای (نمایش) — متن «امتیاز ۵ از ۵» فقط برای صفحه‌خوان می‌ماند و دیده نمی‌شود. */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.6em;
	height: 1.2em;
	line-height: 1.2;
	font-size: 15px;
	letter-spacing: normal;
	direction: ltr;
	overflow: hidden;
	white-space: nowrap;
	color: transparent;
	flex: 0 0 auto;
}
.star-rating::before {
	content: '★★★★★';
	color: var(--dk-line);
	letter-spacing: .12em;
	position: absolute;
	inset-block-start: 0;
	left: 0;
}
.star-rating > span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	white-space: nowrap;
}
.star-rating > span::before {
	content: '★★★★★';
	color: var(--dk-gold, #e9a83a);
	letter-spacing: .12em;
	position: absolute;
	top: 0;
	left: 0;
}
.star-rating > span .rating,
.star-rating > span strong { color: transparent; }

/* امتیازدهی در فرم دیدگاه — تبدیل لینک‌های ۱ تا ۵ به ستاره */
p.stars {
	display: inline-flex;
	margin: 0;
	direction: ltr;
	line-height: 1;
}
p.stars > span { display: inline-flex; }
p.stars a {
	position: relative;
	display: block;
	width: 1.4em;
	height: 1.4em;
	margin: 0;
	font-size: 20px;
	text-indent: -999em;
	text-decoration: none;
	overflow: hidden;
}
p.stars a::before {
	content: '★';
	position: absolute;
	inset: 0;
	text-indent: 0;
	text-align: center;
	line-height: 1.4;
	color: var(--dk-line);
	transition: color .15s ease;
}
p.stars:hover a::before { color: var(--dk-gold, #e9a83a); }
p.stars a:hover ~ a::before { color: var(--dk-line); }
p.stars.selected a.active::before { color: var(--dk-gold, #e9a83a); }
p.stars.selected a.active ~ a::before { color: var(--dk-line); }
p.stars.selected a:not(.active)::before { color: var(--dk-gold, #e9a83a); }

/* سایر تصاویر بلند: محدودسازی ارتفاع */
.dk-entry__content img, .dk-entry__thumb img { max-height: 560px; object-fit: cover; }
.dk-post-card__thumb img { max-height: 240px; }

/* تعداد و دکمه افزودن (بدون استایل هسته) */
.quantity { display: inline-flex; }
.quantity .qty {
	width: 76px;
	min-height: 48px;
	text-align: center;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	font-family: inherit; font-size: 15px;
	background: #fff;
	color: var(--dk-ink);
}
.screen-reader-text + .qty { margin: 0; }

/* لودینگ دکمه‌ها (ایجکس) */
.button.loading, .single_add_to_cart_button.loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}
.button.loading::after, .single_add_to_cart_button.loading::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px; height: 18px;
	border: 2.5px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dk-spin .7s linear infinite;
}
ul.products .button.loading::after { border-color: rgba(125, 32, 40, .25); border-top-color: var(--dk-maroon); }
@keyframes dk-spin { to { transform: rotate(360deg); } }
.added_to_cart { margin-inline-start: 8px; }

/* فرم‌ها و جداول ووکامرس */
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row .required { color: var(--dk-maroon); }
.woocommerce-additional-fields, .woocommerce-billing-fields h3, #order_review_heading { margin-top: 18px; }
.woocommerce table.shop_table td.product-name a { font-weight: 600; }
.woocommerce a.remove {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px;
	border-radius: 50%;
	color: var(--dk-maroon) !important;
	font-size: 18px;
	border: 1px solid var(--dk-line);
	text-decoration: none;
}
.woocommerce a.remove:hover { background: var(--dk-maroon); color: #fff !important; border-color: var(--dk-maroon); }

/* ============================================================
   دراورها (off-canvas): منو، فیلتر فروشگاه و سبد خرید
   ============================================================ */
.dk-overlay {
	position: fixed;
	inset: 0;
	background: rgba(40, 24, 12, .5);
	z-index: 190;
	backdrop-filter: blur(2px);
}
body.dk-lock { overflow: hidden; }

.dk-drawer-close {
	background: transparent;
	border: 1px solid var(--dk-line);
	border-radius: 50%;
	width: 34px; height: 34px;
	font-size: 14px;
	cursor: pointer;
	color: var(--dk-ink);
	display: none;
	align-items: center; justify-content: center;
}
.dk-drawer-close:hover { background: var(--dk-maroon); color: #fff; border-color: var(--dk-maroon); }

/* دراور سبد خرید (همه سایزها) */
.dk-cart-drawer {
	position: fixed;
	top: 0; right: 0;
	width: min(400px, 92vw);
	height: 100dvh;
	background: var(--dk-cream-2);
	z-index: 200;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
	transform: translateX(calc(100% + 40px));
	visibility: hidden;
	transition: transform .3s ease, visibility 0s linear .3s;
	display: flex;
	flex-direction: column;
	padding: 18px;
}
.dk-cart-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
.dk-cart-drawer__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--dk-line); padding-bottom: 12px; margin-bottom: 12px; }
.dk-cart-drawer__head h2 { font-size: 16px; margin: 0; }
.dk-cart-drawer .dk-drawer-close { display: inline-flex; }
.dk-cart-drawer .widget_shopping_cart_content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.woocommerce-mini-cart { flex: 1; }
.woocommerce-mini-cart li {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--dk-line);
	position: relative;
	font-size: 13px;
}
.woocommerce-mini-cart li a { color: var(--dk-ink); font-weight: 600; }
.woocommerce-mini-cart li a.remove { position: absolute; left: 0; top: 12px; font-weight: 400; }
.woocommerce-mini-cart li img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--dk-radius-sm); grid-row: span 2; }
.woocommerce-mini-cart li .quantity { font-size: 12.5px; color: var(--dk-muted); display: block; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 14px 0; font-weight: 700; color: var(--dk-ink); border-bottom: 1px solid var(--dk-line); }
.woocommerce-mini-cart__buttons { display: grid; gap: 8px; padding-top: 14px; margin: 0; }
.woocommerce-mini-cart__buttons .button { text-align: center; }
.woocommerce-mini-cart__buttons .button.checkout { background: var(--dk-teal); }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--dk-muted); margin-top: 40px; }

/* دکمه فیلتر: فقط موبایل */
.dk-filter-toggle { display: none; }
.dk-shop-sidebar__head { display: flex; justify-content: space-between; align-items: center; }

/* ---------- جستجوی زنده ---------- */
.dk-search__results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0; left: 0;
	background: #fff;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	box-shadow: var(--dk-shadow);
	z-index: 120;
	max-height: 380px;
	overflow-y: auto;
	padding: 6px;
}
.dk-search__item {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--dk-radius-sm);
	font-size: 13px;
}
.dk-search__item:hover { background: var(--dk-cream); }
.dk-search__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.dk-search__item-title { color: var(--dk-ink); font-weight: 600; }
.dk-search__item-price { color: var(--dk-maroon); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.dk-search__empty { margin: 0; padding: 14px; text-align: center; color: var(--dk-muted); font-size: 13px; }

/* ---------- فیلترهای فروشگاه ---------- */
.dk-filters { display: grid; gap: 4px; }
.dk-filter { border-bottom: 1px solid var(--dk-line); padding-block: 6px; }
.dk-filter:last-of-type { border-bottom: 0; }
.dk-filter__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: 0;
	padding: 10px 0;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--dk-ink);
	cursor: pointer;
}
.dk-filter__chevron {
	width: 8px; height: 8px;
	border-inline-end: 2px solid var(--dk-muted);
	border-block-end: 2px solid var(--dk-muted);
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.dk-filter.is-collapsed .dk-filter__chevron { transform: rotate(-135deg); }
.dk-filter__list { display: grid; gap: 2px; padding-bottom: 10px; max-height: 220px; overflow-y: auto; }
.dk-filter.is-collapsed .dk-filter__list,
.dk-filter.is-collapsed .dk-price { display: none; }

/* چیدمان‌های انتخابی هر گروه فیلتر (تنظیمات قالب ← فروشگاه) */
.dk-filter--columns .dk-filter__list { grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.dk-filter--chips .dk-filter__list { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-filter--chips .dk-check {
	border: 1px solid var(--dk-line);
	border-radius: 999px;
	padding: 5px 12px;
	background: #fff;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.dk-filter--chips .dk-check__box { display: none; }
.dk-filter--chips .dk-check:hover { background: var(--dk-cream); }
.dk-filter--chips .dk-check:has(input:checked),
.dk-filter--chips .dk-check:has(input:checked):hover {
	background: var(--dk-maroon);
	border-color: var(--dk-maroon);
	color: #fff;
}

.dk-check {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 4px;
	border-radius: var(--dk-radius-sm);
	font-size: 13.5px;
	cursor: pointer;
	transition: background .15s ease;
}
.dk-check:hover { background: var(--dk-cream); }
.dk-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.dk-check__box {
	flex: 0 0 auto;
	width: 18px; height: 18px;
	border: 1.5px solid var(--dk-line);
	border-radius: 5px;
	background: #fff;
	position: relative;
	transition: background .15s ease, border-color .15s ease;
}
.dk-check__box::after {
	content: '';
	position: absolute;
	inset-block-start: 2px;
	inset-inline-start: 5px;
	width: 4px; height: 9px;
	border-inline-end: 2px solid #fff;
	border-block-end: 2px solid #fff;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}
.dk-check input:checked + .dk-check__box { background: var(--dk-maroon); border-color: var(--dk-maroon); }
.dk-check input:checked + .dk-check__box::after { transform: rotate(45deg) scale(1); }
.dk-check input:focus-visible + .dk-check__box { box-shadow: 0 0 0 3px rgba(123, 39, 51, .18); }
.dk-check__label { color: var(--dk-text); }
.dk-check input:checked ~ .dk-check__label { color: #fff; }

/* بازه قیمت */
.dk-price { padding: 6px 4px 14px; }
.dk-price__track { position: relative; height: 30px; }
.dk-price__track::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: 13px;
	height: 4px;
	border-radius: 999px;
	background: var(--dk-line);
}
.dk-price__fill {
	position: absolute;
	top: 13px;
	height: 4px;
	border-radius: 999px;
	background: var(--dk-maroon);
}
.dk-price__range {
	position: absolute;
	inset-inline: 0;
	top: 6px;
	width: 100%;
	height: 18px;
	margin: 0;
	background: none;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}
.dk-price__range::-webkit-slider-thumb {
	pointer-events: auto;
	appearance: none;
	-webkit-appearance: none;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--dk-maroon);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	cursor: pointer;
}
.dk-price__range::-moz-range-thumb {
	pointer-events: auto;
	width: 14px; height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--dk-maroon);
	cursor: pointer;
}
.dk-price__range::-moz-range-track { background: none; }
.dk-price__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.dk-price__inputs label { display: grid; gap: 4px; font-size: 12px; color: var(--dk-muted); }
.dk-price__inputs input {
	width: 100%;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	padding: 7px 8px;
	font: inherit;
	font-size: 13px;
}
.dk-price__currency { margin: 6px 0 0; font-size: 11.5px; color: var(--dk-muted); }

.dk-filters__actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.dk-filters__apply { flex: 1; justify-content: center; }
.dk-filters__reset { font-size: 12.5px; color: var(--dk-muted); }
.dk-filters__reset:hover { color: var(--dk-maroon); }

/* ---------- دیدگاه‌ها ---------- */
.dk-comments { margin-top: 34px; }
.dk-comments__title { font-size: 18px; margin-bottom: 18px; }
/* ol.commentlist را ووکامرس در تب نظرات محصول می‌سازد؛ همان استایل فهرست دیدگاه‌ها را می‌گیرد. */
.dk-comments__list,
ol.commentlist { display: grid; gap: 14px; list-style: none; margin: 0 0 24px; padding: 0; }
.dk-comments__list .children,
ol.commentlist .children { list-style: none; margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 12px; }

.dk-comment__body {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 12px;
	background: var(--dk-card);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	padding: 14px 16px;
}
.dk-comment__img { border-radius: 50%; }
.dk-comment__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dk-comment__author { font-weight: 700; font-size: 14px; }
.dk-comment__date { font-size: 12px; color: var(--dk-muted); }
.dk-comment__stars { display: inline-flex; gap: 1px; }
.dk-comment__stars .is-on { color: var(--dk-gold); }
.dk-comment__stars .is-off { color: var(--dk-line); }
.dk-comment__pending { margin: 0 0 6px; font-size: 12.5px; color: var(--dk-gold); }
.dk-comment__text { font-size: 14px; line-height: 1.9; }
.dk-comment__text p:last-child { margin-bottom: 0; }
.dk-comment__reply { display: inline-block; margin-top: 8px; font-size: 12.5px; }
.dk-comment__reply a { color: var(--dk-maroon); font-weight: 600; }
.dk-comments__closed { font-size: 13px; color: var(--dk-muted); }

.dk-comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	background: var(--dk-cream-2);
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius);
	padding: 20px;
}
.dk-comment-form .comment-reply-title,
.dk-comment-form__notes,
.dk-comment-form .form-submit,
.dk-comment-form .comment-form-rating,
.dk-comment-form__feedback { grid-column: 1 / -1; }
.dk-comment-form .comment-reply-title { margin: 0; font-size: 17px; }
.dk-comment-form__notes { margin: 0; font-size: 12.5px; color: var(--dk-muted); }
.dk-comment-form__row { margin: 0; display: grid; gap: 6px; }
.dk-comment-form__row--full { grid-column: 1 / -1; }
.dk-comment-form label { font-size: 13px; font-weight: 600; }
.dk-comment-form__req { color: var(--dk-maroon); }
.dk-comment-form__opt { font-weight: 400; font-size: 12px; color: var(--dk-muted); }
.dk-comment-form input[type="text"],
.dk-comment-form input[type="email"],
.dk-comment-form input[type="tel"],
.dk-comment-form input[type="url"],
.dk-comment-form textarea {
	width: 100%;
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.dk-comment-form input:focus,
.dk-comment-form textarea:focus {
	border-color: var(--dk-maroon);
	box-shadow: 0 0 0 3px rgba(123, 39, 51, .1);
	outline: 0;
}
.dk-comment-form textarea { resize: vertical; min-height: 120px; }
.dk-comment-form__consent label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 12.5px; color: var(--dk-muted); }
.dk-comment-form .form-submit { margin: 0; }
.dk-comment-form.is-sending { opacity: .75; pointer-events: none; }

.dk-comment-form__feedback {
	border-radius: var(--dk-radius-sm);
	padding: 10px 14px;
	font-size: 13.5px;
}
.dk-comment-form__feedback.is-loading { background: #fff; color: var(--dk-muted); }
.dk-comment-form__feedback.is-success { background: #e8f5ee; color: #14663c; }
.dk-comment-form__feedback.is-error { background: #fbeaea; color: #9b2226; }

/* امتیازدهی ووکامرس داخل فرم */
.dk-comment-form .comment-form-rating { display: grid; gap: 6px; justify-items: start; }
.dk-comment-form .comment-form-rating label { font-size: 13px; font-weight: 600; }
.dk-comment-form .stars { margin: 0; }
/* select#rating را اسکریپت ووکامرس خودش مخفی می‌کند؛ با CSS مخفی نشود تا بدون JS هم قابل استفاده بماند. */
.dk-comment-form select#rating {
	border: 1px solid var(--dk-line);
	border-radius: var(--dk-radius-sm);
	padding: 8px 10px;
	font: inherit;
	font-size: 14px;
	background: #fff;
}

@media (max-width: 640px) {
	.dk-comment-form { grid-template-columns: 1fr; padding: 16px; }
	.dk-comment__body { grid-template-columns: 40px 1fr; padding: 12px; }
	.dk-comment__img { width: 40px; height: 40px; }
}

/* ============================================================
   حرکت و زندگی — همه چیز زیر .dk-motion که فقط جاوااسکریپت
   و تنها وقتی prefers-reduced-motion خاموش است اضافه می‌کند.
   بدون JS محتوا کاملاً دیده می‌شود.
   ============================================================ */

/* ورود بلوک‌ها هنگام اسکرول */
.dk-motion .dk-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--dk-reveal-delay, 0ms);
	will-change: opacity, transform;
}
.dk-motion .dk-reveal.is-in { opacity: 1; transform: none; }

/* منوی اصلی: خط زیر آیتم از وسط باز می‌شود */
.dk-motion .dk-nav__list > li > a { position: relative; transition: color .2s ease; }
.dk-motion .dk-nav__list > li > a::after {
	content: '';
	position: absolute;
	inset-block-end: -2.5px;
	inset-inline-start: 50%;
	width: 0;
	height: 2.5px;
	background: var(--dk-gold-light);
	border-radius: 2px;
	transform: translateX(50%);
	transition: width .25s ease;
}
.dk-motion .dk-nav__list > li > a:hover::after,
.dk-motion .dk-nav__list > li:focus-within > a::after { width: 70%; }

/* زیرمنو با محو شدن باز می‌شود — فقط دسکتاپ؛ در موبایل زیرمنو همیشه باز است. */
@media (min-width: 861px) {
	.dk-motion .dk-nav__list .sub-menu {
		display: block;
		visibility: hidden;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	}
	.dk-motion .dk-nav__list li:hover > .sub-menu,
	.dk-motion .dk-nav__list li:focus-within > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .2s ease, transform .2s ease;
	}
}

/* کارت محصول، مزیت‌ها و کارت نظر: بلند شدن نرم هنگام هاور */
.dk-motion ul.products li.product,
.dk-motion .dk-trust__item,
.dk-motion .dk-reviews__card {
	transition: transform .3s ease, box-shadow .3s ease;
}
.dk-motion ul.products li.product:hover,
.dk-motion .dk-trust__item:hover {
	transform: translateY(-5px);
	box-shadow: var(--dk-shadow);
}
.dk-motion .dk-reviews__card:hover { transform: translateY(-5px); }
/* قاب طاقی دسته‌ها: بلند شدن قاب + زوم آرام تصویر + بزرگ شدن نرم اسلاید فعال */
.dk-motion .dk-cats__thumb { transition: border-color .2s ease, transform .45s ease; }
.dk-motion .dk-cats__item:hover .dk-cats__thumb { transform: translateY(-4px); }
.dk-motion .swiper-slide-active .dk-cats__item:hover .dk-cats__thumb { transform: translateY(-4px) scale(1.08); }
.dk-motion .dk-cats__thumb img { transition: transform .45s ease; }
.dk-motion .dk-cats__item:hover .dk-cats__thumb img { transform: scale(1.05); }

/* تصویر محصول در کارت — کارت کلیپ می‌شود تا زوم بیرون نزند. */
.dk-motion ul.products li.product { overflow: hidden; }
.dk-motion ul.products li.product img { transition: transform .45s ease; }
.dk-motion ul.products li.product:hover img { transform: scale(1.05); }

/* دکمه‌ها */
.dk-motion .dk-btn { transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.dk-motion .dk-btn:hover { transform: translateY(-2px); }
.dk-motion .dk-btn:active { transform: translateY(0); }

/* اسلایدر: کشیدن با موس */
.dk-slider__track.is-dragging { scroll-behavior: auto; scroll-snap-type: none; cursor: grabbing; }
.dk-motion .dk-slider__track { cursor: grab; }
.dk-motion .dk-slider__btn { transition: transform .2s ease, background .2s ease, color .2s ease; }
.dk-motion .dk-slider__btn:hover { transform: scale(1.1); }

/* نوار متحرک: دو نیمه یکسان؛ جابه‌جایی ۵۰٪ به راست در RTL حلقه بی‌درز می‌سازد. */
@keyframes dk-marq {
	to { transform: translateX(50%); }
}
.dk-motion .dk-marquee__track { animation: dk-marq 38s linear infinite; }

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.dk-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- چاپ ---------- */
@media print {
	.dk-topbar, .dk-header__actions, .dk-nav, .dk-footer, .dk-consult-cta, .dk-callband, .dk-marquee { display: none !important; }
}
