.top-category-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.top-category-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

.top-category-header a {
    position: absolute;
    right: 0;
    font-size: 14px;
    text-decoration: none;
    color: #000;
}

.top-category-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.top-category-item {
    flex: 0 0 auto;
    width: 160px;
    text-align: center;
    text-decoration: none;

}

.top-category-item img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: none;
    border-radius: 100px;
}

.top-category-item span {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}
/* === MOBILNÍ VERZE – vzhled jako Shoptet kategorie === */
@media (max-width: 768px) {

    .top-category {
        background: #f2f2f2;
        padding: 1.5rem 1rem;
        margin: 0 auto 3rem;
    }

    .top-category-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .top-category-header h2 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: .5rem;
        text-align: left !important;
    }

    .top-category-header a {
        position: static;
        display: inline-block;
        font-size: .9rem;
        text-align: right;
    }

    /* GRID jako b-category */
    .top-category-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        justify-items: center;
        overflow: hidden;
    }

    .top-category-item {
        width: 100%;
        max-width: 120px;
    }

    .top-category-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .top-category-item span {
        font-size: .85rem;
        margin-top: .4rem;
        display: block;
    }
}