/* =========================================================
   WooSpax Shop
========================================================= */

.ws-shop-page {
	padding: 35px 0 70px;
}


/* =========================================================
   Breadcrumb
========================================================= */

.ws-shop-page .woocommerce-breadcrumb {
	margin: 0 0 25px;
	font-size: 14px;
	color: #777;
}

.ws-shop-page .woocommerce-breadcrumb a {
	color: var(--ws-primary);
	text-decoration: none;
}


/* =========================================================
   Shop Header
========================================================= */

.ws-shop-header {
	margin-bottom: 30px;

	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 25px;
}

.ws-shop-title {
	flex: 1;
}

.ws-shop-title h1 {
	margin: 0;

	font-size: 30px;
	font-weight: 700;

	color: var(--ws-heading);
}

.ws-shop-title p {
	margin: 8px 0 0;

	font-size: 14px;
	color: #777;
}


/* =========================================================
   Toolbar
========================================================= */

.ws-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;
	width: 100%;
}

.ws-toolbar-left,
.ws-toolbar-center,
.ws-toolbar-right {
	display: flex;
	align-items: center;
}

.ws-toolbar-left {
	justify-content: flex-start;
}

.ws-toolbar-center {
	justify-content: center;

	font-size: 14px;
	color: #777;
}

.ws-toolbar-right {
	justify-content: flex-end;
	gap: 12px;
}


/* =========================================================
   Filter Button
========================================================= */

.ws-filter-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 8px;

	min-height: 42px;
	padding: 0 16px;

	border: 1px solid #e5e5e5;
	border-radius: 10px;

	background: #fff;
	color: var(--ws-heading);

	font-size: 14px;
	font-weight: 600;

	cursor: pointer;

	transition:
		background .2s ease,
		border-color .2s ease,
		color .2s ease;
}

.ws-filter-toggle:hover {
	background: var(--ws-primary);
	border-color: var(--ws-primary);
	color: #fff;
}

.ws-filter-toggle svg {
	width: 18px;
	height: 18px;
}


/* =========================================================
   WooCommerce Ordering
========================================================= */

.ws-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

.ws-shop-toolbar .woocommerce-ordering select {
	min-width: 180px;
    height: 42px;
    padding: 0 20px 0 25px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background-color: #fff;
    color: var(--ws-heading);
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.ws-shop-toolbar .woocommerce-ordering select:focus {
	border-color: var(--ws-primary);
}


/* =========================================================
   View Switch
========================================================= */

.ws-view-switch {
	display: flex;
	align-items: center;

	gap: 5px;
	padding: 4px;

	border: 1px solid #e5e5e5;
	border-radius: 10px;

	background: #fff;
}

.ws-view-btn {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;

	padding: 0;

	border: 0;
	border-radius: 7px;

	background: transparent;
	color: #888;

	cursor: pointer;

	transition:
		background .2s ease,
		color .2s ease;
}

.ws-view-btn svg {
	width: 18px;
	height: 18px;
}

.ws-view-btn:hover,
.ws-view-btn.active {
	background: var(--ws-primary);
	color: #fff;
}


/* =========================================================
   Shop Content
========================================================= */

.ws-shop-content {
	display: grid;

	grid-template-columns: 270px minmax(0, 1fr);

	gap: 35px;

	align-items: start;
}


/* =========================================================
   Sidebar
========================================================= */

.ws-shop-sidebar {
	position: relative;
	width: 100%;
	background: #fff;
}

.ws-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding-bottom: 18px;
	margin-bottom: 20px;

	border-bottom: 1px solid #eee;
}

.ws-sidebar-header h2 {
	margin: 0;

	font-size: 20px;
	font-weight: 700;

	color: var(--ws-heading);
}

.ws-sidebar-close {
	display: none;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;

	padding: 0;

	border: 0;
	border-radius: 8px;

	background: #f5f5f5;
	color: var(--ws-heading);

	cursor: pointer;
}

.ws-sidebar-close svg {
	width: 18px;
	height: 18px;
}


/* =========================================================
   Filter Box
========================================================= */

.ws-filter-box {
	padding: 0 0 22px;
	margin-bottom: 22px;

	border-bottom: 1px solid #eee;
}

