/**
 * WooCommerce product archive.
 */

.hm-shop-page {
	min-height: 70vh;
	padding: clamp(34px, 3.5vw, 64px) 0 clamp(64px, 6vw, 112px);
	background: #fff;
	color: #151515;
}

.hm-shop-page,
.hm-shop-page * {
	box-sizing: border-box;
}

.hm-shop-page__inner {
	width: min(1800px, calc(100% - 48px));
	margin-inline: auto;
}

.hm-shop-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	align-items: start;
	gap: 28px;
}

/* Tat thanh bo loc thi phan san pham chiem tron chieu rong. */
.hm-shop-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.hm-shop-catalog {
	min-width: 0;
}

.hm-shop-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0 0 13px;
	color: #172137;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.hm-shop-breadcrumb a {
	color: #172137;
	text-decoration: none;
}

.hm-shop-breadcrumb a:hover,
.hm-shop-breadcrumb a:focus-visible,
.hm-shop-breadcrumb span:last-child {
	color: #315ee9;
}

.hm-shop-breadcrumb__separator {
	color: #7b8494;
}

.hm-shop-catalog__header {
	margin-bottom: 18px;
}

.hm-shop-catalog__header.has-description {
	margin-bottom: 23px;
}

.hm-shop-catalog__title {
	margin: 0;
	color: #080808;
	font-size: clamp(34px, 2.4vw, 48px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.hm-shop-catalog__description {
	max-width: 850px;
	margin-top: 12px;
	color: #626977;
	font-size: 14px;
	line-height: 1.65;
}

.hm-shop-catalog__description:empty {
	display: none;
}

.hm-shop-catalog__description > :first-child {
	margin-top: 0;
}

.hm-shop-catalog__description > :last-child {
	margin-bottom: 0;
}

.hm-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	min-height: 42px;
	margin-bottom: 22px;
}

.hm-shop-toolbar__filter {
	display: none;
}

.hm-shop-toolbar__result {
	margin-right: auto;
}

/* Huy hieu so dieu kien loc dang bat. */
.hm-shop-filter__count,
.hm-shop-toolbar__filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #151515;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* Danh sach dieu kien loc dang bat. */
.hm-shop-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: -6px 0 22px;
}

.hm-shop-active__label {
	color: #6e7480;
	font-size: 13px;
	font-weight: 600;
}

.hm-shop-active__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-shop-active__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	padding: 0 11px;
	border: 1px solid #dfe2e6;
	border-radius: 999px;
	background: #f7f8f9;
	color: #242934;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.hm-shop-active__chip:hover,
.hm-shop-active__chip:focus-visible {
	border-color: #151515;
	background: #151515;
	color: #fff;
}

.hm-shop-active__chip .hm-icon {
	flex: 0 0 auto;
	opacity: .65;
}

.hm-shop-active__chip:hover .hm-icon,
.hm-shop-active__chip:focus-visible .hm-icon {
	opacity: 1;
}

.hm-shop-active__reset {
	color: #315ee9;
	font-size: 12px;
	font-weight: 700;
	text-decoration: underline;
}

.hm-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: #6e7480;
	font-size: 13px;
	line-height: 1.5;
}

.hm-shop-toolbar .woocommerce-ordering {
	position: relative;
	margin: 0;
}

.hm-shop-toolbar .woocommerce-ordering::after {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.hm-shop-toolbar .orderby {
	width: auto;
	min-width: 210px;
	height: 42px;
	padding: 0 38px 0 14px;
	border: 1px solid #dfe2e6;
	border-radius: 6px;
	outline: 0;
	background: #fff;
	color: #202633;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	appearance: none;
}

.hm-shop-toolbar .orderby:focus-visible {
	border-color: #111;
	box-shadow: 0 0 0 2px rgba(17, 17, 17, .12);
}

.hm-shop-products {
	display: grid;
	grid-template-columns: repeat(var(--hm-shop-columns, 3), minmax(0, 1fr));
	gap: 52px 24px;
}

/* Hang / con hang: the hang the hien ro trang thai. */
.hm-product-card__stock {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 5px 13px;
	border-radius: 999px;
	background: rgba(17, 17, 17, .82);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.hm-product-card.is-out-of-stock .hm-product-card__image-link {
	opacity: .62;
}

.hm-shop-products .hm-product-card__content {
	padding-top: 13px;
}

.hm-shop-products .hm-product-card__category {
	color: #242934;
	font-weight: 600;
}

.hm-shop-products .hm-product-card__title {
	color: #1f2738;
	font-weight: 700;
}

.hm-shop-products .hm-product-card__price {
	color: #505661;
}

.hm-shop-products .hm-product-card__price ins {
	color: #181c24;
}

/* Filter sidebar. */
.hm-shop-filter {
	position: sticky;
	/* --hm-header-h do shop-archive.js do duoc khi header dang dinh (sticky). */
	top: calc(var(--hm-header-h, 0px) + 24px);
	max-height: calc(100vh - var(--hm-header-h, 0px) - 48px);
	min-width: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	color: #263044;
}

.hm-shop-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 45px;
	padding: 0 0 17px;
	border-bottom: 1px solid #e2e5e9;
}

.hm-shop-filter__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
}

