
/* =========================================================
   SIDANS CSS
   Kundspecifik styling för den här CMS-sidan.
   ========================================================= */

/* Sidans skal
   --------------------------------------------------------- */
.main {
}

/* Bildslider
   --------------------------------------------------------- */
.top-background-img {
    background-repeat: no-repeat;
    background-size: cover;
}

.top-background-boxed {
    display: table;
}

/* HTML-sektioner
   --------------------------------------------------------- */
.main-container1 {
}

.main-container2 {
}

.main-container3 {
}

.main-container4 {
}

.main-container5 {
}

.main-container6 {
}

/* Bilonline-sektioner
   --------------------------------------------------------- */
/* Senast inkomna */

/* =========================================================
   EXPERIMENT: KUNDANPASSAD LAGERKOMPONENT
   Endast Startsida, HTML Sektion 5; data fran /bilar-i-lager.
   Ta bort hela blocket for att aterstalla presentationen.
   ========================================================= */
.tb-stock-showcase {
    --tb-stock-width: 1320px;
    --tb-stock-gap: 10px;
    box-sizing: border-box;
    width: 100%;
    padding: 6.25rem 0;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.tb-stock-showcase *,
.tb-stock-showcase *::before,
.tb-stock-showcase *::after {
    box-sizing: border-box;
}

.tb-stock-showcase__inner {
    width: min(calc(100% - 2rem), var(--tb-stock-width));
    margin-inline: auto;
}

.tb-stock-showcase__heading {
    display: flex;
    justify-content: center;
    margin-bottom: 3.75rem;
}

.tb-stock-showcase__heading h2 {
    margin: 0;
    padding: 1.125rem 1.25rem;
    border: 2px solid #fff;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.5rem, 1.34rem + .4vw, 1.768rem);
    font-weight: 900;
    line-height: .948;
    letter-spacing: -.034em;
    text-align: center;
}

.tb-stock-showcase__slider {
    padding: .625rem;
}

.tb-stock-showcase__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
}

.tb-stock-showcase__viewport::-webkit-scrollbar {
    display: none;
}

.tb-stock-showcase__viewport:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.tb-stock-showcase__track {
    display: flex;
    width: max-content;
    gap: var(--tb-stock-gap);
}

.tb-stock-showcase__card {
    flex: 0 0 420px;
    width: 420px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #000;
}

.tb-stock-showcase__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.tb-stock-showcase__media {
    position: relative;
    width: 100%;
    height: 352px;
    overflow: hidden;
    background: #151515;
}

.tb-stock-showcase__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.tb-stock-showcase__link:hover .tb-stock-showcase__media img {
    transform: scale(1.025);
}

.tb-stock-showcase__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3125rem;
    min-width: 0;
    padding: .3125rem .4375rem;
    overflow: hidden;
}

.tb-stock-showcase__brand,
.tb-stock-showcase__price-row {
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.tb-stock-showcase__model {
    max-width: 100%;
    overflow: hidden;
    color: #eaeaea;
    font-family: Outfit, sans-serif;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-stock-showcase__price-row {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .625rem;
}

.tb-stock-showcase__controls {
    display: flex;
    align-items: center;
    gap: .625rem;
    width: 100%;
    padding: .625rem;
}

.tb-stock-showcase__control {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tb-stock-showcase__control svg {
    display: block;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.tb-stock-showcase__control:disabled {
    cursor: default;
    opacity: .315;
}

.tb-stock-showcase__control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.tb-stock-showcase__progress {
    position: relative;
    flex: 0 0 105px;
    width: 105px;
    height: 2px;
    overflow: hidden;
    background: #fff;
}

.tb-stock-showcase__progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 19%;
    min-width: 20px;
    background: #505050;
    transition: width .18s linear;
}

.tb-stock-showcase__status {
    margin: .75rem .625rem 0;
    color: #eaeaea;
    font-size: .875rem;
}

.tb-stock-showcase__status[hidden] {
    display: none;
}

@media (max-width: 767.98px) {
    .tb-stock-showcase {
        padding: 4.5rem 0;
    }

    .tb-stock-showcase__inner {
        width: calc(100% - 2rem);
    }

    .tb-stock-showcase__heading {
        margin-bottom: 2rem;
    }

    .tb-stock-showcase__heading h2 {
        padding: .875rem 1rem;
        font-size: 1.5rem;
        line-height: 1;
    }

    .tb-stock-showcase__slider {
        padding-inline: 0;
    }

    .tb-stock-showcase__card {
        flex-basis: min(84vw, 360px);
        width: min(84vw, 360px);
    }

    .tb-stock-showcase__media {
        height: auto;
        aspect-ratio: 420 / 352;
    }

    .tb-stock-showcase__model {
        white-space: normal;
    }

    .tb-stock-showcase__controls {
        padding-inline: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tb-stock-showcase__viewport {
        scroll-behavior: auto;
    }

    .tb-stock-showcase__media img,
    .tb-stock-showcase__progress span {
        transition: none;
    }
}

.tb-stock-showcase__cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.tb-stock-showcase__cta .bo-btn--outline {
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
}

.tb-stock-showcase__cta .bo-btn--outline:hover,
.tb-stock-showcase__cta .bo-btn--outline:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #080808;
}
/* === SLUT: KUNDANPASSAD LAGERKOMPONENT === */


