/* Spletnovesolje Elementor Addons – skupni slogi (karusel, kartice, zvezdice, gumbi) */

.svea-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.svea-ico {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

/* --- Gumb --- */
.svea-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.6em;
	border: 0;
	border-radius: var(--svea-radius-btn, 8px);
	background-color: var(--svea-accent, #2dbe73);
	color: var(--svea-accent-text, #fff);
	font-weight: var(--svea-btn-weight, 700);
	letter-spacing: var(--svea-btn-letter, 0);
	text-transform: var(--svea-btn-transform, none);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s ease, background-color .2s ease, color .2s ease, opacity .2s ease;
}
.svea-btn:hover,
.svea-btn:focus-visible {
	filter: brightness(.92);
	color: var(--svea-accent-text, #fff);
	text-decoration: none;
}
.svea-btn:focus-visible {
	outline: 2px solid var(--svea-accent, #2dbe73);
	outline-offset: 3px;
}
.svea-btn[disabled],
.svea-btn.is-loading {
	opacity: .6;
	cursor: wait;
}
.svea-btn--ghost {
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 1.5px currentColor;
}

/* --- Zvezdice --- */
.svea-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	color: var(--svea-star, #f5b301);
	--svea-star-size: 16px;
}
.svea-stars svg {
	flex-shrink: 0;
	width: var(--svea-star-size);
	height: var(--svea-star-size);
	fill: currentColor;
}
.svea-stars__base {
	display: inline-flex;
	color: color-mix(in srgb, var(--svea-muted, #5b6b66) 28%, transparent);
}
.svea-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	display: inline-flex;
	overflow: hidden;
	white-space: nowrap;
}

/* --- Kartica + hover efekti (razred svea-hover--{x} na ovoju widgeta) --- */
.svea-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	transition: translate .35s ease, box-shadow .35s ease;
}
.svea-card__media {
	position: relative;
	display: block;
	overflow: hidden;
}
.svea-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale .6s cubic-bezier(.22, .61, .36, 1), filter .5s ease;
}
.svea-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .28);
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s ease;
}
.svea-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	border-radius: inherit;
	box-shadow: inset 0 0 0 0 transparent;
	pointer-events: none;
	transition: box-shadow .35s ease;
}
.svea-hover--grayscale .svea-card__media img {
	filter: grayscale(1);
}
@media (hover: hover) and (pointer: fine) {
	.svea-hover--zoom .svea-card:hover .svea-card__media img,
	.svea-hover--zoom-lift .svea-card:hover .svea-card__media img,
	.svea-hover--darken .svea-card:hover .svea-card__media img {
		scale: 1.07;
	}
	.svea-hover--lift .svea-card:hover,
	.svea-hover--zoom-lift .svea-card:hover {
		translate: 0 -6px;
		box-shadow: var(--svea-shadow-hover, 0 16px 34px rgba(15, 31, 26, .14));
	}
	.svea-hover--darken .svea-card:hover .svea-card__media::after {
		opacity: 1;
	}
	.svea-hover--glow .svea-card:hover::before {
		box-shadow: inset 0 0 0 2px var(--svea-accent, #2dbe73);
	}
	.svea-hover--grayscale .svea-card:hover .svea-card__media img {
		filter: grayscale(0);
	}
}

/* --- Karusel --- */
.svea-carousel {
	--svea-spv: 4;
	--svea-gap: 20px;
	--svea-dot: color-mix(in srgb, var(--svea-heading, #111) 22%, transparent);
	--svea-dot-active: var(--svea-accent, #2dbe73);
	position: relative;
}
.svea-carousel .svea-carousel__viewport {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 8px 0 30px; /* prostor za dvig in senco kartic */
	margin-bottom: -16px;
	overflow: hidden;
}
.svea-carousel .swiper-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	box-sizing: content-box;
	transition-property: transform;
}
.svea-carousel .swiper-slide {
	position: relative;
	flex-shrink: 0;
	height: auto;
	width: calc((100% - (var(--svea-spv) - 1) * var(--svea-gap)) / var(--svea-spv));
	margin-right: var(--svea-gap);
	box-sizing: border-box;
}
.svea-carousel__arrow {
	position: absolute;
	z-index: 5;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--svea-surface, #fff);
	color: var(--svea-heading, #111);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
	translate: 0 -50%;
	cursor: pointer;
	transition: opacity .2s ease, filter .2s ease;
}
.svea-carousel__arrow:hover {
	filter: brightness(.95);
}
.svea-carousel__arrow:focus-visible {
	outline: 2px solid var(--svea-dot-active);
	outline-offset: 2px;
}
.svea-carousel__arrow--prev {
	left: -10px;
}
.svea-carousel__arrow--next {
	right: -10px;
}
.svea-carousel__arrow.is-disabled {
	opacity: .35;
	cursor: default;
}
.svea-carousel__arrow.is-locked,
.svea-carousel__dots.is-locked {
	display: none;
}
.svea-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	line-height: 0;
}
.svea-carousel__dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--svea-dot);
	cursor: pointer;
	transition: width .25s ease, background-color .25s ease;
}
.svea-carousel__dot.is-active {
	width: 24px;
	background: var(--svea-dot-active);
}
@media (max-width: 767px) {
	.svea-carousel__arrow {
		display: none;
	}
}

/* --- Glava sekcije (nadnaslov, naslov) in gumb »Poglej vse« (trait Section_Head) --- */
.svea-shead {
	margin: 0 0 24px;
	text-align: var(--svea-shead-align, left);
}
.svea-shead .svea-shead__sub {
	margin: 0 0 6px;
	color: var(--svea-accent, #2dbe73);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.svea-shead .svea-shead__title {
	margin: 0;
	color: var(--svea-heading, #111);
	font-family: var(--svea-font-heading, inherit);
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: var(--svea-heading-weight, 700);
	line-height: 1.15;
	letter-spacing: -.01em;
}
.svea-sfoot {
	display: flex;
	justify-content: var(--svea-shead-justify, center);
	margin-top: 28px;
}
.svea-sfoot .svea-sfoot__btn {
	border: 1.5px solid currentColor;
	background-color: transparent;
	color: var(--svea-heading, #111);
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.svea-sfoot .svea-sfoot__btn:hover,
.svea-sfoot .svea-sfoot__btn:focus-visible {
	border-color: var(--svea-heading, #111);
	background-color: var(--svea-heading, #111);
	color: var(--svea-surface, #fff);
	filter: none;
}
.svea-sfoot__arrow {
	flex-shrink: 0;
	transition: translate .2s ease;
}
.svea-sfoot .svea-sfoot__btn:hover .svea-sfoot__arrow {
	translate: 3px 0;
}

/* --- Obvestilo v urejevalniku --- */
.svea-editor-notice {
	padding: 14px 16px;
	border: 1px dashed #b6c2be;
	border-radius: 8px;
	background: #f6f8f7;
	color: #5b6b66;
	font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
	.svea-card,
	.svea-card__media img,
	.svea-carousel .swiper-wrapper,
	.svea-sfoot__arrow {
		transition-duration: 0s !important;
	}
}
