/* Asia United Carpet — modern textile-inspired mega menu, v1.31.0.
 * One source of truth for desktop, touch, keyboard and reduced motion.
 * All visual rules are scoped to the mega menu; other theme menus stay intact.
 */
.asiarug-mega-menu-item {
	--mega-ink: #193c35;
	--mega-muted: #687970;
	--mega-jade: #135e4e;
	--mega-border: #e4e9e2;
	--mega-ease: cubic-bezier(.2, .75, .25, 1);
	position: static !important;
}
.asiarug-mega-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 4px 13px 4px 6px;
	border: 1px solid rgba(235, 218, 179, .28);
	border-radius: 15px;
	background: rgba(255, 255, 255, .055);
	color: #fff7e4;
	font: inherit;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.5;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.asiarug-mega-trigger:hover,
.asiarug-mega-menu-item.is-open > .asiarug-mega-trigger {
	border-color: #d9c59a;
	background: rgba(229, 211, 172, .11);
	box-shadow: 0 0 0 3px rgba(229, 211, 172, .05);
}
.asiarug-mega-trigger__icon {
	display: grid;
	place-items: center;
	width: 43px;
	height: 43px;
	flex: 0 0 auto;
	border-radius: 11px;
	background: #f4f1e8;
}
.asiarug-mega-object-icon {
	display: block;
	width: 64px;
	height: 64px;
	max-width: none;
	object-fit: contain;
}
.asiarug-mega-trigger__icon .asiarug-mega-object-icon { width: 41px; height: 41px; }
.asiarug-mega-trigger__chevron {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	color: #e2d2af;
	transition: transform .22s var(--mega-ease);
}
.asiarug-mega-menu-item.is-open .asiarug-mega-trigger__chevron { transform: rotate(180deg); }
.asiarug-mega-panel {
	position: absolute;
	z-index: 100;
	top: calc(100% + 14px);
	left: 50%;
	width: min(1080px, calc(100vw - 48px), calc(100% - 12px));
	max-height: min(680px, calc(100vh - 150px));
	max-height: min(680px, calc(100dvh - 150px));
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid rgba(222, 226, 214, .98);
	border-radius: 24px;
	background: #fffefa;
	color: var(--mega-ink);
	box-shadow: 0 30px 80px rgba(5, 28, 25, .24), 0 8px 20px rgba(5, 28, 25, .1);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 10px);
	transition: opacity .2s var(--mega-ease), transform .2s var(--mega-ease), visibility .2s;
	white-space: normal;
	text-align: right;
	scrollbar-width: thin;
	scrollbar-color: #bac9bd #f6f7f2;
}
.asiarug-mega-menu-item.is-open > .asiarug-mega-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}
/* Disable the primary navigation's decorative underline inside this panel. */
.asiarug-mega-panel a::after { content: none; }
.asiarug-mega-panel .asiarug-icon-svg { display: block; width: 20px; height: 20px; }
.asiarug-mega-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 28px;
	border-bottom: 1px solid var(--mega-border);
	background: #fffefa;
}
.asiarug-mega-top__copy { min-width: 0; }
.asiarug-mega-eyebrow {
	display: block;
	margin-bottom: 3px;
	color: #8a7854;
	font-size: 12px;
	font-weight: 650;
}
.asiarug-mega-top h2 {
	margin: 0;
	color: var(--mega-ink);
	font-size: clamp(19px, 1.65vw, 23px);
	font-weight: 850;
	line-height: 1.6;
	letter-spacing: -.5px;
}
.asiarug-mega-panel a.asiarug-mega-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 48px;
	flex: 0 0 auto;
	padding: 8px 17px 8px 9px;
	border: 1px solid #135e4e;
	border-radius: 13px;
	background: #135e4e;
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.5;
	transition: background .2s, box-shadow .2s;
}
.asiarug-mega-panel a.asiarug-mega-all:hover {
	background: #0d483c;
	color: #fff;
	box-shadow: 0 6px 18px rgba(19, 94, 78, .2);
}
.asiarug-mega-all__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .13);
	color: #e9d7aa;
}
.asiarug-mega-columns {
	position: relative;
	display: grid;
	grid-template-columns: 276px minmax(0, 1fr);
	grid-auto-rows: min-content;
	align-content: start;
	gap: 7px 0;
	min-height: 438px;
	padding: 20px 18px 24px;
	background: linear-gradient(to left, #f3f4ec 0, #f3f4ec 294px, #fffefa 294px, #fffefa 100%);
}
.asiarug-mega-rail-label {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	padding: 9px 16px 13px;
	color: #687365;
	font-size: 12px;
	font-weight: 600;
}
.asiarug-mega-context {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	margin: 0 24px 4px 6px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--mega-border);
}
.asiarug-mega-context strong { display: block; font-size: 20px; font-weight: 850; line-height: 1.5; }
.asiarug-mega-context p { margin: 4px 0 0; color: var(--mega-muted); font-size: 13px; line-height: 1.6; }
.asiarug-mega-context__detail { color: #8a7854; font-size: 12px; white-space: nowrap; }
.asiarug-mega-column { grid-column: 1; min-width: 0; margin: 0; padding: 0 0 0 14px; }
.asiarug-mega-column h3 { display: block; margin: 0; padding: 0; font: inherit; }
.asiarug-mega-group-trigger {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 78px;
	padding: 9px 9px 9px 12px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: transparent;
	color: var(--mega-ink);
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition: background .18s, border-color .18s, box-shadow .18s;
}
.asiarug-mega-group-trigger:hover { border-color: #dde4d6; background: #fbfcf7; }
.asiarug-mega-column.is-active .asiarug-mega-group-trigger {
	border-color: #195c4c;
	background: #195c4c;
	color: #fff;
	box-shadow: 0 7px 16px rgba(25, 92, 76, .12);
}
.asiarug-mega-column__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	flex: 0 0 auto;
	border: 1px solid rgba(207, 213, 195, .45);
	border-radius: 13px;
	background: #fffdf6;
}
.asiarug-mega-column__icon .asiarug-mega-object-icon { width: 57px; height: 57px; }
.asiarug-mega-column__heading {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	color: inherit;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
}
.asiarug-mega-column__heading small {
	display: block;
	margin-top: 5px;
	color: #6f7a6b;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
}
.asiarug-mega-column.is-active .asiarug-mega-column__heading small { color: #d0dfd5; }
.asiarug-mega-count {
	display: grid;
	place-items: center;
	min-width: 23px;
	height: 24px;
	flex: 0 0 auto;
	padding: 0 4px;
	border-radius: 7px;
	background: rgba(25, 60, 53, .06);
	color: #51665a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}
.asiarug-mega-column.is-active .asiarug-mega-count { background: rgba(255, 255, 255, .12); color: #f8f1da; }
.asiarug-mega-group-chevron { display: grid; place-items: center; width: 16px; flex: 0 0 auto; color: #819384; }
.asiarug-mega-group-chevron .asiarug-icon-svg { width: 16px; height: 16px; }
.asiarug-mega-column.is-active .asiarug-mega-group-chevron { color: #e8d6a9; }
.asiarug-mega-column > ul {
	position: absolute;
	top: 108px;
	right: 318px;
	bottom: 24px;
	left: 24px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
	gap: 10px;
	margin: 0;
	padding: 2px 2px 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: #b3c4b6 transparent;
}
.asiarug-mega-column > ul[hidden] { display: none !important; }
.asiarug-mega-column > ul::-webkit-scrollbar { width: 5px; }
.asiarug-mega-column > ul::-webkit-scrollbar-thumb { border-radius: 10px; background: #b3c4b6; }
.asiarug-mega-column > ul > li { display: block; min-width: 0; margin: 0; padding: 0; }
.asiarug-mega-column li a.asiarug-mega-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 59px;
	height: 100%;
	padding: 12px 14px;
	border: 1px solid #e4e9e2;
	border-radius: 12px;
	background: #fff;
	color: #284a40;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.8;
	white-space: normal;
	transition: background .18s, border-color .18s, box-shadow .18s;
}
.asiarug-mega-link__text { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; white-space: normal; }
.asiarug-mega-link__marker { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 2px; background: #b7c5b7; transform: rotate(45deg); }
.asiarug-mega-link__arrow { display: grid; place-items: center; width: 22px; flex: 0 0 auto; color: #9baca0; transition: transform .18s, color .18s; }
.asiarug-mega-link__arrow .asiarug-icon-svg { width: 18px; height: 18px; }
.asiarug-mega-column li a.asiarug-mega-link:hover,
.asiarug-mega-column li a.asiarug-mega-link:focus-visible {
	border-color: #a4bfab;
	background: #f1f7f0;
	color: #125540;
	box-shadow: 0 4px 12px rgba(18, 85, 64, .06);
}
.asiarug-mega-link:hover .asiarug-mega-link__arrow { color: #135e4e; transform: translateX(-3px); }
.asiarug-mega-color-dot {
	position: relative;
	display: block;
	width: 27px;
	height: 27px;
	flex: 0 0 auto;
	border: 1px solid rgba(32, 48, 38, .18);
	border-radius: 7px;
	background-color: var(--mega-color, #b8aa8e);
	background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, .18) 2px 3px), repeating-linear-gradient(90deg, transparent 0 2px, rgba(0, 0, 0, .06) 2px 3px), linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(0, 0, 0, .12));
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 2px 3px rgba(27, 47, 36, .1);
	transform: rotate(-5deg);
}
.asiarug-mega-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 66px;
	padding: 12px 28px;
	border-top: 1px solid var(--mega-border);
	background: #fbfbf6;
}
.asiarug-mega-footer__note { display: inline-flex; align-items: center; gap: 10px; color: #6d796c; font-size: 13px; line-height: 1.7; }
.asiarug-mega-footer__note > span { color: #a78a56; }
.asiarug-mega-panel a.asiarug-mega-footer__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 6px 10px;
	border-radius: 10px;
	color: #195c4c;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.5;
}
.asiarug-mega-panel a.asiarug-mega-footer__link:hover { background: #edf3e9; color: #0d483c; }
.asiarug-mega-empty { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; min-height: 220px; padding: 24px; text-align: center; }
.asiarug-mega-empty > span { margin-bottom: 16px; }
.asiarug-mega-empty strong { font-size: 20px; }
.asiarug-mega-empty p { margin: 8px 0 0; color: var(--mega-muted); font-size: 15px; }
.asiarug-mega-trigger:focus-visible,
.asiarug-mega-group-trigger:focus-visible,
.asiarug-mega-panel a:focus-visible { outline: 3px solid #bf9a52; outline-offset: 3px; }
@media (min-width: 781px) {
	#site-header .primary-nav { position: static; }
	.primary-menu > li.asiarug-mega-menu-item::after {
		position: absolute;
		top: 100%;
		right: 6px;
		left: 6px;
		height: 16px;
		content: "";
		pointer-events: none;
	}
	.primary-menu > li.asiarug-mega-menu-item.is-open::after { pointer-events: auto; }
}
/* Allow a second navigation row before the mobile breakpoint instead of
 * pushing WooCommerce account/cart controls outside the header. */
@media (min-width: 781px) and (max-width: 1100px) {
	#site-header { grid-template-columns: minmax(190px, 1fr) minmax(0, auto) auto; }
	#site-header .primary-nav { min-width: 0; }
	#site-header .primary-menu { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
}
@media (min-width: 781px) and (max-width: 1000px) {
	.asiarug-mega-trigger { gap: 6px; padding-inline: 6px; font-size: 15px; }
	.asiarug-mega-trigger__icon { width: 36px; height: 39px; }
	.asiarug-mega-trigger__icon .asiarug-mega-object-icon { width: 36px; height: 36px; }
	.asiarug-mega-columns { grid-template-columns: 252px minmax(0, 1fr); background: linear-gradient(to left, #f3f4ec 270px, #fffefa 270px); }
	.asiarug-mega-column { padding-left: 10px; }
	.asiarug-mega-column__icon { width: 49px; height: 52px; }
	.asiarug-mega-column__icon .asiarug-mega-object-icon { width: 49px; height: 49px; }
	.asiarug-mega-column > ul { right: 294px; }
	.asiarug-mega-column li a.asiarug-mega-link { gap: 8px; padding-inline: 10px; }
}
@media (max-width: 780px) {
	#site-header .primary-nav { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
	.primary-menu > li.asiarug-mega-menu-item { display: block; width: 100%; }
	.asiarug-mega-trigger { width: 100%; justify-content: flex-start; padding: 5px 9px; font-size: 16px; text-align: right; }
	.asiarug-mega-trigger__chevron { margin-inline-start: auto; }
		.asiarug-mega-panel {
			position: static;
			display: none;
			width: 100%;
			max-height: calc(100vh - 190px);
			max-height: calc(100dvh - 190px);
			margin: 10px 0 8px;
			border-radius: 16px;
			box-shadow: none;
			transform: none;
			overflow-x: hidden;
			overflow-y: auto;
			-webkit-overflow-scrolling: touch;
			overscroll-behavior-y: contain;
			touch-action: pan-y;
		}
		.asiarug-mega-menu-item.is-open > .asiarug-mega-panel { display: block; transform: none; }
		.asiarug-mega-top { align-items: stretch; flex-direction: column; gap: 13px; padding: 19px 16px 16px; }
	.asiarug-mega-top h2 { font-size: 19px; }
	.asiarug-mega-panel a.asiarug-mega-all { justify-content: space-between; width: 100%; font-size: 15px; }
	.asiarug-mega-columns { display: block; min-height: 0; padding: 10px; background: #f4f5ee; }
	.asiarug-mega-rail-label, .asiarug-mega-context { display: none; }
	.asiarug-mega-column { margin: 0 0 8px; padding: 0; }
	.asiarug-mega-column:last-child { margin-bottom: 0; }
	.asiarug-mega-group-trigger { min-height: 76px; gap: 10px; padding: 9px; border-color: #e2e7dc; border-radius: 13px; background: #fffefa; }
	.asiarug-mega-column__icon { width: 52px; height: 54px; }
	.asiarug-mega-column__icon .asiarug-mega-object-icon { width: 52px; height: 52px; }
		.asiarug-mega-column__heading { font-size: 17px; }
		.asiarug-mega-column__heading small { font-size: 12px; }
		.asiarug-mega-group-chevron { width: 20px; transform: rotate(-90deg); transition: transform .2s; }
		.asiarug-mega-column.is-active .asiarug-mega-group-chevron { transform: rotate(90deg); }
		/* Keep one touch-scroll region for the whole open menu instead of nested list scrollers. */
		.asiarug-mega-column > ul { position: static; grid-template-columns: 1fr; gap: 7px; max-height: none; margin: 8px 0 12px; padding: 4px; overflow: visible; }
	.asiarug-mega-column li a.asiarug-mega-link { min-height: 52px; padding: 10px 12px; font-size: 16px; }
	.asiarug-mega-footer { flex-wrap: wrap; gap: 7px; padding: 12px 16px; }
	.asiarug-mega-footer__note { width: 100%; font-size: 12px; }
	.asiarug-mega-panel a.asiarug-mega-footer__link { margin-inline-start: auto; }
	.asiarug-mega-empty { min-height: 210px; padding: 20px 10px; }
}
@media (min-width: 481px) and (max-width: 780px) {
	.asiarug-mega-column > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.asiarug-mega-top { flex-direction: row; align-items: center; }
	.asiarug-mega-panel a.asiarug-mega-all { width: auto; }
}
@media (max-width: 360px) {
	.asiarug-mega-column__icon { width: 44px; height: 48px; }
	.asiarug-mega-column__icon .asiarug-mega-object-icon { width: 44px; height: 44px; }
	.asiarug-mega-group-trigger { gap: 7px; padding-inline: 7px; }
	.asiarug-mega-count { min-width: 20px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.asiarug-mega-menu-item *, .asiarug-mega-menu-item *::before, .asiarug-mega-menu-item *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
