/* Amazon-style primary top bar */
.aryarama-amazon-top-bar {
	background-color: #03427e;
	color: #ffffff;
	padding: 10px 0;
}

.aryarama-amazon-top-bar__inner {
	display: block;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 16px;
}

.aryarama-amazon-top-bar__desktop {
	display: grid;
	grid-template-columns: auto minmax(240px, 36%) auto auto;
	align-items: center;
	gap: 14px;
}

.aryarama-amazon-top-bar__desktop:not(:has(.aryarama-amazon-top-bar__phone)) {
	grid-template-columns: auto minmax(280px, 42%) 1fr;
}

.aryarama-mobile-toolbar {
	display: none;
}

.aryarama-amazon-top-bar__logo {
	justify-self: start;
	flex: 0 0 auto;
	max-height: 56px;
	line-height: 0;
}

.aryarama-amazon-top-bar__logo-link {
	display: flex;
	align-items: center;
	padding: 4px 8px 4px 0;
	line-height: 0;
}

/* Higher specificity so WooCommerce `.woocommerce-page img` does not resize the logo. */
.aryarama-amazon-top-bar .aryarama-amazon-top-bar__logo-image {
	display: block;
	width: auto;
	height: 56px;
	max-width: 220px;
	max-height: 56px;
	object-fit: contain;
}

.aryarama-amazon-top-bar__search {
	width: 100%;
	justify-self: stretch;
	min-width: 0;
}

.aryarama-amazon-top-bar__phone {
	justify-self: end;
	flex: 0 0 auto;
}

.aryarama-amazon-top-bar__language {
	justify-self: end;
}

/* Top bar call link */
.aryarama-call-link--top-bar {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 6px;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.aryarama-call-link--top-bar:hover,
.aryarama-call-link--top-bar:focus {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	outline: none;
}

.aryarama-call-link__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #feda8e;
	color: #03427e;
	flex: 0 0 auto;
}

.aryarama-call-link__content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.aryarama-call-link__label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.1;
	opacity: 0.9;
}

.aryarama-call-link__number {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

/* Search form */
.aryarama-search-form {
	display: flex;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
}

.aryarama-search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0 12px;
	border: none;
	border-radius: 4px 0 0 4px;
	font-size: 15px;
	color: #111111;
	background: #ffffff;
	outline: none;
}

.aryarama-search-form__input:focus {
	box-shadow: 0 0 0 2px #feda8e inset;
}

