/**
 * Shared product tile (loops using .hp-product-card).
 */

.hp-shop-main ul.products li.product.hp-product-card,
ul.products li.product.hp-product-card {
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	display: flex !important;
	flex-direction: column !important;
}

.hp-product-card__image-wrap {
	box-sizing: border-box;
	aspect-ratio: 3 / 4;
	background-color: var(--card-bg);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hp-shop-main ul.products li.product.hp-product-card .hp-product-card__link--media,
.hp-shop-main ul.products li.product.hp-product-card a.woocommerce-loop-product__link.hp-product-card__link--media,
ul.products li.product.hp-product-card .hp-product-card__link--media,
ul.products li.product.hp-product-card a.woocommerce-loop-product__link.hp-product-card__link--media {
	display: flex !important;
	flex-direction: column !important;
}

.hp-shop-main ul.products li.product.hp-product-card a.woocommerce-loop-product__link img,
.hp-product-card__image-wrap img,
ul.products li.product.hp-product-card a.woocommerce-loop-product__link img {
	width: 100% !important;
	height: 100% !important;
	max-height: 100%;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	object-position: center !important;
	display: block !important;
	background-color: transparent !important;
}

.hp-product-card__info {
	padding: 12px 16px;
	background-color: #fff;
	box-sizing: border-box;
	text-align: left;
	flex: 1;
}

.hp-product-card__badges {
	font-size: 11px;
	color: #5a7a5a;
	margin: 0 0 4px;
}

.hp-product-card__name {
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 2px;
	padding: 0;
}

.hp-shop-main ul.products li.product.hp-product-card .woocommerce-loop-product__title.hp-product-card__name,
ul.products li.product.hp-product-card .woocommerce-loop-product__title.hp-product-card__name {
	font-size: 15px !important;
	font-weight: 500 !important;
	padding: 0 !important;
	margin: 0 0 2px !important;
}

.hp-product-card__name a.hp-product-card__title-link {
	color: #1a1a1a;
	text-decoration: none;
}

.hp-product-card__name a.hp-product-card__title-link:hover {
	color: #1a1a1a;
	text-decoration: underline;
}

.hp-product-card__latin {
	font-size: 12px;
	color: #888;
	font-style: italic;
	margin: 0 0 8px;
}

.hp-product-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.hp-product-card__footer .hp-product-card__price {
	flex: 0 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}

.hp-product-card__price .amount,
.hp-product-card__footer .price {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}

.hp-product-card__price ins {
	text-decoration: none;
	font-weight: 600;
	color: #e02020 !important;
}

.hp-product-card__price ins .amount,
.hp-product-card__price ins bdi {
    color: #e02020 !important;
    font-weight: 600;
}

.hp-product-card__price del,
.hp-product-card__price--original {
	text-decoration: line-through;
	color: #aaa;
	font-weight: 400;
}

.hp-shop-main ul.products li.product.hp-product-card .hp-product-card__footer a.hp-product-card__add,
.hp-shop-main ul.products li.product.hp-product-card .hp-product-card__footer a.button.hp-product-card__add,
ul.products li.product.hp-product-card .hp-product-card__footer a.hp-product-card__add,
ul.products li.product.hp-product-card .hp-product-card__footer a.button.hp-product-card__add,
.hp-product-card a.hp-product-card__add.button,
.hp-product-card a.hp-product-card__add {
	flex-shrink: 0;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	margin-left: auto !important;
	padding: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background: none !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	border-color: transparent !important;
	line-height: 1.25 !important;
	outline: none !important;

	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em !important;
	text-transform: none !important;
	text-align: right !important;
	color: #1a1a1a !important;
	text-decoration: none !important;
	cursor: pointer !important;
	vertical-align: baseline !important;
}

.hp-shop-main ul.products li.product.hp-product-card .hp-product-card__footer a.hp-product-card__add::before,
.hp-shop-main ul.products li.product.hp-product-card .hp-product-card__footer a.button.hp-product-card__add::before,
ul.products li.product.hp-product-card .hp-product-card__footer a.hp-product-card__add::before,
ul.products li.product.hp-product-card .hp-product-card__footer a.button.hp-product-card__add::before,
.hp-product-card a.hp-product-card__add::before {
	display: none !important;
	content: none !important;
}

.hp-shop-main ul.products li.product.hp-product-card .hp-product-card__footer a.hp-product-card__add:hover,
.hp-shop-main ul.products li.product.hp-product-card .hp-product-card__footer a.button.hp-product-card__add:hover,
ul.products li.product.hp-product-card .hp-product-card__footer a.hp-product-card__add:hover,
ul.products li.product.hp-product-card .hp-product-card__footer a.button.hp-product-card__add:hover,
.hp-product-card a.hp-product-card__add.button:hover,
.hp-product-card a.hp-product-card__add:hover {
	text-decoration: underline !important;
	background: none !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #1a1a1a !important;
}

.hp-product-card__badges-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.hp-product-card__badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 2px;
}

.hp-product-card__badge--label {
    background: #1a1a1a;
    color: #fff;
}

.hp-product-card__badge--sale {
    background: #fff;
    color: #1a1a1a;
}

.hp-product-card__wishlist {
    margin-left: auto;
}

/* Make card position relative for absolute badges */
li.hp-product-card {
    position: relative;
}

.hp-product-card__wishlist {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #1a1a1a;
	display: flex;
	align-items: center;
}

.hp-product-card__wishlist:hover {
	color: #2D5A27;
}