.component-ShopCategorySearch .loader::before {
    display: none;
}

.component-ShopCategorySearch {
    display: flex;
    flex-direction: column;
}

.component-ShopCategorySearch .shop-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.component-ShopCategorySearch #filter-toggle-btn {
    background-color: transparent;
    border: 2px solid #f08b73;
    border-radius: 0;
    box-shadow: none;
    color: #f08b73;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 47px;
    margin-right: 15px;
    padding: 0 25px 0 16px;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s linear, color 0.3s linear;
}

.component-ShopCategorySearch #filter-toggle-btn svg path {
    fill: #f08b73;
    transition: fill 0.3s linear;
}

.component-ShopCategorySearch #filter-toggle-btn:hover {
    background-color: #f08b73;
    color: #fff;
}

.component-ShopCategorySearch #filter-toggle-btn:hover svg path {
    fill: #fff;
}

.component-ShopCategorySearch .shop-search-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.component-ShopCategorySearch .product-count span:first-child,
.component-ShopCategorySearch .product-count span:last-child {
    font-weight: 600;
}

.component-ShopCategorySearch .sort-wrapper {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.component-ShopCategorySearch .sort-wrapper select {
    border: unset;
    line-height: unset;
    padding: 0;
    width: auto;
}

.component-ShopCategorySearch .shop-search-view-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.component-ShopCategorySearch .shop-search-view-toggle-wrapper span {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    font-size: 16px;
    letter-spacing: -0.02em;
    padding: 7px 13px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.component-ShopCategorySearch .shop-search-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.component-ShopCategorySearch .shop-search-sidebar {
    width: 100%;
    overflow: hidden;
    padding-right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 2rem;
    transition: 150ms all ease-in-out;
}

.component-ShopCategorySearch .shop-search-sidebar > .category-filter-wrapper,
.component-ShopCategorySearch .shop-search-sidebar > .attribute-filter-wrapper {
    display: contents;
}

.component-ShopCategorySearch
    .shop-search-sidebar
    > .shop-search-cat-item[data-type='all'] {
    grid-column: 1 / -1;
}

.component-ShopCategorySearch.sidebar-hidden .shop-search-sidebar {
    height: 0;
    padding: 0;
    margin: 0;
    gap: 0;
}

.component-ShopCategorySearch .shop-search-main {
    width: 100%;
    transition: 150ms all ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2rem;
}

.component-ShopCategorySearch .shop-search-main .show-more {
    align-self: center;
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    color: #f08b73;
    border: 2px solid #f08b73;
    border-radius: 0;
    box-shadow: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.3s linear,
        color 0.3s linear,
        border-color 0.3s linear;
    width: fit-content;
}

.component-ShopCategorySearch .shop-search-main .show-more::after {
    content: none;
}

.component-ShopCategorySearch .shop-search-main .show-more:hover {
    background-color: #f08b73;
    border-color: #f08b73;
    color: #fff;
}

.component-ShopCategorySearch .shop-search-main .show-more.hide {
    display: none;
}

.component-ShopCategorySearch .shop-search-main .results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.search-results .site-main ul > a {
    max-width: 400px;
}
.search #pagecontent {
    padding-top: 36px;
    padding-bottom: 36px;
}

.component-ShopCategorySearch.sidebar-hidden .shop-search-main .results {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.component-ShopCategorySearch.sidebar-hidden .shop-search-main {
    width: 100%;
}

.component-ShopCategorySearch #filter-toggle-btn svg {
    transition: 200ms all ease-in-out;
}

.component-ShopCategorySearch.sidebar-hidden #filter-toggle-btn svg {
    transform: rotate(180deg);
}

/* "Alle Produkte" reset link — sits full-width above the filter grid */
.component-ShopCategorySearch .shop-search-cat-item[data-type='all'] {
    padding: 0;
    border: none;
    color: #171515;
}

.component-ShopCategorySearch .shop-search-cat-item[data-type='all'] a {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #f08b73;
    border-radius: 0;
    background-color: transparent;
    color: #f08b73;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background-color 0.3s linear,
        color 0.3s linear,
        border-color 0.3s linear;
}

.component-ShopCategorySearch .shop-search-cat-item[data-type='all'] a:hover {
    background-color: #f08b73;
    border-color: #f08b73;
    color: #fff;
}

/* Filter group cell (one per grid column) */
.component-ShopCategorySearch .category-item,
.component-ShopCategorySearch .attribute-item {
    padding: 0;
    border: none;
    color: #171515;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Group title */
.component-ShopCategorySearch .category-item-label,
.component-ShopCategorySearch .attribute-item-label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin: 0;
    padding: 0 0 0.5rem 0;
    border-bottom: 1px solid #e6e6e6;
}

/* Category select dropdown */
.component-ShopCategorySearch .select-wrapper {
    position: relative;
    width: 100%;
}

.component-ShopCategorySearch .select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: solid #171515;
    border-width: 0 2px 2px 0;
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
    transition: border-color 0.15s linear;
}

.component-ShopCategorySearch .category-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1.5px solid #d6d6d6;
    border-radius: 4px;
    color: #171515;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    padding: 10px 36px 10px 14px;
    transition:
        border-color 0.15s linear,
        box-shadow 0.15s linear;
}

