/* ==========================================================================
   هدر اختصاصی چرم حقی — فقط برای هدر
   رنگ‌ها و اندازه‌ها از هدر المنتور فعلی برداشته شده‌اند.
   ========================================================================== */

.haghi-hdr {
	--hh-bg: #f6f6f6;
	--hh-line: #e7e7e7;
	--hh-ink: #030303;
	--hh-muted: #54595f;
	--hh-gold: #a69a5e;
	--hh-tag: #d3b465;
	--hh-red: #d9534f;
	--hh-top: var(--wp-admin--admin-bar--height, 0px);
	position: relative;
	font-family: inherit;
	color: var(--hh-ink);
	direction: rtl;
}
.haghi-hdr *,
.haghi-hdr *::before,
.haghi-hdr *::after { box-sizing: border-box; }
.haghi-hdr a { color: inherit; text-decoration: none; }
.haghi-hdr ul { list-style: none; margin: 0; padding: 0; }
.haghi-hdr p { margin: 0; }
.haghi-hdr button {
	font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
	cursor: pointer; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.haghi-hdr button:hover,
.haghi-hdr button:focus { background: none; color: inherit; }
.haghi-hdr .hh-ico { display: block; flex: none; }
.haghi-hdr [hidden] { display: none !important; }
.haghi-hdr :focus-visible { outline: 2px solid var(--hh-gold); outline-offset: 2px; }

.hh-tagline { font-size: 12px; line-height: 2; color: var(--hh-tag); }

/* ---------- دسکتاپ: لوگو ---------- */
.hh-brand {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	background: var(--hh-bg);
	padding: 16px 0 20px;
	border-bottom: 1px solid rgba(231, 231, 231, .82);
}
.hh-logo { display: flex; }
.hh-logo img { display: block; width: 150px; height: auto; }

/* ---------- دسکتاپ: نوار منو ---------- */
.hh-bar {
	position: relative;
	background: var(--hh-bg);
	border-bottom: 1px solid var(--hh-line);
}
.hh-bar-in {
	display: flex; align-items: center; justify-content: space-between;
	height: 48px; padding: 0 32px;
}
.hh-nav { display: flex; align-items: center; height: 100%; }
.hh-mega { height: 100%; }
.hh-mega-btn {
	display: flex; align-items: center; gap: 8px; height: 100%;
	padding-inline-end: 24px !important;
	font-size: 12px !important; font-weight: 500; color: var(--hh-ink) !important;
}
.hh-mega-btn .hh-ico { color: var(--hh-gold); }
.hh-mega-btn:hover,
.hh-mega.is-open .hh-mega-btn { color: var(--hh-gold) !important; }
.hh-sep { width: 1px; height: 20px; background: var(--hh-line); margin-inline-end: 24px; }
.hh-links { display: flex; align-items: center; gap: 30px; }
.hh-links a { font-size: 12px; font-weight: 500; color: var(--hh-ink); }
.hh-links a:hover { color: var(--hh-gold); }

/* مگامنو */
.hh-mega-panel {
	display: none;
	position: absolute; top: 100%; left: 10px; right: 10px; z-index: 990;
}
.hh-mega.is-open .hh-mega-panel { display: block; }
.hh-mega-in {
	display: flex; gap: 26px;
	background: #fff;
	padding: 20px 16px;
	min-height: 336px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, .04);
}
.hh-tabs { display: flex; flex-direction: column; width: 209px; flex: none; }
.hh-tab {
	display: block; padding: 12px; font-size: 16px; font-weight: 400; line-height: 23px;
	color: var(--hh-ink); background: #fff;
}
.hh-tab.is-on { background: #0c0c0c; color: var(--hh-gold) !important; }
.hh-panes { flex: 1; }
.hh-pane { display: none; width: 276px; height: 100%; border-inline-end: 1px solid var(--hh-line); padding-top: 6px; }
.hh-pane.is-on { display: block; }
.hh-pane-list li { padding-bottom: 6px; }
.hh-pane-list li a {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; font-weight: 500; line-height: 24px; color: var(--hh-ink);
}
.hh-pane-list li a .hh-ico { color: var(--hh-gold); }
.hh-pane-list li a:hover { color: var(--hh-gold); }
.hh-pane-list .hh-pane-head { padding-bottom: 20px; }
.hh-pane-list .hh-pane-head a { font-size: 14px; line-height: 22px; color: var(--hh-gold); gap: 6px; }
.hh-soon { font-size: 14px; font-weight: 500; color: var(--hh-muted); }

/* ابزارها: جستجو، حساب، سبد */
.hh-tools { display: flex; align-items: center; gap: 10px; }
.hh-search-btn {
	display: flex !important; align-items: center; gap: 6px;
	width: 252px; height: 38px; padding: 12px !important;
	background: #fff !important; border: 1px solid var(--hh-line) !important;
	font-size: 12px !important; line-height: 1; color: var(--hh-muted) !important; text-align: start;
	white-space: nowrap; overflow: hidden;
}
.hh-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--hh-ink); }
.hh-icon-btn:hover,
.hh-acct.is-open .hh-acct-btn { color: var(--hh-gold) !important; }
.hh-login { font-size: 13px; font-weight: 500; color: var(--hh-ink); white-space: nowrap; }
.hh-login:hover { color: var(--hh-gold); }
.hh-cart { padding: 4px 0; }
.haghi-cart-count {
	position: absolute; top: -4px; left: -7px;
	min-width: 16px; height: 16px; padding: 0 3px; border-radius: 16px;
	background: var(--hh-red); color: #fff;
	font-size: 10px; line-height: 16px; text-align: center;
}

