.ts-search-toolbar {
    margin-bottom: 1rem;
}

.ts-search-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .ts-search-layout {
        flex-direction: column;
    }

    .ts-facets {
        width: 100%;
    }
}

.ts-facets {
    min-width: 200px;
    flex-shrink: 0;
}

.ts-results {
    flex: 1;
    min-width: 0;
}

/* Hit image */
.ts-hit .p-illustration img,
#ts-hits .p-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#ts-pagination .ais-Pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    gap: 0.25rem;
    flex-wrap: wrap;
}

#ts-pagination .ais-Pagination-item a,
#ts-pagination .ais-Pagination-item span {
    display: inline-block;
    padding: 0.25rem 0.5rem;
}

.ais-RefinementList-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ais-RefinementList-item {
    margin-bottom: 0.25rem;
}

#ts-stats {
    margin-bottom: 0.5rem;
}

#ts-current-refinements {
    margin-bottom: 0.5rem;
}

.ts-header-facet .ais-Panel {
    position: relative;
    cursor: pointer;
}
.ts-header-facet .ais-Panel-body {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 300px;
    overflow-y: auto;
}
.ts-header-facet .ais-Panel.facet-open .ais-Panel-body {
    display: block;
}

.ts-header-dropdown {
    left: 0 !important;
    width: 100% !important;
    gap: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 2px solid rgb(73, 187, 189) !important;
    border-radius: 0 !important;
    max-height: 460px !important;
}

.form-row .ts-header-dropdown {
    left: 5px !important;
    width: calc(100% - 10px) !important;
}

.ts-header-dropdown .ts-header-dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-top: none !important;
    border-bottom: 2px solid rgb(73, 187, 189) !important;
    background: rgb(255, 255, 255);
}

.ts-header-dropdown .ts-header-dropdown-item:last-child {
    border-bottom: none !important;
}

.ts-header-dropdown .ts-hd-main {
    display: flex;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    height: 4rem !important;
}

.ts-header-dropdown .ts-hd-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 4rem !important;
    padding: 1rem !important;
    background-color: rgb(255, 255, 255);
}

.ts-header-dropdown .ts-hd-thumb {
    width: 2rem !important;
    height: 2rem !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.ts-header-dropdown .ts-hd-info {
    flex: 1;
    min-width: 0;
    padding: 0.25rem 1.125rem !important;
    align-self: stretch;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    background-color: rgb(255, 255, 255);
    border-left: 2px solid rgb(73, 187, 189) !important;
    border-right: 2px solid rgb(73, 187, 189) !important;
    color: rgb(140, 140, 140);
}

.ts-header-dropdown .ts-hd-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.125rem;
    color: rgb(61, 60, 56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-header-dropdown .ts-hd-meta {
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(140, 140, 140);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-header-dropdown .ts-hd-arrow.btn {
    flex-shrink: 0;
    align-self: stretch !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem !important;
    height: auto !important;
    padding: 0 !important;
    background-color: rgb(237, 236, 235) !important;
    border: none !important;
    border-radius: 0 !important;
    color: rgb(73, 187, 189) !important;
}

.ts-header-dropdown .ts-hd-arrow.btn svg {
    width: 3rem !important;
    height: 3rem !important;
    fill: rgb(73, 187, 189) !important;
}

.ts-header-dropdown .ts-header-dropdown-item:hover .ts-hd-link,
.ts-header-dropdown .ts-header-dropdown-item.ts-hd-active .ts-hd-link {
    background-color: rgb(237, 236, 235) !important;
}

.ts-header-dropdown .ts-header-dropdown-item:hover .ts-hd-info,
.ts-header-dropdown .ts-header-dropdown-item.ts-hd-active .ts-hd-info {
    background-color: rgb(237, 236, 235) !important;
    color: rgb(61, 60, 56) !important;
}

.ts-header-dropdown .ts-header-dropdown-item:hover .ts-hd-meta,
.ts-header-dropdown .ts-header-dropdown-item.ts-hd-active .ts-hd-meta {
    color: rgb(61, 60, 56) !important;
}

.ts-header-dropdown .ts-header-dropdown-item:hover .ts-hd-arrow.btn,
.ts-header-dropdown .ts-header-dropdown-item.ts-hd-active .ts-hd-arrow.btn {
    background-color: rgb(61, 60, 56) !important;
    color: rgb(255, 255, 255) !important;
}

.ts-header-dropdown .ts-header-dropdown-item:hover .ts-hd-arrow.btn svg,
.ts-header-dropdown .ts-header-dropdown-item.ts-hd-active .ts-hd-arrow.btn svg {
    fill: rgb(255, 255, 255) !important;
}

.ts-header-dropdown .ts-header-dropdown-all {
    height: 4rem !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    background-color: rgb(73, 187, 189) !important;
    border: none !important;
    color: rgb(255, 255, 255) !important;
}

.ts-header-dropdown .ts-header-dropdown-all:hover,
.ts-header-dropdown .ts-header-dropdown-all:focus,
.ts-header-dropdown .ts-header-dropdown-all:active {
    background-color: rgb(73, 187, 189) !important;
    color: rgb(255, 255, 255) !important;
    border: none !important;
}

@media (max-width: 767px) {
    .ts-header-dropdown .ts-hd-main {
        height: 3rem !important;
    }
    .ts-header-dropdown .ts-hd-link {
        width: 3rem !important;
        padding: 0.5rem !important;
    }
    .ts-header-dropdown .ts-hd-thumb {
        width: 2rem !important;
        height: 2rem !important;
    }
    .ts-header-dropdown .ts-hd-info {
        padding: 0.125rem 0.75rem !important;
        gap: 0.125rem;
    }
    .ts-header-dropdown .ts-hd-title {
        font-size: 0.8rem;
    }
    .ts-header-dropdown .ts-hd-meta {
        font-size: 0.6875rem;
    }
    .ts-header-dropdown .ts-hd-arrow.btn {
        width: 3rem !important;
    }
    .ts-header-dropdown .ts-hd-arrow.btn svg {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    .ts-header-dropdown .ts-header-dropdown-all {
        height: 3rem !important;
        font-size: 1rem !important;
    }
}

#ts-hits.list-style-list .addcart .col-spinner {
    flex: 0 0 75%;
    max-width: 75%;
}
#ts-hits.list-style-list .addcart .col-add {
    flex: 0 0 25%;
    max-width: 25%;
}
#ts-hits.list-style-list .addcart .add {
    text-align: center;
}
