/* Infinity category header and controls. Kept local to the VirtueMart browse view. */
.browse-view .browse-top {
	display: block;
	margin: 0 0 18px;
	overflow: visible;
	background: #fff;
	border-bottom: 1px solid #dfe5eb;
}

.browse-view .browse-top::before,
.browse-view .bt-content::before {
	display: none;
}

.browse-view .bt-content {
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	background: transparent;
}

.browse-view .bt-content .container-fluid {
	box-sizing: border-box;
	padding: 0;
}

.browse-view .browse-top h1 {
	margin: 0;
	padding: 0 0 12px;
	color: #303b44;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
}

.browse-view .category_description {
	max-width: 850px;
	margin: 0;
	padding: 0 0 16px;
	color: #53616d;
	font-size: 14px;
	line-height: 1.65;
}

.browse-view .category_description:empty {
	display: none;
}

.browse-view .virtuemart_search {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #dfe5eb;
}

.browse-view .vm-search-custom-search-input {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.browse-view .vm-search-custom-search-input input.inputbox {
	width: 420px;
	max-width: 100%;
	box-sizing: border-box;
	flex: 0 1 420px;
	margin: 0;
}

.browse-view .vm-search-custom-search-input input.button {
	box-sizing: border-box;
	flex: 0 0 auto;
	margin: 0;
}

.browse-view .vm-search-custom-search-input .vm-search-descr {
	display: block;
	flex: 0 0 100%;
	text-align: center;
}

.browse-view .orderby-displaynumber {
	box-sizing: border-box;
	margin: 0 0 22px;
	padding: 14px 16px;
	background: #f7f9fb;
	border: 1px solid #dfe5eb;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(25, 55, 80, 0.03);
}

.browse-view .orderby-displaynumber .row-fluid {
	display: flex;
	width: 100%;
	min-width: 0;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
}

.browse-view .orderby-displaynumber .row-fluid > .span7,
.browse-view .orderby-displaynumber .row-fluid > .span5 {
	width: auto;
	min-width: 0;
	margin-left: 0;
	float: none;
}

.browse-view .orderby-displaynumber .row-fluid > .span7 {
	display: flex;
	flex: 1 1 330px;
	align-items: center;
}

.browse-view .orderby-displaynumber .orderlistcontainer {
	position: relative;
	display: flex;
	min-width: 0;
	max-width: 100%;
	float: none;
	gap: 9px;
	align-items: center;
	margin: 0;
	font-size: 13px;
	z-index: 100;
}

.browse-view .orderby-displaynumber .orderlistcontainer .title {
	display: block;
	flex: 0 0 auto;
	color: #44535f;
	font-weight: 600;
	line-height: 40px;
}

.browse-view .orderby-displaynumber .orderlistcontainer .title::after {
	content: ':';
}

.browse-view .orderby-displaynumber .orderlistcontainer div.activeOrder {
	min-height: 40px;
	box-sizing: border-box;
	flex: 0 1 auto;
	float: none;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid #cbd6df;
	border-radius: 4px;
	box-shadow: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.browse-view .orderby-displaynumber .orderlistcontainer .order-current-field {
	display: block;
	box-sizing: border-box;
	min-height: 38px;
	padding: 10px 36px 10px 12px;
	overflow: hidden;
	color: #315a78 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: linear-gradient(45deg, transparent 50%, #647786 50%) calc(100% - 15px) 17px / 5px 5px no-repeat,
		linear-gradient(135deg, #647786 50%, transparent 50%) calc(100% - 10px) 17px / 5px 5px no-repeat;
}

.browse-view .orderby-displaynumber .orderlistcontainer div.activeOrder:hover,
.browse-view .orderby-displaynumber .orderlistcontainer div.activeOrder:focus-within {
	background-color: #f2f7fb !important;
	border-color: #7aa9c9;
	box-shadow: 0 0 0 3px rgba(22, 123, 182, 0.12);
}

.browse-view .orderby-displaynumber .orderlistcontainer .order-direction-toggle {
	display: inline-flex;
	min-height: 40px;
	box-sizing: border-box;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 9px 12px;
	color: #315a78 !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	white-space: nowrap;
	background: #eef4f8;
	border: 1px solid #c4d3de;
	border-radius: 999px;
	text-decoration: none !important;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.browse-view .orderby-displaynumber .orderlistcontainer .order-direction-toggle:hover,
.browse-view .orderby-displaynumber .orderlistcontainer .order-direction-toggle:focus {
	color: #0f669b !important;
	background: #fff;
	border-color: #7aa9c9;
	box-shadow: 0 0 0 3px rgba(22, 123, 182, 0.12);
	outline: 0;
}

.browse-view .orderby-displaynumber .orderlistcontainer div.orderlist {
	top: calc(100% - 1px);
	left: 0;
	min-width: 220px;
	box-sizing: border-box;
	padding: 6px;
	background: #fff;
	border: 1px solid #d7e0e7;
	border-radius: 4px;
	box-shadow: 0 8px 22px rgba(25, 74, 110, 0.14);
	z-index: 110;
}

.browse-view .orderby-displaynumber .orderlistcontainer div.orderlist div {
	border-bottom: 1px solid #edf1f4;
}

.browse-view .orderby-displaynumber .orderlistcontainer div.orderlist div:last-child {
	border-bottom: 0;
}

.browse-view .orderby-displaynumber .orderlistcontainer .orderlist a {
	padding: 9px 10px;
	border-radius: 3px;
}

.browse-view .orderby-displaynumber .display-number {
	display: flex;
	flex: 0 1 auto;
	gap: 12px;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
}

.browse-view .orderby-displaynumber .display-results-no {
	width: auto;
	float: none;
	margin: 0;
	color: #53616d;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	white-space: nowrap;
}

.browse-view .orderby-displaynumber .display-number select {
	width: auto;
	min-width: 64px;
	height: 40px;
	box-sizing: border-box;
	margin: 0;
	padding: 7px 28px 7px 10px;
	color: #3f4d58;
	font-size: 13px;
	line-height: 24px;
	background-color: #fff;
	border: 1px solid #cbd6df;
	border-radius: 4px;
}

.browse-view .orderby-displaynumber .display-number select:hover {
	border-color: #9fb4c4;
}

.browse-view .orderby-displaynumber .display-number select:focus {
	border-color: #167bb6;
	box-shadow: 0 0 0 3px rgba(22, 123, 182, 0.14);
	outline: 0;
}

.browse-view .vm-pagination {
	min-width: 0;
	clear: none;
}

.browse-view .orderby-displaynumber .vm-pagination {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	flex: 1 0 100%;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid #e4eaf0;
}

.browse-view .vm-pagination ul {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	gap: 6px;
	float: none;
	margin: 0;
	padding: 0;
}

.browse-view .vm-pagination ul li {
	display: block;
	float: none;
	margin: 0;
	padding: 0 !important;
}

.browse-view .vm-pagination ul > li > a,
.browse-view .vm-pagination ul > li > span {
	display: inline-flex;
	min-width: 36px;
	height: 36px;
	box-sizing: border-box;
	float: none;
	align-items: center;
	justify-content: center;
	padding: 8px 11px;
	color: #315a78 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	background: #fff !important;
	border: 1px solid #d7e0e7;
	border-radius: 4px;
	text-decoration: none;
	transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.browse-view .vm-pagination ul > li > a:hover,
.browse-view .vm-pagination ul > li > a:focus {
	color: #0f669b !important;
	background: #eef6fb !important;
	border-color: #9fc2d9;
	outline: 0;
}

.browse-view .vm-pagination ul > li:not([class]) > span {
	color: #fff !important;
	background: #167bb6 !important;
	border-color: #167bb6;
}

.browse-view .vm-pagination ul > li.pagination-start > span,
.browse-view .vm-pagination ul > li.pagination-prev > span,
.browse-view .vm-pagination ul > li.pagination-next > span,
.browse-view .vm-pagination ul > li.pagination-end > span {
	color: #8a969f !important;
	background: #f1f4f6 !important;
	border-color: #e1e6ea;
}

.browse-view .vm-pagination > span {
	flex: 0 0 auto;
	float: none !important;
	margin-left: auto;
	color: #65737e;
	font-size: 12.5px;
	line-height: 1.4;
	white-space: nowrap;
}

.browse-view > .vm-pagination {
	display: flex;
	box-sizing: border-box;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 0;
	padding: 18px 0 2px;
	border-top: 1px solid #e4eaf0;
}

/* Infinity category product cards. Kept local to the VirtueMart browse view. */
.browse-view .category-products-grid {
	--category-product-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--category-product-columns), minmax(0, 1fr));
	gap: 18px;
	margin: 22px 0 28px;
}

.browse-view .category-products-cols-3 {
	--category-product-columns: 3;
}

.browse-view .category-products-cols-4 {
	--category-product-columns: 4;
}

.browse-view .category-products-cols-5 {
	--category-product-columns: 5;
}

.browse-view .category-product-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
	border: 1px solid #dfe5eb;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(25, 55, 80, 0.04);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.browse-view .category-product-card:hover,
.browse-view .category-product-card:focus-within {
	border-color: #aabed0;
	box-shadow: 0 7px 18px rgba(25, 74, 110, 0.12);
	transform: translateY(-2px);
}

.browse-view .category-product-media {
	display: flex;
	height: 230px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid #edf1f4;
}

.browse-view .category-product-media .category-product-image,
.browse-view .category-product-media img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: auto;
	object-fit: contain;
}

.browse-view .category-product-body {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	box-sizing: border-box;
	padding: 16px;
}

.browse-view .category-product-title {
	display: -webkit-box;
	height: 4.2em;
	min-height: 4.2em;
	max-height: 4.2em;
	margin: 0 0 12px;
	padding: 0;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.browse-view .category-product-title a {
	color: #315a78;
	text-decoration: none;
}

.browse-view .category-product-title a:hover,
.browse-view .category-product-title a:focus {
	color: #167bb6;
	text-decoration: underline;
}

.browse-view .category-product-meta {
	min-height: 5.8em;
	margin: 0 0 14px;
	color: #53616d;
	font-size: 12.5px;
	line-height: 1.6;
}

.browse-view .category-product-meta-row {
	display: flex;
	min-width: 0;
	gap: 5px;
	align-items: baseline;
}

.browse-view .category-product-meta-label {
	flex: 0 0 auto;
	font-weight: 600;
	color: #3d4e5c;
}

.browse-view .category-product-meta-value {
	min-width: 0;
	overflow-wrap: anywhere;
}

.browse-view .category-product-availability {
	align-items: center;
	margin-top: 4px;
}

.browse-view .category-product-availability-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 28px;
}

.browse-view .category-product-footer {
	display: flex;
	flex-direction: column;
	margin-top: auto;
}

.browse-view .category-product-price {
	display: flex;
	height: 96px;
	min-height: 96px;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	margin: 0 0 14px;
	padding-top: 12px;
	border-top: 1px solid #edf1f4;
	text-align: center;
}

.browse-view .category-product-price-old,
.browse-view .category-product-price-current {
	display: flex;
	flex-direction: column;
	gap: 3px;
	align-items: center;
}

.browse-view .category-product-price-old {
	flex-direction: row;
	gap: 5px;
	align-items: baseline;
	justify-content: center;
	margin-bottom: 5px;
	color: #77838c;
	font-size: 12px;
}

.browse-view .category-product-price-label {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.browse-view .category-product-price-old-value {
	position: relative;
	display: inline-block;
	color: #737d85;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.browse-view .category-product-price-old-value::after {
	position: absolute;
	top: 50%;
	left: -3%;
	width: 106%;
	height: 2px;
	content: '';
	background: #d44949;
	transform: rotate(-7deg);
	transform-origin: center;
	pointer-events: none;
}

.browse-view .category-product-price-current {
	color: #167bb6;
}

.browse-view .category-product-price-current-value {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}

.browse-view .category-product-price-current-value .vm-price-desc {
	display: none;
}

.browse-view .category-product-price-ask {
	color: #315a78;
	font-weight: 600;
}

.browse-view .category-product-details.button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 14px;
	text-align: center;
	text-decoration: none;
}

@media (max-width: 1199px) {
	.browse-view .category-products-grid {
		--category-product-columns: 2;
	}
}

@media (max-width: 600px) {
	.browse-view .vm-search-custom-search-input {
		flex-direction: column;
		align-items: stretch;
	}

	.browse-view .vm-search-custom-search-input input.inputbox,
	.browse-view .vm-search-custom-search-input input.button {
		width: 100%;
		max-width: none;
		flex: 0 0 auto;
		margin: 0;
	}

	.browse-view .orderby-displaynumber .orderlistcontainer {
		width: 100%;
	}

	.browse-view .orderby-displaynumber .orderlistcontainer div.activeOrder {
		min-width: 0;
	}

	.browse-view .orderby-displaynumber .orderlistcontainer .order-direction-toggle {
		padding-right: 10px;
		padding-left: 10px;
	}

	.browse-view .category-products-grid {
		--category-product-columns: 1;
		gap: 16px;
	}

	.browse-view .category-product-media {
		height: 250px;
	}

	.browse-view .category-product-price-current-value {
		font-size: 21px;
	}

	.browse-view .category-product-card:hover,
	.browse-view .category-product-card:focus-within {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.browse-view .category-product-card {
		transition: none;
	}
}
