.container-background {
    background: #ffffff;
}

#categorySearch::placeholder {
    color: #020202;
    opacity: 3;
}

#productSearch::placeholder {
    color: #020202;
    opacity: 0.7;
}

.search-input-container {
    position: relative;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
    z-index: 10;
}

.search-clear-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Filter accordion */
.filter-accordion {
    margin-top: 12px;
    border-top: 1px solid #eee;
}

.filter-accordion-item {
    border-bottom: 1px solid #eee;
}

.filter-accordion-toggle {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111111;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.filter-accordion-toggle:focus {
    outline: none;
}

.filter-accordion-icon {
    position: relative;
    width: 12px;
    height: 12px;
    display: inline-block;
}

.filter-accordion-icon::before,
.filter-accordion-icon::after {
    content: "";
    position: absolute;
    background: #111111;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.filter-accordion-icon::before {
    width: 12px;
    height: 2px;
}

.filter-accordion-icon::after {
    width: 2px;
    height: 12px;
    left: 5px;
}

.filter-accordion-toggle[aria-expanded="true"] .filter-accordion-icon::after {
    opacity: 0;
    transform: translateY(-50%) scaleY(0);
}

.filter-accordion-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.35s ease,
        opacity 0.2s ease;
    visibility: hidden;
    pointer-events: none;
}

.filter-accordion-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Fix checkbox alignment */
.custom-control {
    display: flex;
    align-items: center;
}

.custom-control-label {
    margin-bottom: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.custom-control-label::before,
.custom-control-label::after {
    top: 0;
    margin-top: 0;
}

/* Color circle style */
.color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Attribute chips */
.attribute-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.attribute-chip {
    position: relative;
    cursor: pointer;
}

.attribute-chip-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attribute-chip-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
}

.attribute-chip-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    flex-shrink: 0;
}

.attribute-chip-input:checked + .attribute-chip-inner {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.attribute-chip-input:checked + .attribute-chip-inner .attribute-chip-color {
    border-color: rgba(255, 255, 255, 0.6);
}

.attribute-chip-input:focus + .attribute-chip-inner {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* Scrollable filter lists */
.filter-list-scrollable {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.filter-list-scrollable::-webkit-scrollbar {
    width: 5px;
}

.filter-list-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.filter-list-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.filter-list-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Scrollable checkbox list for attributes */
.ub-checkbox-list.filter-list-scrollable {
    max-height: 200px;
}

/* Tag list scrollable */
#tagList.filter-list-scrollable {
    max-height: 250px;
}

/* Category list scrollable */
ul.set-length.filter-list-scrollable {
    max-height: 300px;
}

.single-category-mode .category-selection-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.single-category-mode .custom-control {
    padding-left: 0.5rem !important;
}

.single-category-mode .custom-control-label::before,
.single-category-mode .custom-control-label::after {
    display: none !important;
}

.single-category-mode .custom-control-label {
    padding-left: 0 !important;
    color: #212529;
    font-weight: 400;
}

.single-category-mode .category-selection-input:checked + .custom-control-label {
    color: var(--primary) !important;
    font-weight: 700;
}
