/* Shared product cards; typography tokens live in typography.css. */

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view div.product {
	margin-bottom: 30px;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pls-product-image {
	margin-bottom: 12px;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pls-product-image > a.woocommerce-LoopProduct-link {
	display: block;
	aspect-ratio: 3 / 4;
	position: relative;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pls-product-image > a.woocommerce-LoopProduct-link > img {
	position: absolute;
	top: 5%;
	left: 5%;
	width: 90%;
	height: 90%;
	object-fit: contain;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pls-product-info {
	width: 90%;
	margin-inline: auto;
	text-align: center;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .product-title {
	display: block;
	white-space: normal;
	overflow: visible;
	line-height: 1.35;
	min-height: 0;
	margin: 0;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pers-product-brand {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #231f20;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pers-product-model {
	display: block;
	margin-top: 7px;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.3;
	color: #231f20;
	overflow-wrap: anywhere;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pers-product-model:first-child {
	margin-top: 0;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .product-price {
	margin-top: 14px;
	line-height: 1.4;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .product-price .price {
	font-size: 18px;
	font-weight: 400;
	color: #231f20;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pers-product-location {
	margin: 10px auto 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #76716d;
	overflow-wrap: anywhere;
}

/* Glass is limited to small photo controls, as requested by the owner. */
:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) {
	top: calc(5% + 16px);
	left: calc(5% + 10px);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) :is(.new, .featured, .on-sale),
:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-product-image > .pls-whishlist-button a {
	background: rgba(255, 255, 255, .45);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .7);
	color: #505461;
}

:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) :is(.new, .featured, .on-sale) {
	display: flex;
	align-items: center;
	min-height: 32px;
	margin: 0;
	padding: 0 12px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .02em;
	line-height: 1;
	text-transform: none;
	border-radius: 2px;
}

:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) .featured {
	order: -2;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #bc8311;
}

:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) :is(.featured, .on-sale) svg {
	display: block;
	flex: none;
}

:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) .on-sale {
	order: -1;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #c33d36;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-product-image > .pls-whishlist-button {
	position: absolute;
	top: calc(5% + 10px);
	right: calc(5% + 10px);
	z-index: 2;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-product-image > .pls-whishlist-button a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-size: 0;
	line-height: 0;
	border-radius: 50%;
	transition: background-color .2s ease-out, color .2s ease-out;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-product-image > .pls-whishlist-button a::before,
:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-product-image > .pls-whishlist-button a::after {
	display: none;
}

/* Remove the label from flex layout while retaining its accessible name. */
:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .yith-wcwl-add-to-wishlist-button__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-whishlist-button svg {
	display: block;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-whishlist-button a:hover {
	background-color: rgba(255, 255, 255, .75);
	color: #231f20;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-whishlist-button a:focus-visible {
	outline: 2px solid #9d705b;
	outline-offset: 3px;
}

:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .yith-wcwl-add-to-wishlist-button--loading {
	opacity: .5;
	cursor: progress;
}

@media (max-width: 767px) {
	:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pers-product-brand {
		font-size: 11px;
		letter-spacing: .06em;
	}

	:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .pers-product-model {
		font-size: 18px;
		margin-top: 6px;
	}

	:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .product-price {
		margin-top: 12px;
	}

	:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .products.grid-view .product-price .price {
		font-size: 16px;
	}

	:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) {
		top: calc(5% + 12px);
		left: calc(5% + 4px);
	}

	:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) :is(.new, .featured, .on-sale) {
		padding: 0 7px;
		font-size: 10px;
		min-height: 28px;
	}

	:is(:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .product-labels, .single-product #primary .woocommerce-product-gallery__wrapper > .product-labels) :is(.featured, .on-sale) {
		width: 28px;
		height: 28px;
		padding: 0;
	}

	:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-product-image > .pls-whishlist-button {
		top: calc(5% + 4px);
		right: calc(5% + 4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.pls-catalog-page #primary, .pers-home .pers-products, .single-product #primary, .pers-product-collection #primary) .pers-catalog-card .pls-whishlist-button a {
		transition: none;
	}
}
