/* ==========================================================================
   MVPRO - Category UI (compact dropdown filters like truongthanhaudio)
   ========================================================================== */

.mvpro-catui {
	margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   Sub category pills
   -------------------------------------------------------------------------- */
.mvpro-pills-wrap {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 12px 16px 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.mvpro-pills__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.mvpro-pills__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.mvpro-pills-scroll {
	position: relative;
}

.mvpro-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 2px 0 6px;
}

.mvpro-pills::-webkit-scrollbar {
	display: none;
}

.mvpro-pill {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border: 1px solid #f2f4f7;
	border-radius: 8px;
	background: #f2f4f7;
	color: #333 !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none !important;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.mvpro-pill:hover {
	border-color: #2289da;
	color: #2289da !important;
}

.mvpro-pill.is-active {
	background: #ffd800;
	border-color: #ffd800;
	color: #111 !important;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Filter panel - horizontal dropdown bar
   -------------------------------------------------------------------------- */
.mvpro-filter {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px 12px 0 0;
	padding: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.mvpro-filter__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.mvpro-filter-toggle-wrap {
	flex: 0 0 auto;
}

.mvpro-filter__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease;
}

.mvpro-filter__toggle:hover {
	border-color: #2a83e9;
	color: #2a83e9;
}

.mvpro-filter__icon {
	flex: 0 0 auto;
}

.mvpro-filter__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #ffd800;
	color: #111;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.mvpro-chosen {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
}

.mvpro-chosen__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid #ffe58a;
	border-radius: 6px;
	background: #fffbe6;
	color: #8a6d00 !important;
	font-size: 13px;
	text-decoration: none !important;
}

.mvpro-chosen__item span {
	font-size: 15px;
	line-height: 1;
	color: #b58b00;
}

.mvpro-chosen__clear {
	font-size: 13px;
	color: #d0021b !important;
	text-decoration: underline !important;
}

/* Body: horizontal row of dropdown groups */
.mvpro-filter__body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0;
	padding: 10px 20px 14px;
}

/* Each group is a dropdown item */
.mvpro-fgroup {
	position: relative;
	display: inline-block;
	margin-right: 4px;
}

.mvpro-filter-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #f7f7f7;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
	white-space: nowrap;
}

.mvpro-filter-title:hover {
	border-color: #2289da;
	color: #2289da;
}

.mvpro-filter-arrow {
	font-size: 9px;
	line-height: 1;
	color: #999;
	transition: transform .18s ease;
}

.mvpro-fgroup.is-open .mvpro-filter-arrow {
	transform: rotate(180deg);
}

/* Dropdown list - hidden by default, opens below */
.mvpro-filter-list {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 50;
	min-width: 240px;
	max-width: 360px;
	max-height: 320px;
	overflow-y: auto;
	padding: 12px;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}

.mvpro-fgroup.is-open .mvpro-filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Chips inside dropdown */
.mvpro-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 7px;
	background: #f5f5f5;
	color: #444 !important;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none !important;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.mvpro-chip:hover {
	border-color: #2289da;
	color: #2289da !important;
}

.mvpro-chip.is-active {
	border-color: #2289da;
	background: #eaf4ff;
	color: #1a6dbd !important;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Sort / count bar
   -------------------------------------------------------------------------- */
.mvpro-sortbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 20px;
	border: 1px solid #ececec;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.mvpro-sortbar__title {
	margin: 0 !important;
	padding: 0 !important;
	color: #111;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.mvpro-sortbar__quick {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.mvpro-quickchip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid #dfdfdf;
	border-radius: 6px;
	background: #f0f0f0;
	color: #555 !important;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none !important;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.mvpro-quickchip:hover {
	border-color: #2289da;
	color: #2289da !important;
}

.mvpro-quickchip.is-active {
	border-color: #ffd800;
	background: #fff8d6;
	color: #7a5f00 !important;
	font-weight: 700;
}

.mvpro-sortbar__sort {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 14px;
}

.mvpro-sortbar__label {
	margin-right: 4px;
	color: #777;
}

.mvpro-sort {
	padding: 6px 10px;
	border-radius: 6px;
	color: #444 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.mvpro-sort:hover {
	color: #2a83e9 !important;
}

.mvpro-sort.is-active {
	background: #ffd800;
	color: #111 !important;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Loading state (AJAX filter)
   -------------------------------------------------------------------------- */
.mvpro-loading .shop-container .products {
	position: relative;
	opacity: .35;
	pointer-events: none;
	transition: opacity .2s ease;
}

.mvpro-loading .shop-container .products::after {
	content: "";
	position: absolute;
	top: 70px;
	left: 50%;
	width: 32px;
	height: 32px;
	margin-left: -16px;
	border: 3px solid #ffd800;
	border-top-color: transparent;
	border-radius: 50%;
	animation: mvpro-spin .7s linear infinite;
}

@keyframes mvpro-spin {
	to {
		transform: rotate(360deg);
	}
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 48em) {
	.mvpro-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.mvpro-pills::-webkit-scrollbar {
		display: none;
	}

	.mvpro-pills-wrap,
	.mvpro-filter,
	.mvpro-sortbar {
		border-radius: 10px;
	}

	.mvpro-pill,
	.mvpro-chip {
		padding: 8px 13px;
		font-size: 13px;
	}

	.mvpro-filter__head {
		padding: 10px 12px;
	}

	.mvpro-filter__body {
		padding: 10px 12px 14px;
	}

	/* On mobile: groups stack vertically, dropdowns open inline (full width) */
	.mvpro-fgroup {
		display: block;
		width: 100%;
		margin-right: 0;
		margin-bottom: 6px;
	}

	.mvpro-filter-title {
		width: 100%;
		justify-content: space-between;
	}

	.mvpro-filter-list {
		position: static;
		width: 100%;
		max-width: 100%;
		max-height: none;
		margin-top: 6px;
		box-shadow: none;
		border: 1px solid #eee;
	}

	.mvpro-sortbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.mvpro-sortbar__title {
		font-size: 17px;
	}
}

/* --------------------------------------------------------------------------
   Scroll arrows (JS auto-creates the buttons when markup has none)
   -------------------------------------------------------------------------- */
.mvpro-pills-scroll {
	position: relative;
}

.mvpro-pills__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 1px solid #ececec;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .14);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #222;
	cursor: pointer;
}

.mvpro-pills__arrow::before {
	content: '\2039';
}

.mvpro-pills__arrow.is-next::before {
	content: '\203A';
}

.mvpro-pills__arrow.is-prev {
	left: 8px;
}

.mvpro-pills__arrow.is-next {
	right: 8px;
}

.mvpro-pills__arrow:hover {
	background: #f5f5f5;
}

.mvpro-pills-scroll.is-scrollable .mvpro-pills__arrow {
	display: flex;
}

.mvpro-pills__arrow:disabled {
	opacity: .3;
	pointer-events: none;
}

/* Mobile: keep the rail clean, finger swipe is the gesture */
@media (max-width: 549px) {
	.mvpro-pills__arrow {
		display: none !important;
	}
}
