/**
 * Negar Theme — base design system (all pages).
 * Home-only styles live in components.css (cards, rails, section headers) and home.css.
 *
 * Mobile first. All layout uses logical properties (inline/block) so that the
 * same rules work in RTL (Persian) and LTR without a separate rtl.css.
 *
 * Contents:
 *  1. Font
 *  2. Design tokens
 *  3. Reset & base
 *  4. Accessibility helpers
 *  5. Layout (container, sections, content+sidebar)
 *  6. Buttons & forms
 *  7. Header & navigation
 *  8. Footer
 *  9. Content (posts, pages, comments, 404)
 * 10. Editor placeholders
 * 11. WordPress core classes
 */

/* 1. Font -------------------------------------------------------------- */
/* Anjoman — the brand font supplied by the site owner (commercial, fontiran.com;
   see assets/fonts/LICENSE-Anjoman.txt). Only the two supplied files exist:
   Regular (400) for running text and Bold (700) for titles, buttons and emphasis.
   No other weight is declared and font-synthesis is off, so the browser never fakes one. */
@font-face {
	font-family: "Anjoman";
	src: url("../fonts/Anjoman-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Anjoman";
	src: url("../fonts/Anjoman-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* 2. Design tokens ----------------------------------------------------- */
:root {
	/* Design system (brand palette) */
	--color-primary: #222c5a;            /* navy: buttons, titles, active states */
	--color-footer: #172342;
	--color-secondary: #b8c0cc;          /* cool grey: strong borders, inactive dots */
	--color-background: #f7f8fa;         /* image frames, soft areas */
	--color-section: #f4f6fa;            /* banners and secondary sections */
	--color-surface: #e7ebf1;            /* borders, search field */
	--color-text: #15181f;
	--color-accent: #c6a86c;             /* gold: ornaments only (2.3:1 on white — never for text on white) */
	--color-white: #ffffff;

	/* Derived roles */
	--color-primary-strong: #18204a;
	--color-text-muted: #5b6375;         /* 6.0:1 on white */
	--color-gold-text: #8a6d2f;          /* gold for small text on white (4.9:1) */
	--color-focus: var(--color-primary);
	--color-bg: var(--color-white);
	--color-bg-soft: var(--color-background);
	--color-surface-warm: var(--color-section);
	--color-border: var(--color-surface);
	--color-border-strong: var(--color-secondary);
	--color-accent-strong: var(--color-primary); /* links and interactive text */

	/* Typography: one family, two files (see section 1).
	   Usage: .negar-font-regular → body text, descriptions, menu links, inputs;
	          .negar-font-bold    → titles, buttons, card titles, labels, prices.
	   The medium/semibold/heavy aliases map onto the two real weights so that no rule
	   can ask for a weight that does not exist. */
	--font-family-base: "Anjoman", Tahoma, sans-serif;
	--font-family-heading: var(--font-family-base);
	--font-size-2xs: 0.6875rem;
	--font-size-xs: 0.75rem;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;
	--font-size-md: 1.125rem;
	--font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	--font-size-xl: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
	--font-size-2xl: clamp(1.5rem, 1.1rem + 2vw, 2.625rem);
	--font-weight-regular: 400;
	--font-weight-bold: 700;
	--font-weight-medium: var(--font-weight-regular);
	--font-weight-semibold: var(--font-weight-bold);
	--font-weight-heavy: var(--font-weight-bold);
	/* Anjoman has tall ascenders (1.07em) and deep descenders (0.5em): Persian text needs
	   generous leading; letter-spacing stays 0 (spacing breaks the joined Persian script). */
	--line-height-base: 1.9;
	--line-height-tight: 1.55;
	--line-height-ui: 1.25;

	/* Spacing scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	/* Vertical rhythm between home sections: ~40px mobile → ~72px desktop (as in the references). */
	--section-space: clamp(2.5rem, 1.25rem + 3.5vw, 4.5rem);

	/* Radius: soft, consistent corners */
	--radius-xs: 6px;
	--radius-sm: 12px;                     /* buttons, inputs, image frames */
	--radius-md: 16px;                     /* cards, banners */
	--radius-lg: 18px;
	--radius-pill: 999px;

	/* Layout */
	--container-max: 1200px;               /* inner content width */
	--container-pad: var(--space-4);       /* side gutter */
	--header-height: 4rem;

	/* Product card image frame (overridden by the «نسبت کادر تصویر» setting). */

	/* Effects: very soft (navy-tinted, never heavy) */
	--shadow-xs: 0 1px 2px rgb(34 44 90 / 0.06);
	--shadow-sm: 0 1px 2px rgb(34 44 90 / 0.04), 0 2px 8px rgb(34 44 90 / 0.06);
	--shadow-md: 0 2px 4px rgb(34 44 90 / 0.04), 0 10px 24px rgb(34 44 90 / 0.09);
	--shadow-card: 0 0 0 1px rgb(34 44 90 / 0.05), 0 2px 10px rgb(34 44 90 / 0.05);
	--shadow-card-hover: 0 0 0 1px rgb(34 44 90 / 0.07), 0 12px 28px rgb(34 44 90 / 0.1);
	--focus-ring: 0 0 0 3px rgb(34 44 90 / 0.2);
	--transition: 0.2s ease;
	--ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

	/* Controls: shared sizes for buttons, icon buttons and inputs */
	--control-h: 2.75rem;                  /* 44px: touch-friendly default */
	--control-h-sm: 2.375rem;              /* 38px: compact (banners, cards) */
	--icon-button: 2.5rem;                 /* 40px circle (header, sliders) */
}

@media (min-width: 768px) {
	:root {
		--container-pad: var(--space-5);
	}
}

@media (min-width: 1024px) {
	:root {
		--header-height: 5rem;
	}
}

/* 3. Reset & base ------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

html {
	font-synthesis: none;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-base);
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* The two font styles as reusable classes (used by components and available to editors). */
.negar-font-regular {
	font-family: var(--font-family-base);
	font-weight: var(--font-weight-regular);
}

.negar-font-bold {
	font-family: var(--font-family-base);
	font-weight: var(--font-weight-bold);
}

strong,
b,
th {
	font-weight: var(--font-weight-bold);
}

/* Icons: block-level inside flex controls so they centre exactly (no baseline gap). */
.negar-icon {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

/* Uploaded icon (settings): same box as the built-in SVG, never stretched. */
img.negar-icon--custom {
	object-fit: contain;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 var(--space-4);
	line-height: var(--line-height-tight);
	font-family: var(--font-family-heading);
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
}

h1 { font-size: var(--font-size-2xl); line-height: 1.45; }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }

p,
ul,
ol,
figure {
	margin-block: 0 var(--space-4);
}

a {
	color: var(--color-accent-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-primary);
}

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

hr {
	border: 0;
	border-block-start: 1px solid var(--color-border);
	margin-block: var(--space-6);
}

/* Latin/numeric input direction stays readable inside RTL. */
input[type="email"],
input[type="url"],
input[type="tel"] {
	direction: ltr;
	text-align: end;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 4. Accessibility helpers -------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus,
.screen-reader-text:focus {
	position: fixed !important;
	inset-block-start: var(--space-2);
	inset-inline-start: var(--space-2);
	z-index: 100000;
	width: auto;
	height: auto;
	padding: var(--space-3) var(--space-4);
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--color-white);
	color: var(--color-text);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md), var(--focus-ring);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
}

/* 5. Layout ------------------------------------------------------------ */
/* Every inner section uses .container, so all sections share exactly the
   same left/right edges (1200px content box). Only the hero is full width. */
.container {
	width: 100%;
	max-width: calc(var(--container-max) + 2 * var(--container-pad));
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
	padding-block: var(--space-6) var(--section-space);
}

.site-main--home {
	padding-block-start: 0;
}

.home-section {
	/* flow-root: inner negative margins (scroller shadow room) must not collapse into the gap. */
	display: flow-root;
	margin-block-start: var(--section-space);
}

.home-section--hero {
	margin-block-start: 0;
}

.layout {
	display: grid;
	gap: var(--space-6);
}

@media (min-width: 1024px) {
	.layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.page-header {
	margin-block-end: var(--space-6);
}

.page-title {
	margin-block-end: var(--space-2);
}

/* 6. Buttons & forms --------------------------------------------------- */
/* One button system for the whole theme:
 *   size     default 44px (--control-h) · .button--sm 38px · same padding per size
 *   label    Anjoman Bold, line-height 1, centred by flex (text and icon share the axis)
 *   icon     16px, 0.5rem gap, never shrinks
 *   radius   --radius-sm (12px)
 *   variants primary (navy) · outline (white, hairline + soft shadow) · light · link-style */
.button,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: var(--control-h);
	padding: 0 var(--space-5);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	box-shadow: 0 1px 2px rgb(34 44 90 / 0.12);
	color: var(--color-white);
	font: inherit;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.button:hover,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: #2b3770;
	box-shadow: 0 4px 14px rgb(34 44 90 / 0.18);
	color: var(--color-white);
}

.button:active,
.wp-element-button:active,
button[type="submit"]:active,
input[type="submit"]:active {
	box-shadow: 0 1px 2px rgb(34 44 90 / 0.12);
	transform: translateY(1px);
}

.button--primary {
	background: var(--color-primary);
	color: var(--color-white);
}

.button--sm {
	min-height: var(--control-h-sm);
	padding-inline: var(--space-4);
	font-size: var(--font-size-xs);
}

/* Quiet secondary button: white, hairline border and a whisper of shadow. */
.button--outline {
	border-color: rgb(34 44 90 / 0.16);
	background: var(--color-white);
	box-shadow: var(--shadow-xs);
	color: var(--color-primary);
}

.button--outline:hover {
	border-color: rgb(34 44 90 / 0.32);
	background: var(--color-white);
	box-shadow: 0 4px 14px rgb(34 44 90 / 0.1);
	color: var(--color-primary);
}

/* Light button on dark/photographic surfaces. */
.button--light {
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
	color: var(--color-primary);
}

.button--light:hover {
	background: var(--color-white);
	box-shadow: var(--shadow-md);
	color: var(--color-primary);
}

.button .negar-icon {
	width: 16px;
	height: 16px;
	transition: transform var(--transition);
}

/* Forward icons nudge forward on hover (RTL: to the left). */
.button:hover .negar-icon--chevron-l,
.button:hover .negar-icon--arrow-l {
	transform: translateX(-3px);
}

.button:hover .negar-icon--chevron-r {
	transform: translateX(3px);
}

/* The arrow icon points "forward" in reading order. */
[dir="ltr"] .negar-icon--arrow-l {
	transform: scaleX(-1);
}

[dir="ltr"] .button:hover .negar-icon--arrow-l {
	transform: scaleX(-1) translateX(-3px);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	min-height: var(--control-h);
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-surface);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	color: var(--color-text);
	font: inherit;
	font-size: var(--font-size-sm);
	transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

input:hover,
select:hover,
textarea:hover {
	border-color: var(--color-secondary);
}

input::placeholder,
textarea::placeholder {
	color: #8a92a3;
	opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: rgb(34 44 90 / 0.45);
	box-shadow: var(--focus-ring);
}

/* Search forms: site search and the header product search share one minimal style —
 * very light field, no heavy border, hairline on hover, soft ring on focus, a quiet
 * icon button at the inline end. */
.search-form,
.header-search {
	position: relative;
	display: flex;
	align-items: center;
}

.search-form .search-form__field,
.header-search .header-search__field {
	min-height: var(--control-h);
	padding-block: 0;
	padding-inline: var(--space-4) 2.75rem;
	border: 1px solid var(--color-surface);
	border-radius: var(--radius-pill);
	background: var(--color-background);
	box-shadow: none;
	color: var(--color-text);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-ui);
	-webkit-appearance: none;
	appearance: none;
}

.search-form .search-form__field:hover,
.header-search .header-search__field:hover {
	border-color: var(--color-surface);
}

.search-form .search-form__field:focus,
.header-search .header-search__field:focus {
	border-color: rgb(34 44 90 / 0.28);
	background: var(--color-white);
	box-shadow: 0 0 0 4px rgb(34 44 90 / 0.07);
}

/* Native clear "x" of search inputs clashes with the icon button. */
.search-form__field::-webkit-search-cancel-button,
.header-search__field::-webkit-search-cancel-button {
	display: none;
}

.search-form .search-form__submit,
.header-search .header-search__submit {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	box-shadow: none;
	color: var(--color-primary);
	transform: translateY(-50%);
}

.search-form .search-form__submit:hover,
.header-search .header-search__submit:hover,
.search-form__field:focus ~ .search-form__submit,
.header-search__field:focus ~ .header-search__submit {
	background: transparent;
	box-shadow: none;
	color: var(--color-primary);
}

.search-form .search-form__submit:active,
.header-search .header-search__submit:active {
	transform: translateY(-50%);
}

.search-form__submit .negar-icon,
.header-search__submit .negar-icon {
	width: 18px;
	height: 18px;
}

/* 7. Header & navigation ---------------------------------------------- */
/* Top bar (navy): notice on the start side, trust features + phone on the end side. */
.top-bar {
	background: var(--color-footer);
	color: rgb(255 255 255 / 0.88);
	font-size: var(--font-size-xs);
}

.top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: 2.25rem;
}

