/* ==========================================================================
   هدر
   ========================================================================== */
.negin-header {
	background: var(--negin-surface);
	border-bottom: 1px solid var(--negin-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.negin-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
}
.negin-logo a { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.negin-logo img { max-height: 38px; display: block; width:auto; }

/* ---- منوی اصلی + دراپ‌دان ---- */
.negin-main-menu { flex: 1; display: flex; justify-content: center; }
.negin-main-menu > div,
.negin-main-menu > ul { display: flex; align-items: center; gap: 4px; }
.negin-main-menu li { position: relative; }
.negin-main-menu > div > li > a,
.negin-main-menu > ul > li > a {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 14px;
	border-radius: var(--negin-radius-sm);
	font-weight: 500;
	font-size: 14.5px;
	color: var(--negin-text);
	transition: background .15s ease, color .15s ease;
}
.negin-main-menu > div > li > a:hover,
.negin-main-menu > ul > li > a:hover,
.negin-main-menu li.current-menu-item > a {
	background: var(--negin-bg);
	color: var(--negin-primary);
}

/* فلش برای آیتم‌های دارای زیرمنو */
.negin-main-menu li.menu-item-has-children > a::after {
	content: '';
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-inline-end: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .55;
	transition: transform .15s ease;
}
.negin-main-menu li.menu-item-has-children:hover > a::after { transform: rotate(225deg); margin-top: 3px; }

/* پنل زیرمنو */
.negin-main-menu .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 220px;
	background: var(--negin-surface);
	border: 1px solid var(--negin-border);
	border-radius: var(--negin-radius);
	box-shadow: 0 16px 40px rgba(20,20,30,.12);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	z-index: 10;
}
.negin-main-menu li.menu-item-has-children:hover > .sub-menu,
.negin-main-menu li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.negin-main-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--negin-radius-sm);
	font-size: 14px;
	color: var(--negin-text);
}
.negin-main-menu .sub-menu a:hover { background: var(--negin-bg); color: var(--negin-primary); }
.negin-main-menu .sub-menu .sub-menu { top: 0; right: 100%; margin-right: 6px; }

/* ---- اکشن‌های سمت راست هدر (اعلان، سبد خرید، حالت تیره) ---- */
.negin-header-actions { display: flex; align-items: center; gap: 8px; }
.negin-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--negin-bg);
	border: 1px solid transparent;
	color: var(--negin-text);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.negin-icon-btn:hover { background: #fff; border-color: var(--negin-border); color: var(--negin-primary); }
.negin-icon-btn svg { width: 19px; height: 19px; }
.negin-icon-badge {
	position: absolute;
	top: -3px;
	left: -3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--negin-primary);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

/* ---- دکمه همبرگری موبایل ---- */
.negin-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--negin-bg);
	border: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.negin-menu-toggle span,
.negin-menu-toggle span::before,
.negin-menu-toggle span::after {
	content: '';
	display: block;
	width: 18px;
	height: 2px;
	background: var(--negin-text);
	border-radius: 2px;
	position: relative;
	transition: transform .2s ease, opacity .2s ease;
}
.negin-menu-toggle span::before { position: absolute; top: -6px; }
.negin-menu-toggle span::after { position: absolute; top: 6px; }
.negin-menu-toggle.is-active span { background: transparent; }
.negin-menu-toggle.is-active span::before { transform: rotate(45deg) translate(-4px,-4px); top: 0; }
.negin-menu-toggle.is-active span::after { transform: rotate(-45deg) translate(-4px,4px); top: 0; }

@media (max-width: 900px) {
	.negin-menu-toggle { display: inline-flex; }
	.negin-main-menu {
		position: fixed;
		inset: 62px 0 0 0;
		background: var(--negin-surface);
		flex-direction: column;
		justify-content: flex-start;
		padding: 12px 20px 24px;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
		overflow-y: auto;
		z-index: 90;
	}
	.negin-main-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
	.negin-main-menu > div,
	.negin-main-menu > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
	.negin-main-menu > div > li > a,
	.negin-main-menu > ul > li > a { padding: 13px 6px; border-radius: 0; border-bottom: 1px solid var(--negin-border); }
	.negin-main-menu li.menu-item-has-children > a::after { margin-inline-start: auto; }
	.negin-main-menu .sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		background: var(--negin-bg);
		margin: 2px 0 6px;
	}
	.negin-main-menu li.menu-item-has-children.is-expanded > .sub-menu { display: flex; }
	.negin-main-menu .sub-menu .sub-menu { margin-right: 0; padding-right: 14px; }
}

