﻿/* =========================================
   Similar Strip (Versjon Boutique)
========================================= */

/* wrapper */
.similarStrip {
    margin-bottom: 18px;
    overflow: hidden; /* voorkomt edge glitches op iOS */
}

/* title */
.similarStrip__title {
    margin: 20px 0 10px 0;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #7b8f8f;
    font-weight: 500;
}

/* grid */
.similarStrip__grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */

    padding-left: 2px;
    /* 🔥 KEY: iPhone safe area fix */
    padding-right: calc(16px + env(safe-area-inset-right));
    scroll-padding-right: calc(16px + env(safe-area-inset-right));
}

    .similarStrip__grid::-webkit-scrollbar {
        display: none;
    }

/* ================================
   STABLE ITEMS (NO JUMP)
================================ */

.similarStrip__item {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #cfdede;
    background: #f8fbfb;
    color: #0f5c5c;
    font-size: 13px;
    text-decoration: none;
    overflow: hidden; /* belangrijk */
}

    /* 🔥 text container */
    .similarStrip__item span {
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* hover zonder layout shift */
    .similarStrip__item:hover {
        background: #e6f3f3;
        border-color: #a8d0d0;
    }

.similarStrip__inner {
    max-width: 100%;
    display: inline-block;
}

    .similarStrip__inner span {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

/* Explore more */
.similarStrip__more {
    flex: 0 0 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d6e6e6;
    background: #f3f9f9;
    color: #5f7f7f;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .similarStrip__more:hover {
        background: #e6f3f3;
        border-color: #a8d0d0;
    }

/* mobile tuning */
@media (max-width: 768px) {
    .similarStrip__item,
    .similarStrip__more {
        flex: 0 0 150px;
    }
}
