/* Kartica proizvoda – mjere iz Elementor loop šablona 4819. */

.sw-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0 10px;
	border: 1px solid #f3f3f3;
	border-radius: 20px;
	background: #fff;
}

.sw-card__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	padding: 10px 0;
}

.sw-card__top {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px;
}

.sw-card__image {
	position: relative;
}

.sw-card__image a {
	display: block;
	width: 100%;
	line-height: 0;
}

.sw-card__image img {
	position: relative;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 62 / 75;
	object-fit: contain;
	object-position: center center;
}

.sw-card__title-wrap {
	line-height: 19.2px;
}

/* inline kao na starom sajtu: visinu reda određuje i roditelj */
.sw-card__title {
	display: inline;
	margin: 0;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3em;
	text-transform: none;
}

.sw-card__title a {
	color: inherit;
	text-decoration: none;
}

.sw-card__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 10px;
}

.woocommerce .sw-card__price,
.sw-card__price {
	margin: 0 0 14.4px;
	color: var(--e-global-color-primary) !important;
	font-family: var(--e-global-typography-4aceb21-font-family), sans-serif;
	font-size: var(--e-global-typography-4aceb21-font-size);
	font-weight: 600;
	line-height: var(--e-global-typography-4aceb21-line-height);
	text-transform: uppercase;
}

.sw-card__price del {
	opacity: 0.7;
}

.sw-card__price ins {
	color: var(--e-global-color-text);
	font-weight: 600;
}

/* Bedž popusta: krug u gornjem lijevom uglu slike (custom CSS iz šablona 4819). */
.woocommerce .sw-card span.onsale {
	position: absolute;
	top: calc(10px - 0.5em);
	left: calc(10px - 0.5em);
	z-index: 9;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	min-width: 3.236em;
	min-height: 3.236em;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background-color: red;
	color: #fff;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

@media (max-width: 1024px) {
	.sw-card__title {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.sw-card__title {
		font-size: 14px;
	}

	.woocommerce .sw-card span.onsale {
		width: 1.3em;
		font-size: 0.7em;
	}
}
