/**
 * Ziran India — site header & footer chrome
 * Brand orange: #E87722 | Font: Outfit
 */

:root {
	--zh-orange: #e87722;
	--zh-orange-dark: #d1661d;
	--zh-slate-900: #0f172a;
	--zh-slate-800: #1e293b;
	--zh-slate-700: #334155;
	--zh-slate-600: #475569;
	--zh-slate-500: #64748b;
	--zh-border: rgba(15, 23, 42, 0.08);
	--zh-font: "Outfit", system-ui, -apple-system, sans-serif;
}

.header,
.header .main-menu,
.mobile-header,
.mobile-header-menu-container,
.footer,
.footer-ziran {
	font-family: var(--zh-font);
}

/* ---------- Hide 9-dots / side panel trigger ---------- */
.header .header-icon.dropdown-trigger,
.header .dropdown-trigger-item,
.mobile-header .header-icon.dropdown-trigger {
	display: none !important;
}

.header .header-icons-container .logo-container {
	border-left: 0 !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
}

/* ---------- Desktop header ---------- */
.header.header-type-1 {
	background: transparent;
}

.header.header-type-1 .header-row,
.header.header-type-1 .sticky-wrapper .header-row {
	align-items: center;
	min-height: 78px;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}

.header .logo-container .logo-link img,
.header .logo-container img {
	max-height: 52px;
	width: auto;
}

.header .main-menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.header .main-menu > li {
	margin-right: 0.15rem !important;
}

.header .main-menu > li > a {
	font-family: var(--zh-font);
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--zh-slate-800) !important;
	padding: 0.65rem 0.85rem !important;
	border-radius: 0.5rem;
	transition: color 0.15s ease, background-color 0.15s ease;
	overflow: visible !important;
}

/* Hide theme underline bar */
.header .main-menu > li > a:before {
	display: none !important;
}

/* Restore / improve dropdown chevron for parent items (Products) */
.header .main-menu > li.menu-item-has-children > a {
	padding-right: 1.45rem !important;
	position: relative;
}

.header .main-menu > li.menu-item-has-children > a:after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	right: 0.45rem !important;
	left: auto !important;
	top: 50% !important;
	width: 7px !important;
	height: 7px !important;
	margin: 0 !important;
	border: 0 !important;
	border-right: 2px solid currentColor !important;
	border-bottom: 2px solid currentColor !important;
	background: transparent !important;
	border-radius: 0 !important;
	transform: translateY(-65%) rotate(45deg) !important;
	opacity: 0.75;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.header .main-menu > li.menu-item-has-children:hover > a:after {
	opacity: 1;
	transform: translateY(-35%) rotate(225deg) !important;
}

.header .main-menu > li:hover > a,
.header .main-menu > li.current-menu-item > a,
.header .main-menu > li.current-menu-ancestor > a,
.header .main-menu > li.current_page_item > a {
	color: var(--zh-orange) !important;
	background: rgba(232, 119, 34, 0.08);
}

/* Sticky solid bar */
.header.sticky-header-on.sticky-ready.sticky-active .sticky-wrapper {
	background: rgba(255, 255, 255, 0.97) !important;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
	border-bottom: 1px solid var(--zh-border);
	backdrop-filter: blur(10px);
}

.header.sticky-header-on.sticky-ready.sticky-active .main-menu > li > a {
	color: var(--zh-slate-800) !important;
}

/* Dropdown panels — overflow visible so nested Branded Products list shows */
.header .main-menu .sub-menu {
	border: 1px solid var(--zh-border) !important;
	border-radius: 0.85rem !important;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
	padding: 0.55rem !important;
	background: #fff !important;
	min-width: 250px !important;
	width: max-content !important;
	max-width: 320px;
	overflow: visible !important;
	z-index: 100 !important;
}

.header .main-menu > li > .sub-menu {
	max-height: none !important;
}

.header .main-menu .sub-menu > li {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	margin: 0 !important;
}

.header .main-menu .sub-menu li a {
	font-family: var(--zh-font);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--zh-slate-700) !important;
	padding: 0.55rem 0.85rem !important;
	border-radius: 0.55rem;
	line-height: 1.35;
	display: block;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.header .main-menu .sub-menu li a:hover,
.header .main-menu .sub-menu li.current-menu-item > a {
	background: rgba(232, 119, 34, 0.1) !important;
	color: var(--zh-orange) !important;
}

/* Nested flyout (Branded Products → product list).
   Scroll inside the viewport so long lists are fully reachable. */
.header .main-menu .sub-menu .sub-menu {
	top: -0.35rem !important;
	left: calc(100% + 0.35rem) !important;
	margin: 0 !important;
	min-width: 220px !important;
	max-height: min(70vh, 520px) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
}

/* Theme only animates the first 8 submenu items; keep every item visible. */
.header .main-menu li:hover > ul.sub-menu > li,
.header .main-menu .sub-menu .sub-menu > li {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	transition-delay: 0s !important;
}

