/*
* Product Listing (Category, Search, manufacturer) Specific CSS Stylesheet
*/

.subcategories-scrollable {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}

.subcategory-card-item:hover .hover-scale {
    transform: scale(1.05);
}

.category-toolbar {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Custom styles for select option sorts */
.category-toolbar select {
    font-size: 0.875rem;
    padding: 0.375rem 1.75rem 0.375rem 1rem;
    border-radius: 50px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease-in-out;
}

.category-toolbar select:focus {
    border-color: var(--color-pink);
    outline: 0;
}

/* Sidebar filtering controls */
.sidebar-wrapper .block .title_block {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    border-bottom: 2px solid var(--color-pink);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-wrapper .block_content ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.sidebar-wrapper .block_content li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.sidebar-wrapper .block_content li input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--color-pink);
}

/* Round pagination links overlays */
.pagination-container .pagination {
    margin-bottom: 0;
}

.pagination-container .pagination .page-link {
    color: #212529;
    border-radius: 50% !important;
    margin: 0 4px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination-container .pagination .page-item.active .page-link {
    background-color: var(--color-pink) !important;
    border-color: var(--color-pink) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px var(--color-pink-shadow);
}

.pagination-container .pagination .page-link:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
    background-color: var(--color-pink-light);
}

/* SEO content details card */
.category-seo-description {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.rte-desc p {
    margin-bottom: 1rem;
}
.rte-desc p:last-child {
    margin-bottom: 0;
}

/* Category header banner styling */
.category-banner-card {
    background-color: var(--color-pink-light);
    border: 1px solid rgba(223, 115, 154, 0.15) !important;
}

.category-banner-img-wrapper {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.category-banner-card:hover .category-banner-img-wrapper {
    transform: scale(1.05) rotate(5deg);
}

/* Subcategory list customization */
.subcategory-card-item a {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.subcategory-card-item a:hover {
    border-color: var(--color-pink) !important;
    box-shadow: 0 8px 20px var(--color-pink-shadow);
    transform: translateY(-4px);
}

.subcategory-card-item .subcategory-name {
    transition: color 0.2s ease;
}

.subcategory-card-item a:hover + .subcategory-name,
.subcategory-card-item .subcategory-name:hover {
    color: var(--color-pink) !important;
}

/* Custom Scrollbar for scrollable categories list */
.subcategories-scrollable::-webkit-scrollbar {
    height: 6px;
}

.subcategories-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.subcategories-scrollable::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.subcategories-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--color-pink);
}

/* Custom form elements inside filters */
.form-check-input:checked {
    background-color: var(--color-pink) !important;
    border-color: var(--color-pink) !important;
}

.form-check-input:focus {
    border-color: var(--color-pink) !important;
    box-shadow: 0 0 0 0.25rem var(--color-pink-shadow) !important;
}

.form-range::-webkit-slider-thumb {
    background: var(--color-pink) !important;
}

.form-range::-moz-range-thumb {
    background: var(--color-pink) !important;
}

/* pgthemebuilder cached product filter */
.ptb-product-filter {
    background: #ffffff;
    color: #29272c;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 25px;
}

.ptb-product-filter.is-loading {
    opacity: 0.66;
    pointer-events: none;
}

.ptb-product-filter__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ptb-product-filter__head strong {
    color: #242128;
    font-size: 13px;
    font-weight: 800;
}

.ptb-product-filter__head button,
.ptb-product-filter__more-options,
.ptb-product-filter__more-groups {
    background: transparent;
    border: 0;
    color: var(--color-pink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 0;
}

.ptb-product-filter__group {
    border: 0;
    border-top: 1px solid #ede8ef;
    margin: 0;
    padding: 13px 0;
}

.ptb-product-filter__group legend {
    color: #2c2930;
    float: none;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 8px;
    padding: 0;
    width: 100%;
}

.ptb-product-filter__options {
    display: grid;
    gap: 7px;
}

.ptb-product-filter__option {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 7px;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    margin: 0;
    min-height: 18px;
}

.ptb-product-filter__option input {
    accent-color: var(--color-pink);
    height: 13px;
    margin: 0;
    width: 13px;
}

.ptb-product-filter__option span {
    color: #4e4852;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptb-product-filter__option small {
    color: #b4adb7;
    font-size: 11px;
}

.ptb-product-filter__option:hover span {
    color: var(--color-pink);
}

.ptb-product-filter__more-options {
    margin-top: 9px;
}

.ptb-product-filter__more-groups {
    align-items: center;
    border: 1px solid #e4dde7;
    display: inline-flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
    min-height: 30px;
    padding: 0 10px;
    width: 100%;
}

[data-ptb-product-results].is-loading {
    opacity: 0.58;
    pointer-events: none;
}

@media (max-width: 991px) {
    .ptb-product-filter {
        margin-bottom: 25px;
    }
}
