/* =====================================================================
   blog-single.css — صفحه تک‌نوشته وبلاگ / تک زعفران — نسخه ۲ (راست‌چین)
   ===================================================================== */

:root{
	--tak-blue-bg:#F5F7FA;
	--tak-blue-bg2:#f1f4f9;
	--tak-black:#E5E7EB;
	--tak-purple:#e4d0ef;
	--tak-purple-text:#1C1D22;
	--tak-text:#1C1D22;
	--tak-muted:#212529;
	--tak-border:#e7eaee;
	--tak-yellow:#f5c518;
	--tak-radius-lg:20px;
	--tak-radius-md:14px;
	--tak-radius-sm:10px;
	--tak-container:1400px;
}

section[class^="cont-b"]{ direction:rtl; text-align:right; }
section[class^="cont-b"] *{ box-sizing:border-box; }

.tak-container{
	max-width:var(--tak-container);
	margin:0 auto;
	padding:55px 65px;
}

/* بکگراند سفید اجباری برای همه بخش‌ها به‌جز cont-b1 */
.cont-b2,.cont-b3,.cont-b4,.cont-b5{ background:#fff !important; }

/* ---------- Breadcrumb ---------- */
.tak-breadcrumb{
	display:flex; flex-wrap:wrap; align-items:center; gap:8px;
	font-size:13px; color:var(--tak-muted); padding:18px 0 10px;
}
.tak-breadcrumb a{ color:var(--tak-muted); text-decoration:none; }
.tak-breadcrumb a:hover{ color:var(--tak-black); }
.tak-breadcrumb-current{ color:var(--tak-text); font-weight:500; }
.tak-chevron{ opacity:.45; }

/* ================= cont-b1 ================= */
.cont-b1{ width:100%; background:var(--tak-blue-bg2); }

.tak-b1-box{
	display:grid;
	grid-template-columns:280px 1fr;
	gap:36px;
	align-items:stretch;
	padding:20px 0 10px;
}
.tak-b1-media{ order:1; } /* راست */
.tak-b1-text{
	order:2;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	justify-content:space-evenly;
}
.tak-b1-img{ width:100%; height:auto; max-width:280px; border-radius:var(--tak-radius-lg); display:block; object-fit:cover; }
.tak-cat-badge{
	    background: var(--tak-black);
    color: var(--tak-muted);
    margin-bottom: 14px;
    border: 2px solid #1C1D22;
    box-shadow: 2px 2px 0 #1c1d22;
    border-radius: 60px;
    margin-left: 10px;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
}
.tak-b1-title{ margin: 0 0 14px;
    color: var(--tak-text);
    font-size: 24px;
    line-height: 48px;
    text-align: right;
    font-weight: 700; }
.tak-b1-desc{     color: var(--tak-muted);
    font-size: 16px;
    line-height: 32px;
    margin-bottom: 15px;
    text-align: justify; }
.tak-b1-meta{ display:flex; flex-wrap:wrap; gap:20px; }
.tak-b1-meta-item{ display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tak-muted);
    padding: 5px 0;
    margin-left: 24px;
    font-size: 14px; }
.tak-b1-meta-item img{ opacity:.75; }

/* ================= cont-b2 ================= */
.cont-b2{ padding:34px 0 10px; }
.tak-b2-grid{
	display:grid;
	grid-template-columns:25% 1fr 15%;
	gap:26px;
	align-items:stretch; /* لازم برای کارکرد صحیح چسبانی (sticky) */
}
.tak-sticky-wrap{ position:sticky; top:55px; }

.tak-b2-share{ order:3; } /* راست */
.tak-b2-content{ order:2; min-width:0; }
.tak-b2-toc{ order:1; } /* چپ */

.tak-b2-share .tak-sticky-wrap{ display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;}
.tak-share-icon{
	width:22px; height:22px; display:flex; align-items:center; justify-content:center;
	background:none; border:none; padding:0;
	cursor:pointer; transition:.2s; opacity:.8;
}
.tak-share-icon img{ width:100%; height:auto; }
.tak-share-icon:hover{ opacity:1; transform:scale(1.08); }

