.fm-tekstibanner {
    background: var(--theme-palette-color-1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}


/* Yksittäinen — keskitetty staattinen */
.fm-tekstibanner-single {
    text-align: center;
    padding: 8px 16px;
}

/* Monta — liukuva */
.fm-tekstibanner.is-scrolling {
    position: relative;
}

.fm-tekstibanner-track {
    display: inline-block;
    padding: 8px 0;
    animation: fm-tekstibanner-scroll 30s linear infinite;
    will-change: transform;
}

@keyframes fm-tekstibanner-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Pysäytä hoverilla */
.fm-tekstibanner.is-scrolling:hover .fm-tekstibanner-track {
    animation-play-state: paused;
}

.fm-tekstibanner-item {
    color: #fff;
    text-decoration: none;
    padding: 0 4px;
}

.fm-tekstibanner-item:hover {
    text-decoration: underline;
	color: #fff;
}

.fm-tekstibanner-sep {
    display: inline-block;
    padding: 0 40px;
    opacity: 0.5;
}

/* Kunnioita vähennetyn liikkeen asetusta */
@media (prefers-reduced-motion: reduce) {
    .fm-tekstibanner-track {
        animation: none;
        /* Näytä staattisena, vain ensimmäiset mahtuvat näkyviin */
    }
}

.fm-tekstibanner-track {
    display: flex;
    width: max-content;
    animation: fm-tekstibanner-scroll 80s linear infinite;
    will-change: transform;
}

.fm-tekstibanner-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@keyframes fm-tekstibanner-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Hero-banneri ─────────────────────────────── */
.fm-hero {
    position: relative;
    width: 100%;
    background: var(--theme-palette-color-5);
    overflow: hidden;
	border-radius: 15px;
}

.fm-hero-track {
    position: relative;
    transition: height 0.4s ease;
}

/* Oletus (yksi slide, ei slider): luonnollinen virtaus, näkyvä */
.fm-hero-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Slider-tila: ei-aktiiviset päällekkäin absoluuttisesti */
.fm-hero.is-slider .fm-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

/* Aktiivinen slide on relative → antaa trackille korkeuden ENNEN JS:ää */
.fm-hero.is-slider .fm-hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Slider-tila: slidet päällekkäin, JS hoitaa korkeuden */
.fm-hero.is-slider .fm-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.fm-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.fm-hero-content {
    flex: 1;
    min-width: 0;
}

.fm-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
}

.fm-hero-text {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 24px;
    color: #444;
}

.fm-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--theme-palette-color-2);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: opacity 0.2s ease;
	border: 1px solid #fb7185;
}

.fm-hero-cta:hover {
    opacity: 0.9;
    color: #fff;
}

.fm-hero-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.fm-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

/* Dots */
.fm-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.fm-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.fm-hero-dot.is-active {
    background: var(--theme-palette-color-2);
}

/* Mobiili: pinotaan teksti + kuva */
@media (max-width: 768px) {
    .fm-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
    .fm-hero-image {
        flex: 0 0 100%;
        max-width: 100%;
        order: -1; /* kuva ylös mobiilissa */
    }
}

.fm-hero-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
}

.fm-hero:hover .fm-hero-arrow {
    opacity: 1;
}

.fm-hero-arrow:hover {
    background: rgba(0, 0, 0, 0.1);
}

.fm-hero-arrow--prev {
    left: 0;
}

.fm-hero-arrow--next {
    right: 0;
}

/* Nuoli-ikoni raidan sisällä */
.fm-hero-arrow svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Mobiilissa piiloon (ei hoveria) */
@media (max-width: 768px) {
    .fm-hero-arrow {
        display: none;
    }
}

.fm-hero-arrow--prev {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0));
}

.fm-hero-arrow--next {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.05), rgba(0,0,0,0));
}

.fm-hero-arrow--prev:hover {
    background: linear-gradient(to right, rgba(0,0,0,0.15), rgba(0,0,0,0));
}

