/* =========================================================
   EcoZomoroda Header
   ========================================================= */

.eco-header {
	position: relative;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 1px solid #f1eeee;
}


/* =========================================================
   Main Header
   ========================================================= */

.eco-main-header {
	position: relative;
	background: #ffffff;
}

.eco-header-inner {
	position: relative;

	min-height: 80px;

	display: grid;
	grid-template-columns: 1fr auto 1fr;

	align-items: center;

	direction: rtl;
}


/* =========================================================
   Logo - Center
   ========================================================= */

.eco-logo {
	grid-column: 2;

	display: flex;
	align-items: center;
	justify-content: center;

	text-align: center;
}

.eco-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	text-decoration: none;
}

.eco-logo-image {
	display: block;

	width: auto;
	max-width: 170px;
	max-height: 55px;

	object-fit: contain;
}

.eco-text-logo {
	font-family: "Tajawal", sans-serif;

	font-size: 18px;
	font-weight: 800;

	color: #4b3025;

	white-space: nowrap;
}


/* =========================================================
   Navigation - Right
   ========================================================= */

.eco-navigation {
	grid-column: 1;

	display: flex;
	align-items: center;
	justify-content: flex-start;

	direction: rtl;
}

.eco-menu-wrapper {
	display: block;
}

.eco-main-menu {
	display: flex;
	align-items: center;
	gap: 34px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.eco-main-menu li {
	margin: 0;
	padding: 0;
}

.eco-main-menu a {
	display: block;

	font-family: "Tajawal", sans-serif;

	font-size: 17px;
	font-weight: 500;

	color: #4b3025;

	text-decoration: none;

	white-space: nowrap;

	transition: color 0.2s ease;
}

.eco-main-menu a:hover,
.eco-main-menu .current-menu-item > a {
	color: #000000;
}


/* =========================================================
   Header Actions - Left
   ========================================================= */

.eco-header-actions {
	grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    direction: ltr;
}


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

.eco-header-icon,
.eco-cart-link {
	position: relative;

	width: 40px;
	height: 40px;

	display: flex;
	align-items: center;
	justify-content: center;

	border: 1px dashed var(--eco-primary);
	border-radius: 6px;

	background: #ffffff;

	color: var(--eco-primary);

	text-decoration: none;

	cursor: pointer;

	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.eco-header-icon {
	padding: 0;
}

.eco-header-icon:hover,
.eco-cart-link:hover {
	background: var(--eco-primary);
    color: #ffffff;
}


/* =========================================================
   Cart Count
   ========================================================= */

.eco-cart-link {
	flex-shrink: 0;
}

.eco-cart-count {
	position: absolute;
    top: -11px;
    right: -11px;
    min-width: 16px;
    height: 24px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
	width: 24px;
}
i.fa-solid.fa-cart-plus {
    font-size: 18px;
    font-weight: 600;
}

/* =========================================================
   Mobile Menu Button
   ========================================================= */

.eco-mobile-menu-button {
	display: none;

	width: 34px;
	height: 34px;

	padding: 7px;

	border: 1px solid #4b3025;
	border-radius: 6px;

	background: #ffffff;

	cursor: pointer;
}

.eco-mobile-menu-button span {
	display: block;

	width: 100%;
	height: 1.5px;

	margin: 4px 0;

	background: #4b3025;
}


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

.eco-search-box {
	display: none;

	position: absolute;

	top: 100%;
	left: 0;
	right: 0;

	padding: 15px 0;

	background: #ffffff;

	border-top: 1px solid #f1eeee;
	border-bottom: 1px solid #eeeeee;

	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

	z-index: 999;
}

.eco-search-box.is-open {
	display: block;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 800px) {


	.eco-logo-image {
		max-width: 105px;
		max-height: 48px;
	}


	.eco-logo {
		grid-column: 2;
	}


	.eco-navigation {
		grid-column: 1;

		justify-content: flex-start;
	}


	.eco-mobile-menu-button {
		display: block;
	}


	.eco-menu-wrapper {
		display: none;

		position: absolute;

		top: 64px;
		right: 15px;
		left: 15px;

		background: #ffffff;

		border: 1px solid #eeeeee;

		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	}


	.eco-menu-wrapper.is-open {
		display: block;
	}


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

		gap: 0;
	}


	.eco-main-menu li {
		border-bottom: 1px solid #f3eeee;
	}


	.eco-main-menu li:last-child {
		border-bottom: 0;
	}


	.eco-main-menu a {
		padding: 13px 16px;
	}


	.eco-header-actions {
		grid-column: 3;
	}


	.eco-header-icon,
	.eco-cart-link {
		width: 32px;
		height: 32px;
	}

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 420px) {

	.eco-header-inner {
		min-height: 60px;
	}


	.eco-logo-image {
		max-width: 115px;
		max-height: 43px;
	}


	.eco-header-actions {
		gap: 5px;
	}



}

@media (max-width: 768px) {

	button.eco-header-icon.eco-search-toggle, a.eco-cart-link {
    width: 35px;
    height: 35px;
}
span.eco-cart-count {
    top: -8px;
    right: -8px;
    width: auto;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
}
.eco-logo-image {
        max-width: 110px;
        max-height: 40px;
    }
.eco-topbar-text {
    font-size: 15px;
}
.eco-header .eco-container {
    padding-inline: revert-rule;
}
.eco-topbar-inner {
    min-height: 40px;
}
.eco-header-inner {
    min-height: 60px;
}

}

@media (max-width: 600px) {

	.eco-topbar-inner {
		justify-content: center;
	}

	.eco-topbar-links {
		display: none;
	}

}
.eco-topbar {
	background: var(--eco-primary);
	color: #fff;
	font-size: 13px;
}

.eco-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 50px;
	gap: 20px;
}