.ws-filter-box:last-child {
	margin-bottom: 0;
	border-bottom: 0;
}

.ws-filter-title {
	display: flex;
	align-items: center;
	justify-content: space-between;

	width: 100%;

	margin: 0 0 15px;

	font-size: 16px;
	font-weight: 700;

	color: var(--ws-heading);

	cursor: pointer;
}

.ws-filter-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	color: #777;
}

.ws-filter-icon svg {
	width: 17px;
	height: 17px;
}


/* =========================================================
   Search
========================================================= */

.ws-product-search {
	position: relative;

	display: flex;
	align-items: center;

	width: 100%;
}

.ws-product-search input[type="search"] {
	width: 100%;
	height: 44px;

	padding: 0 45px 0 14px;

	border: 1px solid #e5e5e5;
	border-radius: 10px;

	background: #fafafa;
	color: var(--ws-heading);

	font-size: 14px;

	outline: none;

	transition:
		border-color .2s ease,
		background .2s ease;
}

.ws-product-search input[type="search"]:focus {
	border-color: var(--ws-primary);
	background: #fff;
}

.ws-product-search button {
	position: absolute;
	right: 5px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;

	padding: 0;

	border: 0;
	border-radius: 7px;

	background: var(--ws-primary);
	color: #fff;

	cursor: pointer;
}

.ws-product-search button svg {
	width: 17px;
	height: 17px;
}


/* =========================================================
   Filter Lists
========================================================= */