/* ==========================================================================
   صفحه اصلی — هیرو
   ========================================================================== */
.negin-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(155deg, var(--negin-ink) 0%, var(--negin-ink-2) 100%);
	color: var(--negin-cream);
	padding: 44px 0;
}

.negin-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
}
@media (min-width: 992px) {
	.negin-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 20px; }
}

.negin-hero-inner { position: relative; max-width: 640px; }
.negin-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--negin-gold);
	margin-bottom: 12px;
}
.negin-eyebrow::before {
	content: '';
	width: 9px;
	height: 9px;
	background: var(--negin-gold);
	clip-path: polygon(50% 0%, 90% 35%, 78% 100%, 22% 100%, 10% 35%);
	flex-shrink: 0;
}

.negin-hero h1 {
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.45;
	font-weight: 700;
	margin: 0 0 12px;
	max-width: 16ch;
}
.negin-hero h1 em {
	font-style: normal;
	color: var(--negin-gold);
}
.negin-hero p.negin-hero-sub {
	font-size: 15px;
	line-height: 1.9;
	color: rgba(246,241,228,.75);
	max-width: 48ch;
	margin: 0 0 22px;
}

.negin-search {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin-bottom: 24px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: var(--negin-radius);
	padding: 6px;
}
.negin-search input[type="search"] {
	flex: 1;
	background: transparent;
	border: none;
	color: var(--negin-cream);
	padding: 9px 14px;
	font-family: var(--negin-font);
	font-size: 14px;
}
.negin-search input[type="search"]::placeholder { color: rgba(246,241,228,.45); }
.negin-search input[type="search"]:focus { outline: none; }
.negin-search .negin-btn { flex-shrink: 0; }

.negin-hero-stats { display: flex; flex-wrap: wrap; gap: 26px; }
.negin-hero-stat strong {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}
.negin-hero-stat span { font-size: 12px; color: rgba(246,241,228,.6); }

/* ---- نمای بصری: نمای مرورگر از فروشگاه افزونه/قالب + بج‌های لایسنس/بروزرسانی ---- */
.negin-hero-visual {
	position: relative;
	display: none;
}
@media (min-width: 992px) {
	.negin-hero-visual { display: block; }
}

/* واترمارک براکت کد در پس‌زمینه نمای بصری — یادآور «کدنویسی» بدون رقابت با محتوای اصلی */
.negin-hero-visual::before {
	content: '</>';
	position: absolute;
	top: -34px;
	inset-inline-end: -18px;
	font-family: 'Courier New', monospace;
	font-size: 90px;
	font-weight: 700;
	color: rgba(255,255,255,.05);
	z-index: -1;
	pointer-events: none;
}

.negin-store-mockup {
	background: #1c1a26;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: var(--negin-radius);
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	overflow: hidden;
	transform: rotate(-1.2deg);
}

