/* Soft header styles. */
.soft-header {
	position: relative;
	overflow: visible;
	background:
		radial-gradient(circle at 18% 0%, rgba(99, 102, 241, 0.22), transparent 32%),
		radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.12), transparent 34%),
		linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
	border-bottom: 1px solid rgba(129, 140, 248, 0.18);
	box-shadow: 0 12px 40px rgba(2, 14, 24, 0.08);
	z-index: 30;
}

.soft-header__glow {
	position: absolute;
	border-radius: 999px;
	filter: blur(28px);
	pointer-events: none;
	opacity: 0.55;
}

.soft-header__glow--left {
	left: 0;
	top: -40px;
	width: 220px;
	height: 220px;
	background: rgba(99, 102, 241, 0.20);
}

.soft-header__glow--right {
	right: 0;
	top: 20px;
	width: 180px;
	height: 180px;
	background: rgba(129, 140, 248, 0.12);
}

.soft-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 20px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.soft-header__nav {
	flex: 0 0 auto;
	min-width: 0;
}

.soft-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex-wrap: nowrap;
}

.soft-header__menu-item {
	position: relative;
	margin: 0;
}

.soft-header__menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 8px;
	border-radius: 999px;
	background: transparent !important;
	color: rgba(245, 251, 255, 0.92);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.soft-header__menu-item > a:hover,
.soft-header__menu-item > a:focus,
.soft-header__menu-item > a:focus-visible {
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
	color: #a5b4fc;
}

.soft-header__menu-item.has-dropdown {
	padding-bottom: 0;
}

