/* Стилі сторінки, винесені з oscar/catalogue/browse.html (02.12.2026): браузер кешує їх окремо від HTML */
/* На телефоні меню категорій і фільтри згорнуті з першого кадру (те саме роблять
   applyCategoryTreeLayout та initMobileFacets, але лише після завантаження скриптів —
   товари стрибали вгору на кілька екранів, PageSpeed CLS 0.39). Відкриваються дотиком, як і раніше */
@media (max-width: 767px) {
    #categoryTree, .category-search, #mobileFacetsContent, .mobile-facets-search { display: none; }
}

/* Modern Category Tree Styles */
.category-sidebar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(var(--brand-plum-rgb), 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--brand-plum-rgb), 0.05);
    transition: all 0.3s ease;
}

.category-sidebar:hover {
    box-shadow: 0 8px 30px rgba(var(--brand-plum-rgb), 0.12);
    transform: translateY(-1px);
}

.category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem;
    border-bottom: 1px solid rgba(var(--brand-plum-rgb), 0.1);
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--brand-plum-rgb), 0.3) 0%, rgba(var(--brand-plum-rgb), 0.1) 100%);
}

.category-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-plum);
    display: flex;
    flex-wrap: wrap;  /* поточний розділ (#categoryCurrent) — окремим рядком */
    align-items: center;
}

.category-title i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    color: var(--brand-plum);
}

.category-collapse-icon {
    color: var(--brand-plum) !important;
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 0.8rem;
    display: none;
}

/* Show chevron only on mobile */
@media (max-width: 767px) {
    .category-collapse-icon {
        display: block;
        color: var(--brand-plum) !important;
    }
    
    /* Hide category tree and search by default on mobile, but show if there's an active category */
    .category-tree,
    .category-search {
        display: none;
    }
    
    /* Show category tree and search on mobile if there's an active category */
    .category-tree.has-active-category,
    .category-search.has-active-category {
        display: block;
    }
}

/* Force burgundy color for all states */
.category-collapse-icon.fa-chevron-right,
.category-collapse-icon.fa-chevron-down {
    color: var(--brand-plum) !important;
}

/* Read More functionality for category descriptions */
.category-description {
    line-height: 1.5;
    max-height: 7.5em; /* 5 rows * 1.5 line-height */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.category-description.expanded {
    max-height: none;
}

/* Only show shadow when read-more functionality is needed */
.category-description.needs-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.7));
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.category-description.expanded::after {
    opacity: 0;
}

/* Текст про скрапбукінг унизу головної */
.home-intro { border-top: 1px solid #eee; padding-top: 1rem; }
.home-intro-text h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.home-intro-text h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.home-intro-text p, .home-intro-text ul { margin-bottom: 0.75rem; }

.read-more-btn {
    color: var(--brand-plum);
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #7a3a5a;
}

.category-title:hover {
    color: #7a3a5a;
}

.category-title:hover .category-collapse-icon {
    color: var(--brand-plum);
}

.category-search {
    position: relative;
}

.category-search input {
    background: #ffffff;
    border: 2px solid rgba(var(--brand-plum-rgb), 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.875rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(var(--brand-plum-rgb), 0.05);
}

.category-search input:focus {
    border-color: rgba(var(--brand-plum-rgb), 0.4);
    box-shadow: 0 0 0 4px rgba(var(--brand-plum-rgb), 0.1), 0 4px 16px rgba(var(--brand-plum-rgb), 0.1);
    outline: none;
    transform: translateY(-1px);
}

.category-search input:hover {
    border-color: rgba(var(--brand-plum-rgb), 0.2);
    box-shadow: 0 2px 12px rgba(var(--brand-plum-rgb), 0.08);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--brand-plum-rgb), 0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Global facet search styling to match category search */
#global-facet-search {
    border-radius: 8px;
    border: 2px solid rgba(var(--brand-teal-rgb), 0.1);
    transition: all 0.3s ease;
}

#global-facet-search:focus {
    border-color: rgba(var(--brand-teal-rgb), 0.4);
    box-shadow: 0 0 0 4px rgba(var(--brand-teal-rgb), 0.1);
    outline: none;
}

