/* Product archive sort/count/view toolbar. */
body.woocommerce-shop .catalog-ordering,
body.tax-product_cat .catalog-ordering,
body.tax-product_tag .catalog-ordering {
	--tpst-orange: #f05a28;
	--tpst-orange-soft: #fff2ec;
	--tpst-ink: #1c1e22;
	--tpst-muted: #686d74;
	--tpst-line: #e2e4e1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 38px;
}

body.woocommerce-shop .catalog-ordering ul,
body.tax-product_cat .catalog-ordering ul,
body.tax-product_tag .catalog-ordering ul {
	box-sizing: border-box;
}

body.woocommerce-shop .catalog-ordering > ul,
body.woocommerce-shop .orderby-order-container > ul,
body.tax-product_cat .catalog-ordering > ul,
body.tax-product_cat .orderby-order-container > ul,
body.tax-product_tag .catalog-ordering > ul,
body.tax-product_tag .orderby-order-container > ul {
	height: 46px;
	margin: 0;
	line-height: 46px;
}

body.woocommerce-shop .orderby-order-container,
body.tax-product_cat .orderby-order-container,
body.tax-product_tag .orderby-order-container {
	display: flex;
	gap: 8px;
	margin: 0;
}

body.woocommerce-shop .order-dropdown,
body.tax-product_cat .order-dropdown,
body.tax-product_tag .order-dropdown {
	color: var(--tpst-ink);
	font-size: 13px;
}

