.filters-container .filters {
    display: none !important;
}

.filters-container .filters.visible {
    display: block !important;
}

/* Search visibility classes */
.filters-container .header-search-advanced.search-hidden {
    display: none !important;
}

.filters-container .header-search-advanced.search-visible {
    display: block !important;
}

.filter-toggle-btn {
    position: relative !important;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #000;
    border: none;
    cursor: pointer;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.2s ease, background-color 0.3s ease;
    visibility: hidden;
    opacity: 0;
}
.filter-toggle-btn.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.filter-toggle-btn.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.filter-toggle-btn:hover {
    background-color: #333;
}

.filter-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.filter-count-badge {
    position: absolute !important;
    top: -4px;
    right: -4px;
    background-color: #1A5EDD;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    z-index: 10;
}

.filter-count-badge:empty {
    display: none !important;
}

.filter-count-badge.has-count {
    display: flex !important;
}

@media (max-width: 1199px) {
    .filter-toggle-btn {
        order: -1;
    }
}

@media (min-width: 1200px) {
    .filters-container .filter-toggle-btn.moved-to-header {
        display: none !important;
    }
    
    .site-header-main-section-left .filter-toggle-btn {
        display: flex !important;
        flex-shrink: 0;
        margin-left: 4px;
    }
    
    .header-html-inner .filter-toggle-btn {
        display: flex !important;
        flex-shrink: 0;
    }
    
    .header-html-inner {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
    
    #main-header .filter-toggle-btn,
    .site-header-row-container .filter-toggle-btn,
    header .filter-toggle-btn,
    .site-header .filter-toggle-btn,
    .header-html2 .filter-toggle-btn {
        display: flex !important;
        flex-shrink: 0;
        align-self: center;
    }
}

@media (min-width: 1920px) {
    .filters-container .header-search-advanced.moved-to-header {
        display: none !important;
    }
    
    .site-header-main-section-left .header-search-advanced.moved-to-header {
        display: block !important;
        margin-left: 15px;
    }
    
    .site-header-main-section-left .header-search-advanced.moved-to-header.search-hidden {
        display: none !important;
    }
    
    .site-header-main-section-left .header-search-advanced.moved-to-header.search-visible {
        display: block !important;
    }
}

.filters-container {
    width: 100vw;
    margin: 0 -20px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0px 4px 16px rgba(7, 22, 52, 0.05);
}

.filters-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
}

@media (max-width: 1199px) {
    .filters-content-wrapper {
        display: flex !important;
    }
    
    .filters-content-wrapper .filters {
        display: none !important;
    }
    
    .filters-content-wrapper .filters.visible {
        display: block !important;
    }
    
    .filters-content-wrapper .header-search-advanced {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .filters-content-wrapper {
        display: none;
        width: 100%;
        flex: none;
    }
    
    .filters-content-wrapper.visible {
        display: block;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
}

.filters-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filters-content .filters {
    display: none !important;
}

.filters-content .filters.visible {
    display: block !important;
}

.filters-content .header-search-advanced.search-hidden {
    display: none !important;
}

.filters-content .header-search-advanced.search-visible {
    display: block !important;
}

.items {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-container > .separator {
    flex: 1;
    min-width: 25px !important;
}

.header-item-search-advanced {
    width: 100% !important;
    max-width: 334px !important;
    align-content: center;
}

@media (max-width: 1024px) {
    .filters-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 468px) {
    .header-item-search-advanced {
        max-width: none !important;
    }

    .items {
        flex: 1;
        width: 100% !important;
        justify-content: space-between;
    }
}

.brands-section {
    width: 100%;
    margin-top: 20px;
}

.brands-section-title {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 29px;
    letter-spacing: 0.4px;
    color: #000000;
    margin-bottom: 16px;
    text-align: center;
    justify-content: center;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
    width: 88px;
    box-sizing: border-box;
}

.brand-card:hover {
    border-color: #ccc;
}

.brand-card.active {
    border: 1px solid black;
}

.brand-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-card-image-placeholder {
    width: 100%;
    height: auto;
    border-radius: 4px;
    font-size: 10px;
    text-align: center;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .brands-grid {
        gap: 12px;
    }
}

.items button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.items button svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 468px) {
    .items button {
        font-size: 12px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Jewelry Categories Section */
.jewelry-categories-section {
    width: 100%;
    margin-top: 20px;
}

.jewelry-categories-section-title {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 29px;
    letter-spacing: 0.4px;
    color: #000000;
    margin-bottom: 16px;
    text-align: center;
    justify-content: center;
}

.jewelry-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    min-width: 88px;
    box-sizing: border-box;
    gap: 8px;
}

.category-card:hover {
    border-color: #ccc;
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.category-card.active {
    border: 1px solid #000;
    background: #f8f8f8;
}

.category-card-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.category-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
}

.category-card-image-placeholder {
    width: 100%;
    height: auto;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    word-wrap: break-word;
    color: #333;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .jewelry-categories-grid {
        gap: 12px;
    }
    
    .category-card {
        min-width: 100px;
        padding: 10px 12px;
    }
    
    .category-card-image {
        width: 28px;
        height: 28px;
    }
    
    .category-card-title {
        font-size: 11px;
    }
    
    .category-card-image-placeholder {
        font-size: 11px;
    }
}