.negin-store-browserbar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: rgba(255,255,255,.04);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.negin-store-browserbar > span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255,255,255,.18);
	flex-shrink: 0;
}
.negin-store-browserbar > span:nth-child(1) { background: #ff6259; }
.negin-store-browserbar > span:nth-child(2) { background: #ffbd2e; }
.negin-store-browserbar > span:nth-child(3) { background: #28c93f; }

.negin-store-urlbar {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 10px;
	flex: 1;
	background: rgba(255,255,255,.06);
	border-radius: 999px;
	padding: 5px 12px;
	overflow: hidden;
}
.negin-store-urlbar svg { width: 12px; height: 12px; color: rgba(246,241,228,.4); flex-shrink: 0; }
.negin-store-urlbar span {
	font-size: 11px;
	font-family: 'Courier New', monospace;
	color: rgba(246,241,228,.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.negin-store-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 18px;
}
.negin-store-tile {
	position: relative;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.07);
	border-radius: var(--negin-radius-sm);
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.negin-store-tile-icon {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.negin-store-tile-icon svg { width: 14px; height: 14px; }
.negin-store-tile-icon-plugin { background: rgba(255,107,53,.18); color: var(--negin-primary); }
.negin-store-tile-icon-theme { background: rgba(201,163,85,.2); color: var(--negin-gold); }
.negin-store-tile-line { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); }
.negin-store-tile-line-sm { opacity: .6; }
.negin-store-tile-price { font-size: 11px; font-weight: 700; color: rgba(246,241,228,.85); margin-top: 2px; }
.negin-store-tile-price-free { color: #4fbf7a; }
.negin-store-tile-badge {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	background: var(--negin-gold);
	color: #1c1a26;
	font-size: 9px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
}

.negin-hero-badge {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--negin-surface);
	color: var(--negin-text);
	border-radius: 999px;
	padding: 8px 16px 8px 8px;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.negin-hero-badge svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--negin-bg); color: var(--negin-primary); flex-shrink: 0; }
.negin-hero-badge-plugin { top: -14px; inset-inline-start: -18px; }
.negin-hero-badge-plugin svg { color: #2fa84f; }
.negin-hero-badge-update { bottom: -14px; inset-inline-end: 18px; }
.negin-hero-badge-update svg { color: #2f7dd6; }

@media (max-width: 640px) {
	.negin-hero { padding: 32px 0; }
	.negin-hero-stats { gap: 18px; }
}

/* حالت روشن هیرو (قابل انتخاب از Customizer ← رنگ و ظاهر نگین) */
body.negin-hero-style-light .negin-hero {
	background: linear-gradient(155deg, var(--negin-surface) 0%, var(--negin-bg) 100%);
	color: var(--negin-text);
	border-bottom: 1px solid var(--negin-border);
}
body.negin-hero-style-light .negin-hero p.negin-hero-sub { color: var(--negin-muted); }
body.negin-hero-style-light .negin-search { background: #fff; border-color: var(--negin-border); }
body.negin-hero-style-light .negin-search input[type="search"] { color: var(--negin-text); }
body.negin-hero-style-light .negin-search input[type="search"]::placeholder { color: var(--negin-muted); }
body.negin-hero-style-light .negin-hero-stat strong { color: var(--negin-text); }
body.negin-hero-style-light .negin-hero-stat span { color: var(--negin-muted); }
body.negin-hero-style-light .negin-store-mockup { box-shadow: 0 20px 50px rgba(20,20,30,.12); }


/* ==========================================================================
   صفحه اصلی — چرا نگین (نوار ویژگی‌ها)
   ========================================================================== */
.negin-why {
	background: var(--negin-surface);
	border-bottom: 1px solid var(--negin-border);
}
.negin-why-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding: 52px 0;
}
@media (min-width: 782px) {
	.negin-why-grid { grid-template-columns: repeat(3, 1fr); }
}
.negin-why-item { display: flex; gap: 16px; }
.negin-why-icon {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255,107,53,.12), rgba(201,163,85,.16));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--negin-primary);
}
.negin-why-icon svg { width: 22px; height: 22px; }
.negin-why-item h3 { margin: 2px 0 6px; font-size: 15.5px; }
.negin-why-item p { margin: 0; font-size: 13.5px; color: var(--negin-muted); line-height: 1.9; }

/* ==========================================================================
   صفحه اصلی — هدر بخش‌های محصول (تازه‌ها/پرفروش/ویژه)
   ========================================================================== */
.negin-home-section { padding: 20px 0; }
.negin-home-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}
.negin-home-section-head h2 { font-size: 21px; margin: 4px 0 0; }
.negin-home-section-head .negin-eyebrow { color: var(--negin-primary); margin-bottom: 6px; }
.negin-home-section-head .negin-eyebrow::before { background: var(--negin-primary); }
.negin-view-all { font-size: 13.5px; font-weight: 600; color: var(--negin-primary); white-space: nowrap; }
.negin-view-all::after { content: ' ←'; }

/* نوار CTA پایانی معرفی فروش در نگین */
.negin-cta-band {
	margin-top: 40px;
	background: linear-gradient(120deg, var(--negin-ink), var(--negin-ink-2));
	color: var(--negin-cream);
	border-radius: var(--negin-radius);
	padding: 40px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.negin-cta-band h3 { margin: 0 0 6px; font-size: 19px; color: #fff; }
.negin-cta-band p { margin: 0; font-size: 13.5px; color: rgba(246,241,228,.7); }

/* گرید محصولات (آرشیو) */
.negin-archive-header { margin: 32px 0 8px; }
.negin-archive-header h1 { font-size: 24px; margin: 0; }

/* مسیر ناوبری (Breadcrumb) — عمومی برای page/single/archive/search/404 */
.negin-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--negin-muted);
	margin: 22px 0 18px;
}
.negin-breadcrumb a { color: var(--negin-muted); }
.negin-breadcrumb a:hover { color: var(--negin-primary); }
.negin-breadcrumb-current { color: var(--negin-text); font-weight: 600; }

.negin-archive-description { font-size: 13.5px; color: var(--negin-muted); margin-top: 6px; max-width: 60ch; }

/* جای‌گیر تصویر برای محصولات/پست‌های بدون تصویر شاخص */
.negin-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--negin-bg) 0%, #ece9e2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.negin-thumb-placeholder::before {
	content: '';
	width: 34px;
	height: 34px;
	background: var(--negin-border);
	clip-path: polygon(50% 0%, 90% 35%, 78% 100%, 22% 100%, 10% 35%);
	opacity: .8;
}

