/*
|--------------------------------------------------------------------------
| EcoZomoroda Global CSS
|--------------------------------------------------------------------------
*/

:root {
	--eco-primary: #159447;
	--eco-primary-dark: #0e7135;
	--eco-text: #202724;
	--eco-muted: #737b77;
	--eco-border: #e5e9e7;
	--eco-background: #ffffff;
	--eco-light: #f5f8f6;

	/* Unified site container */
	--eco-container-width: 1320px;
	--eco-container-padding: 22px;

	--eco-radius: 14px;
	--eco-transition: 0.25s ease;
}


/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: #f7f9f8;
	color: var(--eco-text);
	font-family: "Tajawal", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	direction: rtl;
}

body,
button,
input,
textarea,
select {
	font-family: "Tajawal", sans-serif;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--eco-transition);
}

button,
input,
textarea,
select {
	font-size: inherit;
}

button {
	cursor: pointer;
}


/* ==========================================================================
   Unified Container
   ========================================================================== */

.eco-container {
	width: 100%;
	max-width: var(--eco-container-width);
	margin-inline: auto;
	padding-inline: var(--eco-container-padding);
	box-sizing: border-box;
}


/*
 * WooCommerce pages must use exactly the same container width.
 */

.woocommerce .eco-container,
.woocommerce-page .eco-container {
	width: 100%;
	max-width: var(--eco-container-width);
	margin-inline: auto;
	padding-inline: var(--eco-container-padding);
	box-sizing: border-box;
}
.eco-woocommerce-content {
    width: 1250px;
    margin: 0 auto;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

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


/* ==========================================================================
   General Content
   ========================================================================== */

.eco-main-content,
.eco-page,
.eco-single,
.eco-search-page {
	padding: 60px 0;
}

.eco-page-title {
	margin: 0 0 30px;
	font-size: 34px;
	font-weight: 800;
	color: var(--eco-primary);
}

.eco-entry-content {
	font-size: 17px;
}

.eco-entry-content p {
	margin: 0 0 20px;
}

.eco-entry-content img {
	border-radius: var(--eco-radius);
}

.eco-empty-state {
	padding: 60px 20px;
	text-align: center;
	background: var(--eco-light);
	border-radius: var(--eco-radius);
}

.eco-empty-state h1,
.eco-empty-state h2 {
	margin: 0 0 10px;
	color: var(--eco-primary);
}


/* ==========================================================================
   Posts
   ========================================================================== */

.eco-post-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

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

.eco-post-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.eco-post-content {
	padding: 20px;
}

.eco-post-content h2 {
	margin: 0 0 10px;
	font-size: 22px;
}

.eco-post-content h2 a:hover {
	color: var(--eco-primary);
}


/* ==========================================================================
   Search
   ========================================================================== */

.eco-search-form {
	display: flex;
	gap: 10px;
}

.eco-search-input {
	width: 100%;
	min-height: 48px;
	padding: 10px 15px;
	border: 1px solid var(--eco-border);
	border-radius: var(--eco-radius);
	outline: none;
	background: #fff;
}

.eco-search-input:focus {
	border-color: var(--eco-primary);
}

.eco-search-submit {
	min-width: 100px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--eco-radius);
	background: var(--eco-primary);
	color: #fff;
	font-weight: 700;
}

.eco-search-submit:hover {
	background: var(--eco-primary-dark);
}

.eco-search-results {
	display: grid;
	gap: 20px;
}

.eco-search-card {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--eco-border);
	border-radius: var(--eco-radius);
}

.eco-search-card img {
	width: 180px;
	height: 120px;
	object-fit: cover;
	border-radius: 6px;
}

.eco-search-card h2 {
	margin: 0 0 10px;
	font-size: 22px;
}

.eco-search-card h2 a:hover {
	color: var(--eco-primary);
}


/* ==========================================================================
   Single Post
   ========================================================================== */

.eco-single-content {
	max-width: 900px;
	margin-inline: auto;
}

.eco-single-header {
	margin-bottom: 25px;
}

.eco-single-header h1 {
	margin: 0;
	font-size: 38px;
	line-height: 1.4;
	color: var(--eco-primary);
}

.eco-single-image {
	margin-bottom: 30px;
}

.eco-single-image img {
	width: 100%;
	border-radius: var(--eco-radius);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {

	.eco-post-list {
		grid-template-columns: repeat(2, 1fr);
	}
}


@media (max-width: 600px) {

	/*
	 * Keep the same container system.
	 * It becomes fluid automatically on small screens.
	 */
	.eco-container,
	.woocommerce .eco-container,
	.woocommerce-page .eco-container {
		width: 100%;
		max-width: var(--eco-container-width);
		padding-inline: 12px;
	}

	.eco-main-content,
	.eco-page,
	.eco-single,
	.eco-search-page {
		padding: 40px 0;
	}

	.eco-post-list {
		grid-template-columns: 1fr;
	}

	.eco-page-title {
		font-size: 28px;
	}

	.eco-single-header h1 {
		font-size: 28px;
	}

	.eco-search-card {
		grid-template-columns: 1fr;
	}

	.eco-search-card img {
		width: 100%;
		height: auto;
	}
}

/* Elementor layout compatibility */
.eco-elementor-content { width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 0; }
.eco-elementor-content > .elementor,
.eco-elementor-content > .elementor-section-wrap { width: 100%; }
.eco-elementor-content .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--eco-container-width, 1320px); }
.eco-elementor-canvas-content { width: 100%; min-width: 0; margin: 0; padding: 0; }
body.elementor-template-canvas { margin: 0; padding: 0; }
