:root {
	--ah-primary: #111827;
	--ah-accent: #e76f51;
	--ah-bg-soft: #f4f1de;
	--ah-bg: #fffdf7;
	--ah-text: #0f172a;
	--ah-muted: #475569;
	--ah-border: #e5e7eb;
	--ah-success: #15803d;
	--ah-radius: 18px;
	--ah-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
	--ah-shadow-soft: 0 8px 20px rgba(17, 24, 39, 0.06);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ah-text);
	background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
	font-family: "Tajawal", sans-serif;
	direction: rtl;
	text-align: right;
	line-height: 1.8;
	overflow-x: hidden;
}

input,
textarea,
select {
	direction: rtl;
	text-align: right;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Cairo", sans-serif;
	color: var(--ah-primary);
	line-height: 1.35;
	margin: 0 0 0.6rem;
}

p {
	margin: 0 0 1rem;
	color: var(--ah-muted);
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg,
video,
canvas,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

table {
	width: 100%;
	border-collapse: collapse;
}

.activehub-container {
	width: min(1240px, 100% - 2rem);
	margin-inline: auto;
}

.site-main,
.site-header,
.site-footer {
	overflow-x: clip;
}

.screen-reader-text {
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	height: auto;
	width: auto;
	display: block;
	background: #000;
	color: #fff;
	padding: 0.75rem 1rem;
	z-index: 1200;
}

.activehub-topbar {
	background: var(--ah-primary);
	color: #f8fafc;
	font-size: 0.95rem;
}

.activehub-topbar p {
	margin: 0;
	padding: 0.6rem 0;
	color: inherit;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: saturate(1.2) blur(9px);
	background: rgba(255, 253, 248, 0.95);
	border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-shell {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.2rem;
	padding: 0.9rem 0;
}

.site-branding {
	min-width: 0;
}

.site-branding .custom-logo-link img,
.site-branding .custom-logo {
	max-height: 54px;
	width: auto;
}

.logo-text {
	font-family: "Cairo", sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--ah-primary);
}

.site-tagline {
	margin: 0.3rem 0 0;
	font-size: 0.9rem;
	color: var(--ah-muted);
}

.main-navigation .menu {
	list-style: none;
	display: flex;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	align-items: center;
	flex-wrap: wrap;
}

.main-navigation .menu a {
	display: inline-flex;
	padding: 0.62rem 0.92rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
}

.main-navigation .menu a:hover,
.main-navigation .menu a:focus-visible {
	background: rgba(17, 24, 39, 0.07);
	outline: none;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--ah-border);
	border-radius: 11px;
	background: #fff;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
}

.menu-toggle span:nth-child(-n+3) {
	width: 17px;
	height: 2px;
	background: var(--ah-primary);
	margin-bottom: 3px;
}

.menu-toggle-label {
	font-family: "Cairo", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
}

.header-actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	padding: 0.78rem 1rem;
	font-weight: 700;
	font-family: "Cairo", sans-serif;
	font-size: 0.95rem;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
	transform: translateY(-2px);
	outline: none;
}

.btn-primary {
	background: var(--ah-accent);
	color: #fff;
	box-shadow: 0 10px 24px rgba(231, 111, 81, 0.3);
}

.btn-soft {
	background: #fff;
	border-color: var(--ah-border);
	color: var(--ah-primary);
}

.hero-section {
	background:
		radial-gradient(1200px 350px at 100% 0, rgba(231, 111, 81, 0.18), transparent 60%),
		radial-gradient(900px 280px at 0 10%, rgba(17, 24, 39, 0.08), transparent 55%);
	padding: 3.4rem 0 2.3rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 1.2rem;
	align-items: stretch;
}