.ws-filter-list,
.ws-rating-filter {
	display: flex;
	flex-direction: column;

	gap: 8px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.ws-filter-list li,
.ws-rating-filter li {
	margin: 0;
	padding: 0;
}

.ws-filter-list a,
.ws-rating-filter a {
	display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 7px;
    color: #555;
    font-size: 16px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.ws-filter-list a:hover,
.ws-rating-filter a:hover {
	background: #f7f7f7;
	color: var(--ws-primary);
}

.ws-count {
	color: #999;
	font-size: 13px;
}


/* =========================================================
   Price Filter
========================================================= */

.ws-price-filter {
	width: 100%;
}

.ws-price-inputs {
	display: flex;
	align-items: center;

	gap: 7px;

	width: 100%;
	margin-bottom: 12px;
}

.ws-price-inputs input {
	width: 100%;
	height: 40px;

	padding: 0 10px;

	border: 1px solid #e5e5e5;
	border-radius: 8px;

	background: #fafafa;
	color: var(--ws-heading);

	font-size: 13px;

	outline: none;
}

.ws-price-inputs input:focus {
	border-color: var(--ws-primary);
	background: #fff;
}

.ws-price-inputs span {
	color: #999;
	font-size: 13px;
}

.ws-filter-btn {
	width: 100%;
	height: 40px;

	border: 0;
	border-radius: 8px;

	background: var(--ws-primary);
	color: #fff;

	font-size: 14px;
	font-weight: 600;

	cursor: pointer;

	transition: opacity .2s ease;
}

.ws-filter-btn:hover {
	opacity: .88;
}


/* =========================================================
   Rating Filter
========================================================= */

.ws-rating-filter a {
	justify-content: flex-start;
}

.ws-rating-filter .star-rating {
	position: relative;

	display: inline-block;

	width: 90px;
	height: 18px;

	font-size: 16px;
	line-height: 18px;

	letter-spacing: 1px;
}

.ws-rating-filter .star-rating::before {
	content: "★★★★★";

	position: absolute;
	top: 0;
	left: 0;

	color: #ddd;
}

.ws-rating-filter .star-rating span {
	position: absolute;
	top: 0;
	left: 0;

	height: 100%;

	overflow: hidden;

	color: #f5b301;

	font-size: 16px;
	line-height: 18px;

	letter-spacing: 1px;
}

.ws-rating-text {
	margin-right: 5px;

	color: #666;
	font-size: 13px;
}


/* =========================================================
   Products Area
========================================================= */

.ws-shop-products {
	min-width: 0;
}

.ws-shop-grid {
	display: grid;

	grid-template-columns: repeat(3, minmax(0, 1fr));

	gap: 25px;
}

.ws-shop-grid .ws-product-card {
	width: 100%;
	min-width: 0;
}


/* =========================================================
   Empty Shop
========================================================= */

.ws-shop-empty {
	padding: 60px 20px;
	text-align: center;
}


/* =========================================================
   Pagination
========================================================= */

.ws-shop-pagination {
	display: flex;
	align-items: center;
	justify-content: center;

	margin-top: 45px;
}

.ws-shop-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;

	min-width: 40px;
	height: 40px;

	padding: 0 12px;
	margin: 0 3px;

	border: 1px solid #e5e5e5;
	border-radius: 8px;

	background: #fff;
	color: var(--ws-heading);

	font-size: 14px;

	text-decoration: none;

	transition:
		background .2s ease,
		color .2s ease,
		border-color .2s ease;
}

.ws-shop-pagination .page-numbers:hover,
.ws-shop-pagination .page-numbers.current {
	background: var(--ws-primary);

	border-color: var(--ws-primary);
	color: #fff;
}


/* =========================================================
   Filter Overlay
========================================================= */

.ws-filter-overlay {
	position: fixed;

	inset: 0;

	z-index: 9998;

	background: rgba(0, 0, 0, .45);

	opacity: 0;
	visibility: hidden;

	pointer-events: none;

	transition:
		opacity .25s ease,
		visibility .25s ease;
}

.ws-filter-overlay.is-active {
	opacity: 1;
	visibility: visible;

	pointer-events: auto;
}


/* =========================================================
   Desktop / Tablet
========================================================= */

@media (max-width: 1100px) {

	.ws-shop-content {
		grid-template-columns: 230px minmax(0, 1fr);
		gap: 25px;
	}

	.ws-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ws-shop-header {
		flex-direction: column;
		align-items: stretch;
	}

	.ws-shop-toolbar {
		width: 100%;
	}

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {

	.ws-shop-page {
		padding-top: 25px;
		padding-bottom: 50px;
	}

	.ws-shop-header {
		gap: 18px;
		margin-bottom: 22px;
	}

	.ws-shop-title h1 {
		font-size: 25px;
	}

	.ws-shop-toolbar {
		display: grid;

		grid-template-columns: auto 1fr auto;

		gap: 10px;
	}

	.ws-toolbar-center {
		font-size: 13px;
	}

	.ws-toolbar-right {
		gap: 7px;
	}

	.ws-shop-toolbar .woocommerce-ordering select {
		min-width: 145px;
	}

	.ws-view-switch {
		display: none;
	}


	/* ---------------------------------------------------------
	   Content
	--------------------------------------------------------- */

	.ws-shop-content {
		display: block;
	}


	/* ---------------------------------------------------------
	   Mobile Sidebar
	--------------------------------------------------------- */

	.ws-shop-sidebar {
		position: fixed;

		top: 0;
		right: 0;

		z-index: 9999;

		width: min(320px, 88vw);
		height: 100vh;

		padding: 22px;

		overflow-y: auto;

		background: #fff;

		transform: translateX(105%);
		visibility: hidden;

		transition:
			transform .3s ease,
			visibility .3s ease;

		box-shadow: -5px 0 25px rgba(0, 0, 0, .12);
	}

	.ws-shop-sidebar.is-active {
		transform: translateX(0);
		visibility: visible;
	}


	/* ---------------------------------------------------------
	   Sidebar Header
	--------------------------------------------------------- */

	.ws-sidebar-header {
		position: sticky;

		top: -22px;

		z-index: 5;

		display: flex;
		align-items: center;
		justify-content: space-between;

		padding-top: 22px;

		background: #fff;
	}

	.ws-sidebar-close {
		display: flex;
	}


	/* ---------------------------------------------------------
	   Prevent Body Scroll
	--------------------------------------------------------- */

	body.ws-filter-open {
		overflow: hidden;
	}


	/* ---------------------------------------------------------
	   Product Grid
	--------------------------------------------------------- */

	.ws-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 15px;
	}

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 768px) {

	.ws-shop-toolbar {
		grid-template-columns: 1fr auto;
	}

	.ws-toolbar-center {
		display: none;
	}

	.ws-shop-toolbar .woocommerce-ordering select {
		min-width: 135px;
	}

	.ws-filter-toggle {
		padding: 0 13px;
	}

	.ws-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ws-shop-title h1 {
		font-size: 23px;
	}

}
