.domotex-product-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	color: var(--domotex-color-charcoal);
}

.domotex-product-card__media {
	position: relative;
	isolation: isolate;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--domotex-radius-card, 3px);
	background: var(--domotex-color-category-background);
}

.domotex-product-card__image-link {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.domotex-product-card__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
}

/* WooCommerce's legacy product-loop rule forces linked images to auto height. */
.woocommerce .domotex-product-card__media .domotex-product-card__image {
	height: 100%;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.domotex-product-card__image-link:hover .domotex-product-card__image {
		transform: scale(1.025);
	}
}

.domotex-product-card__badges {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: flex;
	max-width: calc(100% - 4rem);
	flex-wrap: wrap;
	gap: 0.375rem;
	pointer-events: none;
}

.domotex-product-card__badge {
	display: inline-flex;
	min-height: 1.65rem;
	align-items: center;
	padding: 0.25rem 0.55rem;
	border-radius: var(--domotex-radius-micro, 1.5px);
	font-size: 0.6875rem;
	font-weight: 650;
	letter-spacing: 0.045em;
	line-height: 1;
	text-transform: uppercase;
}

.domotex-product-card__badge--sale {
	background: var(--domotex-color-discount);
	color: var(--domotex-color-white);
}

.domotex-product-card__badge--new {
	background-color: var(--domotex-color-charcoal, #121212);
	color: var(--domotex-color-white, #ffffff);
}

.domotex-product-card__wishlist {
	position: absolute;
	top: 0.625rem;
	right: 0.625rem;
	display: inline-grid;
	width: 2.625rem;
	height: 2.625rem;
	place-items: center;
	padding: 0;
	border: 1px solid var(--domotex-color-transparent-border);
	border-radius: 50%;
	background: var(--domotex-color-transparent-white);
	color: var(--domotex-color-charcoal);
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.domotex-product-card__wishlist[hidden] {
	display: none;
}

.domotex-product-card__wishlist svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.domotex-product-card__wishlist:hover {
	background: var(--domotex-color-charcoal);
	color: var(--domotex-color-white);
}

.domotex-product-card__wishlist[aria-pressed="true"] {
	color: var(--domotex-color-discount);
}

.domotex-product-card__wishlist[aria-pressed="true"] svg {
	fill: currentColor;
}

.domotex-product-card__wishlist:disabled {
	cursor: progress;
	opacity: 0.68;
}

.domotex-product-card__body {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	padding-block: 0.75rem 0.125rem;
}

.domotex-product-card__details {
	display: flex;
	flex-direction: column;
	gap: var(--domotex-product-card-title-price-gap);
}

.domotex-product-card__title {
	display: -webkit-box;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	font-size: clamp(0.875rem, 1vw, 1rem);
	font-weight: 500;
	letter-spacing: -0.012em;
	line-height: 1.32;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.domotex-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.domotex-product-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.domotex-product-card__price {
	display: flex;
	min-height: 1.6rem;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin-top: 0;
	padding-top: 0;
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.25;
}

.domotex-product-card__price .price {
	display: inline-flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
}

.domotex-product-card__price :where(del, ins) {
	align-self: flex-end;
	line-height: 1.2;
}

.domotex-product-card__price del {
	color: var(--domotex-color-muted);
	font-size: 0.8125rem;
	font-weight: 450;
	opacity: 0.88;
}

.domotex-product-card__price ins {
	color: var(--domotex-color-discount);
	font-weight: 700;
	text-decoration: none;
}

.domotex-price-unit {
	color: var(--domotex-color-muted);
	font-size: 0.75em;
	font-weight: 400;
	white-space: nowrap;
}

.domotex-product-card__price .domotex-price-unit {
	align-self: flex-end;
	margin-left: -0.25rem;
}

.domotex-product-card__specs {
	margin: 0.3rem 0 0;
	color: var(--domotex-color-muted);
	font-size: 0.75rem;
	line-height: 1.35;
}

.domotex-product-card__colours {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
}

.domotex-product-card__colours li {
	width: 0.55rem;
	height: 0.55rem;
	border: 1px solid var(--domotex-color-transparent-border-strong);
	border-radius: 50%;
	background: var(--domotex-color-swatch-jute);
}

.domotex-product-card__colours [data-colour="bijela"] {
	background: var(--domotex-color-swatch-white);
}

.domotex-product-card__colours [data-colour="bez"],
.domotex-product-card__colours [data-colour="bež"] {
	background: var(--domotex-color-swatch-beige);
}

.domotex-product-card__colours [data-colour="siva"] {
	background: var(--domotex-color-swatch-grey);
}

.domotex-product-card__colours [data-colour="plava"] {
	background: var(--domotex-color-swatch-blue);
}

.domotex-product-card__colours [data-colour="zelena"] {
	background: var(--domotex-color-swatch-green);
}

.domotex-product-card__colours [data-colour="terakota"] {
	background: var(--domotex-color-swatch-terracotta);
}

.domotex-product-card__availability {
	margin: 0.45rem 0 0;
	color: var(--domotex-color-muted);
	font-size: 0.75rem;
	line-height: 1.35;
}

.domotex-product-card :where(.screen-reader-text) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.domotex-product-card__media {
		border-radius: var(--domotex-radius-micro, 1.5px);
	}

	.domotex-product-card__badges {
		top: 0.5rem;
		left: 0.5rem;
		gap: 0.25rem;
	}

	.domotex-product-card__badge {
		min-height: 1.45rem;
		padding-inline: 0.4rem;
		font-size: 0.625rem;
	}

	.domotex-product-card__wishlist {
		top: 0.375rem;
		right: 0.375rem;
		width: 2.375rem;
		height: 2.375rem;
	}

	.domotex-product-card__body {
		padding-top: 0.625rem;
	}

	.domotex-product-card__title {
		font-size: 0.875rem;
	}

	.domotex-product-card__price {
		font-size: 0.875rem;
	}
}