.hm-shop-filter__heading svg,
.hm-shop-toolbar__filter svg {
	flex: 0 0 auto;
}

.hm-shop-filter__close {
	display: none;
}

.hm-filter-group {
	border-bottom: 1px solid #e2e5e9;
}

.hm-filter-group__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 52px;
	padding: 5px 0;
	border: 0;
	background: transparent;
	color: #263044;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.hm-filter-group__toggle .hm-icon {
	box-sizing: content-box;
	padding: 7px;
	border-radius: 50%;
	background: #f0f2f4;
	transition: transform .2s ease;
}

.hm-filter-group.is-open .hm-filter-group__toggle .hm-icon {
	transform: rotate(180deg);
}

.hm-filter-group__body {
	padding: 0 0 17px;
}

.hm-filter-options {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * Tren trang danh muc, nhom "Danh mục" la danh sach lien ket dieu huong chu
 * khong phai checkbox — xem ghi chu o hm_shop_category_group().
 */
.hm-filter-options--links {
	gap: 4px;
}

.hm-filter-link {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 5px 0;
	color: #4f5664;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
}

.hm-filter-link:hover,
.hm-filter-link:focus-visible {
	color: #151515;
}

.hm-filter-link.is-current {
	color: #151515;
	font-weight: 700;
}

.hm-filter-link--up {
	position: relative;
	margin-bottom: 4px;
	padding-left: 16px;
	color: #6e7480;
	font-weight: 600;
}

.hm-filter-link--up::before {
	position: absolute;
	left: 0;
	content: "\2190";
}

.hm-filter-check {
	display: grid;
	grid-template-columns: 15px auto 1fr;
	align-items: center;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	color: #4f5664;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
}

.hm-filter-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.hm-filter-check__box {
	position: relative;
	display: block;
	width: 15px;
	height: 15px;
	border: 1px solid #cbd0d6;
	border-radius: 2px;
	background: #f7f8f9;
}

.hm-filter-check input:checked + .hm-filter-check__box {
	border-color: #151515;
	background: #151515;
}

.hm-filter-check input:checked + .hm-filter-check__box::after {
	position: absolute;
	top: 2px;
	left: 4px;
	width: 4px;
	height: 7px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	content: "";
	transform: rotate(45deg);
}

.hm-filter-check input:focus-visible + .hm-filter-check__box {
	outline: 2px solid #315ee9;
	outline-offset: 2px;
}

.hm-filter-check__label {
	overflow-wrap: anywhere;
}

.hm-filter-check__count {
	color: #9a9fa8;
}

.hm-price-range {
	--hm-price-start: 0%;
	--hm-price-end: 100%;
}

.hm-price-range__slider {
	position: relative;
	height: 24px;
	margin: 1px 5px 13px;
}

.hm-price-range__track {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(to right, #d8dadd var(--hm-price-start), #202020 var(--hm-price-start), #202020 var(--hm-price-end), #d8dadd var(--hm-price-end));
	transform: translateY(-50%);
}

.hm-price-range__range {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	padding: 0;
	background: transparent;
	pointer-events: none;
	appearance: none;
}

.hm-price-range__range::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
}

.hm-price-range__range::-webkit-slider-thumb {
	width: 15px;
	height: 15px;
	margin-top: -6px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #202020;
	box-shadow: 0 0 0 1px #202020;
	cursor: grab;
	pointer-events: auto;
	appearance: none;
}

.hm-price-range__range::-moz-range-track {
	height: 4px;
	background: transparent;
}

.hm-price-range__range::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #202020;
	box-shadow: 0 0 0 1px #202020;
	cursor: grab;
	pointer-events: auto;
}