.soft-header__mega {
	display: none;
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.soft-header__menu-item.has-dropdown:hover .soft-header__mega,
.soft-header__menu-item.has-dropdown:focus-within .soft-header__mega {
	display: block;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.soft-header__nav { position: relative; }

.soft-header__caret {
	display: inline-block;
	margin-left: 5px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	vertical-align: middle;
	opacity: 0.65;
	transition: transform 0.18s ease;
}

.soft-header__menu-item.has-dropdown:hover .soft-header__caret,
.soft-header__menu-item.has-dropdown:focus-within .soft-header__caret { transform: rotate(180deg); opacity: 0.9; }

.soft-header__mega::before {
	content: '';
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 16px;
}

.soft-header__mega--cat { width: 660px; }
.soft-header__mega--job { width: 780px; }
.soft-header__mega--vendor { width: 1080px; }

.soft-header__mega-inner {
	padding: 14px;
	border-radius: 16px;
	border: 1px solid rgba(191, 209, 230, 0.9);
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(10, 24, 38, 0.18);
}

.soft-header__mega--cat .soft-header__mega-inner,
.soft-header__mega--job .soft-header__mega-inner {
	display: grid;
	grid-template-columns: 1fr 200px;
	gap: 14px;
}
.soft-header__mega--job .soft-header__mega-inner { grid-template-columns: 1fr 220px; }

.soft-header__mega-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
}

.soft-header__mega-card {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 10px;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.soft-header__mega-card:hover { background: color-mix(in srgb, var(--mc) 9%, #ffffff); }

.soft-header__mega-ico {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--mcb);
	color: var(--mc);
}

.soft-header__mega-ico svg { width: 19px; height: 19px; }

.soft-header__mega-card-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.soft-header__mega-card-title { font-size: 13.5px; font-weight: 700; color: #16263a; line-height: 1.25; }
.soft-header__mega-card-text { font-size: 11.5px; color: #6b7d92; line-height: 1.3; }

.soft-header__mega-promo {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border-radius: 12px;
	background: linear-gradient(160deg, #4f46e5, #4338ca);
	color: #ffffff;
	text-decoration: none;
}

.soft-header__mega-promo-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	margin-bottom: 8px;
}

.soft-header__mega-promo-ico svg { width: 19px; height: 19px; }
.soft-header__mega-promo-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.soft-header__mega-promo-text { font-size: 11.5px; color: #e0e7ff; line-height: 1.5; margin-bottom: auto; }

.soft-header__mega-promo-btn {
	margin-top: 12px;
	background: #ffffff;
	color: #4338ca;
	font-size: 12.5px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 8px;
	text-align: center;
	transition: background 0.15s ease;
}

.soft-header__mega-promo:hover .soft-header__mega-promo-btn { background: #eef2ff; }

.soft-header__mega-title {
	margin: 0 0 12px;
	color: #4f46e5;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.soft-header__mega-brandgrid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2px 12px;
}

.soft-header__vendor {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 9px;
	border-radius: 9px;
	color: #26384b;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.soft-header__vendor:hover { background: rgba(79, 70, 229, 0.08); color: #4f46e5; }

.soft-header__vendor-mark {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--vc, #444);
}

.soft-header__vendor-mark svg { width: 20px; height: 20px; }
.soft-header__vendor-name { min-width: 0; white-space: nowrap; }

.soft-header__mega-alllink {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 12px;
	color: #4f46e5;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.soft-header__mega-alllink svg { width: 16px; height: 16px; }

.soft-header__home-icon {
	display: inline-block;
	margin-right: 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.08em;
	opacity: 0.95;
}

.soft-header__search {
	flex: 1 1 520px !important;
	width: auto !important;
	max-width: 520px !important;
	margin: 0 14px;
	min-width: 0;
}

.soft-header__search-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid rgba(186, 201, 226, 0.95);
	background: transparent;
	color: rgba(238, 246, 255, 0.72);
	cursor: pointer;
	text-align: left;
	min-width: 0;
	box-sizing: border-box;
}

.soft-header__search-trigger:hover,
.soft-header__search-trigger:focus {
	border-color: rgba(129, 140, 248, 0.55);
	color: #eef6ff;
}

.soft-header__search-icon {
	flex: 0 0 auto;
	font-size: 15px;
	line-height: 1;
	color: rgba(238, 246, 255, 0.82);
}

.soft-header__search-placeholder {
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.soft-header__contact {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	margin-left: auto;
}

.soft-header__hotline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(129, 140, 248, 0.34);
	color: #f6fffd;
	background: rgba(8, 28, 38, 0.22);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.soft-header__hotline:hover,
.soft-header__hotline:focus {
	color: #a5b4fc;
	border-color: rgba(129, 140, 248, 0.7);
	transform: translateY(-1px);
}

.soft-header__cta {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 12px;
	border-radius: 10px;
	text-decoration: none;
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.96), rgba(79, 70, 229, 0.86));
	box-shadow: 0 14px 30px rgba(10, 78, 66, 0.28);
	color: #f7fffd;
}

.soft-header__cta:hover,
.soft-header__cta:focus {
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(10, 78, 66, 0.34);
}

.soft-header__cta-title {
	font-size: 13px;
	line-height: 1.1;
	font-weight: 700;
}

.soft-search-open {
	overflow: hidden;
}

.soft-search-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 24px;
}

.soft-search-modal.is-open {
	display: flex;
}

.soft-search-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 28, 40, 0.42);
	backdrop-filter: blur(18px) saturate(120%);
}

.soft-search-modal__panel {
	position: relative;
	z-index: 1;
	width: min(1120px, 100%);
	padding: 24px;
	border-radius: 30px;
	background:
		radial-gradient(circle at 8% 0%, rgba(79, 70, 229, 0.12), transparent 22%),
		radial-gradient(circle at 95% 8%, rgba(99, 102, 241, 0.10), transparent 18%),
		radial-gradient(circle at 50% 120%, rgba(129, 140, 248, 0.08), transparent 34%),
		rgba(255, 255, 255, 0.985);
	border: 1px solid rgba(188, 206, 227, 0.72);
	box-shadow: 0 30px 90px rgba(18, 31, 46, 0.16);
	color: #233042;
}

.soft-search-modal__form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 0 12px;
	margin: 0 0 10px;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.soft-search-modal__search-icon {
	flex: 0 0 auto;
	color: #4f46e5;
	font-size: 16px;
	opacity: 0.9;
}

.soft-search-modal__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	outline: none !important;
	background: transparent !important;
	color: #1f2c3c;
	font-size: 15px;
	font-weight: 500;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0 !important;
	padding: 0 36px 0 0 !important;
	margin: 0 !important;
}

.soft-search-modal__input::-webkit-search-decoration,
.soft-search-modal__input::-webkit-search-cancel-button,
.soft-search-modal__input::-webkit-search-results-button,
.soft-search-modal__input::-webkit-search-results-decoration {
	display: none;
}

.soft-search-modal__input::placeholder {
	color: #94a3b8;
}

.soft-search-modal__clear {
	position: absolute;
	right: 0;
	top: 0;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4f46e5;
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
	cursor: pointer;
	transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
	opacity: 0.9;
}

.soft-search-modal__clear:hover {
	color: #4338ca;
	transform: scale(1.06);
	opacity: 1;
}

.soft-search-modal__clear[hidden] {
	display: none;
}

.soft-search-modal__keyboard {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.soft-search-modal__key {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 28px;
	padding: 0 8px;
	border-radius: 9px;
	border: 1px solid rgba(188, 206, 227, 0.84);
	background: rgba(255, 255, 255, 0.96);
	color: #5a6d85;
	font-size: 12px;
	font-weight: 700;
}

.soft-search-modal__suggestions {
	margin-top: 14px;
}

.soft-search-modal__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 360px);
	align-items: start;
	gap: 16px;
}

.soft-search-modal__section-title {
	margin: 0 0 10px;
	color: #4f46e5;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.soft-search-modal__card {
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.soft-search-modal__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
}

.soft-search-modal__links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 8px;
	border-radius: 12px;
	color: #25364a;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.18s ease, color 0.18s ease;
}

.soft-search-modal__links a:hover {
	background: rgba(79, 70, 229, 0.08);
	color: #4f46e5;
}

.soft-search-modal__result-icon {
	font-size: 15px;	color: #4f46e5;
}

.soft-search-modal__results {
	display: none;
	margin-top: 10px;
}

.soft-search-modal__results.is-active {
	display: block;
}

.soft-search-modal__empty {
	padding: 6px 0 2px;
	font-size: 13px;
	line-height: 1.4;
	color: #5a6d85;
}

.soft-search-modal__section--spotlight {
	display: grid;
	gap: 10px;
}

.soft-search-modal__category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.soft-search-modal__category-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-radius: 18px;
	background: linear-gradient(180deg, var(--card-bg, rgba(79, 70, 229, 0.08)), rgba(255, 255, 255, 0.92));
	border: 1px solid var(--card-border, rgba(167, 199, 222, 0.34));
	text-decoration: none;
	color: #25364a;
	box-shadow: 0 12px 28px rgba(16, 38, 58, 0.05);
	min-height: 68px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.soft-search-modal__category-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(16, 38, 58, 0.08);
	border-color: var(--card-border, rgba(79, 70, 229, 0.18));
}