.top-bar__text {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
	margin: 0;
	line-height: 1.6;
}

.top-bar__text > span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.top-bar__text .negar-ornament {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	color: var(--color-accent);
}

/* The ornament's centre disc is drawn white; on navy it should read as navy. */
.top-bar__text .negar-ornament circle[fill="#fff"] {
	fill: var(--color-footer);
}

.top-bar__list {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	line-height: 1.6;
	white-space: nowrap;
}

.top-bar__item .negar-icon {
	flex-shrink: 0;
	color: var(--color-accent);
}

.top-bar__contact {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: inherit;
	text-decoration: none;
}

.top-bar__contact:hover {
	color: var(--color-accent);
}

/* Phones: one compact row — the notice, then only the phone (features return at ≥768px). */
@media (max-width: 767px) {
	.top-bar__item:not(.top-bar__item--phone) {
		display: none;
	}

	.top-bar__text {
		font-size: var(--font-size-2xs);
	}
}

@media (max-width: 1023px) {
	.top-bar__item:not(.top-bar__item--phone) + .top-bar__item:not(.top-bar__item--phone) {
		display: none;
	}
}

.site-header {
	position: relative;
	z-index: 50;
	overflow-x: clip;
	background: var(--color-white);
	border-block-end: 1px solid var(--color-border);
}

