/* ==========================================================================
   BESTPRICE CUSTOM
   WooCommerce Shop / Category Archives
   ========================================================================== */


/* ==========================================================================
   SHOP PAGE
   ========================================================================== */

.bp-shop {
	background: #ffffff;
}


/* ==========================================================================
   ARCHIVE HEADER
   ========================================================================== */

.bp-shop-header {
	padding: 46px 0 42px;
	background: #f5f5f2;
	border-bottom: 1px solid var(--bp-border);
}

.bp-shop-header .woocommerce-breadcrumb {
	margin: 0 0 24px;
}

.bp-shop-header__content {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.bp-shop-header__title {
	margin: 0;
	font-size: clamp(2.7rem, 5vw, 5.3rem);
	line-height: 0.95;
	font-weight: 850;
	letter-spacing: -0.06em;
	color: var(--bp-black);
}

.bp-shop-header__description {
	max-width: 780px;
	margin-top: 19px;
	margin-bottom: 0;
	color: var(--bp-text-soft);
	font-size: 14px;
	line-height: 1.75;
}

.bp-shop-header__description p:last-child {
	margin-bottom: 0;
}


/* ==========================================================================
   SHOP CONTENT
   ========================================================================== */

.bp-shop-content {
	padding: 58px 0 95px;
	background: #ffffff;
}


/* ==========================================================================
   WOO SUBCATEGORY GRID
   ========================================================================== */

.bp-shop-content .products {
	list-style: none;
}

.bp-shop-content ul.products {
	margin: 0;
	padding: 0;
}

.bp-shop-content ul.products::before,
.bp-shop-content ul.products::after {
	display: none;
}


/*
 * WooCommerce may output product-category cards before products.
 */

.bp-shop-content ul.products li.product-category {
	float: none;
	width: auto;
	margin: 0;
	overflow: hidden;
	background: #f7f7f4;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-md);
	transition:
		transform var(--bp-transition),
		border-color var(--bp-transition),
		box-shadow var(--bp-transition);
}

.bp-shop-content ul.products li.product-category:hover {
	transform: translateY(-3px);
	border-color: #c9cbc6;
	box-shadow: var(--bp-shadow-sm);
}

.bp-shop-content ul.products li.product-category a {
	display: block;
}

.bp-shop-content ul.products li.product-category img {
	width: 100%;
	aspect-ratio: 1.35 / 1;
	margin: 0;
	padding: 22px;
	object-fit: contain;
	background: #efefe9;
	border-bottom: 1px solid var(--bp-border);
}

.bp-shop-content ul.products li.product-category .woocommerce-loop-category__title {
	position: relative;
	margin: 0;
	padding: 20px 48px 20px 20px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--bp-text);
}

.bp-shop-content ul.products li.product-category mark {
	background: transparent;
	color: var(--bp-text-soft);
	font-size: 10px;
	font-weight: 700;
}


/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.bp-shop-toolbar {
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin-bottom: 28px;
	padding: 13px 0;
	border-top: 1px solid var(--bp-border);
	border-bottom: 1px solid var(--bp-border);
}

.bp-shop-toolbar__results {
	color: var(--bp-text-soft);
	font-size: 12px;
}

.bp-shop-toolbar__results .woocommerce-result-count {
	margin: 0;
	float: none;
}

.bp-shop-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bp-filter-trigger {
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 15px;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	color: var(--bp-text);
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
	transition:
		background var(--bp-transition),
		border-color var(--bp-transition);
}

.bp-filter-trigger:hover {
	background: var(--bp-bg-soft);
	border-color: #c8cac5;
}

.bp-filter-trigger span {
	font-size: 13px;
}

.bp-shop-toolbar__ordering .woocommerce-ordering {
	margin: 0;
	float: none;
}

.bp-shop-toolbar__ordering select {
	min-width: 205px;
	height: 42px;
	padding: 0 38px 0 13px;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	color: var(--bp-text);
	font-size: 11px;
	font-weight: 700;
	outline: 0;
	cursor: pointer;
}

.bp-shop-toolbar__ordering select:focus {
	border-color: var(--bp-accent-hover);
}


/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.bp-shop-content ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.bp-shop-content ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
}


/* ==========================================================================
   CATALOGUE PRODUCT CARD
   ========================================================================== */

.bp-catalogue-card {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-md);
	transition:
		transform var(--bp-transition),
		border-color var(--bp-transition),
		box-shadow var(--bp-transition);
}

.bp-catalogue-card:hover {
	transform: translateY(-4px);
	border-color: #c5c7c2;
	box-shadow: var(--bp-shadow-sm);
}


/* Product link */

.bp-catalogue-card > a.woocommerce-LoopProduct-link {
	display: block;
	color: inherit;
}


/* ==========================================================================
   PRODUCT MEDIA
   ========================================================================== */

.bp-catalogue-card__media {
	position: relative;
	aspect-ratio: 1 / 0.88;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #fafaf8;
	border-bottom: 1px solid #ecece8;
}

.bp-catalogue-card__media img {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 23px;
	object-fit: contain;
	transition: transform 280ms ease;
}

.bp-catalogue-card:hover .bp-catalogue-card__media img {
	transform: scale(1.04);
}


/* Sale badge */

.bp-catalogue-card__media .onsale {
	position: absolute;
	top: 13px !important;
	left: 13px !important;
	right: auto !important;
	margin: 0 !important;
	z-index: 4;
}