.soft-search-modal__category-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: var(--card-icon-bg, rgba(79, 70, 229, 0.10));
	color: var(--card-icon-fg, #4f46e5);
	font-size: 18px;
	font-weight: 700;
}

.soft-search-modal__category-body {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.soft-search-modal__category-title {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.soft-search-modal__category-text {
	font-size: 12px;
	line-height: 1.35;
	color: #6d7d92;
}

.soft-search-modal__empty--spotlight {
	padding: 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(167, 199, 222, 0.26);
}

.soft-search-modal__results .soft-search-modal__result {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 14px;
	text-decoration: none;
	color: #25364a;
	transition: background 0.18s ease, transform 0.18s ease;
}

.soft-search-modal__results .soft-search-modal__result:hover {
	background: rgba(79, 70, 229, 0.06);
	transform: translateY(-1px);
}

.soft-search-modal__result-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(79, 70, 229, 0.08);
	border: 1px solid rgba(79, 70, 229, 0.10);
}

.soft-search-modal__result-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.soft-search-modal__result-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #4f46e5;
	font-size: 18px;
	font-weight: 700;
}

.soft-search-modal__result-body {
	min-width: 0;
	flex: 1 1 auto;
}

.soft-search-modal__result-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.soft-search-modal__result-excerpt {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	color: #6d7d92;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1100px) {
	.soft-header__search {
		flex: 1 1 380px !important;
		width: auto !important;
		max-width: 380px !important;
	}
}