/* Persian corner ornaments (assets/images/negar-header-corner.svg): the rosette sits in the
 * header's top corners and its vines run inwards. Shown only where the side gutter is wide
 * enough; the ornament is never wider than the gutter, so it cannot reach the logo, menu or
 * actions. The file is drawn for the right corner; the left one is its mirror image. */
.site-header__decor {
	display: none;
}

@media (min-width: 1328px) {
	.site-header__decor {
		position: absolute;
		inset-block: 0;
		display: block;
		width: min(140px, calc((100vw - var(--container-max)) / 2 - 8px));
		background: url("../images/negar-header-corner.svg") right top / 100% auto no-repeat;
		pointer-events: none;
	}

	.site-header__decor--start {
		right: 0;
	}

	.site-header__decor--end {
		left: 0;
		transform: scaleX(-1);
	}
}

/* Mobile: [logo][search · cart][menu] — search opens as a row below. */
.site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	grid-template-areas:
		"brand actions toggle"
		"search search search"
		"nav    nav    nav";
	align-items: center;
	gap: 0 var(--space-1);
	min-height: 4rem;
	padding-block: var(--space-2);
}

.menu-toggle {
	grid-area: toggle;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--icon-button);
	height: var(--icon-button);
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	box-shadow: none;
	color: var(--color-primary);
	cursor: pointer;
	transition: background-color var(--transition);
}

