/* =========================================================================
 * Header + menu mobile (màn hình < 1100px — ngưỡng mobileWidth của menu
 * Impreza, xem template-parts/impreza-header.php).
 *
 * Header: logo bên trái, nút Báo giá và nút ☰ dồn sang phải.
 * Menu:   tấm trắng thả xuống dưới header, nền trang phía dưới phủ mờ; mỗi
 *         mục một hàng có gạch ngăn; "Sản phẩm" bung ra khung xám nhạt chứa
 *         xe chia theo danh mục; cuối menu là hai nút Gọi / Zalo.
 *
 * Lưu ý: JS Impreza đặt inline padding-top/bottom = 0 cho danh sách khi trượt
 * mở, nên khoảng đệm trên/dưới phải đặt trên các <li>, không đặt trên <ul>.
 * ====================================================================== */

/* Mục Gọi / Zalo chỉ dành cho menu mobile. */
.w-nav.type_desktop .vfdt-mnav-cta{display:none}

@media (max-width:1099px){

	/* ---------- Header ---------- */
	.l-subheader.at_middle .l-subheader-h{gap:.6rem}
	.l-subheader-cell.at_left{flex:1 1 auto;min-width:0}
	.l-subheader-cell.at_right{order:2;flex:0 0 auto}
	.l-subheader-cell.at_center{order:3;flex:0 0 auto}

	.ush_menu_1 .w-nav-control{
		display:flex;align-items:center;justify-content:center;
		width:42px;height:42px;padding:0;border-radius:12px;
		background:var(--color-content-primary-faded);color:var(--color-content-primary);
		transition:background .2s,color .2s;
	}
	.ush_menu_1 .w-nav-control.active{background:var(--color-content-primary);color:#fff}
	.ush_menu_1 .w-nav-icon{--icon-size:20px!important;--icon-thickness:2px!important}

	.ush_popup_1 .w-popup-trigger.w-btn{font-size:.75rem;padding:.9em 1.3em;box-shadow:0 4px 12px rgba(39,124,234,.3)}

	/* ---------- Tấm menu ---------- */
	.header_hor .w-nav.ush_menu_1.type_mobile.m_layout_dropdown .w-nav-list.level_1{
		background:#fff;
		box-shadow:0 14px 28px -10px rgba(15,23,42,.25),0 0 0 100vmax rgba(15,23,42,.45);
		clip-path:inset(0 -100vmax -100vmax -100vmax); /* nền mờ chỉ phủ phía dưới header */
		overscroll-behavior:contain;
	}
	.ush_menu_1.type_mobile .w-nav-list.level_1>li:first-child{padding-top:.4rem}
	.ush_menu_1.type_mobile .w-nav-close{display:none!important}

	/* Menu đang mở: ẩn hai nút nổi Zalo / Hotline của plugin cho khỏi đè. */
	body:has(.ush_menu_1 .w-nav-control.active) #button-contact-vr{display:none!important}

	/* Mục cấp 1 */
	.ush_menu_1.type_mobile .w-nav-item.level_1{border-bottom:1px solid #eef1f5}
	.ush_menu_1.type_mobile .w-nav-anchor.level_1{
		display:flex;align-items:center;gap:.75rem;
		padding:.95rem .15rem!important;
		font-size:1rem!important;letter-spacing:.02em;
		color:var(--color-content-heading);
	}
	.ush_menu_1.type_mobile .w-nav-anchor.level_1 .w-nav-title{flex:1 1 auto;padding:0!important}
	.ush_menu_1.type_mobile .w-nav-item.level_1.current-menu-item>a,
	.ush_menu_1.type_mobile .w-nav-item.level_1.current-menu-ancestor>a,
	.ush_menu_1.type_mobile .w-nav-item.level_1.opened>a{color:var(--color-content-primary)}
	.ush_menu_1.type_mobile .w-nav-item.level_1.current-menu-item>a .w-nav-title:before{
		content:'';display:inline-block;width:6px;height:6px;margin:0 .55em .15em 0;border-radius:50%;
		background:currentColor;vertical-align:middle;
	}

	/* Nút bung "Sản phẩm" */
	.ush_menu_1.type_mobile .menu-item-has-children>.w-nav-anchor .w-nav-arrow{
		position:static!important;flex:0 0 auto;
		display:flex;align-items:center;justify-content:center;
		width:32px;height:32px;margin:0!important;padding:0!important;border-radius:50%;
		background:#f1f5fb;color:var(--color-content-heading);
		transition:transform .3s,background .2s,color .2s;
	}
	.ush_menu_1.type_mobile .menu-item-has-children>.w-nav-anchor .w-nav-arrow:before{font-size:1.15em!important;line-height:1}
	.ush_menu_1.type_mobile .menu-item-has-children.opened>.w-nav-anchor .w-nav-arrow{background:var(--color-content-primary);color:#fff}

	/* ---------- Khung xe trong "Sản phẩm" ---------- */
	.ush_menu_1.type_mobile .vfdt-megamenu>.w-nav-list.level_2{background:#f5f8fc;border-radius:14px;margin-bottom:1rem}
	.ush_menu_1.type_mobile .vfdt-mm-mobile.us_custom_62e46706{padding:1rem!important}

	.vfdt-mm-group+.vfdt-mm-group{margin-top:1.1rem}
	.vfdt-mm-group-title{
		display:flex;align-items:center;gap:.6rem;margin:0 0 .6rem;
		font-family:var(--h1-font-family);font-size:.75rem;font-weight:700;line-height:1.4;
		text-transform:uppercase;letter-spacing:.06em;color:var(--color-content-faded);
	}
	.vfdt-mm-group-title:after{content:'';flex:1;height:1px;background:#dfe5ee}

	.vfdt-mm-mobile .w-grid{--columns:3!important;--gap:.5rem!important}
	.vfdt-mm-mobile .w-grid-list{gap:.5rem!important}
	.vfdt-mm-mobile .w-grid-item{margin:0!important}
	.vfdt-mm-mobile .usg_post_title_1{margin:0!important;font-size:.85rem!important;line-height:1.3}
	.vfdt-mm-mobile .usg_post_title_1 a{
		display:flex;align-items:center;min-height:44px;padding:.5rem .75rem;
		background:#fff;border:1px solid #e3e8ef;border-radius:10px;
		color:var(--color-content-heading);
		transition:border-color .2s,color .2s,background .2s;
	}
	.vfdt-mm-mobile .usg_post_title_1 a:hover,
	.vfdt-mm-mobile .usg_post_title_1 a:active{border-color:var(--color-content-primary);color:var(--color-content-primary)}

	/* ---------- Nút Gọi / Zalo cuối menu ---------- */
	.ush_menu_1.type_mobile .vfdt-mnav-cta{
		display:grid;grid-template-columns:1fr 1fr;gap:.6rem;
		padding:1rem 0 1.25rem;line-height:1.3;text-transform:none;
	}
	.vfdt-mnav-btn{
		display:flex;align-items:center;gap:.65rem;padding:.65rem .85rem;border-radius:12px;
		font-family:var(--h1-font-family);font-size:1rem;font-weight:700;letter-spacing:.02em;
		text-decoration:none!important;transition:filter .2s;
	}
	.vfdt-mnav-btn i{
		flex:0 0 auto;display:flex;align-items:center;justify-content:center;
		width:34px;height:34px;border-radius:50%;font-size:.9rem;
	}
	.vfdt-mnav-btn span{display:flex;flex-direction:column;min-width:0}
	.vfdt-mnav-btn small{font-family:var(--font-family);font-size:.7rem;font-weight:400;letter-spacing:0;opacity:.85}
	.vfdt-mnav-btn.is-call{background:var(--color-content-primary);color:#fff!important;box-shadow:0 6px 14px rgba(39,124,234,.3)}
	.vfdt-mnav-btn.is-call i{background:rgba(255,255,255,.2)}
	.vfdt-mnav-btn.is-zalo{background:#fff;color:#0068ff!important;border:1px solid #cfe0ff}
	.vfdt-mnav-btn.is-zalo i{background:#e8f1ff}
	.vfdt-mnav-btn:active{filter:brightness(.95)}
}

@media (max-width:600px){
	.l-subheader.width_full{padding-left:1rem;padding-right:1rem}
	.ush_image_1{height:38px!important}
	.vfdt-mm-mobile .w-grid{--columns:2!important}
}

@media (max-width:360px){
	.ush_popup_1 .w-popup-trigger.w-btn{padding:.9em 1em}
	.ush_popup_1 .w-popup-trigger i{display:none}
	.ush_menu_1.type_mobile .vfdt-mnav-cta{grid-template-columns:1fr}
}