#global-facet-search:hover {
    border-color: rgba(var(--brand-teal-rgb), 0.2);
}

/* Style the search icon in the facet search */
.facet-search .fas.fa-search.search-icon {
    color: rgba(var(--brand-teal-rgb), 0.6);
    font-size: 14.41px;
    width: 14.5px;
    height: 14.5px;
}

.facet-search .fas.fa-search.search-icon:hover {
    color: rgba(var(--brand-teal-rgb), 0.8);
}


.category-search input:focus + .search-icon {
    color: rgba(var(--brand-plum-rgb), 0.8);
    transform: translateY(-50%) scale(1.1);
}

.category-tree {
    padding: 1rem 0;
}

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

.category-item {
    position: relative;
}

.category-wrapper {
    display: flex;
    align-items: center;
    padding: 0 !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    background: transparent;
}

/* Force remove padding with more specific selectors */
.category-sidebar .category-wrapper,
.category-tree .category-wrapper,
.category-list .category-wrapper {
    padding: 0 !important;
}

.category-wrapper:hover {
    background: rgba(var(--brand-plum-rgb), 0.05);
    border-radius: 8px;
    transform: translateY(-1px);
}

.category-wrapper.active {
    background: rgba(var(--brand-plum-rgb), 0.08);
    border-radius: 8px;
}

.category-toggle {
    background: transparent;
    border: none;
    padding: 0.25rem;
    margin-right: 0.3rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}



.category-toggle:hover {
    background: transparent;
    transform: scale(1.05);
}



.toggle-icon {
    font-size: 0.75rem;
    color: var(--brand-plum); /* Burgundy for category toggles */
    transition: all 0.2s ease;
}

.category-spacer {
    width: 24px;
    height: 24px;
    margin-right: 0.3rem;
    flex-shrink: 0;
}

.toggle-icon.rotated {
    transform: rotate(90deg);
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    flex: 1;
    padding: 0.375rem 0.75rem 0.375rem 0.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}



.category-link:hover {
    color: inherit;
    text-decoration: none;
    background: transparent;
    transform: none;
}

/* Ensure wrapper highlight works when hovering over any child element */
.category-wrapper:hover {
    background-color: rgba(var(--brand-plum-rgb), 0.05);
}

.category-wrapper:hover .category-link {
    color: var(--brand-plum);
}

.category-wrapper:hover .category-toggle {
    background: rgba(var(--brand-plum-rgb), 0.1);
}





.category-link.active {
    color: var(--brand-plum);
    font-weight: 600;
}

.category-link.active .category-name {
    color: var(--brand-plum);
    font-weight: 600;
}

.category-name {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em; /* 2 lines * 1.4 line-height */
    word-wrap: break-word;
    hyphens: auto;
}

