.shop-section .product-box {
	display: flex;
	flex-direction: column;
}

.shop-section .product-meta-info {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.shop-section .product-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 32px;
}

.shop-section .product-card-purchase {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}

/* Icon actions: shown only while the card is hovered or focused. Hidden with
   opacity alone so screen readers can still reach them in browse mode. */
.shop-section .product-card-purchase .product-card-action {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	background-color: transparent;
	opacity: 0;
	transition: opacity 0.25s ease;
}

/* The theme underlines every nested link with an ::after bar on hover/focus. */
.shop-section .product-card-purchase .product-card-action::after {
	content: none;
}

/* The theme removes the outline from all links, so restore it for keyboard users. */
.shop-section .product-card-purchase .product-card-action:focus-visible {
	outline: 2px solid #d8be77;
	outline-offset: 2px;
}

.shop-section .product-box:hover .product-card-action,
.shop-section .product-box:focus-within .product-card-action {
	opacity: 1;
}

/* Touch devices have no hover, so keep the actions visible. */
@media (hover: none) {
	.shop-section .product-card-purchase .product-card-action {
		opacity: 1;
	}
}

/* The empty icon is swapped for the filled one on hover. */
.shop-section .product-card-purchase .product-card-action {
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.shop-section .product-card-purchase .product-card-action--cart {
	background-image: url('../svg/cart-empty.svg');
}

.shop-section .product-card-purchase .product-card-action--cart:hover,
.shop-section .product-card-purchase .product-card-action--cart:focus-visible {
	background-image: url('../svg/cart-filled.svg');
}

.shop-section .product-card-purchase .product-card-action--options {
	background-image: url('../svg/dots-empty.svg');
}

.shop-section .product-card-purchase .product-card-action--options:hover,
.shop-section .product-card-purchase .product-card-action--options:focus-visible {
	background-image: url('../svg/dots-filled.svg');
}

.shop-section .product-card-action.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* WooCommerce injects a "View cart" link after a successful AJAX add. */
.shop-section .product-card-purchase .added_to_cart {
	display: none;
}

.shop-section .product-card-unavailable {
	color: #888;
	font-size: 13px;
	font-weight: 600;
}

.shop-section .product-card-notice {
	margin-top: 8px;
	color: #333;
	font-size: 12px;
	font-weight: 600;
}

.shop-section .product-card-notice:empty {
	display: none;
}

.shop-section .product-card-notice.is-visible {
	animation: product-card-notice-in 0.25s ease-out;
}

/* Keep the duration in sync with leaveDuration in product-card-purchase.js. */
.shop-section .product-card-notice.is-leaving {
	animation: product-card-notice-out 0.25s ease-in forwards;
}

@keyframes product-card-notice-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes product-card-notice-out {
	to {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shop-section .product-card-notice.is-visible,
	.shop-section .product-card-notice.is-leaving {
		animation: none;
	}
}

/* The theme drops the card padding on phones, where cards span the screen. */
@media only screen and (max-width: 620px) {
	.shop-section .product-price-row {
		min-height: 40px;
		padding: 0 20px;
	}

	.shop-section .product-card-purchase .product-card-action {
		width: 40px;
		height: 40px;
	}

	.shop-section .product-card-notice {
		padding: 0 20px;
	}

	.shop-section .product-meta-info {
		padding-bottom: 20px;
	}
}
