/**
 * Gridowp — product card (shop loop).
 * Star color stays gold (universal rating convention); everything else uses
 * the site palette. Wishlist "liked" state uses the accent orange instead of
 * red, consistent with the remove/danger treatment used elsewhere.
 */

.products-grid.loading .product-item {
	opacity: .4;
	pointer-events: none;
}

/* Layout utility classes used throughout the card markup. */
.d-flex {
	display: flex;
	flex-wrap: wrap;
}

.-flex-center {
	align-items: center;
}

.-space-between {
	justify-content: space-between;
}

.-flex-1 {
	flex: 1 1 0%;
}

.-flex-column {
	flex-direction: column;
}

/* Cancel the legacy float-column grid (woocommerce.css) — this card uses its own flex-wrap layout. */
ul.products {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.products li.product-item {
	float: none !important;
	width: auto !important;
	margin: 15px !important;
}

.product-item {
	min-width: 330px;
	max-width: 352px;
	margin: 15px;
	position: relative;
	padding: 25px;
	z-index: 1;
	border: 1px solid var(--gw-line);
	background: var(--gw-bg);
	border-radius: 30px;
	overflow: hidden;
	list-style: none;
	transition: box-shadow .15s, border-color .15s;
}

.product-item:hover {
	border-color: var(--gw-primary-light);
	box-shadow: 0 10px 30px rgba(125, 194, 70, .12);
}

.product-item > a {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.product-item .product-item-thumbnail {
	position: relative;
	border-radius: 15px;
	height: 170px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(125, 194, 70, .07);
}

.product-item-thumbnail:before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--bg-product);
	background-size: cover;
	background-position: center;
	border-radius: 15px;
}

.product-item .product-item-info .product-item-info-icon {
	width: 68px;
	height: 68px;
	margin-top: -40px;
	margin-right: 10px;
	position: relative;
	z-index: 10;
}

.product-item .product-item-info .product-item-info-icon:empty {
	display: none;
}

.product-item .product-item-info .product-item-info-icon img {
	border-radius: 50%;
	box-shadow: 0 0 0 6px var(--gw-bg);
}

.product-item .product-item-info > h3 {
	font-size: 22px;
	margin: 0 0 9px;
	padding-top: 18px;
	font-weight: 700;
	color: var(--gw-ink);
}

.product-item .product-item-info > .product-item-info-description {
	font-size: 15px;
	color: var(--gw-ink-dim);
	margin-bottom: 20px;
	font-weight: 400;
	line-height: 1.6;
	overflow: hidden;
	flex: 1 1 0%;
}

.product-item-info {
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
}

.product-item-info-stats {
	margin-bottom: 24px;
}

.product-item-info-stats-ratings > p {
	font-weight: 400;
	font-size: 13px;
	margin: 0 0 4px;
	color: var(--gw-ink-dim);
}

.product-item-info-stats-ratings > p > .-rating-value {
	font-weight: 700;
	font-size: 14px;
	color: var(--gw-ink);
	line-height: 100%;
}

/* WooCommerce's native star-rating widget (see woocommerce.css), resized and
   recolored gold for this compact card context. */
.product-item .star-rating {
	font-size: 14px;
}

.product-item .star-rating span::before {
	color: #ffa700;
}

.product-item-info-stats-sales {
	gap: 8px;
}

.product-item-info-stats-sales > svg {
	color: var(--gw-primary-hover);
	flex-shrink: 0;
}

.product-item-info-stats-sales > div > p {
	font-size: 13px;
	font-weight: 700;
	color: var(--gw-ink);
	margin: 0;
}

.product-item-info-stats-sales > div > p.-title-label {
	font-weight: 400;
	color: var(--gw-ink-dim);
}

.product-item-info-ux-button {
	padding: 10px;
	line-height: 100%;
	display: grid;
	place-items: center;
	border-radius: 20px;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.product-item-info-ux-button.cart {
	color: var(--gw-primary-hover);
}

.product-item-info-ux-button.cart:hover {
	background: rgba(125, 194, 70, .12);
}

.product-item-info-ux-button.cart.done {
	background: var(--gw-primary);
	color: var(--gw-ink);
}

.product-item-info-ux-buttons {
	margin-right: -10px;
}

.product-item-info-ux-price {
	display: flex;
	flex-direction: column;
}

.product-item-info-ux-price > p {
	display: block;
	margin: 0 0 0 auto;
	direction: ltr;
}

.product-item-info-ux-price > p.--price-now {
	font-size: 22px;
	font-weight: 700;
	color: var(--gw-ink);
}

.product-item-info-ux-price > p.--price-was {
	font-size: 14px;
	color: var(--gw-ink-dim);
	position: relative;
}

.product-item-info-ux-price > p.--price-was:after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	background: #dc3545;
}

.product-item-badge {
	position: absolute;
	top: 6px;
	left: -12px;
	z-index: 10;
	display: flex;
	align-items: center;
	color: var(--gw-ink);
	background: var(--gw-primary);
	letter-spacing: 0;
	font-size: 13px;
	line-height: 15px;
	font-weight: 700;
	padding: 9px 14px;
	border-radius: 10px 10px 10px 0;
}

.product-item-badge:before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 12px 12px 0;
	border-color: transparent var(--gw-primary-hover) transparent transparent;
}

.product-item-badge em {
	font-style: normal;
	font-size: 13px;
}

.product-item-badge span {
	margin-inline: 3px;
	font-size: 14px;
	font-weight: 700;
}

@media only screen and (max-width: 1484px) {
	.product-item {
		max-width: 520px;
		min-width: 260px;
		margin: 10px;
		padding: 25px;
	}
}

@media only screen and (max-width: 1180px) {
	.product-item {
		max-width: 512px;
		min-width: 256px;
	}
}

@media only screen and (max-width: 1024px) {
	.product-item {
		max-width: inherit;
		min-width: 270px;
	}
}

@media only screen and (max-width: 630px) {
	.product-item {
		min-width: 270px;
		margin: 6px;
		padding: 20px;
	}
}

@media only screen and (max-width: 553px) {
	.product-item {
		min-width: 180px;
		border-radius: 15px;
		padding: 15px;
	}

	.product-item .product-item-info > h3 {
		font-size: 18px;
	}

	.product-item .product-item-info > .product-item-info-description {
		font-size: 13px;
	}

	.product-item .product-item-info .product-item-info-icon {
		width: 30px;
		height: 30px !important;
		margin-top: -18px;
	}
}