body.woocommerce-shop .order-dropdown .current-li,
body.tax-product_cat .order-dropdown .current-li,
body.tax-product_tag .order-dropdown .current-li {
	display: flex;
	height: 46px;
	box-sizing: border-box;
	align-items: center;
	padding: 0 44px 0 16px;
	border: 1px solid var(--tpst-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(24, 27, 31, .035);
	color: var(--tpst-ink);
	font-size: 13px;
	line-height: 1.2;
	transition: border-color .18s ease, box-shadow .18s ease;
}

body.woocommerce-shop .order-dropdown > li:hover .current-li,
body.tax-product_cat .order-dropdown > li:hover .current-li,
body.tax-product_tag .order-dropdown > li:hover .current-li {
	border-color: #c9ccc8;
	box-shadow: 0 5px 15px rgba(24, 27, 31, .07);
}

body.woocommerce-shop .order-dropdown > li::after,
body.tax-product_cat .order-dropdown > li::after,
body.tax-product_tag .order-dropdown > li::after {
	right: 5px;
	top: 4px;
	width: 36px;
	height: 38px;
	border: 0;
	color: var(--tpst-muted);
	font-size: 10px;
	line-height: 38px;
	transition: color .18s ease, transform .18s ease;
}

body.woocommerce-shop .order-dropdown > li:hover::after,
body.tax-product_cat .order-dropdown > li:hover::after,
body.tax-product_tag .order-dropdown > li:hover::after {
	color: var(--tpst-orange);
	transform: rotate(180deg);
}

body.woocommerce-shop .order-dropdown ul,
body.tax-product_cat .order-dropdown ul,
body.tax-product_tag .order-dropdown ul {
	top: calc(100% + 7px);
	min-width: 100%;
	overflow: hidden;
	border: 1px solid var(--tpst-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(24, 27, 31, .12);
}

body.woocommerce-shop .order-dropdown ul li a,
body.tax-product_cat .order-dropdown ul li a,
body.tax-product_tag .order-dropdown ul li a {
	height: auto;
	min-height: 42px;
	box-sizing: border-box;
	padding: 11px 16px;
	border: 0;
	background: #fff;
	color: var(--tpst-ink);
	font-size: 13px;
	line-height: 20px;
	transition: background .16s ease, color .16s ease;
}

body.woocommerce-shop .order-dropdown ul li a:hover,
body.woocommerce-shop .order-dropdown ul li.current a,
body.tax-product_cat .order-dropdown ul li a:hover,
body.tax-product_cat .order-dropdown ul li.current a,
body.tax-product_tag .order-dropdown ul li a:hover,
body.tax-product_tag .order-dropdown ul li.current a {
	background: var(--tpst-orange-soft);
	color: var(--tpst-orange);
}

body.woocommerce-shop .order-dropdown strong,
body.tax-product_cat .order-dropdown strong,
body.tax-product_tag .order-dropdown strong {
	font-weight: 750;
}

body.woocommerce-shop .order-dropdown.orderby,
body.tax-product_cat .order-dropdown.orderby,
body.tax-product_tag .order-dropdown.orderby { min-width: 225px; }

body.woocommerce-shop .order-dropdown.sort-count,
body.tax-product_cat .order-dropdown.sort-count,
body.tax-product_tag .order-dropdown.sort-count {
	min-width: 205px;
	margin-left: auto;
}

body.woocommerce-shop .catalog-ordering .order,
body.tax-product_cat .catalog-ordering .order,
body.tax-product_tag .catalog-ordering .order {
	width: 46px;
}

body.woocommerce-shop .catalog-ordering .order li a,
body.tax-product_cat .catalog-ordering .order li a,
body.tax-product_tag .catalog-ordering .order li a {
	display: grid;
	width: 46px;
	height: 46px;
	box-sizing: border-box;
	place-items: center;
	border: 1px solid var(--tpst-line);
	border-radius: 10px;
	background: #fff;
	color: var(--tpst-ink);
	font-size: 15px;
	line-height: 1;
	transition: border-color .18s ease, background .18s ease, color .18s ease;
}

body.woocommerce-shop .catalog-ordering .order li a:hover,
body.tax-product_cat .catalog-ordering .order li a:hover,
body.tax-product_tag .catalog-ordering .order li a:hover {
	border-color: var(--tpst-orange);
	background: var(--tpst-orange-soft);
	color: var(--tpst-orange);
}

body.woocommerce-shop .fusion-grid-list-view,
body.tax-product_cat .fusion-grid-list-view,
body.tax-product_tag .fusion-grid-list-view {
	display: flex;
	width: auto;
	height: 46px;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid var(--tpst-line);
	border-radius: 10px;
	background: #fff;
}

body.woocommerce-shop .fusion-grid-list-view li,
body.tax-product_cat .fusion-grid-list-view li,
body.tax-product_tag .fusion-grid-list-view li {
	float: none;
	width: 46px;
	height: 44px;
	background: #fff;
	transition: background .16s ease;
}

body.woocommerce-shop .fusion-grid-list-view li + li,
body.tax-product_cat .fusion-grid-list-view li + li,
body.tax-product_tag .fusion-grid-list-view li + li {
	border-left: 1px solid var(--tpst-line);
}

body.woocommerce-shop .fusion-grid-list-view li a,
body.tax-product_cat .fusion-grid-list-view li a,
body.tax-product_tag .fusion-grid-list-view li a {
	display: grid;
	height: 44px;
	place-items: center;
	color: var(--tpst-muted);
	line-height: 1;
}

body.woocommerce-shop .fusion-grid-list-view .fusion-grid-view .awb-icon-grid,
body.tax-product_cat .fusion-grid-list-view .fusion-grid-view .awb-icon-grid,
body.tax-product_tag .fusion-grid-list-view .fusion-grid-view .awb-icon-grid {
	position: static;
	width: auto;
	margin: 0;
	font-size: 20px;
}

body.woocommerce-shop .fusion-grid-list-view .fusion-list-view,
body.tax-product_cat .fusion-grid-list-view .fusion-list-view,
body.tax-product_tag .fusion-grid-list-view .fusion-list-view { font-size: 16px; }

body.woocommerce-shop .fusion-grid-list-view li:hover,
body.woocommerce-shop .fusion-grid-list-view li.active-view,
body.tax-product_cat .fusion-grid-list-view li:hover,
body.tax-product_cat .fusion-grid-list-view li.active-view,
body.tax-product_tag .fusion-grid-list-view li:hover,
body.tax-product_tag .fusion-grid-list-view li.active-view {
	background: var(--tpst-orange-soft);
}

body.woocommerce-shop .fusion-grid-list-view li:hover a,
body.woocommerce-shop .fusion-grid-list-view li.active-view a i,
body.tax-product_cat .fusion-grid-list-view li:hover a,
body.tax-product_cat .fusion-grid-list-view li.active-view a i,
body.tax-product_tag .fusion-grid-list-view li:hover a,
body.tax-product_tag .fusion-grid-list-view li.active-view a i {
	color: var(--tpst-orange);
}

body.woocommerce-shop .catalog-ordering a:focus-visible,
body.tax-product_cat .catalog-ordering a:focus-visible,
body.tax-product_tag .catalog-ordering a:focus-visible {
	position: relative;
	z-index: 2;
	outline: 2px solid var(--tpst-orange);
	outline-offset: 2px;
}

@media (max-width: 800px) {
	body.woocommerce-shop #wrapper .catalog-ordering,
	body.tax-product_cat #wrapper .catalog-ordering,
	body.tax-product_tag #wrapper .catalog-ordering {
		flex-flow: row wrap;
		align-items: center;
		gap: 8px;
		margin-bottom: 34px;
	}

	body.woocommerce-shop #wrapper .orderby-order-container,
	body.tax-product_cat #wrapper .orderby-order-container,
	body.tax-product_tag #wrapper .orderby-order-container {
		flex: 1 1 100%;
		width: 100%;
		margin: 0;
	}

	body.woocommerce-shop #wrapper .order-dropdown.orderby,
	body.tax-product_cat #wrapper .order-dropdown.orderby,
	body.tax-product_tag #wrapper .order-dropdown.orderby {
		flex: 1 1 auto;
		min-width: 0;
	}

	body.woocommerce-shop #wrapper .order-dropdown > li:hover > ul,
	body.tax-product_cat #wrapper .order-dropdown > li:hover > ul,
	body.tax-product_tag #wrapper .order-dropdown > li:hover > ul {
		position: absolute;
		top: calc(100% + 7px);
	}

	body.woocommerce-shop #wrapper .order-dropdown.sort-count,
	body.tax-product_cat #wrapper .order-dropdown.sort-count,
	body.tax-product_tag #wrapper .order-dropdown.sort-count {
		flex: 1 1 180px;
		min-width: 0;
		margin: 0;
	}

	body.woocommerce-shop #wrapper .catalog-ordering .fusion-grid-list-view,
	body.tax-product_cat #wrapper .catalog-ordering .fusion-grid-list-view,
	body.tax-product_tag #wrapper .catalog-ordering .fusion-grid-list-view {
		flex: 0 0 94px;
		width: 94px;
	}
}

@media (max-width: 380px) {
	body.woocommerce-shop .order-dropdown .current-li,
	body.tax-product_cat .order-dropdown .current-li,
	body.tax-product_tag .order-dropdown .current-li {
		padding-left: 12px;
		font-size: 12px;
	}
}

body.woocommerce-shop .fusion-grid-list-view .fusion-grid-view-li,
body.tax-product_cat .fusion-grid-list-view .fusion-grid-view-li,
body.tax-product_tag .fusion-grid-list-view .fusion-grid-view-li {
	border-right: 0;
}