.menu-toggle:hover {
	background: var(--color-background);
}

.menu-toggle .negar-icon {
	width: 24px;
	height: 24px;
}

.site-branding {
	grid-area: brand;
	display: flex;
	min-width: 0;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
	color: var(--color-primary);
	text-decoration: none;
}

/* Uploaded logo image (alone): sized by height, width follows the image's own ratio — never
 * stretched, squeezed or cropped. Widths set in «تنظیمات نگار» override this (inc/logo.php).
 * Two classes on purpose: WooCommerce pages load core «.woocommerce-page img { height: auto;
 * max-width: 100% }» (0-1-1), which beat a single class and showed the logo at its natural size. */
.site-logo .site-logo__img {
	display: block;
	flex-shrink: 0;
	width: auto;
	max-width: none;
	height: 3.5rem;
	object-fit: contain;
}

.site-logo__mark {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
}

.site-logo__words {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.site-logo__text {
	overflow: hidden;
	color: var(--color-primary);
	font-family: var(--font-family-heading);
	font-size: 1.125rem;
	font-weight: var(--font-weight-bold);
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.site-logo__tagline {
	overflow: hidden;
	color: var(--color-text-muted);
	font-size: var(--font-size-2xs);
	line-height: 1.6;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.site-header__search {
	grid-area: search;
	display: none;
	padding-block: var(--space-1) var(--space-2);
}

.site-header.is-search-open .site-header__search,
html:not(.js) .site-header__search {
	display: block;
}

@media (max-width: 1023px) {
	.site-header.is-search-open .site-header__search {
		animation: negar-reveal 0.2s var(--ease-out);
	}
}

@keyframes negar-reveal {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

.header-actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: var(--space-1);
}

/* Header icon buttons: one size (40px), one icon size (22px), no border; a soft tint on hover. */
.header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--icon-button);
	height: var(--icon-button);
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	box-shadow: none;
	color: var(--color-primary);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition);
}

.header-action:hover,
.header-action[aria-expanded="true"] {
	background: var(--color-background);
	box-shadow: none;
	color: var(--color-primary);
}

.header-action:active {
	transform: none;
}

.header-action .negar-icon {
	width: 22px;
	height: 22px;
}

/* The account link lives in the drawer-less header only on larger screens. */
.header-action--account {
	display: none;
}

.header-action__count {
	/* Small corner badge: sits on the button's corner, outside the 22px icon, never over it. */
	position: absolute;
	/* The 22px icon sits centred in a 40px button (9px margin): anchoring the badge at the
	 * button's corner and nudging it out keeps it clear of the basket's outline. */
	inset-block-start: -2px;
	inset-inline-end: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 1.125rem;
	height: 1.125rem;
	padding: 0 0.3rem;
	border: 2px solid var(--color-white);
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-footer);
	font-size: 0.625rem;
	font-weight: var(--font-weight-bold);
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-align: center;
	pointer-events: none;
}

/* Hidden while the cart is empty (WooCommerce fragments may still print «0»). */
.header-action__count:empty {
	display: none;
}

/* Primary navigation.
 * Without JS (mobile) the menu is a plain list under the header row.
 * With JS (mobile) it becomes an off-canvas drawer from the inline-start side. */
.primary-nav {
	grid-area: nav;
}

.primary-nav__head {
	display: none;
}

.primary-menu,
.primary-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	display: block;
	padding: var(--space-3) 0;
	color: var(--color-text);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-ui);
	text-decoration: none;
	transition: color var(--transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	color: var(--color-primary);
}

/* Active item: Bold on the mobile drawer only (on desktop the gold underline marks it and
   the label keeps its width). */
@media (max-width: 1023px) {
	.primary-menu .current-menu-item > a,
	.primary-menu .current-menu-ancestor > a {
		font-weight: var(--font-weight-bold);
	}
}

