.vasa-flyers {
    --vasa-gap: 24px;
    --vasa-border: #dedede;
    --vasa-surface: #ffffff;
    --vasa-navy: #11175f;
    --vasa-muted: #5e6068;
    --vasa-red: #d50000;
    --vasa-green: #48b62c;
    --vasa-club-sticker: #ffb99f;
    --vasa-radius: 36px;
    box-sizing: border-box;
    color: var(--vasa-navy);
    font-family: Montserrat;
}

.vasa-flyers *,
.vasa-flyers *::before,
.vasa-flyers *::after {
    box-sizing: inherit;
}

.vasa-flyers--grid {
    display: grid;
    grid-template-columns: repeat(var(--vasa-grid-columns, 4), minmax(0, 1fr));
    gap: var(--vasa-gap);
    align-items: stretch;
}

.vasa-flyers__grid-item {
    min-width: 0;
}

.vasa-flyers [hidden] {
    display: none !important;
}

.vasa-flyers .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vasa-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 510px;
    height: 100%;
    padding: 25px 24px 22px;
    overflow: hidden;
    background: var(--vasa-surface);
    border: 1px solid var(--vasa-border);
    border-radius: var(--vasa-radius);
    box-shadow: 0 1px 0 rgb(17 23 95 / 0.03);
    isolation: isolate;
}

.vasa-product-card__header {
    position: relative;
    z-index: 3;
    min-height: 70px;
}

.vasa-product-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--vasa-navy);
    font-size: clamp(1.04rem, 0.72vw + 0.72rem, 1.3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.vasa-product-card__package {
    margin-top: 8px;
    color: var(--vasa-navy);
    font-size: clamp(0.96rem, 0.4vw + 0.82rem, 1.08rem);
    font-weight: 400;
    line-height: 1.25;
}

.vasa-product-card__media {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 1 1 auto;
    min-height: 285px;
    margin: 4px -2px 0;
    place-items: center;
}

.vasa-product-card__image-frame {
    display: grid;
    width: 100%;
    height: 285px;
    place-items: center;
}

.vasa-product-card__image {
    display: block;
    width: auto;
    max-width: 82%;
    height: auto;
    max-height: 270px;
    object-fit: contain;
    transition: transform 180ms ease;
}

.vasa-product-card--club .vasa-product-card__image {
    max-width: 69%;
    max-height: 250px;
    transform: translateX(-10%);
}

.vasa-product-card__placeholder {
    display: grid;
    width: 132px;
    height: 132px;
    color: #b7bac5;
    background: #f5f5f7;
    border-radius: 28px;
    place-items: center;
}

.vasa-product-card__placeholder svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.vasa-product-card__badges {
    position: absolute;
    top: 5px;
    left: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    pointer-events: none;
}

.vasa-product-card__discount {
    display: inline-flex;
    align-items: center;
    min-height: 43px;
    padding: 8px 15px;
    color: #ffffff;
    background: var(--vasa-red);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.08);
}