.eco-topbar-links {
	display: flex;
	gap: 15px;
}

.eco-topbar a:hover {
	color: #e8ddd6;
}

.eco-topbar-text {
	width: 100%;
	text-align: center;
	font-size: 17px;
}


/* =========================================================
   Unified Header Width
   ========================================================= */

.eco-header .eco-container {
	width: 100%;
	max-width: 1250px;
	margin-inline: auto;
	box-sizing: border-box;
}


/* =========================================================
   Unified Top Bar Width
   ========================================================= */

.eco-topbar .eco-container {
	width: 100%;
	max-width: 1250px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}
/* Premium header refinement */
.eco-header{box-shadow:0 4px 18px rgba(25,35,30,.045);border-bottom:1px solid #e9eeeb}
.eco-main-header{background:#fff}
.eco-text-logo{color:var(--eco-primary)}
.eco-main-menu{gap:28px}
.eco-main-menu a{color:#27302c;font-weight:700}
.eco-main-menu a:hover,.eco-main-menu .current-menu-item>a{color:var(--eco-primary)}
.eco-header-icon,.eco-cart-link{width:47px;height:47px;border:1px solid #e2e8e5;border-radius:12px;background:#fff;color:var(--eco-primary)}
.eco-header-icon:hover,.eco-cart-link:hover{background:var(--eco-primary);color:#fff;border-color:var(--eco-primary)}
.eco-cart-count{top:-7px;right:-7px;min-width:21px;width:21px;height:21px;border-radius:50%;background:#17201c;color:#fff;font-size:11px}

/* Stability fixes: header controls remain usable on every viewport. */
.eco-header-actions { min-width: 0; }
.eco-header-icon, .eco-cart-link { flex: 0 0 auto; }
.eco-cart-count { box-sizing: border-box; padding: 0 5px; }
.eco-search-box[aria-hidden="true"]:not(.is-open) { display: none; }
.eco-menu-wrapper { z-index: 1001; }
