/* Premium product-card refinements. Kept separate to preserve local storefront.css tuning. */

/* OAP variants occupy their own space between the image and product title. */
.sf-site .sf-product-card__variants {
	position: static;
	z-index: auto;
	width: 100%;
	min-height: 0;
	margin: 0 0 12px;
	padding: 9px 10px 10px;
	overflow: hidden;
	background: #f8f9f5;
	border: 1px solid #e2e3dd;
	border-radius: 11px;
	box-shadow: none;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition: border-color .18s ease, background-color .18s ease;
	backdrop-filter: none;
	box-sizing: border-box;
}

/* One vertical rhythm for title, supporting text, price and the purchase row. */
.sf-site .sf-product-card .sf-product-card__body.product-thumb__caption {
	padding: 16px 17px 17px !important;
}

.sf-site .sf-product-card .sf-product-card__name.product-thumb__name {
	margin-bottom: 0 !important;
}

.sf-site .sf-product-card__meta {
	margin-top: 6px;
}

.sf-site .sf-product-card .sf-product-card__subtitle.product-thumb__model {
	margin-top: 4px !important;
}

.sf-site .sf-product-card .sf-product-card__price.product-thumb__price {
	margin-top: 8px !important;
	margin-bottom: 9px !important;
}

.sf-site .sf-product-card .sf-product-card__cart.product-thumb__cart {
	margin-top: 12px !important;
}

.sf-site .sf-product-card:hover .sf-product-card__variants,
.sf-site .sf-product-card:focus-within .sf-product-card__variants,
.sf-site .sf-product-card.is-variants-open .sf-product-card__variants {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.sf-site .sf-product-card__variants-title {
	margin: 0 0 7px;
	overflow: hidden;
	color: #555750;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sf-site .sf-product-card__variants-list {
	display: flex;
	min-width: 0;
	align-items: center;
	flex-wrap: nowrap;
	gap: 5px;
	overflow: hidden;
}

.sf-site .sf-product-card__variant {
	width: calc((100% - 49px) / 3);
	max-width: none;
	height: 28px;
	flex: 0 1 calc((100% - 49px) / 3);
	padding: 0 9px;
	font-size: 10px;
	box-sizing: border-box;
}

.sf-site .sf-product-card__variant > span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sf-site .sf-product-card__variant.is-overflow {
	display: none;
}

.sf-site .sf-product-card__variant.is-more {
	width: 34px;
	min-width: 34px;
	max-width: 34px;
	flex: 0 0 34px;
	padding: 0 9px;
	cursor: pointer;
}

.sf-site .sf-product-card__more-close {
	display: none;
}

.sf-site .sf-product-card.is-variants-open .sf-product-card__variants {
	background: #fff;
	border-color: #d6d8cf;
}

.sf-site .sf-product-card.is-variants-open .sf-product-card__variants-list {
	max-height: 102px;
	align-items: flex-start;
	flex-wrap: wrap;
	overflow-y: auto;
	scrollbar-width: thin;
}

.sf-site .sf-product-card.is-variants-open .sf-product-card__variant.is-overflow {
	display: inline-flex;
}

.sf-site .sf-product-card.is-variants-open .sf-product-card__variant:not(.is-more) {
	width: auto;
	max-width: 100%;
	flex: 0 1 auto;
}

.sf-site .sf-product-card.is-variants-open .sf-product-card__more-count {
	display: none;
}

.sf-site .sf-product-card.is-variants-open .sf-product-card__more-close {
	display: inline;
}

/* The standalone mobile slider button is redundant with the inline +N control. */
.sf-site .sf-product-card__variants-toggle:not(.is-more) {
	display: none !important;
}

/* Prices use one shared left-aligned row: current first, old price second. */
.sf-site .sf-product-card .sf-product-card__price.product-thumb__price {
	display: flex !important;
	min-height: 31px;
	align-items: baseline;
	justify-content: flex-start;
	gap: 8px;
	text-align: left;
	white-space: nowrap;
}

.sf-site .sf-product-card .sf-product-card__price .price-old {
	display: inline-block !important;
	margin: 0 !important;
	color: #96998f !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	text-decoration: line-through;
}

.sf-site .sf-product-card .sf-product-card__price .price-new {
	display: inline-block !important;
	margin: 0 !important;
	font-size: 18px !important;
	line-height: 1.2 !important;
}

/* UniShop stickers share one modern stack on every storefront product card. */
.sf-site .sf-product-card .sticker {
	display: flex;
	max-width: calc(100% - 102px);
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	top: 13px !important;
	left: 14px !important;
	z-index: 8;
	pointer-events: none;
}

.sf-site .sf-product-card .sticker__item {
	display: inline-flex !important;
	width: auto;
	min-width: 0;
	height: 28px;
	min-height: 28px;
	align-items: center;
	justify-content: center;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 10px !important;
	border-radius: 9px !important;
	box-shadow: 0 3px 10px rgba(22, 24, 18, .05) !important;
	font-size: 10px !important;
	font-weight: 650 !important;
	line-height: 1 !important;
	opacity: 1 !important;
	box-sizing: border-box;
}

/* The percentage badge follows the same 34x34 rhythm as wishlist and compare. */
.sf-site .sf-product-card .sticker__item.special {
	display: grid !important;
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	place-items: center;
	margin: 0 !important;
	padding: 0 7px !important;
	border-radius: 9px !important;
	box-shadow: 0 3px 10px rgba(22, 24, 18, .035) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	opacity: 1 !important;
	box-sizing: border-box;
}

/* Product-page stickers use the same stack while retaining the roomier pill size. */
.sf-site .sf-product-page .product-page .sticker {
	display: flex;
	max-width: calc(100% - 28px);
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	z-index: 8;
	pointer-events: none;
}

.sf-site .sf-product-page .product-page .sticker__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	clear: none;
	margin: 0;
	opacity: 1;
}

@media (max-width: 767px) {
	.sf-site .sf-product-card__variants {
		margin-bottom: 8px;
		padding: 8px 9px 9px;
	}

	.sf-site .sf-product-card__variant {
		height: 27px;
		padding-inline: 8px;
		font-size: 9px;
	}

	.sf-site .sf-product-card .sf-product-card__price.product-thumb__price {
		min-height: 31px;
	}

	.sf-site .sf-product-card .sf-product-card__price .price-new {
		font-size: 18px !important;
	}
}
