/* Chamran – main stylesheet */

*, *::before, *::after { box-sizing: border-box; }

body {
	font-family: 'Vazirmatn', sans-serif;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════
   HEADER + NAV
═══════════════════════════════════════ */

.ch-site-header {
	position: sticky; top: 0; z-index: 200;
	background: rgba(251,250,248,.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid #EFEAE2;
}

.ch-nav {
	max-width: 1220px; margin: 0 auto; padding: 16px 28px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.ch-nav-brand {
	display: flex; align-items: center; gap: 14px;
	text-decoration: none; color: inherit; flex-shrink: 0;
}
.ch-nav-logo       { height: 38px; width: auto; display: block; }
.ch-nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.ch-nav-brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.2px; color: #16131C; }
.ch-nav-brand-sub  { font-size: 11px; color: #8A8392; font-weight: 500; letter-spacing: 1px; }

.ch-nav-links {
	display: flex; align-items: center; gap: 30px;
	font-size: 15px; font-weight: 600;
}
.ch-nav-link       { color: #3A3543; text-decoration: none; padding: 6px 0; transition: color .15s; }
.ch-nav-link:hover { color: #E6147F; }
.ch-nav-link-cta   { display: none; }

.ch-nav-cta {
	background: #16131C; color: #fff; font-weight: 700; font-size: 14px;
	padding: 11px 22px; border-radius: 99px; white-space: nowrap;
	text-decoration: none; flex-shrink: 0;
	transition: background .2s, transform .2s;
}
.ch-nav-cta:hover { background: #E6147F; transform: translateY(-2px); }

/* ── Hamburger ── */
.ch-nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; padding: 9px;
	border: none; background: transparent; cursor: pointer;
	border-radius: 10px; transition: background .2s; flex-shrink: 0;
}
.ch-nav-toggle:hover { background: #F0EBE3; }
.ch-nav-toggle span {
	display: block; height: 2px; border-radius: 2px;
	background: #16131C; width: 100%;
	transition: transform .25s, opacity .2s;
}
.ch-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ch-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.ch-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Tablet nav compression (1024px) ── */
@media (max-width: 1024px) {
	.ch-nav       { padding: 14px 24px; }
	.ch-nav-links { gap: 20px; }
	.ch-nav-cta   { padding: 10px 18px; font-size: 13px; }
}

/* ── Mobile nav (768px) ── */
@media (max-width: 768px) {
	.ch-nav            { padding: 12px 16px; }
	.ch-nav-brand-sub  { display: none; }
	.ch-nav-brand-name { font-size: 15px; }
	.ch-nav-logo       { max-height: 32px; }
	.ch-nav-cta        { display: none; }
	.ch-nav-toggle     { display: flex; }

	/* Dropdown anchored to the bottom of .ch-site-header (position:sticky).
	   Using position:absolute instead of position:fixed avoids a Safari/WebKit
	   bug where backdrop-filter on a parent traps fixed descendants, sizing the
	   overlay to the header height (~60px) instead of the viewport. */
	.ch-nav-links {
		display: none;
		position: absolute;
		top: 100%; right: 0; left: 0;
		z-index: 150;
		flex-direction: column;
		align-items: stretch;
		background: rgba(251,250,248,.97);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border-bottom: 2px solid #EFEAE2;
		box-shadow: 0 8px 32px -8px rgba(22,19,28,.15);
		max-height: 80vh;
		overflow-y: auto;
	}
	.ch-nav-links.is-open { display: flex; }

	/* Full-width tap targets with separator lines */
	.ch-nav-links .ch-nav-link {
		display: block;
		padding: 16px 20px;
		font-size: 17px; font-weight: 700;
		color: #16131C;
		text-align: right;
		border-bottom: 1px solid #F0EBE3;
		width: 100%; transition: color .15s, background .15s;
	}
	.ch-nav-links .ch-nav-link:last-child  { border-bottom: none; }
	.ch-nav-links .ch-nav-link:hover       { color: #E6147F; background: rgba(230,20,127,.04); }

	/* CTA item inside the dropdown — pill button style */
	.ch-nav-links .ch-nav-link-cta {
		display: block;
		margin: 12px 20px 16px;
		padding: 13px 20px;
		background: #16131C; color: #fff;
		border-radius: 99px;
		text-align: center;
		border-bottom: none;
		width: auto;
	}
	.ch-nav-links .ch-nav-link-cta:hover { background: #E6147F; color: #fff; }
}


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.ch-footer        { max-width: 1220px; margin: 0 auto; padding: 64px 28px 48px; }

.ch-footer-inner {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 40px; flex-wrap: wrap;
	border-top: 1px solid #EAE4DB; padding-top: 40px;
}

.ch-footer-brand     { max-width: 320px; }
.ch-footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ch-footer-brand-row img { height: 34px; width: auto; }
.ch-footer-brand-name    { font-weight: 800; font-size: 16px; color: #16131C; }
.ch-footer-brand-desc    { font-size: 14px; line-height: 1.85; color: #7C7686; font-weight: 500; margin: 0; }

.ch-footer-links { display: flex; gap: 56px; flex-wrap: wrap; }

.ch-footer-col-title { font-size: 13px; font-weight: 700; color: #16131C; margin-bottom: 14px; }
.ch-footer-col-list  { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: #7C7686; font-weight: 500; }
.ch-footer-col-list a { color: #7C7686; text-decoration: none; transition: color .15s; }
.ch-footer-col-list a:hover { color: #16131C; }

.ch-footer-rainbow {
	display: flex; height: 6px; border-radius: 99px; overflow: hidden; margin-top: 36px;
}
.ch-footer-copy { text-align: center; font-size: 13px; color: #9C95A4; font-weight: 500; margin-top: 22px; }

@media (max-width: 768px) {
	.ch-footer        { padding: 40px 20px 36px; }
	.ch-footer-inner  { gap: 28px; }
	.ch-footer-links  { gap: 32px; }
}

@media (max-width: 480px) {
	.ch-footer-inner  { flex-direction: column; }
	.ch-footer-links  { gap: 24px; }
	.ch-footer-brand  { max-width: 100%; }
}


/* ═══════════════════════════════════════
   SEARCH FORM (404 + search results)
═══════════════════════════════════════ */

.search-form {
	display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
	margin: 0 auto; max-width: 420px;
}
.search-form label       { flex: 1; min-width: 0; }
.search-form input[type="search"] {
	width: 100%; padding: 12px 18px; border: 1.5px solid #E4DED4;
	border-radius: 99px; font-family: inherit; font-size: 15px; font-weight: 500;
	background: #fff; color: #16131C; outline: none;
	transition: border-color .2s;
}
.search-form input[type="search"]:focus  { border-color: #4B22E0; }
.search-form input[type="submit"] {
	padding: 12px 24px; background: #16131C; color: #fff; border: none;
	border-radius: 99px; font-family: inherit; font-size: 14px; font-weight: 700;
	cursor: pointer; white-space: nowrap; transition: background .2s;
}
/* ═══════════════════════════════════════
   WOOCOMMERCE PAGE SHELL
═══════════════════════════════════════ */

.ch-woo-page-title { color: #16131C; }

