/* ================================================================
   ALLINSKIN ELEMENTS - PRODUCT CAROUSEL
   ================================================================ */

/* WRAP */
.custom-shop-wrap {
	--shop-gap: 28px;
	--shop-nav-size: 52px;
	position: relative;
	width: 100%;
}

/* TRACK */
.custom-shop-track {
	display: flex;
	align-items: stretch;
	gap: var(--shop-gap);
	overflow-x: auto;
	overflow-y: hidden;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	overscroll-behavior-x: contain;
}

.custom-shop-track::-webkit-scrollbar {
	display: none;
}

/* CARD */
.shop-card {
	flex: 0 0 calc((100% - (var(--shop-gap) * 2)) / 3);
	position: relative;
	border: 1px solid transparent;
	padding: 0 0 78px;
	box-sizing: border-box;
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.3s ease;
	background: transparent;
}

.custom-shop-wrap.items-count-1 .shop-card {
	flex-basis: 100%;
}

.custom-shop-wrap.items-count-2 .shop-card {
	flex-basis: calc((100% - var(--shop-gap)) / 2);
}

.shop-card:hover {
	border-color: #8a5a3b;
}

/* IMAGE */
.shop-image {
	position: relative;
	display: block;
	height: 560px;
	width: 100%;
	margin-bottom: 24px;
	overflow: hidden;
}

.shop-image img,
.shop-image .img-hover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.45s ease, transform 5s ease;
}

.shop-image .img-hover {
	display: block;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.img-main {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 2 !important;
}

.img-hover {
	opacity: 0;
	transform: scale(1) !important;
	transform-origin: center;
	will-change: opacity, transform;
	z-index: 1 !important;
}

.shop-card:hover .img-main,
.shop-card:focus-within .img-main {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none;
}

.shop-card:hover .img-hover,
.shop-card:focus-within .img-hover {
	opacity: 1;
	transform: scale(1.14) !important;
}

/* CONTENT */
.shop-content {
	text-align: center;
	padding: 0 14px;
}

.shop-title {
	text-decoration: none;
	color: inherit;
	display: block;
	margin-bottom: 10px;
}

.shop-title h5 {
	margin: 0;
}

.shop-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.45;
	color: #6f6f6f;
	margin: 0 0 14px;
}

.shop-price-default {
	font-family: 'Michroma', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #333;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* HOVER BAR */
.shop-hover-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 78px;
	background: #7b4a2f;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
	transform: translateY(100%);
	transition: transform 0.35s ease;
}

.shop-card:hover .shop-hover-bar,
.shop-card:focus-within .shop-hover-bar {
	transform: translateY(0);
}

.shop-card:hover .shop-price-default,
.shop-card:focus-within .shop-price-default {
	opacity: 0;
	transform: translateY(10px);
}

.shop-hover-price {
	font-family: 'Michroma', sans-serif;
	font-size: 16px;
	font-weight: 400;
}

.shop-hover-cart .button,
.shop-hover-cart a.button {
	background: none !important;
	border: none !important;
	color: #fff !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	font-family: 'Michroma', sans-serif !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.shop-hover-cart .added_to_cart {
	display: none !important;
}

.mfn-cart-holder .mfn-ch-footer-buttons a:last-child {
	display: none !important;
}

/* NAV */
.shop-nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding: 0 2px;
}

.shop-nav {
	position: relative;
	width: var(--shop-nav-size) !important;
	min-width: var(--shop-nav-size) !important;
	height: var(--shop-nav-size) !important;
	min-height: var(--shop-nav-size) !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: #7b4a2f !important;
	color: #fff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	z-index: 5;
	transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.shop-nav-icon {
	width: 20px;
	height: 20px;
	color: inherit !important;
	display: inline-grid !important;
	place-items: center;
	transform: none;
}

.shop-nav-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.shop-nav-icon path {
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.shop-nav:hover {
	background: #8a5a3b;
}

.shop-nav:focus-visible {
	outline: 2px solid #8a5a3b;
	outline-offset: 3px;
}

.shop-nav.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* MOBILE */
@media (max-width: 991px) {
	.custom-shop-wrap {
		--shop-gap: 18px;
	}

	.shop-nav {
		width: 46px;
		height: 46px;
	}

	.shop-card {
		flex: 0 0 calc((100% - var(--shop-gap)) / 2);
		display: flex;
		flex-direction: column;
		padding-bottom: 0;
	}

	.custom-shop-wrap.items-count-1 .shop-card {
		flex-basis: 100%;
	}

	.custom-shop-wrap.items-count-2 .shop-card {
		flex-basis: calc((100% - var(--shop-gap)) / 2);
	}

	.shop-image {
		height: 420px;
	}

	.shop-price-default {
		display: none;
	}

	.shop-content {
		padding-bottom: 18px;
	}

	.shop-hover-bar {
		transform: none;
		position: relative;
		height: auto;
		padding: 18px;
		margin-top: auto;
	}
}

@media (max-width: 640px) {
	.shop-card,
	.custom-shop-wrap.items-count-2 .shop-card {
		flex-basis: 85%;
	}

	.custom-shop-wrap.items-count-1 .shop-card {
		flex-basis: 100%;
	}
}