.negin-page-links { margin-top: 24px; font-size: 13.5px; color: var(--negin-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.negin-page-links a {
	display: inline-flex;
	min-width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: var(--negin-radius-sm);
	background: var(--negin-bg);
	border: 1px solid var(--negin-border);
	padding: 0 8px;
}
.negin-page-links a:hover { color: var(--negin-primary); border-color: var(--negin-primary); }

.negin-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 32px 0;
}

.negin-product-card {
	position: relative;
	overflow: hidden;
	padding: 0;
	transition: transform .2s ease, box-shadow .2s ease;
}
.negin-product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,20,30,.12); }

.negin-product-card .negin-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/10;
}
.negin-product-card .negin-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.negin-product-card:hover .negin-thumb img { transform: scale(1.06); }

.negin-thumb-top {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	inset-inline-end: 12px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}
.negin-thumb-top .negin-badge { pointer-events: auto; }
.negin-badge-discount { background: #c0392b; }

.negin-thumb-view {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 10px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(to top, rgba(20,19,28,.82), rgba(20,19,28,0));
	transform: translateY(100%);
	transition: transform .2s ease;
}
.negin-product-card:hover .negin-thumb-view { transform: translateY(0); }

.negin-product-card-body { padding: 18px; }
.negin-product-card .negin-badges:empty { display: none; }
.negin-product-card .negin-badges { margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.negin-product-card h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.6; }
.negin-product-card .negin-excerpt { font-size: 13px; color: var(--negin-muted); line-height: 1.85; margin: 0 0 14px; }

.negin-product-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px dashed var(--negin-border);
}
.negin-product-card-footer .negin-price { font-size: 14.5px; font-weight: 700; }
.negin-product-card-meta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--negin-muted);
	white-space: nowrap;
}
.negin-product-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.negin-price-free { color: #2fa84f; font-weight: 700; }

/* دکمه علاقه‌مندی روی کارت محصول */
.negin-favorite-toggle {
	position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2;
	width: 32px; height: 32px; border-radius: 50%;
	background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
	color: var(--negin-muted); font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.12);
	transition: color .15s ease, transform .15s ease;
}
.negin-favorite-toggle:hover { transform: scale(1.08); }
.negin-favorite-toggle.is-active { color: var(--negin-primary); }
.negin-favorite-toggle-inline {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
	color: var(--negin-muted); border: 1px solid var(--negin-border); border-radius: 999px;
	padding: 4px 12px; margin-right: 12px; vertical-align: middle;
}
.negin-favorite-toggle-inline.is-active { color: var(--negin-primary); border-color: var(--negin-primary); }

/* گرید و کارت پست‌های وبلاگ */
.negin-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 32px 0;
}
.negin-post-card { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.negin-post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,20,30,.1); }
.negin-post-card .negin-thumb { border-radius: var(--negin-radius-sm); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 14px; }
.negin-post-card .negin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.negin-post-card .negin-badge-category { background: var(--negin-ink); margin-bottom: 8px; display: inline-block; }
.negin-post-card h3 { font-size: 17px; margin: 0 0 6px; }
.negin-post-card .negin-excerpt { font-size: 13.5px; color: var(--negin-muted); line-height: 1.9; margin: 0 0 12px; }
.negin-post-card-meta { display: flex; gap: 8px; font-size: 12px; color: var(--negin-muted); }