.component-ShopCategorySearch .category-select:hover {
    border-color: #f08b73;
}

.component-ShopCategorySearch .select-wrapper:hover::after {
    border-color: #f08b73;
}

.component-ShopCategorySearch .category-select:focus {
    outline: none;
    border-color: #f08b73;
    box-shadow: 0 0 0 3px rgba(240, 139, 115, 0.18);
}

.component-ShopCategorySearch .category-select option {
    padding: 8px;
    color: #171515;
}

.component-ShopCategorySearch .category-select option:disabled {
    color: #c0c0c0;
}

/* Children list */
.component-ShopCategorySearch .category-child-items,
.component-ShopCategorySearch .attribute-child-items {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.component-ShopCategorySearch .category-child-child-items {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* One checkbox row */
.component-ShopCategorySearch .category-child-items label,
.component-ShopCategorySearch .category-child-child-items label,
.component-ShopCategorySearch .attribute-child-items label {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    padding: 4px 0;
    margin: 0;
}

/* Hide native checkbox */
.component-ShopCategorySearch .category-child-items label input[type='checkbox'],
.component-ShopCategorySearch .category-child-child-items label input[type='checkbox'],
.component-ShopCategorySearch .attribute-child-items label input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}

/* Custom checkbox + label text */
.component-ShopCategorySearch .category-child-items label span,
.component-ShopCategorySearch .category-child-child-items label span,
.component-ShopCategorySearch .attribute-child-items label span {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 28px;
    min-height: 18px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: normal;
    text-transform: none;
    color: #171515;
    line-height: 1.3;
    transition: color 0.15s linear;
}

.component-ShopCategorySearch .category-child-items label span::before,
.component-ShopCategorySearch .category-child-child-items label span::before,
.component-ShopCategorySearch .attribute-child-items label span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1.5px solid #c9c9c9;
    background-color: #fff;
    border-radius: 3px;
    box-sizing: border-box;
    transition:
        border-color 0.15s linear,
        background-color 0.15s linear;
}

/* Hover */
.component-ShopCategorySearch .category-child-items label:hover span,
.component-ShopCategorySearch .category-child-child-items label:hover span,
.component-ShopCategorySearch .attribute-child-items label:hover span {
    color: #f08b73;
}

.component-ShopCategorySearch .category-child-items label:hover span::before,
.component-ShopCategorySearch .category-child-child-items label:hover span::before,
.component-ShopCategorySearch .attribute-child-items label:hover span::before {
    border-color: #f08b73;
}

/* Checked state: filled box */
.component-ShopCategorySearch
    .category-child-items
    label
    input:checked
    + span::before,
.component-ShopCategorySearch
    .category-child-child-items
    label
    input:checked
    + span::before,
.component-ShopCategorySearch
    .attribute-child-items
    label
    input:checked
    + span::before {
    background-color: #f08b73;
    border-color: #f08b73;
}

/* Checkmark */
.component-ShopCategorySearch
    .category-child-items
    label
    input:checked
    + span::after,
.component-ShopCategorySearch
    .category-child-child-items
    label
    input:checked
    + span::after,
.component-ShopCategorySearch
    .attribute-child-items
    label
    input:checked
    + span::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-65%) rotate(45deg);
}

.component-ShopCategorySearch
    .category-child-items
    label
    input:checked
    + span,
.component-ShopCategorySearch
    .category-child-child-items
    label
    input:checked
    + span,
.component-ShopCategorySearch
    .attribute-child-items
    label
    input:checked
    + span {
    color: #171515;
    font-weight: 600;
}

.component-ShopCategorySearch .category-child-items label.hide,
.component-ShopCategorySearch .category-child-child-items label.hide,
.component-ShopCategorySearch .attribute-child-items label.hide {
    display: none;
}

.component-ShopCategorySearch .attribute-item:has(label:not(.hide)) {
    display: flex;
}

@media screen and (max-width: 1024px) {
    .component-ShopCategorySearch .shop-search-header-right {
        flex-direction: column;
        align-items: flex-end;
    }

    .component-ShopCategorySearch .shop-search-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }

    .component-ShopCategorySearch .shop-search-main .results {
        grid-template-columns: repeat(3, 1fr);
    }

    .component-ShopCategorySearch.sidebar-hidden .shop-search-main .results {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 776px) {
    .component-ShopCategorySearch .shop-search-content {
        display: flex;
        flex-direction: column;
    }

    .component-ShopCategorySearch .shop-search-sidebar,
    .component-ShopCategorySearch .shop-search-main {
        width: 100%;
    }

    .component-ShopCategorySearch .shop-search-main {
        display: grid;
        grid-template-columns: 1fr;
    }

    .component-ShopCategorySearch .shop-search-sidebar {
        padding-right: 0;
        grid-template-columns: 1fr;
    }

    .component-ShopCategorySearch.sidebar-hidden .shop-search-sidebar {
        width: 100%;
        height: 0;
    }

    .component-ShopCategorySearch #filter-toggle-btn svg {
        rotate: 90deg;
    }

    .component-ShopCategorySearch .shop-search-main .results {
        grid-template-columns: 1fr !important;
    }

    .component-ShopCategorySearch {
        margin-top: 11rem;
    }
}
