.penna-shop-product {
	min-width: 0;
	font-family: "Instrument Sans", sans-serif;
}

.penna-shop-product__image {
	position: relative;
	overflow: hidden;
	background: #f4f4f4;
	aspect-ratio: 3 / 4;
}

.penna-shop-product__image-link,
.penna-shop-product__image-link img {
	display: block;
	width: 100%;
	height: 100%;
}

.penna-shop-product__image-link img {
	object-fit: cover;
	transition: transform 220ms ease;
}

.penna-shop-product:hover .penna-shop-product__image-link img {
	transform: scale(1.02);
}

.penna-shop-product__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 24px;
	padding: 0 9px;
	background: #000;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	z-index: 2;
}

.penna-shop-product__cta {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	background: #000;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
	z-index: 3;
}

.penna-shop-product__cta *,
.penna-shop-product__cta:visited,
.penna-shop-product__cta:hover,
.penna-shop-product__cta:focus {
	color: #fff !important;
	text-decoration: none;
}

.penna-shop-product__cta.is-loading {
	pointer-events: none;
}

.penna-shop-product__cta.is-loading::before {
	content: "";
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 8px;
	border: 1px solid rgba(255,255,255,.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: penna-product-card-spin 700ms linear infinite;
}

@keyframes penna-product-card-spin { to { transform: rotate(360deg); } }

.penna-shop-product:hover .penna-shop-product__cta,
.penna-shop-product:focus-within .penna-shop-product__cta {
	opacity: 1;
	transform: translateY(0);
}

.penna-shop-product__cta:hover,
.penna-shop-product__cta.is-added,
.penna-shop-product__cta.is-loading {
	background: #242424;
}

.penna-shop-product__cta.is-added {
	display: grid;
	grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr);
	column-gap: 12px;
	padding-inline: 12px;
}

.penna-shop-product__cta-part {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 100%;
	white-space: nowrap;
}

.penna-shop-product__cta-separator {
	display: block;
	align-self: stretch;
	width: 1px;
	min-height: 18px;
	background: #fff;
}

.penna-shop-product__cta-part--cart { cursor: pointer; }
.penna-shop-product__cta.added:not(.is-added):not(.is-loading) { opacity: 0; transform: translateY(8px); }
.penna-shop-product .added_to_cart.wc-forward:not(.penna-shop-product__cta) { display: none !important; }

.penna-shop-product__title {
	display: block;
	margin-top: 13px;
	color: #000;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.penna-shop-product__price {
	margin-top: 4px;
	color: #000;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.penna-shop-product__price del { opacity: .5; font-weight: 500; }
.penna-shop-product__price ins { text-decoration: none; }

@media (hover: none) {
	.penna-shop-product__cta {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.penna-shop-product__image-link img,
	.penna-shop-product__cta { transition: none; }
}
