/* Category landing page sections: one horizontally scrolling product row per subcategory */

.cat-section {
    margin-bottom: 40px;
}

.cat-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #DDDDDD;
    padding-bottom: 8px;
}

.cat-section__title {
    margin: 0;
    font-size: 17px;
    text-transform: uppercase;
}

.cat-section__title a,
.cat-section__title a:visited {
    color: #204232;
    text-decoration: none;
}

.cat-section__title a:hover {
    text-decoration: underline;
}

.cat-section__nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.cat-section__arrow {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    background: #FFFFFF;
    color: #204232;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cat-section__arrow:hover:not(:disabled) {
    background-color: #f5f5f5;
}

.cat-section__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Mobile: no arrows needed when everything fits */
.cat-section__nav--hidden {
    display: none;
}

.cat-section__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 10px -10px 0;
}

.cat-section__track::-webkit-scrollbar {
    display: none;
}

.cat-section__track .cat-section__item {
    flex: 0 0 50%;
    width: auto;
    scroll-snap-align: start;
}

.cat-section__nav {
    align-items: center;
}

.cat-section__nav--hidden .cat-section__arrow {
    display: none;
}

.cat-section__all,
.cat-section__all:visited {
    color: #888888;
    font-size: 14px;
    text-decoration: none;
}

.cat-section__all:hover,
.cat-section__all:focus {
    color: #204232;
    text-decoration: none;
}

/* Mobile: full-width button below the row */
.cat-section__all--header {
    display: none;
}

.cat-section__all--footer,
.cat-section__all--footer:visited {
    display: block;
    margin-top: 4px;
    padding: 12px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    background: #FFFFFF;
    text-align: center;
}

.cat-section__all--footer:hover,
.cat-section__all--footer:focus {
    background-color: #f5f5f5;
}

@media (min-width: 600px) {
    .cat-section__track .cat-section__item {
        flex-basis: 33.333%;
    }
}

@media (min-width: 768px) {
    .cat-section__title {
        font-size: 19px;
    }

    /* Desktop: link next to the arrows */
    .cat-section__nav--hidden {
        display: flex;
    }

    .cat-section__all--header {
        display: inline-block;
        margin-right: 8px;
    }

    .cat-section__all--footer {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .cat-section__track {
        margin: 10px -20px 0;
    }
}