.header .main-menu .sub-menu > li.menu-item-has-children > a {
	padding-right: 1.6rem !important;
	position: relative;
}

.header .main-menu .sub-menu > li.menu-item-has-children > a:after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	right: 0.55rem !important;
	top: 50% !important;
	width: 6px !important;
	height: 6px !important;
	margin: 0 !important;
	border-right: 2px solid currentColor !important;
	border-bottom: 2px solid currentColor !important;
	background: none !important;
	border-radius: 0 !important;
	transform: translateY(-50%) rotate(-45deg) !important;
	font: none !important;
}

.header .header-icon.search-trigger,
.header .header-icon.login-logout a {
	color: var(--zh-slate-700);
}

.header .agrarium-button,
.header .header-button-container .agrarium-button {
	font-family: var(--zh-font) !important;
	font-weight: 700 !important;
	font-size: 0.82rem !important;
	background: var(--zh-orange) !important;
	border-color: var(--zh-orange) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 0.7rem 1.25rem !important;
	box-shadow: 0 8px 18px rgba(232, 119, 34, 0.28);
}

.header .agrarium-button:hover {
	background: var(--zh-orange-dark) !important;
	color: #fff !important;
}

/* ---------- Mobile ---------- */
.mobile-header .logo-container img {
	max-height: 44px;
}

.mobile-header-menu-container {
	background: #fff !important;
}

.mobile-header-menu-container .main-menu > li > a,
.mobile-header-menu-container .main-menu .sub-menu a {
	font-family: var(--zh-font);
	font-weight: 600;
	color: var(--zh-slate-800) !important;
}

.mobile-header-menu-container .main-menu > li > a:hover,
.mobile-header-menu-container .main-menu .sub-menu a:hover,
.mobile-header-menu-container .main-menu li.current-menu-item > a {
	color: var(--zh-orange) !important;
}

.mobile-header .menu-trigger .hamburger span {
	background-color: var(--zh-slate-800) !important;
}

/* ---------- Custom footer (mockup) ---------- */
.footer-ziran {
	background: #0b1220 !important;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
	padding: 0;
}

.footer-ziran .zf-container {
	width: min(1280px, calc(100% - 48px));
	margin: 0 auto;
}

.footer-ziran .zf-main {
	padding: 3.5rem 0 2.75rem;
}

.footer-ziran .zf-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem 1.5rem;
}

.footer-ziran .zf-logo img {
	max-height: 52px;
	width: auto;
	display: block;
	margin-bottom: 1rem;
}

.footer-ziran .zf-about {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
	max-width: 18rem;
	text-wrap: pretty;
}

.footer-ziran .zf-socials {
	display: flex;
	gap: 0.6rem;
}

.footer-ziran .zf-social {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-ziran .zf-social svg {
	width: 14px;
	height: 14px;
}

.footer-ziran .zf-social:hover {
	background: var(--zh-orange);
	border-color: var(--zh-orange);
	color: #fff !important;
}

.footer-ziran .zf-title {
	margin: 0 0 1rem;
	font-size: 0.98rem;
	font-weight: 700;
	color: #fff !important;
}

.footer-ziran .zf-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-ziran .zf-links li {
	margin: 0 0 0.55rem;
}

.footer-ziran .zf-links a {
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer-ziran .zf-links a:hover {
	color: var(--zh-orange) !important;
}

.footer-ziran .zf-certs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.65rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.footer-ziran .zf-cert {
	width: auto;
	max-width: none;
	aspect-ratio: auto;
	margin: 0;
	border-radius: 0;
	border: 0;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	overflow: visible;
}

.footer-ziran .zf-cert img {
	width: auto;
	height: 36px;
	max-width: 48px;
	max-height: 36px;
	object-fit: contain;
	display: block;
	filter: none;
}

.footer-ziran .zf-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-ziran .zf-contact li {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
}

.footer-ziran .zf-contact a {
	color: rgba(255, 255, 255, 0.78) !important;
	text-decoration: none;
}

.footer-ziran .zf-contact a:hover {
	color: var(--zh-orange) !important;
}

.footer-ziran .zf-contact__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 0.15rem;
	color: #fff;
}

.footer-ziran .zf-contact__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.footer-ziran .zf-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.1rem 0 1.25rem;
}

.footer-ziran .zf-bottom__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
}

.footer-ziran .zf-copy {
	margin: 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
}

.footer-ziran .zf-legal {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.82rem;
}

.footer-ziran .zf-legal a {
	color: rgba(255, 255, 255, 0.55) !important;
	text-decoration: none;
}

.footer-ziran .zf-legal a:hover {
	color: var(--zh-orange) !important;
}

.footer-ziran .zf-legal span {
	color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
	.footer-ziran .zf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.footer-ziran .zf-grid {
		grid-template-columns: 1.4fr 0.95fr 1.15fr 1fr 1.2fr;
		gap: 1.5rem 1.25rem;
	}
}