.category-count {
    font-size: 0.8rem;
    color: var(--brand-plum);
    background: rgba(var(--brand-plum-rgb), 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: normal;
}



.facet-count {
    font-size: 0.8rem;
    color: var(--brand-teal);
    background: linear-gradient(135deg, rgba(70, 149, 142, 0.1) 0%, rgba(70, 149, 142, 0.15) 100%);
    padding: 3.2px 8px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.facet-count:hover {
    background: linear-gradient(135deg, rgba(70, 149, 142, 0.15) 0%, rgba(70, 149, 142, 0.2) 100%);
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(70, 149, 142, 0.2);
}

/* Make ALL facet items teal by default */
.facet-sidebar .facet-item,
.side_categories .facet-item {
    color: var(--brand-teal) !important;
    font-size: 15.2px !important;
}

.facet-sidebar .facet-item *,
.side_categories .facet-item * {
    color: var(--brand-teal) !important;
}

.facet-sidebar .facet-item a,
.side_categories .facet-item a {
    color: var(--brand-teal) !important;
    font-weight: 500 !important;
}

/* Selected/active facet items get bold text and background */
.facet-sidebar .facet-item.active,
.facet-sidebar .facet-item.selected,
.side_categories .facet-item.active,
.side_categories .facet-item.selected {
    background: rgba(var(--brand-teal-rgb), 0.05) !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    margin: 0.25rem 0 !important;
}

.facet-sidebar .facet-item.active *,
.facet-sidebar .facet-item.selected *,
.side_categories .facet-item.active *,
.side_categories .facet-item.selected * {
    font-weight: 600 !important;
}

/* Keep count badge styling */
.facet-item.active .facet-count,
.facet-item.selected .facet-count {
    background: linear-gradient(135deg, rgba(var(--brand-teal-rgb), 0.2) 0%, rgba(var(--brand-teal-rgb), 0.25) 100%);
    border-color: rgba(var(--brand-teal-rgb), 0.4);
    color: var(--brand-teal) !important;
}

.facet-item.active .facet-count,
.facet-item.selected .facet-count {
    background: linear-gradient(135deg, rgba(var(--brand-teal-rgb), 0.2) 0%, rgba(var(--brand-teal-rgb), 0.25) 100%);
    border-color: rgba(var(--brand-teal-rgb), 0.4);
    color: var(--brand-teal);
}

/* Style facet checkboxes to be teal instead of blue */
.facet-item input[type="checkbox"]:checked {
    accent-color: var(--brand-teal);
}

.facet-item input[type="checkbox"]:focus {
    outline: 2px solid rgba(var(--brand-teal-rgb), 0.4);
    outline-offset: 2px;
}

.category-children {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    display: none;
    background: linear-gradient(90deg, rgba(var(--brand-plum-rgb), 0.02) 0%, rgba(var(--brand-plum-rgb), 0.01) 100%);
    margin-left: 1rem;
    border-radius: 0 0 0 8px;
}

.category-children .category-wrapper {
    padding-left: 1rem;
}

.category-children .category-children .category-wrapper {
    padding-left: 1.5rem;
}

.category-children .category-children .category-children .category-wrapper {
    padding-left: 2.5rem;
}

/* Animation for expanding/collapsing */
.category-children {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.category-children.expanding {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.category-children.collapsing {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-sidebar {
        margin-bottom: 1rem;
    }

    .category-header {
        padding: 1rem;
    }

    .category-wrapper {
        padding: 0.75rem 1rem;
    }

    .category-children .category-wrapper {
        padding-left: 2rem;
    }

    
}

/* Focus states for accessibility - removed outlines */
.category-toggle:focus {
    outline: none;
}

.category-link:focus {
    outline: none;
}

/* Loading state */
.category-tree.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Empty state */
.category-tree:empty::after {
    content: "No categories found";
    display: block;
    text-align: center;
    padding: 2rem;
    color: var(--brand-plum);
    font-style: italic;
}

/* Legacy styles for backward compatibility */
.nav-header[data-toggle="collapse"] {
    cursor: pointer;
}

.nav-header .fa-chevron-down {
    transition: transform 0.3s ease;
    color: var(--brand-plum); /* Burgundy for facets */
}

/* Style the float-right chevron icons */
.fas.fa-chevron-down.float-right {
    color: var(--brand-teal); /* Teal for categories */
}

.nav-header[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(-90deg);
}

.facet-item.hidden {
    display: none;
}

/* Facet Sidebar Styles - Consistent with Category Sidebar */
.facet-sidebar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(var(--brand-plum-rgb), 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--brand-plum-rgb), 0.05);
    transition: all 0.3s ease;
}

.facet-sidebar:hover {
    box-shadow: 0 8px 30px rgba(var(--brand-plum-rgb), 0.12);
    transform: translateY(-1px);
}

.facet-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem;
    border-bottom: 1px solid rgba(var(--brand-plum-rgb), 0.1);
    position: relative;
}

.facet-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(70, 149, 142, 0.3) 0%, rgba(70, 149, 142, 0.1) 100%);
}

