.fm-product-sections {
    --fm-accent: var(--theme-palette-color-1);
    --fm-border: var(--theme-palette-color-4);
    --fm-text-muted: #6b7280;
    margin-top: 5rem;
}

#fm-section-kampanjat {
    background: var(--theme-palette-color-6);
    box-shadow: 0 0 0 100vmax var(--theme-palette-color-6);
    clip-path: inset(0 -100vmax);
}

.fm-product-sections__nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--theme-palette-color-4);
}

.admin-bar .fm-product-sections__nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fm-product-sections__nav {
        top: 46px;
    }
}

.fm-product-sections__nav-list {
    width: var(--theme-block-width);
    max-width: var(--theme-block-max-width);
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    overflow-x: auto;
}

.fm-product-sections__nav-link {
    display: inline-block;
    padding: 1rem 1.25rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.fm-product-sections__nav-link:hover,
.fm-product-sections__nav-link.is-active {
    color: var(--fm-accent);
    border-bottom-color: var(--theme-palette-color-4);
}

.fm-product-section {
    width: var(--theme-block-width);
    max-width: var(--theme-block-max-width);
    margin-left: auto;
    margin-right: auto;
    scroll-margin-top: 5rem;
    padding: 2.5rem 0;
}

.admin-bar .fm-product-section {
    scroll-margin-top: calc(5rem + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .fm-product-section {
        scroll-margin-top: calc(5rem + 46px);
    }
}

.fm-product-section:last-child {
    border-bottom: none;
}

.fm-product-section__title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.fm-product-section__empty,
.fm-accessories__empty {
    color: var(--fm-text-muted);
    font-style: italic;
}

.fm-accessories__loading {
    padding: 1rem 0;
    color: var(--fm-text-muted);
}

.fm-description {
    display: block;
}

.fm-description--split {
    display: grid;
    grid-template-columns: 70fr 30fr;
    gap: 3rem;
    align-items: start;
}

.fm-description__main {
    min-width: 0;
}

.fm-description__aside {
    min-width: 0;
}

@media (max-width: 768px) {
    .fm-description--split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.linkit {
    border: 1px solid #ddd;
    padding: 5px;
    padding-left: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: block;
}

.fm-description__aside {
        border-left: 1px solid #ececec;
        padding-left: 2rem;
    }

.inthebox2 {margin-bottom: 2em;}

/* Lisävarusteiden pilleritabit */
.fm-accessories__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.fm-accessories__tab {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--theme-palette-color-4);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.fm-product-sections__nav-link--first {margin-left: -1.25rem;}

.fm-accessories__tab:hover {
    border-color: var(--fm-accent);
    color: var(--fm-accent);
}

.fm-accessories__tab.is-active {
    background: var(--fm-accent);
    border-color: var(--fm-accent);
    color: #fff;
}

.fm-accessories__loading {
    padding: 2rem 0;
    color: var(--fm-text-muted);
    text-align: center;
}

.fm-accessories .fm-bullet-points {display: none;}
.fm-accessories .products .product {min-width: 200px; max-width: 200px;}
.fm-accessories .ct-media-container {background-color: var(--theme-palette-color-6);}
.fm-accessories .woo-custom-stock-status .estimate, .fm-accessories .woo-custom-stock-status .delivery-info {display:none;}
.fm-accessories .products .product .woo-custom-stock-status {
    font-size: 14px;
    font-weight: initial;
    margin-bottom: initial;
    border-top: initial;
    padding-top: initial;
}

.fm-accessories .woocommerce-loop-product__title {font-size: 14px;}
.fm-accessories .product .price {font-size: 20px;}

.fm-reviews__summary, #fm-section-description #fm-section-description-title {display: none;}

.fm-kampanjat-grid {
    display: flex;
    gap: 1em;
    -webkit-overflow-scrolling: touch;
}

.fm-kampanja-card {
    flex-shrink: 0;
    max-width: 300px;
    width: 300px;
    border: 1px solid var(--theme-palette-color-4);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fm-kampanja-card__image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
	transition: opacity 0.2s ease;
}

@media (min-width: 1000px) {.fm-kampanja-card__image img {
	opacity: 0.8;
	}}

.fm-kampanja-card:hover .fm-kampanja-card__image img {
	opacity: 1;
}

.fm-kampanja-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.fm-kampanja-card__title {
    font-size: 1.1rem;
    margin: 0;
}

.fm-kampanja-card__desc {
    font-size: 0.9rem;
    color: var(--fm-text-muted);
}

.fm-kampanja-card__dates {
    font-size: 0.85rem;
    color: var(--fm-text-muted);
    margin: 0;
}

.fm-kampanja-card__link {
    margin-top: auto;
    align-self: flex-start;
}

.fm-kampanja-card__dates-value {
    font-weight: 600;
}

#fm-section-kampanjat .fm-combo-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#fm-section-kampanjat .fm-combo-card {
    flex-shrink: 0;
    width: 280px;
}

.fm-combo-card-titles {display: -webkit-box;
  display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
    margin-bottom: 1em;}

.fm-kampanja-combos__title {padding-top: 1.25em;}

.fm-combo-card-header .amount {color: #e10a1e;}

.fm-combo-card .added_to_cart {display:none;}

.fm-combo-card-image:hover {opacity: 0.6; transition: opacity 0.2s ease; }

.fm-brand-campaigns {margin-top:3em; margin-bottom: 3em;}

@media (max-width:767px) {#main .ct-container.fm-brand-campaigns {background-color: initial; padding: 0 1em; margin: 1em 0;} }

@media (min-width:768px) { .tax-pwb-brand .etusivufeat {max-width: var(--theme-normal-container-max-width);width: var(--theme-container-width); margin-inline: auto;} }

.fm-kampanja-card__image {
    position: relative; /* badge-ankkuri */
}

.fm-kampanja-card__badge {
position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 6px 12px;
    background: #fb7185;
    opacity: 0.9;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.fm-kampanja-card__image--has-badge {background-color:#f2f2f2;}
.fm-kampanja-card__image--has-badge img {padding: 1em; mix-blend-mode: multiply;}