.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product.ssbc-card-wrap {
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.ssbc-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--ssbc-surface);
	box-shadow: none;
	transition: border-color var(--ssbc-speed) var(--ssbc-ease), box-shadow var(--ssbc-speed) var(--ssbc-ease), transform var(--ssbc-speed) var(--ssbc-ease);
}

.ssbc-card:hover,
.ssbc-card:focus-within {
	border-color: #dfe2e8;
	box-shadow: 0 10px 24px rgba(22, 26, 36, 0.08);
	transform: translateY(-1px);
}

.ssbc-card__media {
	position: relative;
	margin: 10px 10px 0;
	border-radius: 7px;
	background: #f2f3f5;
}

.ssbc-card__image-link {
	position: relative;
	display: block;
	aspect-ratio: 1 / 0.95;
	overflow: hidden;
}

.ssbc-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px 16px;
	transition: opacity var(--ssbc-speed) var(--ssbc-ease), transform var(--ssbc-speed) var(--ssbc-ease);
}

.ssbc-card__image--secondary {
	opacity: 0;
}

.ssbc-card:hover .ssbc-card__image--primary {
	transform: scale(1.025);
}

.ssbc-card:hover .ssbc-card__image--secondary {
	opacity: 1;
}

.ssbc-card__wishlist {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(22, 26, 36, 0.12);
	text-decoration: none;
}

.ssbc-card__wishlist span {
	position: relative;
	display: block;
	width: 16px;
	height: 14px;
	transform: rotate(-45deg);
}

.ssbc-card__wishlist span::before,
.ssbc-card__wishlist span::after {
	position: absolute;
	width: 10px;
	height: 14px;
	border: 2px solid var(--ssbc-magenta);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	content: "";
}

.ssbc-card__wishlist span::before {
	left: 0;
	transform: rotate(45deg);
	transform-origin: 100% 100%;
}

.ssbc-card__wishlist span::after {
	right: 0;
	transform: rotate(-45deg);
	transform-origin: 0 100%;
}

.ssbc-card__badges {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 58px);
}

.ssbc-card__badge {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 4px 8px;
	border-radius: var(--ssbc-radius-pill);
	background: var(--ssbc-sale);
	color: #fff;
	font-size: 11px;
	font-weight: 850;
	line-height: 1;
}

.ssbc-card__badge--stock {
	background: var(--ssbc-ink);
}

.ssbc-card__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 11px 12px 13px;
}

.ssbc-card__category,
.ssbc-card__category a {
	color: var(--ssbc-magenta);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .ssbc-card__title {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.28;
}

.ssbc-card__title a {
	display: -webkit-box;
	min-height: 38px;
	overflow: hidden;
	color: var(--ssbc-ink);
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ssbc-card__title a:hover {
	color: var(--ssbc-magenta);
}

.ssbc-card__rating-row {
	min-height: 19px;
}

.ssbc-card__rating {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	color: var(--ssbc-muted);
	font-size: 12px;
	text-decoration: none;
}

.ssbc-card__rating .star-rating {
	float: none;
	width: 5.4em;
	margin: 0;
	color: var(--ssbc-star);
	font-size: 11px;
}

.ssbc-card__price-row {
	min-height: 28px;
	padding-right: 46px;
	color: var(--ssbc-sale);
	font-size: 19px;
	font-weight: 850;
	line-height: 1.15;
}

.ssbc-card__price-row .woocommerce-Price-currencySymbol {
	display: inline !important;
	white-space: nowrap;
}

.ssbc-card__summary {
	display: -webkit-box;
	min-height: 33px;
	margin: 0;
	overflow: hidden;
	color: var(--ssbc-muted);
	font-size: 12px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ssbc-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	margin-top: 2px;
	color: var(--ssbc-muted);
	font-size: 12px;
}

.ssbc-card__delivery {
	min-height: 19px;
	padding: 2px 7px;
	border-radius: 3px;
	background: var(--ssbc-yellow);
	color: var(--ssbc-navy);
	font-size: 10px;
	font-weight: 850;
	line-height: 1.4;
}

.ssbc-card__stock.is-in-stock {
	color: var(--ssbc-ink);
	font-weight: 750;
}

.ssbc-card__stock.is-out-of-stock {
	color: var(--ssbc-danger);
	font-weight: 800;
}

.ssbc-card__actions {
	position: absolute;
	right: 11px;
	top: 50px;
	z-index: 3;
}

.ssbc-card__actions .button,
.ssbc-card__cart-button {
	position: relative;
	width: 38px;
	min-width: 38px;
	height: 38px;
	min-height: 38px;
	overflow: hidden;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--ssbc-magenta) !important;
	color: #fff !important;
	font-size: 0 !important;
	box-shadow: 0 8px 16px rgba(230, 0, 88, 0.22);
}

.woocommerce ul.products li.product .ssbc-card__actions .button,
.woocommerce-page ul.products li.product .ssbc-card__actions .button,
.woocommerce ul.products li.product .ssbc-card__cart-button,
.woocommerce-page ul.products li.product .ssbc-card__cart-button {
	background: var(--ssbc-magenta) !important;
	color: #fff !important;
}

.ssbc-card__cart-button::before,
.ssbc-card__actions .button::before {
	position: absolute;
	top: 12px;
	left: 10px;
	width: 17px;
	height: 12px;
	border: 2px solid currentColor;
	border-top: 0;
	border-radius: 2px 2px 5px 5px;
	content: "";
}

.ssbc-card__cart-button::after,
.ssbc-card__actions .button::after {
	position: absolute;
	top: 8px;
	left: 14px;
	width: 9px;
	height: 7px;
	border: 2px solid currentColor;
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	content: "";
}

.ssbc-card__actions .button:hover,
.ssbc-card__cart-button:hover,
.woocommerce ul.products li.product .ssbc-card__actions .button:hover,
.woocommerce-page ul.products li.product .ssbc-card__actions .button:hover {
	background: var(--ssbc-magenta-dark) !important;
	color: #fff !important;
	box-shadow: 0 10px 18px rgba(230, 0, 88, 0.28);
	transform: translateY(-1px);
}

.woocommerce ul.products li.product a.added_to_cart {
	display: block;
	margin-top: 8px;
	color: var(--ssbc-magenta);
	font-size: 12px;
	font-weight: 850;
	text-align: center;
	text-decoration: none;
}

.ssbc-card.is-adding .ssbc-card__cart-button {
	opacity: 0.72;
	pointer-events: none;
}

@media (max-width: 1180px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ssbc-card__body {
		padding: 10px;
	}

	.woocommerce ul.products li.product .ssbc-card__title {
		font-size: 13px;
	}
}

@media (max-width: 420px) {
	.ssbc-card__image {
		padding: 12px;
	}

	.ssbc-card__summary {
		font-size: 12px;
	}

	.ssbc-card__price-row {
		font-size: 16px;
	}

	.ssbc-card__price-row del {
		display: block;
		font-size: 13px;
	}

	.ssbc-card__price-row ins {
		display: block;
	}
}
