/* ==========================================================================
   PROIZVODI - TABOVI NOVO / SNIZENO / LIMITIRANO (Figma, sekcija proizvoda 45:71)
   Markup: views/pages/home/productTabs.blade.php. Mjere su procijenjene sa screenshota
   okvira (1920 px) i preracunate u vw: lijevo tabovi + dugme (20vw), desno traka sa
   proizvodima do ivice ekrana (kartica 15.62vw), ispod tanak klizac (36.5vw).
   Traka je obican overflow-x scroller (bez Owl-a); klizac prati scrollLeft.
   Ispod 992 px: tabovi i dugme iznad, kartice 46vw.
   ========================================================================== */
.frutela-pt {
    padding: 48px 0 56px;
    background: #ffffff;
    font-family: var(--fr-font);
    color: var(--fr-dark);
}

.frutela-pt [hidden] {
    display: none !important;
}

.frutela-pt__side {
    padding: 0 16px;
}

.frutela-pt__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.frutela-pt__tab {
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--fr-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    color: #7f7d7b;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transition: color .3s ease-out, text-decoration-color .3s ease-out;
}

/* Hover (Figma, smart animate ease-out 300 ms): tekst postaje crven. Aktivni tab izgleda isto kao hover
   (crven tekst) plus underline od 1 px. */
.frutela-pt__tab:hover,
.frutela-pt__tab:focus-visible,
.frutela-pt__tab.is-active {
    color: var(--fr-hover-red);
}

.frutela-pt__tab.is-active {
    text-decoration-color: var(--fr-hover-red);
}

.frutela-pt a.frutela-pt__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 248px;
    max-width: 100%;
    height: 54px;
    margin-top: 24px;
    border: 2px solid var(--fr-dark);
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fr-dark);
    transition: background-color .3s ease-out, color .3s ease-out;
}

/* Hover (Figma): kontra, tamna podloga i svijetli tekst, animacija 300 ms ease-out. */
.frutela-pt a.frutela-pt__more:hover,
.frutela-pt a.frutela-pt__more:focus-visible {
    background: var(--fr-dark);
    color: var(--fr-cream);
}

.frutela-pt__main {
    margin-top: 32px;
    min-width: 0;
}

.frutela-pt__track {
    display: flex;
    margin: 0;
    padding: 0 0 0 16px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.frutela-pt__track::-webkit-scrollbar {
    display: none;
}

.frutela-pt__track.is-drag {
    cursor: grabbing;
    user-select: none;
}

.frutela-pt__item {
    flex: 0 0 46vw;
    box-sizing: border-box;
    padding: 0 12px;
    list-style: none;
    text-align: center;
}

.frutela-pt a.frutela-pt__img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48vw;
}

.frutela-pt__img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.frutela-pt a.frutela-pt__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    text-decoration: none;
    color: #6f6f6f;
    transition: color .2s ease;
}

.frutela-pt a.frutela-pt__name:hover {
    color: var(--fr-dark);
}

.frutela-pt__bar {
    position: relative;
    height: 2px;
    margin: 32px 16px 0;
    background: #d9d9d9;
}

.frutela-pt__bar.is-off {
    visibility: hidden;
}

.frutela-pt__thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: #4e4e4e;
    cursor: grab;
}

/* Veca povrsina za hvatanje tankog klizaca. */
.frutela-pt__thumb::after {
    content: "";
    position: absolute;
    inset: -10px 0;
}

@media (min-width: 992px) {
    .frutela-pt {
        display: flex;
        align-items: flex-start;
        padding: 5.7vw 0 5.5vw 11%;
    }

    .frutela-pt__side {
        flex: 0 0 20vw;
        width: 20vw;
        padding: 0;
    }

    .frutela-pt__tabs {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 32px;
    }

    .frutela-pt__tab {
        font-size: clamp(14px, 0.83vw, 16px);
    }

    .frutela-pt a.frutela-pt__more {
        width: clamp(200px, 12.9vw, 248px);
        margin-top: 2.7vw;
        font-size: clamp(13px, 0.83vw, 16px);
    }

    .frutela-pt__main {
        flex: 1 1 auto;
        margin-top: 0;
    }

    .frutela-pt__track {
        padding-left: 0;
    }

    .frutela-pt__item {
        flex: 0 0 15.62vw;
        padding: 0 1.8vw;
    }

    .frutela-pt a.frutela-pt__img {
        height: 12.2vw;
    }

    .frutela-pt a.frutela-pt__name {
        margin-top: 1.45vw;
        font-size: clamp(12px, 0.83vw, 16px);
    }

    .frutela-pt__bar {
        width: 36.5vw;
        margin: 4.7vw 0 0;
    }
}