.tak-toc-box{
    padding: 25px 20px 18px 18px;
    margin: 0px auto 25px;
    clear: both;
    display: block;
    border: 2px solid #1C1D22;
    border-radius: 8px;
    background-color: transparent;
}
.tak-toc-title{
	position:absolute;
	top:-11px;
	right:16px;
	background:#fff;
	padding:0 10px;
	font-size:14px; margin:0; font-weight:700;
}
.tak-toc-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.tak-toc-item a{ font-size:13px; color:var(--tak-muted); text-decoration:none; line-height:1.7; }
.tak-toc-item a:hover{ color:var(--tak-black); }
.tak-toc-h3 a{ padding-right:12px; }
.tak-toc-h4 a{ padding-right:24px; }

.tak-divider{ border:none; border-top:1px solid var(--tak-border); margin:26px 0; }

.tak-intro-text{
	background: #fff;
    margin: -10px 0 25px;
    color: #1C1D22;
    font-size: 16px;
    line-height: 35px;
}

.tak-article-body{ font-size:16px; line-height:2.1; color:var(--tak-text); }
.tak-article-body h2,.tak-article-body h3,.tak-article-body h4{     scroll-margin-top: 20px;
    line-height: 60px;
    font-size: 19px; }
.tak-article-body img{ max-width:100%; height:auto; border-radius:var(--tak-radius-sm); }

/* --- promo box --- */
.tak-promo-box{
	background: var(--tak-blue-bg);
    background-color: #F5F7FA;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    display: flex!important;
    align-items: center!important;
        gap: 20px;
}
.tak-promo-media{ order:1; } /* راست */
.tak-promo-img{ width:100%; height:auto; border-radius:var(--tak-radius-md); }
.tak-promo-body{ order:2; }
.tak-promo-title{ border-top: none;
    padding-top: 0;
    font-size: 21px;
    font-weight: 700;
    margin: 5px 6px;
    line-height: 32px; }
.tak-promo-short{     margin: 0 0 6px;
    font-weight: 600;
    font-size: 16px;
    line-height: 35px;
    text-align: right;
    color: #1C1D22;
    margin-bottom: 8px; }
.tak-promo-desc{     color: var(--tak-muted);
    margin: 0 0 14px;
    padding-bottom: 10px;
    line-height: 28px;
    font-size: 15px; }
.tak-promo-price-row{ text-align: justify;
    color: #1C1D22;
    font-size: 16px;
    line-height: 32px; }
.tak-promo-price{     font-weight: 700;
    margin-right: 6px;
    text-align: justify;
    color: #1C1D22;
    font-size: 16px;
    line-height: 32px; }
.tak-promo-btn{
	    display: flex;
    background: var(--tak-purple);
    color: var(--tak-purple-text);
    font-weight: 700;
    border-radius: var(--tak-radius-sm);
    text-decoration: none;
    padding: 10px;
    font-size: 15px;
    margin-right: 80%;
    margin-top: -36px;
    align-items: center;
    justify-content: center;
}

