/* ==============================================
   TM24 NOVAChild – Home: Bestseller Rail
   Modul: modules/home/bestseller/bestseller.css
   Scope: .tm24-home-bestseller, [data-tm24-rail]
   Quelle: custom.css Zeilen 3872-3975
   UTF-8 ohne BOM
   ============================================== */

.tm24-home-bestseller {
    padding: 48px 0 32px;
    background: #f7f5f3;
}

.tm24-home-bestseller .tm24-bestseller-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
}

.tm24-home-bestseller .tm24-bestseller-title {
    margin: 0;
    font-family: 'Figtree', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

.tm24-home-bestseller .tm24-bestseller-nav {
    display: flex;
    gap: 10px;
}

.tm24-home-bestseller .tm24-bestseller-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #111;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}

.tm24-home-bestseller .tm24-bestseller-arrow:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
}

.tm24-home-bestseller .tm24-bestseller-arrow:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}

.tm24-home-bestseller [data-tm24-rail] {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: clamp(260px, 22vw, 320px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 6px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.15) transparent;
}

.tm24-home-bestseller [data-tm24-rail]>* {
    scroll-snap-align: start;
}

@media (max-width: 991px) {
    .tm24-home-bestseller .tm24-bestseller-title { font-size: 26px; }
    .tm24-home-bestseller [data-tm24-rail] { grid-auto-columns: clamp(230px, 42vw, 290px); }
}

@media (max-width: 640px) {
    .tm24-home-bestseller [data-tm24-rail] { grid-template-rows: 1fr; grid-auto-columns: clamp(220px, 75vw, 300px); }
    .tm24-home-bestseller .tm24-bestseller-title { font-size: 22px; }
    .tm24-home-bestseller .tm24-bestseller-arrow { width: 36px; height: 36px; font-size: 18px; }
}