/* محتوای تکی (پست/صفحه) */
.negin-single-content { max-width: 760px; margin: 0 auto 48px; }
.negin-single-content .negin-featured-image { border-radius: var(--negin-radius); overflow: hidden; margin-bottom: 24px; }
.negin-single-content .negin-featured-image img { width: 100%; display: block; }
.negin-post-header { max-width: 760px; margin: 0 auto 20px; }
.negin-post-header h1 { font-size: 28px; margin: 10px 0; line-height: 1.5; }
.negin-post-header-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--negin-muted); align-items: center; }
.negin-post-header-meta img { border-radius: 50%; vertical-align: middle; margin-inline-end: 6px; }
.negin-single-content .entry-content { font-size: 16px; line-height: 2; }
.negin-single-content .entry-content p { margin: 0 0 20px; }
.negin-single-content .entry-content img { max-width: 100%; border-radius: var(--negin-radius-sm); height: auto; }
.negin-single-content .entry-content h2 { font-size: 21px; margin: 32px 0 14px; }
.negin-single-content .entry-content h3 { font-size: 18px; margin: 26px 0 12px; }
.negin-single-content .entry-content blockquote {
	margin: 24px 0;
	padding: 14px 20px;
	border-inline-start: 3px solid var(--negin-primary);
	background: var(--negin-bg);
	border-radius: 0 var(--negin-radius-sm) var(--negin-radius-sm) 0;
	color: var(--negin-muted);
}
.negin-post-tags { max-width: 760px; margin: 0 auto 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.negin-post-tags a {
	font-size: 12.5px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--negin-bg);
	border: 1px solid var(--negin-border);
	color: var(--negin-muted);
}
.negin-post-tags a:hover { color: var(--negin-primary); border-color: var(--negin-primary); }

/* صفحه ۴۰۴ */
.negin-404 { text-align: center; max-width: 520px; margin: 60px auto; }
.negin-404-code { font-size: 72px; font-weight: 700; color: var(--negin-primary); line-height: 1; margin-bottom: 12px; }
.negin-404 h1 { font-size: 22px; margin: 0 0 12px; }
.negin-404 p { color: var(--negin-muted); margin-bottom: 24px; }
.negin-404 .negin-search { max-width: 420px; margin: 0 auto 28px; background: var(--negin-surface); border: 1px solid var(--negin-border); }
.negin-404 .negin-search input[type="search"] { color: var(--negin-text); }
.negin-404 .negin-search input[type="search"]::placeholder { color: var(--negin-muted); }

/* صفحه تکی */
.negin-page-content { max-width: 820px; margin: 32px auto 60px; }

/* صفحه تکی محصول */
.negin-single-product { display: grid; grid-template-columns: 1fr; gap: 32px; margin: 32px 0; }
@media (min-width: 992px) {
	.negin-single-product { grid-template-columns: 2fr 1fr; }
}
.negin-single-gallery img { border-radius: var(--negin-radius); margin-bottom: 10px; }
.negin-buy-box { position: sticky; top: 90px; }
.negin-buy-box .negin-btn { width: 100%; justify-content: center; margin-top: 12px; }
.negin-download-blocked { font-size: 13px; color: #b26a00; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 8px; padding: 8px 12px; margin-top: 12px; }
.negin-meta-list { margin-top: 20px; font-size: 14px; color: var(--negin-muted); }
.negin-meta-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--negin-border); }

/* فوتر */
/* ==========================================================================
   فوتر
   ========================================================================== */