@media (max-width: 960px) {
	.soft-header__mega {
		display: none !important;
	}

	.soft-header__inner {
		flex-wrap: wrap;
		padding: 14px 16px 12px;
	}

	.soft-header__nav {
		flex: 1 1 100%;
		min-width: 0;
	}

	.soft-header__menu {
		gap: 12px 14px;
		flex-wrap: wrap;
		width: 100%;
	}

	.soft-header__search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
		width: 100%;
		margin: 0;
	}

	.soft-header__contact {
		order: 4;
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}

	.soft-search-modal__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.soft-header__menu-item > a {
		padding: 8px 10px;
		font-size: 13px;
	}

	.soft-search-modal__panel {
		width: min(100vw - 12px, 1040px);
		padding: 12px;
		border-radius: 18px;
	}

	.soft-search-modal__form {
		height: auto;
		padding: 12px;
		flex-direction: column;
		align-items: stretch;
	}


	.soft-search-modal__keyboard {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

/* Quote launcher modal (global, for header CTA) */
.csi-quote-launcher-modal[hidden] { display: none !important; }
.csi-quote-launcher-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 99999 !important;
	display: grid !important;
	place-items: center !important;
	padding: 24px 14px !important;
}
.csi-quote-launcher-backdrop {
	position: absolute !important;
	inset: 0 !important;
	background: rgba(15, 23, 42, .48) !important;
}
.csi-quote-launcher-panel {
	position: relative !important;
	z-index: 1 !important;
	width: min(720px, 100%) !important;
	max-height: calc(100vh - 48px) !important;
	overflow: auto !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.csi-quote-launcher-close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 3 !important;
	width: 34px !important;
	height: 34px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	background: transparent !important;
	color: #334155 !important;
	font-size: 26px !important;
	line-height: 1 !important;
	cursor: pointer !important;
}
.csi-quote-launcher-close:hover { color: #0f172a !important; }
.csi-quote-launcher-body { width: 100% !important; }
html.csi-quote-modal-open, html.csi-quote-modal-open body { overflow: hidden !important; }
.csi-quote-launcher-modal .wpat-form-template--quote,
.csi-quote-launcher-modal .wpat-form,
.csi-quote-launcher-modal form[class*="wpat"] {
	box-shadow: 0 14px 34px rgba(15, 23, 42, .10) !important;
	border-color: rgba(148, 163, 184, .26) !important;
}

/* Be Vietnam Pro site-wide (matches homepage) */
body,
.soft-shop,
.soft-header,
.soft-footer,
.csi-wrap {
	font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
button, input, select, textarea { font-family: inherit; }

/* Floating quick-action bar (right side) */
.soft-fab {
	position: fixed;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.soft-fab__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(79, 70, 229, 0.18);
	color: #4f46e5;
	box-shadow: 0 8px 20px -8px rgba(16, 38, 58, 0.32);
	cursor: pointer;
	text-decoration: none;
	padding: 0;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.soft-fab__btn:hover { transform: translateY(-2px); background: #4f46e5; color: #ffffff; }
.soft-fab__btn svg { width: 20px; height: 20px; }
.soft-fab__btn--quote { background: #4f46e5; color: #ffffff; border-color: #4f46e5; }
.soft-fab__btn--quote:hover { background: #4338ca; color: #ffffff; }
.soft-fab__top[hidden] { display: none; }

@media (max-width: 600px) {
	.soft-fab { right: 10px; gap: 8px; }
	.soft-fab__btn { width: 40px; height: 40px; }
	.soft-fab__btn svg { width: 18px; height: 18px; }
}

/* Map modal (opened from the floating bar) */
.soft-map-modal[hidden] { display: none; }
.soft-map-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: grid;
	place-items: center;
	padding: 20px;
}
.soft-map-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); }
.soft-map-modal__panel {
	position: relative;
	z-index: 1;
	width: min(980px, 100%);
	border-radius: 18px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 30px 70px rgba(10, 24, 38, 0.35);
}
.soft-map-modal__map { display: block; width: 100%; height: 580px; border: 0; }
.soft-map-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: #334155;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(10, 24, 38, 0.2);
}
.soft-map-modal__info {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	width: min(330px, calc(100% - 32px));
	background: #ffffff;
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 14px 34px rgba(10, 24, 38, 0.18);
}
.soft-map-modal__info-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: #475569; margin-bottom: 10px; }
.soft-map-modal__info-ico { flex: 0 0 auto; color: #4f46e5; }
.soft-map-modal__info-ico svg { width: 18px; height: 18px; }
.soft-map-modal__info-txt strong { display: block; color: #16263a; font-weight: 700; margin-bottom: 1px; }
.soft-map-modal__dir {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	padding: 9px 14px;
	border-radius: 9px;
	background: #4f46e5;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.soft-map-modal__dir:hover { background: #4338ca; color: #ffffff; }
html.soft-map-open, html.soft-map-open body { overflow: hidden; }

@media (max-width: 600px) {
	.soft-map-modal__map { height: 360px; }
	.soft-map-modal__info { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

/* Single product trust cards: description sits in <em>. Be Vietnam Pro has no italic
   axis loaded, so the browser fakes oblique (ugly on Vietnamese diacritics). Force upright. */
.csi-trust-item em { font-style: normal !important; font-size: 12px !important; line-height: 1.45 !important; }
/* Title <strong> and description <em> were nearly touching (grid row-gap 2px). */
.csi-trust-item { row-gap: 6px !important; }

/* Related-product cards (SCI single template): host-application chips, matching home/shop. */
.csi-related-chips { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 5px; margin-top: 6px; }
.csi-related-chip {
	display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; max-width: 130px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding: 1px 7px; border-radius: 5px; background: transparent;
	border: 1px solid rgba(79, 70, 229, 0.4); color: #4338ca;
	font-size: 10.5px; font-weight: 500; line-height: 1.5;
}
.csi-related-chip--more { flex: 0 0 auto; border-color: rgba(0, 0, 0, 0.14); color: #6b7670; }

/* Related grid overflowed under the sidebar: repeat(2,1fr) can't shrink below min-content. */
.csi-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.csi-related-card { min-width: 0 !important; }
.csi-related-cta { flex: 0 0 auto; white-space: nowrap; }

/* Pro tooltips for the floating action bar — label pulled from each button's aria-label. */
.soft-fab { overflow: visible; }
.soft-fab__btn { position: relative; }
.soft-fab__btn::after {
	content: attr(aria-label);
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	background: #1e1b4b;
	color: #ffffff;
	font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	padding: 7px 11px;
	border-radius: 8px;
	box-shadow: 0 8px 20px -8px rgba(15, 42, 35, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.16s ease, transform 0.16s ease;
	z-index: 5;
}
.soft-fab__btn::before {
	content: "";
	position: absolute;
	right: calc(100% + 7px);
	top: 50%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-left-color: #1e1b4b;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.16s ease;
	z-index: 5;
}
.soft-fab__btn:hover::after,
.soft-fab__btn:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.soft-fab__btn:hover::before,
.soft-fab__btn:focus-visible::before { opacity: 1; }
@media (max-width: 600px) { .soft-fab__btn::after, .soft-fab__btn::before { display: none; } }


.soft-header__menu-item--static { position: static; }

/* ===== Simple mobile header: Home + search icon + contact, no mega menus ===== */
@media (max-width: 960px) {
	.soft-header__menu-item:not(:first-child) { display: none !important; }
	.soft-header__menu-item:first-child > a { padding: 10px 4px; }
	.soft-header__nav { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; }
	.soft-header__search { flex: 0 0 auto !important; width: auto !important; max-width: none !important; margin: 0 0 0 auto !important; }
	.soft-header__search-trigger { width: 42px !important; height: 42px !important; padding: 0 !important; justify-content: center !important; border-radius: 11px !important; }
	.soft-header__search-placeholder { display: none !important; }
	.soft-header__search-icon { margin: 0 !important; font-size: 19px !important; }
	.soft-header__contact { order: 4; }
}

/* ===== Mobile header on a single row: Home | search icon | phone icon | quote ===== */
@media (max-width: 960px) {
	.soft-header__inner { flex-wrap: nowrap !important; align-items: center !important; gap: 8px !important; padding: 12px 14px !important; }
	.soft-header__nav { flex: 0 0 auto !important; }
	.soft-header__search { order: 2 !important; margin: 0 0 0 auto !important; }
	.soft-header__contact { order: 3 !important; width: auto !important; margin: 0 !important; gap: 6px !important; flex: 0 0 auto !important; }
	.soft-header__hotline {
		width: 42px !important; height: 42px !important; min-width: 42px !important; padding: 0 !important;
		font-size: 0 !important; display: inline-flex !important; align-items: center !important;
		justify-content: center !important; border-radius: 11px !important;
	}
	.soft-header__hotline::before { content: "\260E"; font-size: 18px !important; line-height: 1 !important; }
	.soft-header__cta { height: 42px !important; padding: 0 14px !important; white-space: nowrap !important; }
}

.soft-header__search-icon svg { width: 18px; height: 18px; display: block; }
@media (max-width: 960px) { .soft-header__search-icon svg { width: 19px; height: 19px; } }

/* Hide the floating action bar on mobile */
@media (max-width: 768px) { .soft-fab { display: none !important; } }

/* Hide phone hotline from header on mobile (FAB/footer still has it on desktop) */
@media (max-width: 960px) { .soft-header__hotline { display: none !important; } }

/* Mobile search popup: keep only "Tìm kiếm phổ biến" */
@media (max-width: 768px) {
	.soft-search-modal__grid > .soft-search-modal__section:first-child { display: none !important; }
	.soft-search-modal__section--spotlight { display: none !important; }
}

/* Mobile search form: keep icon + input on one row; SVG search icon */
.soft-search-modal__search-icon svg { width: 18px; height: 18px; display: block; }
@media (max-width: 768px) {
	.soft-search-modal__form { flex-direction: row !important; align-items: center !important; gap: 8px !important; }
	.soft-search-modal__input { flex: 1 1 auto !important; min-width: 0 !important; }
}

/* Mobile search popup: give the input a clear boxed field */
@media (max-width: 768px) {
	.soft-search-modal__form {
		padding: 7px 10px !important;
		border: 1px solid rgba(79, 70, 229, 0.30) !important;
		border-radius: 12px !important;
		background: #f6fbf9 !important;
		margin: 0 0 12px !important;
		gap: 8px !important;
	}
	.soft-search-modal__input { font-size: 16px !important; padding: 6px 6px 6px 0 !important; }
	.soft-search-modal__search-icon { color: #4f46e5 !important; }
}

/* Search popup: cap panel height, scroll results (input stays pinned at top) */
.soft-search-modal__panel {
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.soft-search-modal__form { flex: 0 0 auto; }
.soft-search-modal__results,
.soft-search-modal__suggestions {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Mobile: make the search popup shorter (more breathing room top/bottom) */
@media (max-width: 768px) {
	.soft-search-modal__panel { max-height: 75vh !important; max-height: 75dvh !important; }
}

/* Mobile: single-product spec card -> 1 column, left-aligned, horizontal dividers */
@media (max-width: 768px) {
	body.single-product .csi-image-mini-panel.csi-inline-specs { grid-template-columns: 1fr !important; }
	body.single-product .csi-inline-specs .csi-inline-spec { padding: 10px 0 !important; border-left: 0 !important; }
	body.single-product .csi-inline-specs .csi-inline-spec:not(:first-child) { border-top: 1px solid rgba(219, 230, 242, .78) !important; }
}

/* Hide the trust-bar cluster on mobile (single product) */
@media (max-width: 768px) { .csi-trust-bar { display: none !important; } }

/* Mobile: related products 1 column (override the desktop 2-col fix) */
@media (max-width: 640px) { .csi-related-grid { grid-template-columns: 1fr !important; } }

/* Mobile related cards: wrap the CTA below so chips get full width */
@media (max-width: 640px) {
	.csi-related-card { flex-wrap: wrap !important; }
	.csi-related-body { flex: 1 1 0 !important; min-width: 0 !important; }
	.csi-related-cta { flex: 1 1 100% !important; justify-content: flex-end !important; margin-top: 6px !important; }
	.csi-related-chips { flex-wrap: wrap !important; }
}

/* Mobile related cards: hide the "Xem chi tiết" link, show a corner arrow instead */
@media (max-width: 640px) {
	.csi-related-cta { display: none !important; }
	.csi-related-card { position: relative !important; }
	.csi-related-body { padding-right: 22px !important; }
	.csi-related-card::after {
		content: "";
		position: absolute;
		top: 14px;
		right: 14px;
		width: 18px;
		height: 18px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8b6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
		pointer-events: none;
	}
}