.primary-menu .sub-menu {
	padding-inline-start: var(--space-4);
	border-inline-start: 2px solid var(--color-border);
}

.negar-menu-hint {
	margin: 0;
	padding-block: var(--space-3);
	font-size: var(--font-size-sm);
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgb(21 24 31 / 0.45);
}

.nav-backdrop[hidden] {
	display: none;
}

@media (max-width: 1023px) {
	.js .primary-nav {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		z-index: 100;
		width: min(85vw, 340px);
		padding: var(--space-4) var(--space-5) var(--space-6);
		overflow-y: auto;
		background: var(--color-white);
		box-shadow: var(--shadow-md);
		visibility: hidden;
		transform: translateX(-100%);
		/* Hide only after the slide-out has finished. */
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	[dir="rtl"].js .primary-nav {
		transform: translateX(100%);
	}

	/* Visible immediately on open, so focus can move into the drawer synchronously. */
	.js .site-header.is-menu-open .primary-nav {
		visibility: visible;
		transform: none;
		transition: transform 0.25s ease, visibility 0s;
	}

	.js .primary-nav__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-block-end: var(--space-3);
		padding-block-end: var(--space-3);
		border-block-end: 1px solid var(--color-border);
	}

	.primary-nav__title {
		color: var(--color-primary);
		font-family: var(--font-family-heading);
		font-weight: var(--font-weight-bold);
	}

	.primary-nav__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: var(--icon-button);
		height: var(--icon-button);
		min-height: 0;
		padding: 0;
		border-radius: var(--radius-pill);
		background: transparent;
		box-shadow: none;
		color: var(--color-text);
	}

	.primary-nav__close .negar-icon {
		width: 22px;
		height: 22px;
	}

	.primary-nav__close:hover {
		background: var(--color-background);
		color: var(--color-primary);
	}

	.primary-menu > li + li {
		border-block-start: 1px solid var(--color-border);
	}

	.has-menu-open {
		overflow: hidden;
	}
}

@media (min-width: 1024px) {
	.site-header__inner {
		/* The menu keeps its natural width; the search takes what is left (next to the icons). */
		grid-template-columns: auto auto minmax(140px, 1fr) auto;
		grid-template-areas: "brand nav search actions";
		gap: var(--space-4);
		min-height: var(--header-height);
		padding-block: 0;
	}

	.menu-toggle,
	.nav-backdrop,
	.header-action--search {
		display: none !important;
	}

	.site-header__search {
		display: block;
		justify-self: end;
		width: 100%;
		max-width: 300px;
		padding: 0;
	}

	.header-search .header-search__field {
		min-height: 2.625rem;
	}

	.header-action--account {
		display: inline-flex;
	}

	.site-logo .site-logo__img {
		height: 4.5rem;
	}

	.site-logo__mark {
		width: 2.875rem;
		height: 2.875rem;
	}

	.site-logo__text {
		font-size: 1.25rem;
	}

	.primary-menu {
		display: flex;
		flex-wrap: nowrap;
		gap: var(--space-1) var(--space-4);
		white-space: nowrap;
	}

	.primary-menu > li {
		position: relative;
	}

	.primary-menu > li > a {
		position: relative;
		display: inline-flex;
		align-items: center;
		gap: 0.375rem;
		padding-block: 1.75rem;
		color: var(--color-primary);
		font-size: 0.9375rem;
	}

	.primary-menu > .current-menu-item > a,
	.primary-menu > .current-menu-ancestor > a {
		font-weight: var(--font-weight-bold);
	}

	/* Gold underline sits on the header's bottom edge (reference). */
	.primary-menu > li > a::after {
		height: 3px;
	}

	/* Gold underline for the active and hovered item. */
	.primary-menu > li > a::after {
		content: "";
		position: absolute;
		inset-inline: 0;
		inset-block-end: 1.15rem;
		height: 2px;
		border-radius: var(--radius-pill);
		background: var(--color-accent);
		transform: scaleX(0);
		transition: transform var(--transition);
	}

	.primary-menu > li > a:hover::after,
	.primary-menu > .current-menu-item > a::after,
	.primary-menu > .current-menu-ancestor > a::after {
		transform: scaleX(1);
	}

	/* Dropdown indicator. */
	.primary-menu > .menu-item-has-children > a::before {
		content: "";
		order: 2;
		width: 0.4rem;
		height: 0.4rem;
		margin-block-start: -0.2rem;
		/* Physical borders so the chevron points down in RTL and LTR. */
		border-bottom: 1.5px solid currentColor;
		border-right: 1.5px solid currentColor;
		transform: rotate(45deg);
	}

	/* Dropdowns open on hover and on keyboard focus (focus-within). */
	.primary-menu .sub-menu {
		position: absolute;
		inset-block-start: 100%;
		inset-inline-start: 0;
		z-index: 20;
		min-width: 220px;
		padding: var(--space-2) 0;
		border: 0;
		border-radius: var(--radius-md);
		background: var(--color-white);
		box-shadow: var(--shadow-card-hover);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
	}

	.primary-menu .sub-menu .sub-menu {
		inset-block-start: 0;
		inset-inline-start: 100%;
	}

	.primary-menu li:hover > .sub-menu,
	.primary-menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-menu .sub-menu a {
		padding: 0.625rem var(--space-4);
		font-size: 0.875rem;
		font-weight: var(--font-weight-regular);
	}

	.primary-menu .sub-menu a:hover {
		background: var(--color-background);
	}
}