.negin-footer {
	background: linear-gradient(180deg, var(--negin-ink) 0%, var(--negin-ink-2) 100%);
	color: rgba(246,241,228,.82);
	margin-top: 60px;
}
.negin-footer a { color: rgba(246,241,228,.82); }
.negin-footer a:hover { color: var(--negin-gold); }
.negin-footer h4 {
	color: #fff;
	font-size: 14.5px;
	margin: 0 0 16px;
	position: relative;
	padding-inline-start: 14px;
}
.negin-footer h4::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 3px;
	width: 8px;
	height: 8px;
	background: var(--negin-gold);
	clip-path: polygon(50% 0%, 90% 35%, 78% 100%, 22% 100%, 10% 35%);
}
.negin-footer ul { display: flex; flex-direction: column; gap: 10px; }
.negin-footer ul li a { font-size: 13.5px; }
.negin-footer-muted { font-size: 13px; color: rgba(246,241,228,.55); }

.negin-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	padding: 56px 0 40px;
}
@media (min-width: 782px) {
	.negin-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.negin-footer-logo { margin-bottom: 14px; }
.negin-footer-logo strong { font-size: 19px; color: #fff; }
.negin-footer-logo img { max-height: 34px; filter: brightness(0) invert(1); opacity: .92; width:auto;}
.negin-footer-about p { font-size: 13.5px; line-height: 2; color: rgba(246,241,228,.68); max-width: 34ch; margin: 0 0 18px; }

.negin-footer-social { display: flex; gap: 10px; }
.negin-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.negin-footer-social a:hover { background: rgba(201,163,85,.14); border-color: var(--negin-gold); color: var(--negin-gold); }
.negin-footer-social svg { width: 16px; height: 16px; }

.negin-footer-bottom { border-top: 1px solid rgba(255,255,255,.09); }
.negin-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	padding: 18px 0;
	font-size: 12.5px;
	color: rgba(246,241,228,.55);
}
.negin-footer-trust { display: flex; align-items: center; gap: 6px; }
.negin-footer-trust::before {
	content: '';
	width: 7px;
	height: 7px;
	background: var(--negin-gold);
	clip-path: polygon(50% 0%, 90% 35%, 78% 100%, 22% 100%, 10% 35%);
}

/* دکمه علاقه‌مندی درون‌خطی (صفحه تکی محصول) — نسخه کارت در بالای فایل تعریف شده */
.negin-favorite-toggle-inline {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
	color: var(--negin-muted); border: 1px solid var(--negin-border); border-radius: 999px;
	padding: 4px 12px; margin-right: 12px; vertical-align: middle;
}
.negin-favorite-toggle-inline.is-active { color: var(--negin-primary); border-color: var(--negin-primary); }

/* ==========================================================================
   پنل کاربری
   ========================================================================== */
.negin-account-layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 32px 0; align-items: start; }
@media (min-width: 900px) {
	.negin-account-layout { grid-template-columns: 260px 1fr; }
}
.negin-account-nav { position: sticky; top: 90px; }
.negin-account-user { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--negin-border); }
.negin-account-user img { border-radius: 50%; }
.negin-account-user strong { display: block; font-size: 14.5px; }
.negin-account-user span { display: block; font-size: 12px; color: var(--negin-muted); margin-top: 2px; }
.negin-account-nav ul li a {
	display: flex; align-items: center; padding: 10px 12px; border-radius: var(--negin-radius-sm);
	margin-bottom: 3px; color: var(--negin-text); font-size: 13.5px; font-weight: 500;
	transition: background .15s ease, color .15s ease;
}
.negin-account-nav ul li a.is-active,
.negin-account-nav ul li a:hover { background: var(--negin-bg); color: var(--negin-primary); font-weight: 600; }

.negin-account-content { padding: 30px; }
.negin-account-content h2 { font-size: 19px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--negin-border); }
.negin-account-content h3 { font-size: 15.5px; margin: 34px 0 14px; }
.negin-account-content h3:first-of-type { margin-top: 0; }
.negin-account-content > p:not([class]) { color: var(--negin-muted); font-size: 13.5px; }

/* جدول داخل کارت پنل کاربری: بدون قاب اضافه، فقط خط جداکننده هماهنگ با کارت */
.negin-account-content table.negin-table {
	border: none;
	border-radius: 0;
	box-shadow: none;
	margin: 0 0 8px;
}
.negin-account-content table.negin-table thead th:first-child,
.negin-account-content table.negin-table tbody td:first-child { padding-inline-start: 0; }
.negin-account-content table.negin-table thead th:last-child,
.negin-account-content table.negin-table tbody td:last-child { padding-inline-end: 0; }

