/*
 * Category headline box + tabs (templates/category/gp-category-tabs.phtml), like the live shop's
 * ".top-tabs-wrapper": white box with the category name (orange underline), second box with the tabs.
 */
.gp-cat-tabs__box {
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
    text-align: center;
}
.gp-cat-tabs__title {
    text-transform: uppercase;
    display: inline-block;
    margin: 0 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #ff6101;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: #212121;
}
.gp-cat-tabs__list {
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}
.gp-cat-tabs__list li {
    position: relative;
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #ff6101;
    cursor: pointer;
}
.gp-cat-tabs__icon {
    display: inline-block;
    margin-right: 4px;
    vertical-align: -1px;
}
.gp-cat-tabs__triangle {
    display: block;
}
/* notch above the active tab: white triangle with a page coloured one in front (the gap between the two boxes) */
.gp-cat-tabs__list li.is-active .gp-cat-tabs__triangle::before,
.gp-cat-tabs__list li.is-active .gp-cat-tabs__triangle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    transform: translateX(-50%);
}
.gp-cat-tabs__list li.is-active .gp-cat-tabs__triangle::before {
    bottom: 92px;
    border-top: 20px solid #fff;
}
.gp-cat-tabs__list li.is-active .gp-cat-tabs__triangle::after {
    bottom: 70px;
    border-top: 20px solid #f9fafb;
}
/* pointer of the active tab (white triangle below the box) */
.gp-cat-tabs__list li.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -39px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #fff;
    transform: translateX(-50%);
}

@media (max-width: 1023px) {
    .gp-cat-tabs__title {
        font-size: 18px;
    }
    .gp-cat-tabs__list li {
        max-width: 100px;
    }
}
@media (max-width: 767px) {
    .gp-cat-tabs__list {
        justify-content: space-between;
    }
}


/* ---------- Child category tiles ("Kategorien" tab), like live's .subcategory-list ---------- */
.gp-subcats {
    position: relative;
    margin-bottom: 20px;
    padding: 0 0 2rem;
}
.gp-subcats__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    background: #fff;
}
.gp-subcats__list::after {
    content: "";
    flex-grow: 1;
}
.gp-subcats__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25%;
    flex-basis: 21%;
    margin: 1rem 2%;
    border: 1px solid #000;
    text-decoration: none;
}
.gp-subcats__item:hover {
    border-color: #ff6101;
}
.gp-subcats__img {
    display: block;
    width: 100%;
    height: 174px;
    object-fit: contain;
    margin: 0 auto;
    background: #fff;
}
.gp-subcats__title {
    display: block;
    width: 100%;
    padding: 1rem 0.5rem;
    text-align: center;
    background: #212121;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}
.gp-subcats__item:hover .gp-subcats__title {
    background: #ff6101;
}
/* collapsed: two rows of four on desktop (as live: 495px), "Mehr Anzeigen" shows the rest */
.gp-subcats--desktop-more .gp-subcats__list {
    height: 495px;
}
.gp-subcats.is-full .gp-subcats__list {
    height: auto;
}
.gp-subcats__btn {
    display: none;
    margin: 0 auto;
    padding: 1rem 3rem;
    border: 0;
    border-radius: 0;
    background: #ff6101;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.gp-subcats__btn:hover {
    background: #000;
}
.gp-subcats--desktop-more .gp-subcats__btn--more {
    display: block;
}
.gp-subcats.is-full .gp-subcats__btn--more {
    display: none;
}
.gp-subcats--desktop-more.is-full .gp-subcats__btn--less {
    display: block;
}
.gp-cat-tabs__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

@media (max-width: 1023px) {
    .gp-subcats__item {
        width: 49%;
        flex-basis: 49%;
        margin: 10px 0;
        border: 0;
        background: #fff;
    }
    .gp-subcats__title {
        background: none;
        color: #212121;
        font-weight: normal;
    }
    .gp-subcats__item:hover .gp-subcats__title {
        background: none;
        text-decoration: underline;
    }
    .gp-subcats--desktop-more .gp-subcats__list {
        height: auto;
    }
    .gp-subcats--mobile-more .gp-subcats__list {
        height: 700px;
    }
    .gp-subcats--desktop-more .gp-subcats__btn--more,
    .gp-subcats--desktop-more.is-full .gp-subcats__btn--less {
        display: none;
    }
    .gp-subcats--mobile-more .gp-subcats__btn--more {
        display: block;
    }
    .gp-subcats--mobile-more.is-full .gp-subcats__btn--more {
        display: none;
    }
    .gp-subcats--mobile-more.is-full .gp-subcats__btn--less {
        display: block;
    }
}
@media (max-width: 479px) {
    .gp-subcats__item {
        width: 100%;
        flex-basis: 100%;
    }
    .gp-subcats--mobile-more .gp-subcats__list {
        height: 1400px;
    }
}
