.product-card-wrapper {
	min-width: 0;
	max-width: 100%;
	width: 100%;
}

.card-product {
	height: 100%;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	overflow: hidden;

	& .card-product__media {
		aspect-ratio: 1/1;
		position: relative;
		overflow: hidden;
		border-radius: 8px;

		& img,
		& video {
			position: absolute;
			inset: 0;
			width: 100%;
			height: 100%;
			object-fit: cover;
			object-position: center;
		}

		.card-product__media-primary,
		.card-product__media-hover {
			aspect-ratio: 1/1;
			transition: transform 0.3s ease, opacity 0.3s ease;
		}

		.card-product__media-hover {
			opacity: 0;
		}

		.card-product__media-primary {
			opacity: 1;
		}
	}

	& .card-product__content {
		display: flex;
		flex-direction: column;
		gap: 4px;
		flex: 1;
	}

	& .card-product__title {
		font-family: var(--font-heading-family);
		font-weight: 700;
		font-size: 18px;
		line-height: 120%;
		letter-spacing: 0%;
		color: inherit;
		text-decoration: none;

		&:hover {
			color: inherit;
			text-decoration: none;
		}

		@media screen and (min-width: 750px) {
			font-size: 24px;
			line-height: 100%;
		}
	}

	& .card-product__detail-info {
		font-family: var(--font-body-family);
		font-weight: 700;
		font-size: 12px;
		line-height: 120%;
		letter-spacing: 0%;
		text-transform: uppercase;
	}

	& .card-product__detail-list {
		font-family: var(--font-body-family);
		font-weight: 400;
		font-size: 12px;
		line-height: 120%;
		letter-spacing: 0%;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px;
	}

	& .card-product__variant-swatches {
		position: relative;
		z-index: 2;
		min-width: 0;
		max-width: 100%;
		width: 100%;
		pointer-events: auto;
		overflow: hidden;

		&::after {
			content: '';
			position: absolute;
			right: 0;
			height: 100%;
			width: 24px;
			background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
			z-index: 1;
			top: 0;
		}
	}

	.card-product__quick-add {
		position: relative !important;
		padding: 0;
		margin-block-start: auto;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;

		& .quick-add__submit,
		& product-form {
			width: 100%;
			font-weight: 700;
		}

		& .quick-add__submit {
			border-width: 2px;
			font-size: 14px !important;
			padding-block: 8px !important;

			@media (max-width: 750px) {
				padding-block: 5px !important;
			}

			&:hover {
				background: var(--black);
				border-color: var(--black);
			}
		}
	}

	&:hover {

		.card-product__media-primary,
		.card-product__media-hover {
			transform: scale(1.05);
		}
		.card-product__media-hover {
			opacity: 1;
		}
	}

	.swatch-list {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 5px;
		min-width: 0;
		max-width: 100%;
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		position: relative;

		@media (pointer:fine) {
			-webkit-overflow-scrolling: touch;
			scrollbar-width: thin;
			scrollbar-color: #000 #fff;
		}

		.swatch-list__item {
			display: inline-flex;
			flex-shrink: 0;
			align-items: center;
			justify-content: center;
			position: relative;
			z-index: 1;
			padding: 0;
			border-radius: 999px;
			text-decoration: none;
			cursor: pointer;
			pointer-events: auto;
			border: 1.5px solid var(--dot-border-color, transparent);
			height: 34px;
			width: 34px;
			transition: border-color 0s ease;

			&.is-active {
				--dot-border-color: #000;
			}
		}

		.swatch-dot {
			display: block;
			width: 28px;
			height: 28px;
			border-radius: 999px;
			background-size: cover;
			background-position: center;
			background-color: #fff;
		}

	}
}

.card-product--product-sets .card-product__variant-swatches {
	display: none;
}