/* بج‌های رنگی وضعیت (سفارش، لایسنس، تیکت، اشتراک، کمیسیون) */
.negin-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.negin-status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.negin-status-success { background: #eafaf0; color: #1e8449; }
.negin-status-warning { background: #fff7e6; color: #b26a00; }
.negin-status-danger  { background: #fdecea; color: #c0392b; }
.negin-status-neutral { background: var(--negin-bg); color: var(--negin-muted); }
.negin-status-info    { background: #eef2ff; color: #3a5a8c; }

/* داشبورد */
.negin-dashboard-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
@media (min-width: 600px) { .negin-dashboard-stats { grid-template-columns: repeat(4, 1fr); } }
.negin-stat-box { background: var(--negin-bg); border-radius: var(--negin-radius-sm); padding: 16px; text-align: center; }
.negin-stat-number { display: block; font-size: 22px; font-weight: 700; color: var(--negin-primary); }
.negin-stat-label { font-size: 12px; color: var(--negin-muted); }

/* لایسنس‌ها */
.negin-license-block { padding: 20px 0; border-bottom: 1px solid var(--negin-border); }
.negin-license-block:last-child { border-bottom: none; padding-bottom: 0; }
.negin-license-block h3 { margin: 0 0 12px; }
.negin-transfer-details { margin-top: 14px; }
.negin-transfer-details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--negin-primary); }
.negin-transfer-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.negin-transfer-form select,
.negin-transfer-form input[type="text"] { max-width: 220px; }

/* فرم‌های عمومی پنل (تغییر رمز، شارژ کیف پول، تیکت جدید و ...) */
.negin-security-form p { margin-bottom: 16px; }
.negin-security-form input,
.negin-security-form select,
.negin-security-form textarea { max-width: 360px; }

/* کارت‌های دیدگاه (آخرین دیدگاه‌های من در تب امنیت حساب) */
.negin-comment-mini-list { display: flex; flex-direction: column; gap: 10px; }
.negin-comment-mini {
	display: block;
	padding: 14px 16px;
	border-radius: var(--negin-radius-sm);
	background: var(--negin-bg);
	transition: background .15s ease;
}
.negin-comment-mini:hover { background: #f0eee9; }
.negin-comment-mini p { margin: 0 0 6px; font-size: 13.5px; color: var(--negin-text); line-height: 1.8; }
.negin-comment-mini-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--negin-muted); }
.negin-comment-mini-meta strong { color: var(--negin-primary); font-weight: 600; }

.negin-notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.negin-notice-success { background: #eafaf0; color: #1e7e34; border: 1px solid #b7e4c7; }
.negin-notice-error { background: #fdecea; color: #b02a37; border: 1px solid #f5c2c7; }

/* سبد خرید */
.negin-cart-page { margin: 32px 0; }
.negin-cart-table { margin-bottom: 20px; }
.negin-cart-total { display: flex; justify-content: space-between; max-width: 320px; font-size: 18px; margin-bottom: 20px; }
.negin-btn-lg { padding: 14px 32px; font-size: 16px; }

/* پلن‌های اشتراک */
.negin-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; margin: 28px 0; }
.negin-plan-card { text-align: center; }
.negin-plan-price { font-size: 24px; font-weight: 700; color: var(--negin-primary); margin: 12px 0; }
.negin-plan-price small { font-size: 13px; color: var(--negin-muted); font-weight: 400; }
.negin-plan-features { text-align: right; margin: 16px 0; font-size: 13px; color: var(--negin-muted); }
.negin-plan-features li { padding: 6px 0; border-bottom: 1px dashed var(--negin-border); }

/* ==========================================================================
   کنترل‌های فرم عمومی (تمام input/select/textarea سایت — پنل کاربری،
   سبد خرید، پلن‌ها، تیکت و ...) تا هیچ فیلدی بدون استایل نماند
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="tel"],
select,
textarea {
	width: 100%;
	max-width: 420px;
	padding: 10px 14px;
	border: 1px solid var(--negin-border);
	border-radius: var(--negin-radius-sm);
	background: var(--negin-surface);
	color: var(--negin-text);
	font-family: var(--negin-font);
	font-size: 14px;
	line-height: 1.6;
	transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { max-width: 100%; min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--negin-primary);
	box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}
input::placeholder, textarea::placeholder { color: var(--negin-muted); }
label { font-size: 13.5px; font-weight: 600; display: inline-block; margin-bottom: 6px; }

button, .button {
	font-family: var(--negin-font);
	cursor: pointer;
}

/* ==========================================================================
   جدول‌های فرانت‌اند (سفارش‌ها، لایسنس‌ها، تراکنش‌ها، تیکت‌ها و ...)
   ========================================================================== */
table.negin-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--negin-surface);
	border: 1px solid var(--negin-border);
	border-radius: var(--negin-radius);
	overflow: hidden;
	font-size: 13.5px;
	margin: 16px 0 28px;
}
table.negin-table th,
table.negin-table td {
	padding: 13px 16px;
	text-align: right;
	border-bottom: 1px solid var(--negin-border);
	vertical-align: middle;
}
table.negin-table thead th {
	background: var(--negin-bg);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--negin-muted);
	letter-spacing: .01em;
}
table.negin-table tbody tr:last-child td { border-bottom: none; }
table.negin-table tbody tr:hover { background: var(--negin-bg); }
table.negin-table code {
	background: var(--negin-bg);
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 12.5px;
}
@media (max-width: 640px) {
	table.negin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ==========================================================================
   دیدگاه‌ها / نظرات (خروجی پیش‌فرض comments_template وردپرس)
   ========================================================================== */
#comments { margin-top: 12px; }
.comments-title,
.comment-reply-title { font-size: 17px; margin: 0 0 18px; }

.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-inline-start: 40px; }
.comment-list > li + li,
.comment-list .children > li { margin-top: 16px; }