/* Small laptops: keep the header on one row. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.site-logo__tagline {
		display: none;
	}

	.primary-menu {
		gap: var(--space-1) var(--space-3);
	}

	.primary-menu > li > a {
		font-size: 0.875rem;
	}
}

@media (min-width: 1280px) {
	.site-header__inner {
		gap: var(--space-6);
	}

	.primary-menu {
		gap: var(--space-1) var(--space-5);
	}
}

/* 8. Footer ------------------------------------------------------------ */
.site-footer {
	position: relative;
	overflow: hidden;
	margin-block-start: auto;
	background: var(--color-footer);
	color: #c9d0dc;
	font-size: var(--font-size-sm);
}

/* Faint Persian ornaments (assets/images/negar-footer-corner.svg, drawn in currentColor for the
 * bottom-left corner, used as a mask). Phones/tablets: the two bottom corners, beside the short
 * copyright line. Wide screens: the two top corners (flipped), inside the side gutter.
 * Never over footer text, links or the trust seal. */
.site-footer__decor {
	position: absolute;
	inset-block-end: 0;
	width: 56px;
	height: 56px;
	background-color: rgb(183 208 223 / 0.32);
	-webkit-mask: url("../images/negar-footer-corner.svg") center / contain no-repeat;
	mask: url("../images/negar-footer-corner.svg") center / contain no-repeat;
	pointer-events: none;
}

.site-footer__decor--start {
	right: 0;
	transform: scaleX(-1);
}

.site-footer__decor--end {
	left: 0;
}

@media (min-width: 1328px) {
	.site-footer__decor {
		inset-block: 0 auto;
		width: min(170px, calc((100vw - var(--container-max)) / 2 - 8px));
		height: auto;
		aspect-ratio: 1;
	}

	.site-footer__decor--start {
		transform: scale(-1, -1);
	}

	.site-footer__decor--end {
		transform: scaleY(-1);
	}
}

/* Layout (see footer.php). Compact, per the reference designs.
 * Phones: centred brand · two menu columns · contact · addresses · social + seal.
 * >=768px: brand on its own row, then menus / contact / social in columns.
 * >=1100px: one row — brand · quick links · services · contact · social; addresses below. */
.site-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-5) var(--space-4);
	padding-block: var(--space-6) var(--space-5);
}

.site-footer__brand,
.site-footer__contact,
.site-footer__social {
	grid-column: 1 / -1;
}

/* Phones: brand block fully centred (logo, name, tagline, intro). */
.site-footer__brand {
	padding-block-end: var(--space-5);
	border-block-end: 1px solid rgb(255 255 255 / 0.1);
	text-align: center;
}

.site-footer__brand .site-logo {
	justify-content: center;
}

.site-footer__contact {
	padding-block-start: var(--space-5);
	border-block-start: 1px solid rgb(255 255 255 / 0.1);
}

.site-footer__title {
	margin: 0 0 var(--space-4);
	color: var(--color-white);
	font-family: var(--font-family-heading);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
}

.site-footer .site-logo,
.site-footer .site-logo__text {
	color: var(--color-white);
}

.site-footer .site-logo__tagline {
	color: #9aa3b5;
}

.site-footer .site-logo__img {
	height: 5.5rem;
}

.site-footer__about {
	max-width: 21rem;
	margin: var(--space-3) auto 0;
	color: #c9d0dc;
	font-size: var(--font-size-xs);
	line-height: 2;
}

.footer-menu,
.contact-list,
.social-links,
.footer-addresses {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li + li {
	margin-block-start: var(--space-3);
}

.footer-menu a,
.contact-list a {
	color: #c9d0dc;
	text-decoration: none;
	transition: color var(--transition);
}

.footer-menu a:hover,
.contact-list a:hover {
	color: var(--color-accent);
}

/* Contact: one wrapping row on phones, a list on desktop. */
.contact-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3) var(--space-4);
	color: #c9d0dc;
}

.contact-list__item {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

.contact-list__item .negar-icon {
	flex-shrink: 0;
	color: var(--color-accent);
}

/* Addresses: full text, title in gold, never truncated. */
.footer-addresses {
	display: grid;
	grid-column: 1 / -1;
	gap: var(--space-4);
	padding-block-start: var(--space-5);
	border-block-start: 1px solid rgb(255 255 255 / 0.1);
}

.footer-address {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	min-width: 0;
}

.footer-address .negar-icon {
	flex-shrink: 0;
	margin-block-start: 0.3em;
	color: var(--color-accent);
}

.footer-address__text {
	margin: 0;
	color: #c9d0dc;
	line-height: 2;
	overflow-wrap: anywhere;
}

.footer-address__title {
	margin-inline-end: var(--space-1);
	color: var(--color-accent);
	font-weight: var(--font-weight-bold);
}

.footer-address__title::after {
	content: ":";
}

/* Social icons + trust seal in one row (centred on phones). */
.site-footer__social-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-4);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgb(255 255 255 / 0.22);
	border-radius: var(--radius-pill);
	color: var(--color-white);
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.social-links a:hover {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-footer);
}