.hero-copy h1 {
	font-size: clamp(1.85rem, 3.6vw, 2.8rem);
	margin-bottom: 0.8rem;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	font-size: 0.86rem;
	color: var(--ah-success);
	background: rgba(21, 128, 61, 0.08);
	padding: 0.32rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

.hero-actions {
	display: flex;
	gap: 0.7rem;
	flex-wrap: wrap;
}

.hero-panel {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: var(--ah-radius);
	padding: 1.25rem;
	box-shadow: var(--ah-shadow-soft);
}

.hero-panel ul {
	margin: 0;
	padding-inline-start: 1rem;
}

.hero-panel li {
	margin-bottom: 0.55rem;
	color: var(--ah-muted);
}

.keyword-cluster,
.category-section,
.comparison-section,
.product-section,
.activehub-faq-section,
.final-cta,
.page-shell .trust-section {
	padding: 2.4rem 0;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.chip {
	padding: 0.5rem 0.78rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ah-border);
	font-size: 0.9rem;
	color: var(--ah-primary);
}

.section-heading {
	display: grid;
	gap: 0.3rem;
	margin-bottom: 1.25rem;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.95rem;
}

.category-card {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: 16px;
	padding: 1rem;
	box-shadow: var(--ah-shadow-soft);
	display: grid;
	gap: 0.55rem;
}

.category-card a {
	font-weight: 700;
	color: var(--ah-accent);
}

.trust-section {
	background: #fff;
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.9rem;
}

.trust-item {
	background: linear-gradient(180deg, #fff 0%, #fcf9f3 100%);
	border: 1px solid var(--ah-border);
	padding: 1rem;
	border-radius: 14px;
}

.trust-item h3 {
	font-size: 1.08rem;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ah-border);
	border-radius: 14px;
	background: #fff;
}

.table-wrap table th,
.table-wrap table td {
	padding: 0.9rem 0.8rem;
	vertical-align: top;
	border-bottom: 1px solid #f1f5f9;
	min-width: 135px;
}

.table-wrap table th {
	background: var(--ah-primary);
	color: #f8fafc;
	position: sticky;
	top: 0;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.product-card {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: 16px;
	overflow: hidden;
	display: grid;
	box-shadow: var(--ah-shadow-soft);
}

.product-image {
	display: block;
	background: var(--ah-bg-soft);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-content {
	padding: 0.85rem;
	display: grid;
	gap: 0.52rem;
	align-content: start;
}

.product-content h3,
.product-content h2 {
	font-size: 1rem;
	margin: 0;
	overflow-wrap: anywhere;
}

.product-price,
.woocommerce ul.products li.product .price {
	color: var(--ah-primary);
	font-weight: 800;
	font-family: "Cairo", sans-serif;
}

.product-cats {
	font-size: 0.82rem;
	color: #64748b;
	margin-bottom: 0;
}

.empty-note {
	padding: 1.1rem;
	border: 1px dashed var(--ah-border);
	border-radius: 12px;
	background: #fff;
}

.activehub-faq {
	display: grid;
	gap: 0.75rem;
}

.activehub-faq details {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: 14px;
	padding: 0.6rem 0.9rem;
}

.activehub-faq summary {
	font-family: "Cairo", sans-serif;
	font-weight: 700;
	cursor: pointer;
	color: var(--ah-primary);
}

.faq-answer {
	padding-top: 0.5rem;
	color: var(--ah-muted);
}

.final-cta-shell {
	background: linear-gradient(120deg, #111827 0%, #1f2937 100%);
	color: #f8fafc;
	padding: 1.6rem;
	border-radius: 18px;
	display: grid;
	gap: 0.7rem;
}

.final-cta-shell h2,
.final-cta-shell p {
	color: inherit;
}

.final-cta-shell .btn-primary {
	max-width: 240px;
}

.page-shell {
	padding: 1.8rem 0 2.8rem;
}

.page-shell-enhanced {
	display: grid;
	gap: 1rem;
}

.page-hero {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 1rem;
	padding: 1.2rem;
	border: 1px solid var(--ah-border);
	border-radius: 16px;
	background: linear-gradient(145deg, #ffffff 0%, #f9fcff 100%);
}

.page-hero-card {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--ah-border);
	border-radius: 14px;
	padding: 0.95rem;
}

.page-hero-card h2 {
	font-size: 1.1rem;
	margin-bottom: 0.55rem;
}

.page-point-list {
	margin: 0;
	padding-inline-start: 1rem;
	display: grid;
	gap: 0.35rem;
}

.page-point-list li {
	color: var(--ah-muted);
}

.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
	gap: 1rem;
	align-items: start;
}

.page-aside {
	display: grid;
	gap: 0.85rem;
}

.context-card {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: 14px;
	padding: 0.9rem;
	box-shadow: var(--ah-shadow-soft);
}

.context-card h3 {
	font-size: 1.02rem;
	margin-bottom: 0.45rem;
}

.context-card ol,
.context-card ul {
	margin: 0;
	padding-inline-start: 1rem;
	display: grid;
	gap: 0.35rem;
}

.context-card li,
.context-card a {
	color: var(--ah-muted);
}

.context-card a:hover,
.context-card a:focus-visible {
	color: var(--ah-primary);
}

.page-variant-trust .page-hero {
	background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
	border-color: #dbe9f8;
}

.page-variant-geo .page-hero {
	background: linear-gradient(145deg, #ffffff 0%, #f6fff9 100%);
	border-color: #d7efe0;
}

.page-variant-conversion .page-hero {
	background: linear-gradient(145deg, #fffaf7 0%, #ffffff 100%);
	border-color: #f4d9cf;
}

.page-headline {
	margin-bottom: 1.2rem;
}

.page-headline h1 {
	font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.activehub-breadcrumbs {
	margin-bottom: 1rem;
}

.activehub-breadcrumbs ol {
	display: flex;
	gap: 0.45rem;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.85rem;
}

.activehub-breadcrumbs li::after {
	content: "/";
	padding-inline: 0.25rem;
	color: #94a3b8;
}

.activehub-breadcrumbs li:last-child::after {
	content: "";
}

.prose {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: 15px;
	padding: 1rem;
	overflow-wrap: anywhere;
}

.prose ul,
.prose ol {
	padding-inline-start: 1.1rem;
}

.post-list {
	display: grid;
	gap: 0.9rem;
}

.post-card {
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: 14px;
	overflow: hidden;
}

.post-card-link {
	display: grid;
	grid-template-columns: 270px 1fr;
}

.post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-content {
	padding: 1rem;
}

.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-field {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--ah-border);
	border-radius: 12px;
	font-family: inherit;
	text-align: right;
}

.search-submit {
	border: 0;
	background: var(--ah-primary);
	color: #fff;
	padding: 0.7rem 1rem;
	border-radius: 12px;
	font-family: "Cairo", sans-serif;
	font-weight: 700;
	cursor: pointer;
}

.conversion-hero {
	padding: 1.1rem;
	background: #fff;
	border: 1px solid var(--ah-border);
	border-radius: 15px;
	margin-bottom: 1rem;
}

.benefit-list {
	background: #fff;
	padding: 1rem 1.15rem;
	border-radius: 14px;
	border: 1px solid var(--ah-border);
}

.benefit-list li {
	margin-bottom: 0.5rem;
	color: var(--ah-muted);
}

.site-footer {
	background: #0f172a;
	color: #e2e8f0;
	margin-top: 2rem;
}

.footer-grid {
	padding: 2rem 0 1.5rem;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: 1rem;
}

.footer-grid p,
.footer-grid a {
	color: #cbd5e1;
}

.footer-menu,
.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.footer-bottom {
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	padding: 0.75rem 0;
}

.footer-bottom p {
	margin: 0;
	font-size: 0.9rem;
}

.woocommerce .quantity .qty {
	max-width: 95px;
}

.woocommerce ul.products {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	width: 100%;
	float: none;
	margin: 0;
}

.wc-card-actions .button,
.woocommerce ul.products li.product .button {
	margin-top: 0;
	background: #fff;
	border: 1px solid var(--ah-border);
	color: var(--ah-primary);
	border-radius: 12px;
	padding: 0.58rem 0.75rem;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	overflow-x: auto;
	white-space: nowrap;
}

.activehub-single-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}

.activehub-gallery,
.activehub-summary {
	min-width: 0;
}

.product-trust-list {
	margin-top: 1rem;
	padding-inline-start: 1.05rem;
}

.product-trust-list li {
	margin-bottom: 0.45rem;
	color: var(--ah-muted);
}

.not-found {
	text-align: center;
}

@media (max-width: 1180px) {
	.header-shell {
		grid-template-columns: 1fr auto auto;
	}

	.main-navigation .menu {
		gap: 0.1rem;
	}

	.product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.category-grid,
	.trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.header-shell {
		grid-template-columns: 1fr auto;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: absolute;
		inset-inline: 1rem;
		top: calc(100% + 0.5rem);
		background: #fff;
		border: 1px solid var(--ah-border);
		border-radius: 14px;
		padding: 0.6rem;
		box-shadow: var(--ah-shadow);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.main-navigation.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.main-navigation .menu {
		flex-direction: column;
		align-items: stretch;
	}

	.main-navigation .menu a {
		width: 100%;
	}

	.header-actions {
		display: none;
	}

	.hero-grid,
	.activehub-single-grid,
	.page-hero,
	.page-layout {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.activehub-container {
		width: min(1240px, 100% - 1.2rem);
	}

	.product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-card-link {
		grid-template-columns: 1fr;
	}

	.post-thumb {
		max-height: 220px;
		overflow: hidden;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.hero-actions,
	.search-form {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

	.product-grid,
	.woocommerce ul.products,
	.category-grid,
	.trust-grid {
		grid-template-columns: 1fr;
	}

	.table-wrap table th,
	.table-wrap table td {
		min-width: 120px;
	}
}