.aryarama-search-form__submit {
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 0 4px 4px 0;
	background: #feda8e;
	color: #111111;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.aryarama-search-form__submit:hover,
.aryarama-search-form__submit:focus {
	background: #f5cc6a;
}

/* Language switcher */
.aryarama-language-switcher {
	position: relative;
	display: inline-block;
}

.aryarama-language-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	background-color: #03427e;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.aryarama-language-switcher.is-open .aryarama-language-switcher__toggle,
.aryarama-language-switcher__toggle:hover,
.aryarama-language-switcher__toggle:focus,
.aryarama-language-switcher__toggle:active,
.aryarama-language-switcher__toggle[aria-expanded="true"] {
	background-color: #03427e;
	color: #ffffff;
	border-color: #ffffff;
	outline: none;
	box-shadow: none;
}

.aryarama-language-switcher__flag {
	display: block;
	width: 24px;
	height: 16px;
	flex: 0 0 auto;
	border-radius: 2px;
	object-fit: cover;
}

.aryarama-language-switcher__current-flag,
.aryarama-language-switcher__item-flag {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
}

.aryarama-language-switcher__current-flag .aryarama-language-switcher__flag {
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.aryarama-language-switcher__item-flag .aryarama-language-switcher__flag {
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.aryarama-language-switcher__current-label,
.aryarama-language-switcher__item-label {
	line-height: 1;
}

.aryarama-language-switcher__caret {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #ffffff;
}

.aryarama-language-switcher__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 200;
	min-width: 180px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	border: 1px solid #d5d9d9;
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.aryarama-language-switcher__item {
	margin: 0;
}

.aryarama-language-switcher__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	color: #111111;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
}

.aryarama-language-switcher__link:hover,
.aryarama-language-switcher__link:focus {
	background: #f3f3f3;
	color: #111111;
}

.aryarama-language-switcher__radio {
	position: relative;
	display: inline-block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	border: 2px solid #888888;
	border-radius: 50%;
	background: #ffffff;
}

.aryarama-language-switcher__radio::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #03427e;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.15s ease;
}

.aryarama-language-switcher__item[aria-selected="true"] .aryarama-language-switcher__radio {
	border-color: #03427e;
}

.aryarama-language-switcher__item[aria-selected="true"] .aryarama-language-switcher__radio::after {
	transform: translate(-50%, -50%) scale(1);
}

/* Primary menu bar */
.main-navigation {
	background-color: #ffffff !important;
	border-bottom: 1px solid #e5e5e5;
}

.main-navigation .main-nav > ul > li > a,
.main-navigation .menu-bar-items a,
.main-navigation .menu-toggle {
	color: #111111 !important;
	font-size: 18px !important;
	font-weight: 700;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li > a:focus,
.main-navigation .menu-bar-items a:hover,
.main-navigation .menu-bar-items a:focus {
	color: #111111 !important;
	opacity: 0.65;
}

.main-navigation .menu-toggle {
	border-color: rgba(0, 0, 0, 0.35);
	color: #111111 !important;
}

/* Categories control in primary menu bar */
@media (min-width: 769px) {
	.main-navigation .inside-navigation.grid-container {
		max-width: 1500px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.main-navigation .inside-navigation {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		width: 100%;
	}

	.main-navigation .aryarama-nav-categories {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		margin: 0;
		padding: 8px 0;
		z-index: 2;
	}

	.main-navigation .main-nav {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		min-width: 0;
	}

	[dir="rtl"] .main-navigation .aryarama-nav-categories {
		grid-column: 3;
		justify-self: start;
		margin: 0;
	}

	[dir="rtl"] .main-navigation .main-nav {
		grid-column: 1;
		justify-self: end;
	}

	.main-navigation .inside-navigation:not(:has(.aryarama-nav-categories)) .main-nav {
		grid-column: 1 / -1;
		justify-self: end;
	}
}

.main-navigation .aryarama-desktop-categories {
	position: relative;
	display: inline-block;
}

.main-navigation .aryarama-desktop-categories__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 12px 0 6px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	color: #111111;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.main-navigation .aryarama-desktop-categories__toggle:hover,
.main-navigation .aryarama-desktop-categories__toggle:focus,
.main-navigation .aryarama-desktop-categories.is-open .aryarama-desktop-categories__toggle {
	background: #f8fbff;
	border-color: #cfe3f5;
	color: #03427e;
	outline: none;
	box-shadow: 0 4px 14px rgba(3, 66, 126, 0.08);
}

.main-navigation .aryarama-desktop-categories__toggle .aryarama-desktop-categories__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #03427e;
	color: #ffffff;
}

.main-navigation .aryarama-desktop-categories__toggle .aryarama-desktop-categories__icon {
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.main-navigation .aryarama-desktop-categories__label {
	line-height: 1.2;
}

.main-navigation .aryarama-desktop-categories__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 300;
	width: min(560px, calc(100vw - 32px));
	max-height: min(72vh, 640px);
	overflow: hidden;
	border: 1px solid #dbe3ec;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
	opacity: 0;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top right;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.main-navigation .aryarama-desktop-categories__card {
	display: flex;
	flex-direction: column;
	max-height: min(72vh, 640px);
	padding: 18px 18px 16px;
	box-sizing: border-box;
}

.main-navigation .aryarama-desktop-categories__header {
	flex: 0 0 auto;
	margin-bottom: 14px;
}

.main-navigation .aryarama-desktop-categories__title {
	margin: 0 0 10px;
	color: #03427e;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.main-navigation .aryarama-desktop-categories__divider {
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #03427e 0%, #4f8fc9 100%);
}

.main-navigation .aryarama-desktop-categories__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.main-navigation .aryarama-desktop-categories__item {
	margin: 0;
}

.main-navigation .aryarama-desktop-categories__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 10px 12px;
	border: 1px solid #e8edf3;
	border-radius: 12px;
	background: #ffffff;
	color: #03427e;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.main-navigation .aryarama-desktop-categories__link:hover,
.main-navigation .aryarama-desktop-categories__link:focus {
	background: #f8fbff;
	border-color: #cfe3f5;
	box-shadow: 0 8px 18px rgba(3, 66, 126, 0.08);
	transform: translateY(-1px);
	outline: none;
}

.main-navigation .aryarama-desktop-categories__link .aryarama-desktop-categories__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: #eef6fc;
	overflow: hidden;
}

.main-navigation .aryarama-desktop-categories__link .aryarama-desktop-categories__icon {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.main-navigation .aryarama-desktop-categories__icon-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #dbeafe;
	color: #03427e;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.main-navigation .aryarama-desktop-categories__link .aryarama-desktop-categories__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
}

@media (min-width: 1100px) {
	.main-navigation .aryarama-desktop-categories__dropdown {
		width: min(680px, calc(100vw - 32px));
	}

	.main-navigation .aryarama-desktop-categories__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Tighten homepage content below hero stack */
.home .site-content {
	padding-top: 0;
}

.home .content-area {
	margin-top: 0;
}