.vasa-product-card__footer {
    position: relative;
    z-index: 6;
    display: flex;
    min-height: 76px;
    margin-top: 5px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.vasa-product-card__price-block {
    min-width: 0;
}

.vasa-product-card__unit-price,
.vasa-product-card__price-label {
    margin-bottom: 4px;
    color: var(--vasa-muted);
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.2;
}

.vasa-product-card__price {
    color: var(--vasa-navy);
    font-size: clamp(1.55rem, 1.3vw + 1rem, 1.9rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.vasa-product-card__saving {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    max-width: 108px;
    padding-bottom: 1px;
    color: var(--vasa-green);
    font-size: 0.92rem;
    line-height: 1.16;
    text-align: right;
}

.vasa-product-card__saving strong {
    font-size: 1.03rem;
    font-weight: 750;
}

/* Jednoduchý klubový sticker – zobrazí sa výhradne pri vyplnenom usetrite_vk. */
.vasa-club-sticker {
    position: absolute;
    right: 0;
    bottom: 14px;
    z-index: 8;
    display: flex;
    width: 124px;
    min-height: 124px;
    padding: 18px 12px 16px;
    color: var(--vasa-navy);
    background: var(--vasa-club-sticker);
    border-radius: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.vasa-club-sticker__saving {
    font-size: 0.83rem;
    font-weight: 750;
    line-height: 1.12;
    white-space: nowrap;
}

.vasa-club-sticker__price {
    margin-top: 8px;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0em;
    line-height: 0.92;
    white-space: nowrap;
}

.vasa-club-sticker__price--label {
    max-width: 118px;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
    white-space: normal;
}

.vasa-club-sticker__unit {
    max-width: 126px;
    margin-top: 13px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.12;
}

/* Kompaktný carousel – samostatný vizuál, grid zostáva nezmenený. */
.vasa-flyers--carousel {
    --vasa-carousel-gap: 14px;
    --vasa-carousel-card-width: 180px;
    position: relative;
    width: 100%;
    min-width: 0;
}

.vasa-flyers__track {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: var(--vasa-carousel-gap);
    padding: 2px 2px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
}

.vasa-flyers__track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.vasa-flyers__slide {
    flex: 0 0 var(--vasa-carousel-card-width);
    width: var(--vasa-carousel-card-width);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.vasa-flyers__controls {
    display: flex;
    min-height: 48px;
    margin-top: 10px;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.vasa-flyers__button {
    display: inline-grid;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #ffffff;
    background: var(--vasa-navy);
    border: 1px solid var(--vasa-navy);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    place-items: center;
    transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.vasa-flyers__button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.vasa-flyers__button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.vasa-flyers__button:focus-visible,
.vasa-flyers__track:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.vasa-flyers__button:disabled {
    color: #c9cbd4;
    background: #ffffff;
    border-color: #ececf0;
    cursor: default;
    opacity: 1;
}

.vasa-flyers--static .vasa-flyers__controls {
    display: none;
}

/* Menšia karta iba v carouseli. */
.vasa-flyers--carousel .vasa-product-card {
    min-height: 360px;
    padding: 17px 15px 15px;
    border-radius: 27px;
}

.vasa-flyers--carousel .vasa-product-card__header {
    min-height: 59px;
}

.vasa-flyers--carousel .vasa-product-card__title {
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.018em;
    -webkit-line-clamp: 3;
}

.vasa-flyers--carousel .vasa-product-card__package {
    margin-top: 5px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.vasa-flyers--carousel .vasa-product-card__media {
    min-height: 190px;
    margin: 0;
}

.vasa-flyers--carousel .vasa-product-card__image-frame {
    height: 190px;
}

.vasa-flyers--carousel .vasa-product-card__image {
    max-width: 88%;
    max-height: 174px;
}

.vasa-flyers--carousel .vasa-product-card--club .vasa-product-card__image {
    max-width: 72%;
    max-height: 160px;
    transform: translate(-10%, -4%);
}

.vasa-flyers--carousel .vasa-product-card__placeholder {
    width: 92px;
    height: 92px;
    border-radius: 22px;
}

.vasa-flyers--carousel .vasa-product-card__placeholder svg {
    width: 44px;
    height: 44px;
}

.vasa-flyers--carousel .vasa-product-card__badges {
    top: 1px;
}

.vasa-flyers--carousel .vasa-product-card__discount {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 0.78rem;
}

.vasa-flyers--carousel .vasa-product-card__footer {
    min-height: 56px;
    margin-top: 2px;
    gap: 7px;
}

.vasa-flyers--carousel .vasa-product-card__unit-price,
.vasa-flyers--carousel .vasa-product-card__price-label {
    margin-bottom: 3px;
    font-size: 0.72rem;
    line-height: 1.15;
}

.vasa-flyers--carousel .vasa-product-card__price {
    font-size: 1.42rem;
}

.vasa-flyers--carousel .vasa-product-card__saving {
    max-width: 66px;
    font-size: 0.69rem;
    line-height: 1.12;
}

.vasa-flyers--carousel .vasa-product-card__saving strong {
    font-size: 0.79rem;
}

.vasa-flyers--carousel .vasa-club-sticker {
    right: -3px;
    bottom: 4px;
    width: 92px;
    min-height: 92px;
    padding: 11px 8px 10px;
    border-radius: 24px;
}

.vasa-flyers--carousel .vasa-club-sticker__saving {
    font-size: 0.59rem;
}

.vasa-flyers--carousel .vasa-club-sticker__price {
    margin-top: 5px;
    font-size: 2rem;
}

.vasa-flyers--carousel .vasa-club-sticker__price--label {
    max-width: 82px;
    font-size: 0.82rem;
}

.vasa-flyers--carousel .vasa-club-sticker__unit {
    max-width: 88px;
    margin-top: 7px;
    font-size: 0.51rem;
}

.vasa-flyers__load-more-row {
    display: flex;
    margin-top: 24px;
    justify-content: center;
}

.vasa-flyers__load-more {
    min-width: 190px;
    min-height: 48px;
    padding: 11px 24px;
    color: var(--vasa-red);
    background: var(--vasa-surface);
    border: 1.5px solid var(--vasa-red);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.2;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.vasa-flyers__load-more:hover {
    color: #ffffff;
    background: var(--vasa-red);
}

.vasa-flyers__load-more:active {
    transform: translateY(1px);
}

.vasa-flyers__load-more:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.vasa-flyers-message {
    padding: 16px;
    color: var(--vasa-navy);
    border: 1px solid #d0d5dd;
    border-radius: 12px;
}

.vasa-flyers-message--error {
    border-color: #fda29b;
}

@media (hover: hover) {
    .vasa-product-card:hover .vasa-product-card__image {
        transform: scale(1.025);
    }

    .vasa-product-card--club:hover .vasa-product-card__image {
        transform: translateX(-10%) scale(1.025);
    }

    .vasa-flyers--carousel .vasa-product-card--club:hover .vasa-product-card__image {
        transform: translate(-10%, -4%) scale(1.025);
    }
}

@media (max-width: 1180px) {
    .vasa-product-card {
        min-height: 490px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .vasa-club-sticker {
        right: -3px;
        transform: scale(0.92);
        transform-origin: right bottom;
    }
}

@media (max-width: 1024px) {
    .vasa-flyers--grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    }

    .vasa-flyers--carousel {
        --vasa-carousel-card-width: 176px;
        --vasa-carousel-gap: 13px;
    }
}

@media (max-width: 640px) {
    .vasa-flyers {
        --vasa-gap: 10px;
    }

    /* GRID – dva stĺpce na mobile */
    .vasa-flyers--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vasa-flyers--grid .vasa-product-card {
        width: 100%;
        min-height: 390px;
        padding: 14px 11px 12px;
        border-radius: 22px;
    }

	.vasa-flyers--grid .vasa-product-card__header {
		height: 96px;
		min-height: 96px;
	}

	.vasa-flyers--grid .vasa-product-card__title {
		display: -webkit-box;
		max-height: 4em;
		margin: 0;
		overflow: hidden;

		font-size: 0.9rem;
		font-weight: 750;
		line-height: 1.12;

		overflow-wrap: break-word;
		word-break: normal;
		hyphens: none;
		text-overflow: ellipsis;

		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

    .vasa-flyers--grid .vasa-product-card__package {
        margin-top: 5px;
        font-size: 0.72rem;
    }

    .vasa-flyers--grid .vasa-product-card__media,
    .vasa-flyers--grid .vasa-product-card__image-frame {
        min-height: 180px;
        height: 180px;
    }

    .vasa-flyers--grid .vasa-product-card__image {
        max-width: 90%;
        max-height: 165px;
    }

    .vasa-flyers--grid
    .vasa-product-card--club
    .vasa-product-card__image {
        max-width: 72%;
        max-height: 155px;
        transform: translateX(-8%);
    }

    .vasa-flyers--grid .vasa-product-card__footer {
        min-height: 58px;
        gap: 5px;
    }

    .vasa-flyers--grid .vasa-product-card__unit-price,
    .vasa-flyers--grid .vasa-product-card__price-label {
        font-size: 0.67rem;
    }

    .vasa-flyers--grid .vasa-product-card__price {
        font-size: 1.3rem;
    }

    .vasa-flyers--grid .vasa-product-card__saving {
        max-width: 58px;
        font-size: 0.63rem;
    }

    .vasa-flyers--grid .vasa-product-card__saving strong {
        font-size: 0.72rem;
    }

    .vasa-flyers--grid .vasa-product-card__discount {
        min-height: 29px;
        padding: 5px 9px;
        font-size: 0.7rem;
    }

    .vasa-flyers--grid .vasa-club-sticker {
        right: -3px;
        bottom: 4px;
        width: 82px;
        min-height: 82px;
        padding: 9px 6px;
        border-radius: 21px;
        transform: none;
    }

    .vasa-flyers--grid .vasa-club-sticker__saving {
        font-size: 0.54rem;
    }

    .vasa-flyers--grid .vasa-club-sticker__price {
        margin-top: 4px;
        font-size: 1.7rem;
    }

    .vasa-flyers--grid .vasa-club-sticker__unit {
        margin-top: 6px;
        font-size: 0.46rem;
    }

    .vasa-flyers__load-more {
        width: 100%;
    }

    /* CAROUSEL – mobilné nastavenia */
    .vasa-flyers--carousel {
        --vasa-carousel-card-width: min(78vw, 270px);
        --vasa-carousel-gap: 12px;
    }

    .vasa-flyers__slide {
        min-width: min(78vw, 270px);
        flex-basis: min(78vw, 270px);
    }

    .vasa-flyers--carousel .vasa-product-card {
        min-height: 390px;
        padding: 20px 18px 17px;
    }

    .vasa-flyers--carousel .vasa-product-card__title {
        font-size: 1.06rem;
    }

    .vasa-flyers--carousel .vasa-product-card__media,
    .vasa-flyers--carousel .vasa-product-card__image-frame {
        min-height: 215px;
        height: 215px;
    }

    .vasa-flyers--carousel .vasa-product-card__image {
        max-height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vasa-flyers__track {
        scroll-behavior: auto;
    }

    .vasa-product-card__image {
        transition: none;
    }
}