/* =========================================
   6. SLIDERS – FIXED GRID (DESKTOP)
========================================= */

.slider {
    position: relative;
    width: calc(5 * var(--card-width) + 4 * var(--card-gap));
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.slider-track {
    display: flex;
    gap: var(--card-gap);
    overflow: hidden;
    transition: transform 0.45s ease;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

/* =========================================
   CARDS – DESKTOP (5 kaarten)
========================================= */

.category-card,
.product-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: var(--card-width);            /* 220px */
    min-width: var(--card-width);
    max-width: var(--card-width);
    flex: 0 0 var(--card-width);
    height: 260px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.category-image,
.product-image {
    width: 100%;
    height: 120px;
    border-radius: 15px;
    background: var(--grey-blue);
    margin-bottom: 10px;
}

.category-card h3,
.product-card h3 {
    font-size: 0.9rem;
    margin: 0 0 8px;
}

/* =========================================
   SLIDER ARROWS – DESKTOP
========================================= */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--white);
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.12s ease;
    z-index: 50;
}

.slider-arrow:hover {
    background: var(--dark-green);
    color: var(--white);
    border-color: var(--dark-green);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow--left  { left: -51px; }
.slider-arrow--right { right: -51px; }

/* =========================================
   📐 TABLET (±768–1024px)
   → 3 kaarten zichtbaar
========================================= */

@media (max-width: 1024px) {

    .slider {
        width: 100%;
        margin: 12px 0 0;
        overflow: hidden;
    }

    .slider-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px;
        gap: 16px;
        transform: none !important;
    }

    .slider-arrow {
        display: none !important;
    }

    /* 3 kaarten */
    .category-card,
    .product-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
        height: 250px;
        scroll-snap-align: start;
    }

    .category-image,
    .product-image {
        height: 110px;
    }

    .category-card h3,
    .product-card h3 {
        font-size: 0.88rem;
    }
}

/* =========================================
   📱 GROTE TELEFOONS (±600–767px)
   → 2 kaarten zichtbaar (groter)
========================================= */

@media (max-width: 767px) {

    .slider-track {
        padding: 0 16px;
        gap: 14px;
    }

    /* 2 kaarten */
    .category-card,
    .product-card {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
        height: 240px;
    }

    .category-image,
    .product-image {
        height: 100px;
    }

    .category-card h3,
    .product-card h3 {
        font-size: 0.85rem;
    }
}

/* =========================================
   📱 KLEINE TELEFOONS (<420px)
   → 2 kaarten (compacter)
========================================= */

@media (max-width: 420px) {

    .slider-track {
        padding: 0 12px;
        gap: 12px;
    }

    .category-card,
    .product-card {
        flex: 0 0 170px;
        min-width: 170px;
        max-width: 170px;
        height: 220px;
        padding: 12px;
    }

    .category-image,
    .product-image {
        height: 90px;
    }

    .category-card h3,
    .product-card h3 {
        font-size: 0.8rem;
    }
}