.facet-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-teal);
    display: flex;
    align-items: center;
}

.facet-title i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    color: var(--brand-teal);
}

.facet-search {
    position: relative;
}

.facet-search input {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    font-size: 0.875rem;
    width: 100%;
    transition: all 0.2s ease;
}

.facet-search input:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
    outline: none;
}

.facet-search .search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
}

.facet-content {
    padding: 1rem;
}

/* Override Bootstrap card styles for facets */
.facet-sidebar .side_categories {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.facet-sidebar .side_categories dl {
    margin-bottom: 1.5rem;
}

.facet-sidebar .side_categories dl:last-child {
    margin-bottom: 0;
}

.facet-sidebar .nav-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.facet-sidebar .facet-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    gap: 8px;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.facet-sidebar .facet-item:hover {
    background: rgba(70, 149, 142, 0.05);
    transform: translateX(4px);
}

.facet-sidebar .facet-item a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 500;
}

.facet-sidebar .facet-item a:hover {
    color: var(--brand-teal);
    text-decoration: none;
}

.facet-sidebar .facet-item.selected a {
    color: var(--brand-teal) !important;
    font-weight: 500;
}

/* Facet collapse/expand transitions */
.facet-content .collapse {
    transition: all 0.3s ease;
}

.facet-content .collapse:not(.show) {
    display: none;
}

/* Facet header styling */
.facet-content .nav-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.facet-content .nav-header:hover {
    color: var(--brand-teal-dark);
    background: rgba(var(--brand-teal-rgb), 0.05);
    border-radius: 8px;
}

/* Facet chevron icons */
.facet-content .nav-header i {
    color: var(--brand-teal) !important;
    transition: transform 0.3s ease;
}

.facet-content .nav-header i.fa-chevron-right {
    transform: rotate(0deg);
}

.facet-content .nav-header i.fa-chevron-down {
    transform: rotate(0deg);
}

/* Mobile Facets - Use same styles as desktop facets but only show on mobile */
.mobile-facets-container {
    margin-top: 1rem;
    display: none; /* Hidden by default */
}

/* Show mobile facets only on mobile devices */
@media (max-width: 767.98px) {
    .mobile-facets-container {
        display: block;
    }
    
    /* Hide desktop facets on mobile devices */
    .facet-sidebar {
        display: none !important;
    }
}


/* Apply same styles as .facet-sidebar to mobile facets */
.mobile-facets-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(var(--brand-plum-rgb), 0.08);
    border: 1px solid rgba(var(--brand-plum-rgb), 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.mobile-facets-container:hover {
    box-shadow: 0 8px 30px rgba(var(--brand-plum-rgb), 0.12);
    transform: translateY(-1px);
}

.mobile-facets-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem;
    border-bottom: 1px solid rgba(var(--brand-plum-rgb), 0.1);
    position: relative;
}

.mobile-facets-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(70, 149, 142, 0.3) 0%, rgba(70, 149, 142, 0.1) 100%);
}

.mobile-facets-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-teal);
    display: flex;
    flex-wrap: wrap;  /* обрані фільтри (#mobileFacetsCurrent) — окремим рядком */
    align-items: center;
}

.mobile-facets-title i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    color: var(--brand-teal);
}

.mobile-facets-collapse-icon {
    color: var(--brand-teal) !important;
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 0.8rem;
}

.mobile-facets-search {
    position: relative;
}

.mobile-facets-search input {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    font-size: 0.875rem;
    width: 100%;
    transition: all 0.2s ease;
}

.mobile-facets-search input:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
    outline: none;
}

.mobile-facets-search .search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
}

.mobile-facets-content {
    padding: 1rem;
}