/* --- inline related callout: حاشیه حاشوری زرد --- */
.tak-inline-related{
	position:relative;
	background:#fffdf3;
	border:3px solid transparent;
	border-radius:var(--tak-radius-sm);
	padding:14px 18px;
	font-size:14px;
	margin:20px 0;
	background-image:
		linear-gradient(#fffdf3,#fffdf3),
		repeating-linear-gradient(45deg,var(--tak-yellow) 0 10px,#fff6d8 10px 20px);
	background-origin:border-box;
	background-clip:padding-box, border-box;
}
.tak-inline-related a{ color:#0d6efd; font-weight:600; text-decoration:underline; }
.tak-inline-related-note{ color:var(--tak-muted); }

/* --- consult CTA: سفید و تمام عرض --- */
.tak-consult-box{
	display:flex; align-items:center; gap:12px;
	background:#fff; color:var(--tak-text); text-decoration:none;
	border:1px solid var(--tak-border); border-radius:var(--tak-radius-md);
	padding:16px 22px; margin-top:26px; font-size:14px; width:100%;
}
.tak-consult-box:hover{ background:var(--tak-blue-bg); }

/* ================= cont-b3 ================= */
.cont-b3{ padding:0; }
.tak-b3-grid{
display: flex;
    gap: 30px;
    width: 100%;
}
.tak-box-title{ font-size:17px; margin:0 0 6px; }
.tak-box-sub{ color:var(--tak-muted); font-size:13px; margin:0 0 16px; }

.tak-b3-rating{ background: #fff;
    border: 2px solid #1C1D22;
    border-radius: 8px;
    padding: 18px 10px 24px;
    margin: 0px;
    text-align: center;
    float: right;
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 10px; }
.tak-rating-faces{ display:flex; justify-content:center; gap:16px; margin:18px 0 10px; flex-wrap:wrap; }
.tak-rating-face{ background:none; border:none; cursor:pointer; padding:6px; border-radius:50%; transition:.15s; }
.tak-rating-face:disabled{ cursor:default; opacity:.6; }
.tak-rating-result,.tak-rating-thanks{ font-size:13px; color:var(--tak-muted); }

.tak-b3-newsletter{ background: #ffffff;
    color: #000;
    padding: 30px 25px;
    width: 35%;
    text-align: center;
    border: 2px solid #1C1D22;
    border-radius: 8px; }
.tak-b3-newsletter .tak-box-sub{ color:#c7c9cc; }
.tak-newsletter-form{ display:flex; flex-wrap:wrap; }
.tak-newsletter-email{ flex: 1;
    min-width: 140px;
    font-size: 17px;
    width: 85%;
    border-radius: 0 8px 8px 0;
    padding: 16px 10px;
    color: #666;
    border: 1px solid #ccc; }
.tak-newsletter-submit{ font-weight: 700;
    cursor: pointer;
    font-size: 17px;
    background-color: #1C1D22;
    color: #fff;
    border-radius: 8px 0 0 8px;
    padding: 10px 16px; }
.tak-newsletter-msg{ font-size:12px; margin-top:10px; min-height:16px; }

/* ================= cont-b4 ================= */
.cont-b4{ padding:10px 0 40px; }
.tak-b4-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; gap:10px; }
.tak-view-all{ font-size:13px; color:var(--tak-muted); text-decoration:none; display:flex; align-items:center; gap:6px; }
.tak-view-all img{ transform:scaleX(-1); }
.tak-b4-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.tak-b4-card{ display:block; text-decoration:none; color:var(--tak-text); border:1px solid var(--tak-border); border-radius:var(--tak-radius-md); overflow:hidden; transition:.2s; }
.tak-b4-card:hover{ box-shadow:0 6px 20px rgba(0,0,0,.06); transform:translateY(-2px); }
.tak-b4-card-media img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.tak-b4-card-title{ font-size:15px; margin:12px 14px 6px; line-height:1.6; }
.tak-b4-card-excerpt{ font-size:13px; color:var(--tak-muted); margin:0 14px 12px; line-height:1.8; }
.tak-b4-card-meta{ display:flex; justify-content:space-between; font-size:11px; color:var(--tak-muted); margin:0 14px 14px; }

/* ================= cont-b5 : دیدگاه‌ها ================= */
.cont-b5{ padding:10px 0 60px; }
.tak-b5-grid{        display: flex;
    gap: 24px;
    flex-direction: row-reverse;
    align-items: flex-start;}
.tak-b5-form{ background: #fff;
    padding: 30px 25px;
    border: 2px solid #1C1D22;
    border-radius: 8px;
    margin-top: 18px;
    width: 35%; }
.tak-b5-list{ order:1; }

.tak-comment-form-title{ font-size:16px; margin:0 0 16px; }
.tak-comment-greeting{ font-size:14px; color:var(--tak-text); margin:0 0 16px; background:var(--tak-blue-bg); padding:12px 16px; border-radius:var(--tak-radius-sm); }
.tak-comment-row3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:12px; }
.tak-comment-row3 input,.tak-comment-textarea{
	width:100%; border:1px solid var(--tak-border); border-radius:var(--tak-radius-sm);
	padding:12px 14px; font-size:13px; font-family:inherit;
}
.tak-comment-textarea{ min-height:130px; resize:vertical; margin-bottom:14px; }
.tak-comment-submit-btn{ background:var(--tak-black); color:#fff; border:none; border-radius:999px; padding:12px 28px; font-size:13px; cursor:pointer; }
.tak-comment-submit-btn:disabled{ opacity:.6; cursor:default; }

.tak-comment-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.tak-comment-item{ display: flex;
    gap: 12px;
    border: 1px dashed #2c2c2c2e;
    padding: 30px;
    border-radius: 15px; }
.tak-comment-avatar{ width:36px; height:36px; border-radius:50%; background:var(--tak-blue-bg); display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0; }
.tak-comment-body{ flex:1; min-width:0; }
.tak-comment-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:4px; flex-wrap:wrap; }
.tak-comment-who{ display:flex; align-items:center; gap:10px; font-size:13px; }
.tak-comment-date{ color:var(--tak-muted); }
.tak-comment-text{ font-size:14px; color:var(--tak-text); line-height:1.9; }
.tak-comment-item .children{ list-style:none; margin:14px 0 0 0; padding:0 30px 0 0; } /* تورفتگی راست‌چین برای پاسخ ادمین */

.tak-comment-votes{ display:flex; align-items:center; gap:10px; }
.tak-vote-btn{ display:inline-flex; align-items:center; gap:4px; background:none; border:none; cursor:pointer; color:var(--tak-muted); font-size:12px; padding:4px 6px; border-radius:6px; }
.tak-vote-btn:hover{ background:var(--tak-blue-bg); color:var(--tak-text); }
.tak-vote-btn.is-voted{ color:var(--tak-black); font-weight:700; }

.tak-no-comments{ text-align:center; padding:20px 10px; }
.tak-no-comments img{ max-width:100%; height:auto; }
.tak-no-comments p{ color:var(--tak-muted); font-size:14px; margin-top:10px; }

/* ---------- Toast ---------- */
.tak-toast{
	position:fixed; bottom:24px; right:24px; z-index:9999;
	background:var(--tak-black); color:#fff; font-size:13px;
	padding:14px 20px; border-radius:var(--tak-radius-sm);
	box-shadow:0 10px 30px rgba(0,0,0,.2);
	opacity:0; transform:translateY(12px); pointer-events:none;
	transition:.25s;
}
.tak-toast.is-visible{ opacity:1; transform:translateY(0); }
.tak-toast.is-error{ background:#c0392b; }

/* ===================== Responsive ===================== */
@media (max-width:1024px){
	.tak-b1-box{ grid-template-columns:1fr; }
	.tak-b1-media{ order:1; }
	.tak-b1-text{ order:2; }
	.tak-b1-img{ max-width:100%; }
	.tak-b2-grid{ grid-template-columns:1fr 65%}
	.tak-b2-share{ display:none; }
	.tak-b3-grid{display: flex;
    gap: 25px;
    width: 100%;
    flex-direction: row;}
.tak-box-title {
margin: 0px 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
}
.tak-container {
    padding: 30px 60px;
}
.tak-rating-face {
    margin: 0 4px;
    border-radius: 8px;
    width: 50px;
    height: 50px;
}
.tak-article-body h2,.tak-article-body h3,.tak-article-body h4{     scroll-margin-top: 20px;
    line-height: 60px;
    font-size: 18px; }
.tak-rating-face img {
    width: 25px;
    height: 25px;
}
.tak-box-sub {
    margin: 10px 0px 16px;}
    .tak-newsletter-email {
    font-size: 15px;
    padding: 12px 10px;
    }
    .tak-newsletter-submit {
    font-size: 15px;
    }
	.tak-b3-rating,.tak-b3-newsletter{ max-width:100%; margin:0 auto; }
	.tak-b4-grid{ grid-template-columns:repeat(2,1fr); }
	.tak-b5-grid{ display: flex;
    gap: 24px;
    flex-direction: row-reverse;
    align-items: flex-start; }
	.tak-b5-form {
    width: 35%;
}

.tak-b5-list {
    width: 65%;
}
}

@media (max-width:760px){
    
	.tak-container{ padding:25px 20px; }

	/* بردکرام تک‌خط و اسکرولی با نوار اسکرول مخفی */
	.tak-breadcrumb{
		flex-wrap:nowrap; overflow-x:auto; white-space:nowrap;
		scrollbar-width:none; -ms-overflow-style:none;
	}
	.tak-breadcrumb::-webkit-scrollbar{ display:none; }
	.tak-breadcrumb a,.tak-breadcrumb-current,.tak-chevron{ flex-shrink:0; }

	.tak-b2-grid{ grid-template-columns:1fr; }
	.tak-b2-toc{ order:0; }
	.tak-b2-content{ order:1; }
	.tak-sticky-wrap{ position:static; }
	.tak-promo-box{ grid-template-columns:1fr; padding:30px 10px; }
	.tak-promo-media{ order:1; }
	.tak-promo-body{ order:2; }
	.tak-b4-grid{ grid-template-columns:1fr; }
	.tak-newsletter-form{ flex-direction:column; }
	.tak-comment-row3{ grid-template-columns:1fr; }
	.tak-toast{ right:12px; left:12px; bottom:12px; text-align:center; }

	/* تمام باکس‌های cont-b2 تا انتها: پدینگ ۳۰ بالا/پایین، ۱۰ چپ/راست، عرض کامل */
	.tak-toc-box,
	.tak-b3-rating,
	.tak-b3-newsletter,
	.tak-b5-form{
		max-width: 100%;
    margin: 0 auto;
    padding: 30px 15px;
    width: 100%;
	}
	.tak-b3-rating{ 
    width: 100%;
	}
	tak-b3-newsletter{ 
    width: 100%;
	}
	.tak-b3-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    flex-direction: column;
	}
	.cont-b2 {
    padding: 5px 0 10px;
}
	.tak-breadcrumb {
    padding: 5px 0 5px;
	}
	.tak-b1-title {
    font-size: 20px;
    line-height: 34px;
}
.tak-b1-desc {
    font-size: 14px;
    line-height: 32px;
}
	.tak-b1-meta {
    gap: 0px;
}
	.tak-b1-meta-item {
    gap: 5px;
    padding: 2px 2px;
    margin-left: 18px;
    font-size: 13px;
}
	.tak-promo-box {
    padding: 20px;
    gap: 12px;
    margin: 20px 0;
    display: flex!important;
    align-items: center!important;
    flex-direction: column;
}
.tak-promo-title {
    font-size: 18px;
    margin: 5px 6px;
    line-height: 35px;
}

.tak-promo-short {
    font-size: 14px;
}
.tak-promo-price-row {
    font-size: 14px;
    line-height: 27px;
}
.tak-promo-btn {
    border-radius: 8px;
    font-size: 14px;
    margin-right: 65%;
    margin-top: -36px;
}
.tak-promo-desc {
    line-height: 25px;
    font-size: 13px;
}
.tak-article-body h2,.tak-article-body h3,.tak-article-body h4{     scroll-margin-top: 20px;
    line-height: 60px;
    font-size: 17px; }
    
    .tak-b5-grid {
    display: flex;
    gap: 24px;
    flex-direction: column-reverse;
    align-items: flex-start;
}
    .tak-b5-list {
    width: 100%;
}

    
    
    
}









/* استایل پایه برای همه دکمه‌ها */
.tak-rating-face {
display: flex;
    margin: 0 7px;
    border-radius: 10px;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    align-items: center;
    align-content: center;
    justify-content: center;
}


.tak-rating-face[data-value="1"] {
    background-color: #FAE5E5;
    border: 2px solid #FDBABA;
}
.tak-rating-face[data-value="1"]:hover {
    background-color: #FDBABA;
}


.tak-rating-face[data-value="2"] {
    background-color: #FDF2D8;
    border: 2px solid #FFDF80;
}
.tak-rating-face[data-value="2"]:hover {
    background-color: #FFDF80;
}


.tak-rating-face[data-value="3"] {
    background-color: #DAF1DF;
    border: 2px solid #98D7AD;
}
.tak-rating-face[data-value="3"]:hover {
    background-color: #98D7AD;
}


.tak-rating-face[data-value="4"] {
    background-color: #E2F2FE;
    border: 2px solid #AEDEFE;
}
.tak-rating-face[data-value="4"]:hover {
    background-color: #AEDEFE;
}

.tak-rating-face[data-value="5"] {
    background-color: #ECE2FD;
    border: 2px solid #D9BAFC;
}
.tak-rating-face[data-value="5"]:hover {
    background-color: #D9BAFC;
}





tbody tr td {
    border: none;
}
table.alignright {
    font-size: 16px;
    line-height: 50px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    display: grid;
    border-collapse: collapse;
    border-style: dotted;
    border-color: #ffe188;
    background-color: #fff8d3;
}











/* =====================================================
   هدر اختصاصی صفحه آرشیو وبلاگ
   چیدمان: منو (راست) — لوگو (وسط) — جستجو (چپ)
   با grid-template-columns و justify-self، خودش با RTL هماهنگ می‌شود.
   ===================================================== */
.site-header {
	border-bottom: 1px solid #ececec;
	background: #fff;
}

.site-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px 40px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
}

@media (max-width: 1024px) {
	.site-header__inner {
		padding: 12px 24px;
	}
}

@media (max-width: 780px) {
	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		padding: 12px 16px;
	}
}

/* ---------- لوگو (وسط) ---------- */
.site-header__logo {
	justify-self: center;
	text-align: center;
}

.site-header__logo a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-header__logo img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 190px;
	object-fit: contain;
}