/* Phones (reference: compact but clean). Brand centred; only «دسترسی سریع» collapses
 * (<details>, a bordered bar); services in two columns; contact on two short lines; the two
 * addresses one after the other; social icons + seal in one row. Few hairlines, small gaps. */
@media (max-width: 767px) {
	.site-footer__grid {
		gap: var(--space-5) var(--space-4);
		padding-block: var(--space-5) var(--space-4);
	}

	.site-footer__brand {
		padding-block-end: 0;
		border: 0;
	}

	/* Short gold rule under the brand block. */
	.site-footer__brand::after {
		content: "";
		display: block;
		width: 3rem;
		height: 2px;
		margin: var(--space-4) auto 0;
		border-radius: 2px;
		background: var(--color-accent);
	}

	.site-footer .site-logo__img {
		height: 4rem;
	}

	.site-footer__about {
		margin-block-start: var(--space-2);
		line-height: 1.9;
	}

	/* Section headings: a short gold bar at the start. */
	.site-footer__col .site-footer__title {
		display: flex;
		align-items: center;
		gap: var(--space-2);
		margin-block-end: var(--space-3);
		font-size: var(--font-size-md);
	}

	.site-footer__col .site-footer__title::before {
		content: "";
		flex: none;
		width: 3px;
		height: 1.1em;
		border-radius: 2px;
		background: var(--color-accent);
	}

	.footer-nav,
	.site-footer__contact {
		grid-column: 1 / -1;
	}

	/* «دسترسی سریع»: bordered bar with a chevron. */
	.footer-acc {
		border: 1px solid rgb(255 255 255 / 0.16);
		border-radius: var(--radius-sm);
	}

	.footer-acc__summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		min-height: 3.25rem;
		padding-inline: var(--space-4);
		cursor: pointer;
		list-style: none;
	}

	.footer-acc__summary::-webkit-details-marker {
		display: none;
	}

	.footer-acc .footer-acc__summary .site-footer__title {
		margin: 0;
	}

	.footer-acc .footer-acc__summary .site-footer__title::before {
		content: none;
	}

	.footer-acc__summary .negar-icon {
		flex: none;
		color: var(--color-accent);
		transition: transform var(--transition);
	}

	.footer-acc[open] .footer-acc__summary .negar-icon {
		transform: rotate(180deg);
	}

	.footer-acc .footer-menu {
		padding: 0 var(--space-4) var(--space-4);
	}

	/* Menus: two columns of links with a small gold dot. */
	.site-footer .footer-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-3) var(--space-4);
	}

	.site-footer .footer-menu li + li {
		margin: 0;
	}

	.site-footer .footer-menu a {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);
	}

	.site-footer .footer-menu a::before {
		content: "";
		flex: none;
		width: 4px;
		height: 4px;
		border-radius: 50%;
		background: var(--color-accent);
	}

	/* Contact: hairline above, two short lines (phones side by side, e-mail below). */
	.site-footer__contact {
		padding-block-start: var(--space-5);
	}

	.contact-list {
		justify-content: space-around;
		gap: var(--space-3) var(--space-5);
	}

	/* Addresses: hairline above, compact lines, small gap between the two. */
	.footer-addresses {
		gap: var(--space-3);
		padding-block-start: var(--space-4);
	}

	.footer-address__text {
		line-height: 1.95;
	}

	/* Social: no heading (the icons speak for themselves); icons + seal in one row. */
	.site-footer__social > .site-footer__title {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.site-footer__social {
		padding-block-start: var(--space-4);
		border-block-start: 1px solid rgb(255 255 255 / 0.1);
	}

	.site-footer__social-row {
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: var(--space-3);
	}

	.site-footer__social .trust-seal {
		margin: 0;
	}

	.site-footer__bottom {
		border: 0;
	}

	.site-footer__copyright {
		padding-block: 0 var(--space-4);
	}
}

/* Wider screens: «دسترسی سریع» is a plain, always-open column. */
@media (min-width: 768px) {
	.footer-acc__summary {
		display: block;
		cursor: default;
		list-style: none;
	}

	.footer-acc__summary::-webkit-details-marker {
		display: none;
	}

	.footer-acc__summary .negar-icon {
		display: none;
	}
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-6) var(--space-5);
		padding-block: var(--space-7) var(--space-6);
	}

	.site-footer__brand {
		padding: 0;
		border: 0;
		text-align: start;
	}

	.site-footer__brand .site-logo {
		justify-content: flex-start;
	}

	.site-footer__about {
		max-width: 24rem;
		margin-inline: 0;
		font-size: var(--font-size-sm);
	}

	.site-footer__contact,
	.site-footer__social {
		grid-column: auto;
		padding: 0;
		border: 0;
	}

	.contact-list {
		flex-direction: column;
		justify-content: flex-start;
	}

	.site-footer__social-row,
	.social-links {
		justify-content: flex-start;
	}

	.site-footer__social-row {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Addresses: a full-width row under the columns. */
	.footer-addresses {
		order: 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-7);
	}
}