/* منوی حساب کاربری */
.hh-acct { position: relative; }
.hh-acct-panel {
	display: none;
	position: absolute; top: calc(100% + 26px); left: 0; z-index: 991;
	width: 292px; padding: 8px 20px 12px;
	background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
}
.hh-acct.is-open .hh-acct-panel { display: block; }
.hh-acct-row {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	min-height: 44px; font-size: 13px; font-weight: 500; color: var(--hh-ink);
}
.hh-acct-row .hh-ico { color: var(--hh-muted); }
a.hh-acct-row:hover { color: var(--hh-gold); }
.hh-acct-name { font-size: 14px; }
.hh-acct-hr { border: 0; border-top: 1px solid var(--hh-line); margin: 4px 0 8px; }
.hh-acct-val { display: flex; align-items: center; gap: 4px; max-width: 130px; font-size: 12px; line-height: 1.2; color: var(--hh-gold); text-align: end; }
.hh-copy { color: var(--hh-muted) !important; }
.hh-copy.copied { color: var(--hh-gold) !important; }

/* ---------- پنل جستجو ---------- */
.hh-search {
	position: fixed; top: var(--hh-top); left: 0; right: 0; z-index: 100000;
	background: var(--hh-bg);
	animation: hh-down .2s ease-out;
}
.hh-search-in { max-width: 1125px; margin: 0 auto; padding: 75px 16px 100px; }
.hh-search .hh-x { display: flex; margin-inline-start: 0; margin-bottom: 66px; color: var(--hh-ink); }
.hh-sform { display: flex; height: 60px; }
.hh-sform input[type="search"] {
	flex: 1; height: 100%; min-width: 0; margin: 0;
	padding: 0 20px; border: 1px solid var(--hh-line); border-inline-end: 0; border-radius: 0;
	background: #fff; font: inherit; font-size: 14px; color: var(--hh-ink); box-shadow: none;
}
.hh-sform input[type="search"]:focus { outline: none; border-color: #ccc; }
.hh-sform button[type="submit"] {
	flex: none; display: flex; align-items: center; justify-content: center;
	min-width: 205px; height: 100%; padding: 0 20px;
	background: #141414 !important; color: #fff !important; font-size: 14px; font-weight: 500;
}
.hh-sform-ico { display: none; }
.hh-pop { margin-top: 60px; }
.hh-pop-title { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #7a7a7a; margin-bottom: 20px !important; }
.hh-pop-list { display: flex; flex-wrap: wrap; gap: 12px; }
.hh-pop-list a {
	display: inline-block; padding: 9px 22px; border-radius: 25px;
	background: #fff; font-size: 14px; font-weight: 500; color: var(--hh-ink);
}
.hh-pop-list a:hover { color: var(--hh-gold); }

/* نتایج زنده (موبایل) */
.hh-live { margin-top: 8px; background: #fff; border: 1px solid var(--hh-line); max-height: 50vh; overflow: auto; }
.hh-live a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #f1f1f1; font-size: 13px; color: var(--hh-ink); }
.hh-live a:last-child { border-bottom: 0; }
.hh-live img { width: 44px; height: 44px; object-fit: cover; flex: none; background: #f6f6f6; }
.hh-live .hh-live-price { display: block; margin-top: 2px; font-size: 12px; color: var(--hh-gold); }
.hh-live p { padding: 12px; font-size: 13px; color: var(--hh-muted); }

/* ---------- پس‌زمینه‌ی تیره ---------- */
.hh-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .75); }

/* ---------- موبایل و تبلت ---------- */
.hh-m,
.hh-drawer,
.hh-bottom { display: none; }

@media (max-width: 1024px) {
	.haghi-hdr .hh-d { display: none; }

	.hh-m {
		display: flex; align-items: center; gap: 12px;
		background: var(--hh-bg); padding: 16px;
		border-bottom: 1px solid var(--hh-line);
	}
	.hh-burger { flex: none; }
	.hh-m-logo { display: flex; flex-direction: column; align-items: center; flex: none; }
	.hh-m-logo img { display: block; width: 88px; height: auto; }
	.hh-m-logo .hh-tagline { font-size: 10px; line-height: 2.4; }
	.hh-m-search { flex: 1; width: auto; height: 37px; font-size: 11px !important; margin-inline-start: 8px; }

	/* جستجوی تمام‌صفحه */
	.hh-search { top: var(--hh-top); bottom: 0; background: #f4f4f4; overflow-y: auto; animation: hh-fade .15s ease-out; }
	.hh-search-in { padding: 16px; }
	.hh-search .hh-x { margin-bottom: 24px; }
	.hh-search .hh-x .hh-ico { width: 24px; height: 24px; }
	.hh-sform { height: 40px; }
	.hh-sform input[type="search"] { font-size: 13px; padding: 0 12px; }
	.hh-sform button[type="submit"] { min-width: 40px; width: 40px; padding: 0; background: #262626 !important; }
	.hh-sform-txt { display: none; }
	.hh-sform-ico { display: block; }
	.hh-pop { margin-top: 40px; }
	.hh-pop-title { font-size: 11px; margin-bottom: 14px !important; }
	.hh-pop-list { gap: 8px; }
	.hh-pop-list a { padding: 6px 14px; font-size: 12px; }

	/* منوی کشویی */
	.hh-drawer {
		display: block;
		position: fixed; top: var(--hh-top); bottom: 0; right: 0; z-index: 100000;
		width: 297px; max-width: 85vw; overflow-y: auto;
		background: #fff; padding: 16px 20px 90px;
		animation: hh-slide .22s ease-out;
	}
	.hh-dr-top { display: flex; align-items: center; justify-content: space-between; }
	.hh-dr-logo img { display: block; width: 150px; height: auto; filter: brightness(42%) saturate(0%); }
	.hh-dr-user { display: flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 13px; color: var(--hh-ink); }
	.hh-dr-title { display: flex; align-items: center; gap: 6px; margin: 48px 0 18px !important; font-size: 14px; font-weight: 700; color: var(--hh-ink); }
	.hh-dr-title .hh-ico { color: var(--hh-gold); }
	.hh-acc { font-size: 13px; font-weight: 500; color: #5d5d5d; }
	.hh-acc-link,
	.hh-acc-btn { display: flex !important; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 8px 4px !important; font-size: 13px !important; font-weight: 500; color: #5d5d5d !important; text-align: start; }
	.hh-acc-btn .hh-ico { transition: transform .2s; }
	.hh-acc-btn[aria-expanded="true"] .hh-ico { transform: rotate(180deg); }
	.hh-acc-sub { padding-inline-start: 14px !important; }
	.hh-acc-sub .hh-acc-link { min-height: 36px; font-size: 12.5px !important; }
	.hh-acc-link:hover { color: var(--hh-gold) !important; }

	/* نوار پایین */
	.hh-bottom {
		display: flex; align-items: center; justify-content: space-around;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		height: 68px; background: #fff;
		box-shadow: 0 -7px 10px rgba(0, 0, 0, .09);
	}
	.hh-bottom-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 52px; padding: 8px 0; font-size: 10px; font-weight: 500; color: #454545; }
	.hh-bottom-item.is-on { color: var(--hh-gold); }
}

@media (min-width: 1025px) {
	.haghi-hdr .hh-drawer { display: none !important; }
}

@keyframes hh-down { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hh-slide { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hh-search, .hh-drawer { animation: none; }
}

/* قفل اسکرول صفحه وقتی پنل باز است */
html.hh-lock, html.hh-lock body { overflow: hidden; }
