.abba-products {
	--abba-cols: 6;
	--abba-gap: 16px;
	position: relative;
	font-family: Montserrat, "Segoe UI", sans-serif;
	color: #2a2a2a;
}

.abba-products__viewport {
	overflow: hidden;
}

.abba-products__track {
	display: flex;
	gap: var(--abba-gap);
	margin: 0;
	padding: 8px 2px 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	list-style: none;
}

.abba-products__track::-webkit-scrollbar {
	display: none;
}

.abba-products__item {
	flex: 0 0 calc((100% - (var(--abba-cols) - 1) * var(--abba-gap)) / var(--abba-cols));
	min-width: 0;
	scroll-snap-align: start;
}

.abba-products__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px 12px 14px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(36, 48, 86, 0.06);
}

.abba-products__wish,
.abba-products__arrow {
	border: 0;
	background-color: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.abba-products__wish {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	color: #b5b5b5;
}

.abba-products__wish svg {
	width: 20px;
	height: 20px;
}

.abba-products__wish.is-saved {
	color: #e2186f;
}

.abba-products__wish.is-saved svg path {
	fill: currentColor;
}

.abba-products__media {
	display: block;
	aspect-ratio: 1;
	margin: 8px 8px 0;
}

.abba-products__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.abba-products__name {
	margin: 12px 4px 10px;
	min-height: 2.7em;
	color: #8a8a8a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
}

.abba-products__name a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: inherit;
	text-decoration: none;
}

.abba-products__name a:hover {
	color: #3c9d4e;
}

.abba-products__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding: 0 4px;
}

.abba-products__price {
	min-width: 0;
	color: #3c9d4e;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.abba-products__price .amount,
.abba-products__price bdi {
	color: inherit;
	font-weight: inherit;
}

.abba-products__price del {
	margin-right: 4px;
	color: #b0b0b0;
	font-size: 0.85em;
	font-weight: 500;
}

.abba-products__price ins {
	text-decoration: none;
}

.abba-products__cart {
	display: inline-flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	background: #3c9d4e;
	color: #fff;
}

.abba-products__cart svg {
	width: 16px;
	height: 16px;
}

.abba-products__cart:hover,
.abba-products__cart:focus {
	background: #348643;
	color: #fff;
}

.abba-products__cart.loading {
	opacity: 0.7;
}

.woocommerce .abba-products a.added_to_cart {
	display: block;
	flex: 1 0 100%;
	width: 100%;
	margin: 2px 0 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: #3c9d4e;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce .abba-products a.added_to_cart:hover,
.woocommerce .abba-products a.added_to_cart:focus {
	background: none;
	color: #348643;
	text-decoration: underline;
}

.abba-products__arrow {
	position: absolute;
	top: 46%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(36, 48, 86, 0.14);
	color: #8d8d8d;
	transform: translateY(-50%);
}

.abba-products__arrow[hidden] {
	display: none;
}

.abba-products__arrow svg {
	width: 18px;
	height: 18px;
}

.abba-products__arrow--prev {
	left: -6px;
}

.abba-products__arrow--next {
	right: -6px;
}

.abba-products__arrow:hover,
.abba-products__arrow:focus {
	color: #243056;
}

.abba-products__empty {
	margin: 0;
	color: #8d8d8d;
}

.abba-products--grid .abba-products__grid {
	display: grid;
	grid-template-columns: repeat(var(--abba-cols, 4), minmax(0, 1fr));
	gap: var(--abba-gap, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.abba-products--grid .abba-products__item {
	width: auto;
	min-width: 0;
}

@media (max-width: 767px) {
	.abba-products__arrow {
		width: 32px;
		height: 32px;
	}

	.abba-products__name {
		font-size: 12px;
	}
}