/* Out of stock badge */

.bp-catalogue-card__stock-badge {
	position: absolute;
	right: 13px;
	top: 13px;
	z-index: 4;
	padding: 6px 8px;
	background: #2b2e30;
	border-radius: 4px;
	color: #ffffff;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}


/* ==========================================================================
   CARD CONTENT
   ========================================================================== */

.bp-catalogue-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 19px;
}

.bp-catalogue-card__category {
	display: block;
	margin-bottom: 8px;
	color: #8a8f91;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


/* Product title */

.bp-catalogue-card__title {
	margin-bottom: 12px;
}

.bp-catalogue-card__title .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	color: var(--bp-text);
	font-size: 14px;
	line-height: 1.48;
	font-weight: 760;
	letter-spacing: -0.015em;
	transition: color var(--bp-transition);
}

.bp-catalogue-card:hover
	.bp-catalogue-card__title
	.woocommerce-loop-product__title {
	color: #4d5254;
}


/* ==========================================================================
   PRODUCT META
   ========================================================================== */

.bp-catalogue-card__meta {
	margin-top: auto;
}


/* Rating */

.bp-catalogue-card .star-rating {
	margin: 0 0 11px !important;
	font-size: 10px;
	color: var(--bp-accent-hover);
}


/* Price */

.bp-catalogue-card .price {
	display: block;
	margin: 0 0 17px !important;
	color: var(--bp-black) !important;
	font-size: 17px !important;
	font-weight: 850 !important;
	line-height: 1.3;
}

.bp-catalogue-card .price del {
	margin-right: 4px;
	color: #9c9fa0 !important;
	font-size: 11px;
	font-weight: 500;
	opacity: 1 !important;
}

.bp-catalogue-card .price ins {
	color: var(--bp-danger);
	font-weight: 850;
	text-decoration: none;
}


/* ==========================================================================
   ADD TO CART
   ========================================================================== */

.bp-catalogue-card .button {
	width: 100%;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #171a1b !important;
	border-radius: 6px !important;
	color: #ffffff !important;
	font-size: 10px !important;
	font-weight: 850 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition:
		background var(--bp-transition),
		color var(--bp-transition) !important;
}

.bp-catalogue-card .button:hover {
	background: var(--bp-accent) !important;
	color: var(--bp-black) !important;
}


/*
 * WooCommerce AJAX success link.
 */

.bp-catalogue-card .added_to_cart {
	margin-top: 9px;
	color: var(--bp-accent-hover);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.bp-shop-pagination {
	margin-top: 46px;
	padding-top: 30px;
	border-top: 1px solid var(--bp-border);
}

.bp-shop-pagination .woocommerce-pagination {
	text-align: left;
}

.bp-shop-pagination .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	border: 0;
}

.bp-shop-pagination
	.woocommerce-pagination
	ul.page-numbers
	li {
	border: 0;
}

.bp-shop-pagination
	.woocommerce-pagination
	.page-numbers
	a,
.bp-shop-pagination
	.woocommerce-pagination
	.page-numbers
	span {
	min-width: 39px;
	height: 39px;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0 10px;
	background: #ffffff;
	border: 1px solid var(--bp-border);
	border-radius: 5px;
	color: var(--bp-text);
	font-size: 11px;
	font-weight: 800;
}

.bp-shop-pagination
	.woocommerce-pagination
	.page-numbers
	.current,
.bp-shop-pagination
	.woocommerce-pagination
	.page-numbers
	a:hover {
	background: var(--bp-bg-dark);
	border-color: var(--bp-bg-dark);
	color: #ffffff;
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.bp-shop-empty {
	max-width: 650px;
	margin: 30px auto;
	padding: 70px 30px;
	text-align: center;
	background: var(--bp-bg-soft);
	border-radius: var(--bp-radius-lg);
}

.bp-shop-empty h2 {
	margin-bottom: 12px;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.bp-shop-empty p {
	margin-bottom: 25px;
	color: var(--bp-text-soft);
}


/* ==========================================================================
   WOO DEFAULT ARCHIVE FALLBACKS
   ========================================================================== */

.woocommerce-products-header {
	margin-bottom: 30px;
}

.woocommerce-products-header__title {
	font-weight: 850;
	letter-spacing: -0.04em;
}

.woocommerce-loop-product__link {
	color: inherit;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1180px) {

	.bp-shop-content ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   SMALL TABLET
   ========================================================================== */

@media (max-width: 800px) {

	.bp-shop-header {
		padding: 38px 0 34px;
	}

	.bp-shop-header__content {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}

	.bp-shop-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.bp-shop-toolbar__actions {
		width: 100%;
	}

	.bp-filter-trigger,
	.bp-shop-toolbar__ordering {
		flex: 1;
	}

	.bp-shop-toolbar__ordering .woocommerce-ordering {
		width: 100%;
	}

	.bp-shop-toolbar__ordering select {
		width: 100%;
		min-width: 0;
	}

	.bp-shop-content ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 520px) {

	.bp-shop-header__title {
		font-size: clamp(2.5rem, 13vw, 4rem);
	}

	.bp-shop-content {
		padding: 42px 0 68px;
	}

	.bp-shop-toolbar__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.bp-shop-content ul.products {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.bp-catalogue-card__media {
		aspect-ratio: 1.2 / 1;
	}

	.bp-catalogue-card__media img {
		padding: 25px;
	}
}