.fm-hero-arrow--next:hover {
    background: linear-gradient(to left, rgba(0,0,0,0.15), rgba(0,0,0,0));
}

/* ── Kamppis-grid ─────────────────────────────────── */
.fm-kamppis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 3em!important;
	margin-bottom: 3em !important;
}

.fm-kamppis-card {
    display: flex;
    align-items: stretch;
    background: var(--theme-palette-color-5);
    border-radius: 15px;
    overflow: hidden;
    min-height: 240px;
}

.fm-kamppis-card__image {
    flex: 0 0 45%;
    max-width: 45%;
}

.fm-kamppis-card__image a,
.fm-kamppis-card__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.fm-kamppis-card__image img {
    object-fit: cover;
}

.fm-kamppis-card__content {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.fm-kamppis-card__title {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.fm-kamppis-card__text {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px;
    color: #444;
}

.fm-kamppis-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--theme-palette-color-2);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    align-self: flex-start;
    transition: opacity 0.2s ease;
	border: 1px solid #fb7185;
}

.fm-kamppis-card__cta:hover {
    opacity: 0.9;
    color: #fff;
}

/* Mobiili: kortit pinotaan ja sisällä kuva+teksti allekkain */
@media (max-width: 768px) {
    .fm-kamppis-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fm-kamppis-card {
        flex-direction: column;
        min-height: auto;
    }

    .fm-kamppis-card__image {
        flex: 0 0 auto;
        max-width: 100%;
        aspect-ratio: 16 / 10;  /* säädä makusi mukaan */
    }

    .fm-kamppis-card__content {
        padding: 20px 24px;
    }
}

/* ── Kamppis-showcase ─────────────────────────────── */
.fm-kamppis-showcases {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin: 32px 0;
}

.fm-kamppis-showcase {
    width: 100%;
	margin: 1em 0;
}

/* Otsikko-rivi */
.fm-kamppis-showcase__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.fm-kamppis-showcase__title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
}

.fm-kamppis-showcase__title {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.fm-kamppis-showcase__validity {
    font-size: 14px;
    color: #6b7280;
}

.fm-kamppis-showcase__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fm-kamppis-showcase__all:hover {
    background: #f5f5f5;
    border-color: #9ca3af;
    color: #222;
}

/* Body: kuva | tuoteslideri */
.fm-kamppis-showcase__body {
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 40px;
}

.fm-kamppis-showcase__image {
    border-radius: 15px;
    overflow: hidden;
    background: var(--theme-palette-color-5);
	border: 1px solid #fb7185;
	aspect-ratio: 1;
}

.fm-kamppis-showcase__image a,
.fm-kamppis-showcase__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.fm-kamppis-showcase__image img {
    object-fit: cover;
}

.fm-kamppis-showcase__products {
    min-width: 0;  /* tärkeä: estää grid-itemiä venymästä yli */
    overflow: hidden;  /* tuoteslideri saa scrollata sisällään */
}

/* Mobiili: kuva ylös, tuotteet alle */
@media (max-width: 768px) {
    .fm-kamppis-showcase__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fm-kamppis-showcase__body {
        grid-template-columns: 1fr;
    }

    .fm-kamppis-showcase__image {
        max-width: 100%;
        aspect-ratio: 16 / 9;  /* mobiilissa leveämpi, säädä makusi mukaan */
    }
}

.fm-kamppis-sivu {
    margin: 32px 0;
}

.fm-kamppis-suodattimet {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--theme-palette-color-5);
    border-radius: 15px;
}

.fm-kamppis-suodatin {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
	margin: 0px;
}

.fm-kamppis-suodatin__label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.fm-kamppis-suodatin select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

.fm-kamppis-suodatin__reset {
    padding: 10px 16px;
    color: #6b7280;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}

.fm-kamppis-suodatin__reset:hover {
    color: #222;
}

.fm-kamppis-sivu__empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}