.hm-price-range__fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 7px;
}

.hm-price-range__fields label {
	position: relative;
	display: block;
}

.hm-price-range__currency {
	position: absolute;
	top: 50%;
	left: 10px;
	color: #6c727d;
	font-size: 12px;
	pointer-events: none;
	transform: translateY(-50%);
}

.hm-price-range__fields input {
	width: 100%;
	height: 40px;
	padding: 0 8px 0 27px;
	border: 1px solid #d9dde2;
	border-radius: 4px;
	background: #fff;
	color: #5c626d;
	font: inherit;
	font-size: 12px;
	text-align: right;
	-moz-appearance: textfield;
}

.hm-price-range__fields input::-webkit-inner-spin-button,
.hm-price-range__fields input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.hm-price-range__fields input:focus-visible {
	border-color: #111;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(17, 17, 17, .1);
}

.hm-price-range__separator {
	color: #9a9fa8;
	font-size: 11px;
}

.hm-shop-filter__apply,
.hm-shop-filter__clear {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	border-radius: 5px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.hm-shop-filter__apply {
	margin-top: 16px;
	border: 1px solid #151515;
	background: #151515;
	box-shadow: 0 4px 9px rgba(0, 0, 0, .2);
	color: #fff;
}

.hm-shop-filter__clear {
	margin-top: 8px;
	border: 1px solid #d9dde2;
	background: #fff;
	color: #5a606a;
}

.hm-shop-filter__apply:hover,
.hm-shop-filter__apply:focus-visible {
	background: #333;
}

.hm-shop-filter__clear:hover,
.hm-shop-filter__clear:focus-visible {
	border-color: #111;
	color: #111;
}

/* Pagination. */
.hm-shop-pagination {
	margin-top: clamp(50px, 5vw, 72px);
}

.hm-shop-pagination .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.hm-shop-pagination .woocommerce-pagination ul.page-numbers li {
	display: flex;
	float: none;
	margin: 0;
	border: 0;
	line-height: 0;
}

.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > a.page-numbers,
.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	min-width: 46px;
	height: 46px;
	margin: 0;
	padding: 2px 0 0;
	overflow: hidden;
	border: 1px solid #d5d8dd;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 10px rgba(17, 17, 17, .045);
	color: #272727;
	font-family: "Jost", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > span.page-numbers.current {
	border-color: #817088;
	background: #f2eff4;
	box-shadow: 0 4px 14px rgba(72, 51, 80, .12);
	color: #60456a;
	font-weight: 700;
}

.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:hover,
.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:focus-visible {
	border-color: #272727;
	background: #272727;
	box-shadow: 0 4px 14px rgba(17, 17, 17, .16);
	color: #fff;
}

.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:focus-visible {
	outline: 2px solid #75427f;
	outline-offset: 3px;
}

.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > .prev,
.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > .next {
	padding-top: 0;
	font-size: 14px;
}

.hm-shop-pagination .page-numbers .prev i,
.hm-shop-pagination .page-numbers .next i {
	display: block;
	line-height: 1;
}

.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > .dots {
	width: 28px;
	min-width: 28px;
	border-color: transparent;
	box-shadow: none;
}

@media (max-width: 767px) {
	.hm-shop-pagination .woocommerce-pagination ul.page-numbers {
		gap: 9px;
	}

	.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > a.page-numbers,
	.hm-shop-page .hm-shop-pagination nav.woocommerce-pagination ul.page-numbers li > span.page-numbers {
		width: 42px;
		min-width: 42px;
		height: 42px;
		font-size: 15px;
	}
}

.hm-shop-empty .woocommerce-info {
	margin: 18px 0 0;
	padding: 18px 20px;
	border: 1px solid #e1e4e8;
	border-radius: 8px;
	background: #f8f9fa;
	color: #323846;
}

.hm-shop-empty__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 16px;
	padding: 0 22px;
	border: 1px solid #151515;
	border-radius: 5px;
	background: #151515;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.hm-shop-empty__clear:hover,
.hm-shop-empty__clear:focus-visible {
	background: #333;
	color: #fff;
}

.hm-shop-filter-backdrop {
	display: none;
}

@media (max-width: 1279px) {
	.hm-shop-layout {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 22px;
	}

	.hm-shop-products {
		grid-template-columns: repeat(var(--hm-shop-columns-md, 3), minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.hm-shop-page {
		padding-top: 28px;
	}

	.hm-shop-layout {
		display: block;
	}

	.hm-shop-toolbar {
		justify-content: space-between;
		padding: 11px 0;
		border-top: 1px solid #e0e3e7;
		border-bottom: 1px solid #e0e3e7;
	}

	.hm-shop-toolbar__filter {
		display: inline-flex;
		align-items: center;
		gap: 9px;
		min-height: 40px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #1e2635;
		font: inherit;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}

	.hm-shop-toolbar__result {
		display: none;
	}

	.hm-shop-toolbar .orderby {
		min-width: 180px;
		height: 38px;
	}

	.hm-shop-filter {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100002;
		width: min(380px, calc(100% - 54px));
		max-height: none;
		padding: 0 18px 30px;
		overflow-x: hidden;
		overflow-y: auto;
		box-shadow: 8px 0 30px rgba(0, 0, 0, .18);
		/*
		 * Drawer dong chi truot ra ngoai man hinh thi ban phim Tab van vao duoc
		 * cac o loc dang an — visibility: hidden cat han khoi luong tab.
		 */
		visibility: hidden;
		transform: translateX(-105%);
		transition: transform .3s cubic-bezier(.22, .7, .25, 1), visibility .3s step-end;
	}

	body.admin-bar .hm-shop-filter {
		top: 32px;
	}

	.hm-shop-filter__head {
		min-height: 64px;
		padding: 0;
	}

	.hm-shop-filter__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 1px solid #e1e4e8;
		border-radius: 50%;
		background: #fff;
		color: #273044;
		cursor: pointer;
	}

	.hm-shop-filter-backdrop {
		position: fixed;
		inset: 0;
		z-index: 100001;
		display: block;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: rgba(0, 0, 0, .56);
		opacity: 0;
		transition: opacity .25s ease;
	}

	.hm-shop-filter-backdrop[hidden] {
		display: none;
	}

	body.hm-shop-filter-open {
		overflow: hidden;
	}

	body.hm-shop-filter-open .hm-shop-filter {
		visibility: visible;
		transform: translateX(0);
		transition: transform .3s cubic-bezier(.22, .7, .25, 1), visibility 0s;
	}

	body.hm-shop-filter-open .hm-shop-filter-backdrop {
		opacity: 1;
	}

	.hm-filter-group__toggle {
		min-height: 58px;
		font-size: 15px;
	}

	.hm-filter-check {
		font-size: 14px;
	}

	.hm-price-range__fields input {
		height: 43px;
	}
}

@media (max-width: 767px) {
	.hm-shop-page {
		padding: 22px 0 70px;
	}

	.hm-shop-page__inner {
		width: calc(100% - 18px);
	}

	.hm-shop-breadcrumb {
		margin-bottom: 16px;
		font-size: 14px;
	}

	.hm-shop-catalog__header {
		margin-bottom: 16px;
	}

	.hm-shop-catalog__title {
		font-size: 31px;
	}

	.hm-shop-toolbar {
		gap: 10px;
		margin-bottom: 26px;
	}

	.hm-shop-toolbar .woocommerce-ordering::after {
		right: 9px;
	}

	.hm-shop-toolbar .orderby {
		min-width: 0;
		width: 142px;
		padding-right: 26px;
		padding-left: 9px;
		font-size: 11px;
	}

	.hm-shop-products {
		grid-template-columns: repeat(var(--hm-shop-columns-sm, 2), minmax(0, 1fr));
		gap: 45px 12px;
	}

	.hm-shop-products .hm-product-card__content {
		padding-top: 12px;
	}

	.hm-shop-products .hm-product-card__category {
		font-size: 13px;
	}

	.hm-shop-products .hm-product-card__title {
		min-height: 39px;
		font-size: 13px;
		line-height: 1.35;
	}

	.hm-shop-products .hm-product-card__price {
		font-size: 13px;
	}

	.hm-shop-filter {
		width: min(360px, calc(100% - 44px));
		padding-inline: 17px;
	}

	body.admin-bar .hm-shop-filter {
		top: 46px;
	}
}

@media (max-width: 479px) {
	.hm-shop-toolbar__sort {
		max-width: 48%;
	}

	.hm-shop-toolbar .orderby {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-shop-filter,
	.hm-shop-filter-backdrop,
	.hm-filter-group__toggle .hm-icon {
		transition: none;
	}
}