/* Override Bootstrap card styles for mobile facets */
.mobile-facets-container .side_categories {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.mobile-facets-container .side_categories dl {
    margin-bottom: 1.5rem;
}

.mobile-facets-container .side_categories dl:last-child {
    margin-bottom: 0;
}

.mobile-facets-container .nav-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-facets-container .nav-header:hover {
    color: var(--brand-teal-dark);
    background: rgba(var(--brand-teal-rgb), 0.05);
    border-radius: 8px;
}

.mobile-facets-container .facet-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    gap: 8px;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.mobile-facets-container .facet-item:hover {
    background: rgba(70, 149, 142, 0.05);
    transform: translateX(4px);
}

.mobile-facets-container .facet-item a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--brand-teal);
    font-weight: 500;
}

.mobile-facets-container .facet-item a:hover {
    color: var(--brand-teal);
    text-decoration: none;
}

.mobile-facets-container .facet-item.selected a {
    color: var(--brand-teal) !important;
    font-weight: 500;
}

/* Mobile facet collapse/expand transitions */
.mobile-facets-container .collapse {
    transition: all 0.3s ease;
}

.mobile-facets-container .collapse:not(.show) {
    display: none;
}

/* Mobile facet chevron icons */
.mobile-facets-container .nav-header i {
    color: var(--brand-teal) !important;
    transition: transform 0.3s ease;
}

.mobile-facets-container .nav-header i.fa-chevron-right {
    transform: rotate(0deg);
}

.mobile-facets-container .nav-header i.fa-chevron-down {
    transform: rotate(0deg);
}

/* Mobile Clear Filters Button */
.mobile-clear-filters-container {
    margin-top: 0.75rem;
    text-align: center;
}

/* «Усі категорії» — та сама кнопка, що «Очистити всі фільтри», у кольорі меню категорій */
.mobile-all-categories-container {
    margin: 0 0 0.75rem 0;
    text-align: center;
}
.mobile-all-categories-btn {
    background-color: var(--brand-plum);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--brand-plum-rgb), 0.2);
    width: 100%;
    position: relative;
}
.mobile-all-categories-btn:hover,
.mobile-all-categories-btn:focus {
    background-color: #7d3a5f;
    color: white;
    text-decoration: none;
}
.mobile-all-categories-btn i {
    font-size: 0.75rem;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Кнопки «Очистити всі фільтри» — темніший бірюзовий: білий текст 5:1 (WCAG AA), на var(--brand-teal) було 3:1 */
.mobile-clear-all-filters-btn {
    background-color: var(--brand-teal);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(var(--brand-teal-rgb), 0.2);
    width: 100%;
    position: relative;
}

.mobile-clear-all-filters-btn:hover {
    background-color: var(--brand-teal-dark) !important;
    border-color: var(--brand-teal-dark) !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--brand-teal-rgb), 0.3);
}

.mobile-clear-all-filters-btn:focus {
    outline: none;
    background-color: var(--brand-teal) !important;
    border-color: var(--brand-teal) !important;
    box-shadow: none !important;
}

.mobile-clear-all-filters-btn i {
    font-size: 0.75rem;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-clear-all-filters-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.mobile-clear-all-filters-btn.loading:hover {
    transform: none;
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    box-shadow: 0 2px 8px rgba(var(--brand-teal-rgb), 0.2);
}

/* Top Clear Filters Button */
.top-clear-filters-container {
    margin-top: 0.75rem;
    text-align: center;
}

.top-clear-all-filters-btn {
    background-color: var(--brand-teal);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(var(--brand-teal-rgb), 0.2);
    width: 100%;
    position: relative;
}

.top-clear-all-filters-btn:hover {
    background-color: var(--brand-teal-dark) !important;
    border-color: var(--brand-teal-dark) !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--brand-teal-rgb), 0.3);
}

.top-clear-all-filters-btn:focus {
    outline: none;
    background-color: var(--brand-teal) !important;
    border-color: var(--brand-teal) !important;
    box-shadow: none !important;
}

.top-clear-all-filters-btn i {
    font-size: 0.75rem;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.top-clear-all-filters-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.top-clear-all-filters-btn.loading:hover {
    transform: none;
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    box-shadow: 0 2px 8px rgba(var(--brand-teal-rgb), 0.2);
}

/* Force expand facets on page load */
.facet-content .collapse.show {
    display: block !important;
}