@media (min-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr));
		column-gap: var(--space-6);
	}

	.site-footer__brand {
		grid-column: auto;
	}

	.site-footer__brand .site-logo__text {
		font-size: 1.5rem;
	}
}

/* Trust seal (eNamad): a fixed white tile so the official badge always sits in a calm,
 * standard-sized frame (eNamad badges are ~125×136). */
.trust-seal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.trust-seal > a,
.trust-seal > img,
.trust-seal__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 6rem;
	padding: var(--space-2);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
	transition: transform var(--transition);
}

.trust-seal > a:hover,
.trust-seal__link:hover {
	transform: translateY(-2px);
}

.trust-seal img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

/* Empty slot (administrators only, until the real seal is registered): a small outlined tag. */
.trust-seal--empty {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: var(--space-2) var(--space-4);
	border: 1px solid rgb(255 255 255 / 0.22);
	border-radius: var(--radius-sm);
	color: #c9d0dc;
	font-size: var(--font-size-xs);
}

.trust-seal__label {
	color: inherit;
}

.site-footer__bottom {
	position: relative;
	border-block-start: 1px solid rgb(255 255 255 / 0.1);
}

.site-footer__copyright {
	margin: 0;
	padding-block: var(--space-4);
	color: #9aa3b5;
	font-size: var(--font-size-xs);
	text-align: center;
}

.site-footer :focus-visible {
	outline-color: var(--color-accent);
}

/* 9. Content ------------------------------------------------------------ */
.post-list {
	display: grid;
	gap: var(--space-5);
}

@media (min-width: 768px) {
	.post-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-card {
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
}

.post-card .entry-thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card__body {
	padding: var(--space-5);
}

.post-card .entry-title {
	font-size: var(--font-size-md);
}

.post-card .entry-title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-card .entry-title a:hover {
	color: var(--color-primary);
}

.entry-meta {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

.entry-thumbnail {
	display: block;
	margin-block-end: var(--space-5);
}

.post-card .entry-thumbnail {
	margin: 0;
}

.entry-thumbnail img {
	border-radius: var(--radius-md);
}

.post-card .entry-thumbnail img {
	border-radius: 0;
}

.entry-content > * + * {
	margin-block-start: var(--space-4);
}

.entry-content .alignwide {
	max-width: var(--container-max);
}

.entry-footer {
	margin-block-start: var(--space-6);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-4);
	margin-block-start: var(--space-6);
}

.pagination .nav-links {
	justify-content: center;
	gap: var(--space-2);
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--color-accent-strong);
	background: var(--color-accent-strong);
	color: var(--color-white);
}

.comments-area {
	margin-block-start: var(--space-7);
}

.comment-list {
	padding-inline-start: 0;
	list-style: none;
}

.error-404 .search-form,
.error-404 .woocommerce-product-search {
	max-width: 480px;
	margin-block: var(--space-5);
}

.widget {
	margin-block-end: var(--space-6);
}

.widget-title {
	font-size: var(--font-size-md);
}

/* 10. Editor placeholders (visible only to site editors) --------------- */
.negar-placeholder {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-5);
	border: 2px dashed var(--color-border-strong);
	border-radius: var(--radius-md);
	background: var(--color-bg-soft);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

.negar-placeholder__title {
	color: var(--color-text);
	font-size: var(--font-size-base);
}

.home-section--hero.is-empty {
	padding-block-start: var(--space-6);
}

/* 11. WordPress core classes ------------------------------------------ */
.alignleft {
	float: left;
	margin-block-end: var(--space-4);
	margin-inline-end: var(--space-5);
}

.alignright {
	float: right;
	margin-block-end: var(--space-4);
	margin-inline-start: var(--space-5);
}

[dir="rtl"] .alignleft {
	margin-inline: var(--space-5) 0;
}

[dir="rtl"] .alignright {
	margin-inline: 0 var(--space-5);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
	margin-block-end: var(--space-4);
}

.wp-caption-text,
.gallery-caption,
figcaption {
	margin-block-start: var(--space-2);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	text-align: center;
}

.sticky .entry-title::after {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-inline-start: var(--space-2);
	border-radius: 50%;
	background: var(--color-secondary);
	vertical-align: middle;
}

.bypostauthor > .comment-body .fn {
	color: var(--color-primary);
}

/* Demo pages: the «متن نمونه» note at the top of sample page content. */
.negar-demo-note {
	padding: var(--space-3) var(--space-4);
	border-inline-start: 3px solid var(--color-accent);
	border-radius: var(--radius-sm);
	background: var(--color-section);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}