.comment-body {
	background: var(--negin-surface);
	border: 1px solid var(--negin-border);
	border-radius: var(--negin-radius);
	padding: 18px 20px;
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author .avatar { border-radius: 50%; width: 38px; height: 38px; }
.comment-author .fn { font-style: normal; font-weight: 700; font-size: 14px; color: var(--negin-text); }
.comment-metadata { font-size: 12px; color: var(--negin-muted); margin-bottom: 10px; }
.comment-metadata a { color: var(--negin-muted); }
.comment-content { font-size: 14px; line-height: 1.95; color: var(--negin-text); }
.comment-content p { margin: 0 0 10px; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-reply-link,
.comment-edit-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--negin-primary);
}
.comment-awaiting-moderation {
	display: block;
	margin-top: 8px;
	font-size: 12.5px;
	color: #b26a00;
	background: #fff7e6;
	border: 1px solid #ffe0a3;
	border-radius: 8px;
	padding: 6px 10px;
}

#respond {
	background: var(--negin-bg);
	border-radius: var(--negin-radius);
	padding: 22px;
	margin-top: 20px;
}
#respond .comment-notes,
#respond .logged-in-as { font-size: 13px; color: var(--negin-muted); margin-bottom: 14px; }
#respond .comment-form-comment,
#respond p.comment-form-author,
#respond p.comment-form-email,
#respond p.comment-form-url { margin-bottom: 14px; }
#respond label { display: block; }
#respond .form-submit { margin-bottom: 0; }
#respond input[type="submit"] {
	width: auto;
	display: inline-flex;
	align-items: center;
	padding: 10px 22px;
	border-radius: var(--negin-radius-sm);
	background: var(--negin-primary);
	color: #fff;
	font-weight: 600;
	border: none;
}
#respond input[type="submit"]:hover { background: var(--negin-primary-dark); }

.no-comments { font-size: 13.5px; color: var(--negin-muted); }

/* ناوبری کامنت‌ها (قدیمی‌تر/جدیدتر) */
.comment-navigation .nav-links { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 20px; }

/* ==========================================================================
   صفحه‌بندی آرشیو/جستجو (the_posts_pagination)
   ========================================================================== */
.negin-pagination,
.navigation.pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 36px 0;
}
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: var(--negin-radius-sm);
	background: var(--negin-surface);
	border: 1px solid var(--negin-border);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--negin-text);
}
.pagination .page-numbers.current { background: var(--negin-primary); border-color: var(--negin-primary); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--negin-primary); color: var(--negin-primary); }
.pagination .page-numbers.dots { border: none; background: none; }