.site-header__logo-text {
	font-size: 18px;
	font-weight: 800;
	color: var(--tak-color-text, #1c1c1c);
}

/* ---------- منوی دسته‌بندی (راست) ---------- */
.site-header__nav {
	justify-self: start;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: #1c1c1c;
	padding: 6px;
}

.primary-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.primary-menu__item {
	position: relative;
}

.primary-menu__link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	color: #1c1c1c;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-menu__link:hover,
.primary-menu__item.is-open > .primary-menu__link {
	background-color: #f7f2e8;
	color: var(--tak-color-accent, #b5871a);
}

/* هاور یا باز شدن → آیکون فلش ۱۸۰ درجه می‌چرخد (رو به بالا) */
.primary-menu__item:hover .icon-chevron,
.primary-menu__item.is-open .icon-chevron {
	transform: rotate(180deg);
}

/* زیرمنو: فقط یک سطح (اولین زیردسته‌ها)، زیر آیتم مادر باز می‌شود */
.submenu {
	position: absolute;
	top: 100%;
	right: 0; /* در RTL از سمت راست هم‌تراز با لینک باز می‌شود */
	min-width: 220px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	padding: 8px;
	list-style: none;
	margin: 6px 0 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 30;
}

.primary-menu__item:hover .submenu,
.primary-menu__item.is-open .submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.submenu a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: #444;
	text-decoration: none;
	font-size: 13px;
}

.submenu a:hover {
	background-color: #f7f2e8;
	color: var(--tak-color-accent, #b5871a);
}

/* ---------- باکس جستجوی زنده (چپ) ---------- */
.site-header__search {
	justify-self: end;
	width: 100%;
	max-width: 260px;
}

.live-search {
	position: relative;
}

.live-search__input {
	width: 100%;
	height: 42px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #f7f7f8;
	padding: 0 40px 0 16px; /* فضای آیکون در سمت راست ورودی، چون سایت راست‌به‌چپ است */
	font-size: 13px;
	color: #1c1c1c;
	outline: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.live-search__input:focus {
	border-color: var(--tak-color-accent, #b5871a);
	background: #fff;
}

.icon-search {
	position: absolute;
	top: 50%;
	right: 14px; /* سمت راست باکس، مطابق جهت‌خوانی راست‌به‌چپ */
	transform: translateY(-50%);
	color: #9aa0a6;
	pointer-events: none;
}

.live-search__results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	z-index: 40;
}

.live-search__result {
	display: block;
	padding: 12px 16px;
	font-size: 13px;
	color: #1c1c1c;
	text-decoration: none;
	border-bottom: 1px solid #f1f1f1; /* خط کم‌رنگ جداکننده بین نتایج */
}

.live-search__result:last-child {
	border-bottom: none;
}

.live-search__result:hover {
	background-color: #f7f2e8;
	color: var(--tak-color-accent, #b5871a);
}

.live-search__empty,
.live-search__loading {
	padding: 14px 16px;
	font-size: 13px;
	color: var(--tak-color-muted, #6b7280);
	text-align: center;
}

/* ---------- ریسپانسیو موبایل ---------- */
@media (max-width: 780px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
	}

	.primary-menu {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		background: #fff;
		border-top: 1px solid #ececec;
		box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
		padding: 8px;
		z-index: 50;
	}

	.site-header__nav.is-open .primary-menu {
		display: flex;
	}

	.site-header {
		position: relative;
	}

	.primary-menu__item {
		width: 100%;
	}

	.primary-menu__link {
		width: 100%;
		justify-content: space-between;
	}

	.submenu {
		position: static;
		box-shadow: none;
		border: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		padding-right: 16px;
	}

	.primary-menu__item.is-open .submenu {
		display: block;
	}

	.site-header__logo {
		justify-self: center;
	}

	.site-header__search {
		max-width: 160px;
	}
}