.bamboo-woocommerce ul.products li.product.bamboo-product-card,
.bamboo-product-card {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bamboo-woocommerce ul.products:not(.bamboo-product-shelf__track) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.bamboo-woocommerce ul.products:not(.bamboo-product-shelf__track) li.product.bamboo-product-card {
	width: 100% !important;
	max-width: none;
	min-width: 0;
}

.bamboo-product-card__inner {
	display: flex;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eee5d8;
	border-radius: 20px;
	box-shadow: 0 6px 16px rgba(33, 30, 24, .04);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bamboo-product-card__inner:hover,
.bamboo-product-card__inner:focus-within {
	border-color: rgba(184, 117, 49, .34);
	box-shadow: 0 12px 28px rgba(33, 30, 24, .08);
	transform: translateY(-2px);
}

.bamboo-product-card__media {
	position: relative;
	overflow: hidden;
	background: #e8ede1;
	border-radius: 16px;
	aspect-ratio: 1 / 1;
	isolation: isolate;
}

body.home .bamboo-product-card__media,
body.front-page .bamboo-product-card__media {
	position: relative;
	isolation: isolate;
}

.bamboo-product-card__image-link,
.bamboo-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
}

.bamboo-product-card__image,
.bamboo-product-card__media .woocommerce-placeholder {
	margin: 0;
	object-fit: cover;
	transition: opacity 180ms ease, transform 220ms ease;
}

.bamboo-product-card__image.rza-bh-product-image--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

.bamboo-product-card__inner:hover .bamboo-product-card__image,
.bamboo-product-card__inner:focus-within .bamboo-product-card__image {
	transform: scale(1.025);
}

.bamboo-product-card__inner:hover .rza-bh-product-image--hover,
.bamboo-product-card__inner:focus-within .rza-bh-product-image--hover {
	opacity: 1;
}

.bamboo-product-card__badges {
	position: absolute;
	z-index: 3;
	top: 8px;
	inset-inline-start: 8px;
	display: flex;
	max-width: calc(100% - 58px);
	flex-wrap: wrap;
	gap: 5px;
	pointer-events: none;
}

body.home .bamboo-product-card__badges,
body.front-page .bamboo-product-card__badges {
	top: 8px;
	inset-inline-start: auto;
	inset-inline-end: auto;
	right: auto;
	left: 8px;
	max-width: calc(100% - 58px);
}

.bamboo-product-card .rza-wishlist-button--card {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: auto;
	inset-inline-end: 8px;
	inline-size: var(--rza-wishlist-size, 36px);
	block-size: var(--rza-wishlist-size, 36px);
	margin: 0;
	z-index: 5;
}

body.home .bamboo-product-card .rza-wishlist-button--card,
body.front-page .bamboo-product-card .rza-wishlist-button--card {
	inset-block-start: 8px;
	inset-inline-start: auto;
	inset-inline-end: auto;
	right: 8px;
	left: auto;
	z-index: 5;
}

.bamboo-product-badge {
	display: inline-flex;
	min-width: 40px;
	min-height: 24px;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	color: #38462f;
	background: #e8ede1;
	border: 1px solid rgba(56, 70, 47, .16);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.bamboo-product-badge--sale {
	color: #fff;
	background: #b87531;
	border-color: rgba(184, 117, 49, .28);
}

.bamboo-product-badge--out-of-stock {
	color: #fff;
	background: #a5483b;
	border-color: rgba(165, 72, 59, .24);
}

.bamboo-product-card__overlay {
	position: absolute;
	z-index: 4;
	inset-block-end: 9px;
	inset-inline-start: 9px;
	inset-inline-end: auto;
	display: flex;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 160ms ease, transform 160ms ease;
}

body.home .bamboo-product-card__overlay,
body.front-page .bamboo-product-card__overlay {
	inset-block-start: auto;
	inset-block-end: 9px;
	inset-inline-start: 9px;
	inset-inline-end: auto;
	z-index: 4;
}

.bamboo-product-card__inner:hover .bamboo-product-card__overlay,
.bamboo-product-card__inner:focus-within .bamboo-product-card__overlay {
	opacity: 1;
	transform: translateY(0);
}

.bamboo-product-card__action-link {
	display: inline-flex;
	width: 40px;
	height: 40px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #2d4329;
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(66, 97, 60, .18);
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(37, 37, 31, .12);
	font-size: 0;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

/* Own the complete card action surface without changing WooCommerce's button class contract. */
.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button,
.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button,
.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button {
	position: relative;
	display: inline-flex;
	inline-size: 40px;
	min-inline-size: 40px;
	max-inline-size: 40px;
	block-size: 40px;
	min-block-size: 40px;
	max-block-size: 40px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	color: #2d4329;
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(66, 97, 60, .18);
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(37, 37, 31, .12);
	font-weight: 700;
	line-height: 1;
	text-shadow: none;
}

.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button:hover,
.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button:focus-visible,
.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button.is-added,
.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button.added,
.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button:hover,
.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button:focus-visible,
.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.is-added,
.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.added,
.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button:hover,
.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button:focus-visible,
.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.is-added,
.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.added {
	color: #fff;
	background: #42613c;
	border-color: #42613c;
}

.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button.is-variable,
.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.is-variable,
.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.is-variable {
	color: #38462f;
	background: #f1e6d5;
	border-color: rgba(184, 117, 49, .24);
}

.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button.is-disabled,
.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.is-disabled,
.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button.is-disabled {
	color: #a5483b;
	background: #fff4f1;
	border-color: rgba(165, 72, 59, .18);
}

.bamboo-card-action__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bamboo-card-action__icon {
	display: inline-flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.bamboo-card-action__icon i {
	font-size: 19px;
	line-height: 1;
}

.bamboo-card-action__icon.is-loading,
.bamboo-card-action__icon.is-success {
	display: none;
}

.bamboo-product-card__action-link:hover,
.bamboo-product-card__action-link:focus-visible,
.bamboo-product-card__action-link.is-added,
.bamboo-product-card__action-link.added {
	color: #fff;
	background: #42613c;
	border-color: #42613c;
}

.bamboo-product-card__action-link:hover {
	transform: translateY(-1px);
}

.bamboo-product-card__action-link.is-loading,
.bamboo-product-card__action-link.loading {
	cursor: default;
	pointer-events: none;
}

.bamboo-product-card__action-link.is-loading .is-idle,
.bamboo-product-card__action-link.loading .is-idle,
.bamboo-product-card__action-link.is-added .is-idle,
.bamboo-product-card__action-link.added .is-idle {
	display: none;
}

.bamboo-product-card__action-link.is-loading .is-loading,
.bamboo-product-card__action-link.loading .is-loading {
	display: inline-flex;
}

.bamboo-product-card__action-link.is-added .is-success,
.bamboo-product-card__action-link.added .is-success {
	display: inline-flex;
}

.bamboo-product-card__action-link.is-loading .la-spinner,
.bamboo-product-card__action-link.loading .la-spinner {
	animation: bamboo-card-spin .8s linear infinite;
}

.bamboo-product-card__action-link.is-variable {
	color: #38462f;
	background: #f1e6d5;
	border-color: rgba(184, 117, 49, .24);
}

.bamboo-product-card__action-link.is-disabled {
	color: #a5483b;
	background: #fff4f1;
	border-color: rgba(165, 72, 59, .18);
}

.rza-sale-section .bamboo-product-card.outofstock .bamboo-product-card__image {
	filter: grayscale(1);
	opacity: .72;
}

.rza-sale-section .bamboo-product-card.outofstock .bamboo-product-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(244, 239, 230, .18);
	pointer-events: none;
}

.bamboo-product-card .added_to_cart,
.bamboo-product-card .wc-forward {
	display: none !important;
}

.bamboo-product-card .button.loading::before,
.bamboo-product-card .button.loading::after,
.bamboo-product-card .button.added::before,
.bamboo-product-card .button.added::after,
.bamboo-product-card .add_to_cart_button.loading::before,
.bamboo-product-card .add_to_cart_button.loading::after,
.bamboo-product-card .add_to_cart_button.added::before,
.bamboo-product-card .add_to_cart_button.added::after,
.bamboo-product-card .added_to_cart::before,
.bamboo-product-card .added_to_cart::after,
.bamboo-product-card .wc-forward::before,
.bamboo-product-card .wc-forward::after {
	display: none !important;
	content: none !important;
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
	.bamboo-product-card__inner,
	.bamboo-product-card__inner:hover,
	.bamboo-product-card__inner:active,
	.bamboo-product-card__inner:focus-within {
		transform: none !important;
	}

	.bamboo-product-card__inner:hover,
	.bamboo-product-card__inner:active,
	.bamboo-product-card__inner:focus-within {
		box-shadow: 0 6px 16px rgba(33, 30, 24, .04);
	}

	.bamboo-product-card__image.rza-bh-product-image--hover {
		display: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.bamboo-product-card__inner:hover .rza-bh-product-image--hover,
	.bamboo-product-card__inner:focus-within .rza-bh-product-image--hover {
		opacity: 0 !important;
	}

	.bamboo-product-card__inner:hover .bamboo-product-card__image,
	.bamboo-product-card__inner:active .bamboo-product-card__image,
	.bamboo-product-card__inner:focus-within .bamboo-product-card__image {
		transform: none !important;
	}

	.bamboo-product-card__overlay {
		opacity: 1;
		transform: translateY(0);
	}

	.bamboo-product-card__action-link {
		width: 38px;
		height: 38px;
		min-height: 38px;
	}

	.bamboo-product-card .rza-wishlist-button--card {
		--rza-wishlist-size: 34px;
	}

	.woocommerce ul.products li.product .bamboo-product-card__overlay .bamboo-card-action.button,
	.woocommerce .bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button,
	.bamboo-product-card .bamboo-product-card__overlay .bamboo-card-action.button {
		inline-size: 38px;
		min-inline-size: 38px;
		max-inline-size: 38px;
		block-size: 38px;
		min-block-size: 38px;
		max-block-size: 38px;
	}
}

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

.bamboo-product-card__content {
	display: grid;
	gap: 3px;
	padding: 9px 10px 12px;
}

.bamboo-product-card__category,
.bamboo-product-card__sku {
	overflow: hidden;
	color: #6f6a5f;
	font-size: var(--bamboo-font-small);
	line-height: 1.6;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bamboo-product-card__title {
	margin: 0;
	font-size: var(--bamboo-font-ui);
	font-weight: 700;
	line-height: 1.65;
}

.bamboo-product-card__title a {
	display: -webkit-box;
	overflow: hidden;
	color: #28251e;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bamboo-product-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 5px;
	margin-top: 2px;
	color: #38462f;
	font-size: var(--bamboo-font-body);
	font-weight: 800;
	line-height: 1.6;
}

.bamboo-product-card__price del {
	color: #a59b8d;
	font-size: var(--bamboo-font-small);
	font-weight: 600;
	opacity: .8;
}

.bamboo-product-card__price ins {
	color: #42613c;
	text-decoration: none;
}

.bamboo-woocommerce ul.products li.product .bamboo-product-card__title {
	font-size: var(--bamboo-font-ui);
}

.bamboo-woocommerce ul.products li.product .bamboo-product-card__price {
	font-size: var(--bamboo-font-body);
}

.bamboo-woocommerce ul.products li.product .bamboo-product-card__price del {
	font-size: var(--bamboo-font-small);
}

.bamboo-product-card .header-action--cart {
	position: relative;
}

.bamboo-product-card .header-action__count {
	position: absolute;
	top: -5px;
	inset-inline-end: -5px;
	display: inline-grid !important;
	min-width: 18px;
	height: 18px;
	place-items: center;
	padding-inline: 4px;
	color: #fff;
	background: #b87531;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

@media (min-width: 768px) {
	.bamboo-woocommerce ul.products:not(.bamboo-product-shelf__track) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.bamboo-woocommerce ul.products:not(.bamboo-product-shelf__track) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.bamboo-product-card__overlay {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bamboo-product-card__inner,
	.bamboo-product-card__image,
	.bamboo-product-card__overlay {
		transition: none;
	}
}
