.wc-category-tree {
    font-size: 16px;
    line-height: 1.6;
    display: none;
}

.wc-category-tree ul.product-categories {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.wc-category-tree li.cat-item {
    margin: 10px 0;
}

.wc-category-tree .category-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc-category-tree a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.wc-category-tree a:hover {
    color: #ff6600;
}

.wc-category-tree .toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #f2f2f2;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 5px;
    text-align: center;
    line-height: 16px;
    color: #555;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    aspect-ratio: 1;
}

.wc-category-tree .toggle.open {
    /* background-color: #ff6600; */
    color: #fff;
}

.wc-category-tree ul.children {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0 20px;
    display: none;
}

.wc-category-tree ul.children li.cat-item {
    margin: 5px 0;
}

.wc-category-tree ul.children li.cat-item:last-child {
    margin-bottom: 0;
}

.wc-category-tree .toggle:before {
    content: '+';
    font-size: 14px;
    font-weight: bold;
}

.wc-category-tree .toggle.open:before {
    content: '-';
}

.wc-category-tree .category-icon {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.swa-tag-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swa-tag-control input[type="checkbox"] {
    display: none;
}

.swa-tag-control label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #444;
    user-select: none;
    margin: 0;
}

.swa-tag-control label:hover {
    background: #ebebeb;
    border-color: #ddd;
}

.swa-tag-control input[type="checkbox"]:checked+label {
    background: #333;
    color: #fff;
    border-color: #333;
}

.swa-tag-control input[type="checkbox"]:checked+label .filter-count {
    color: #aaa;
}

.swa-tag-control .tag-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    object-fit: contain;
}

.swa-tag-toggle-icon {
    cursor: pointer;
    transition: transform 0.3s;
}

.swa-tag-toggle-icon.closed {
    transform: rotate(180deg);
}

.wc-category-tree .icon-name-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Raspon cijena */
.price-range {
    margin-bottom: 30px;
}

.price-range header h2 {
    font-size: 24px;
    font-weight: 600;
}

.price-range header p {
    margin-top: 5px;
    font-size: 16px;
}

.price-range .price-input {
    width: 100%;
    display: flex;
    margin: 10px 0 35px;
}

.price-range .price-input .field {
    display: flex;
    width: 100%;
    height: 45px;
    align-items: center;
}

.price-range .field input {
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 16px;
    margin-left: 3px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #dbdbdb;
    -moz-appearance: textfield;
}

.price-range input[type="number"]::-webkit-outer-spin-button,
.price-range input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.price-range .price-input .separator {
    width: 55px;
    display: flex;
    font-size: 19px;
    align-items: center;
    justify-content: center;
}

.price-range .price-range-slider {
    height: 5px;
    position: relative;
    background: #ddd;
    border-radius: 5px;
}

.price-range .price-range-slider .price-range-progress {
    height: 100%;
    left: 0;
    right: 0;
    position: absolute;
    border-radius: 5px;
}

.price-range .range-input {
    position: relative;
}

.price-range .range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: -7px;
    left: -2px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    height: 17px;
    width: 17px;
    border-radius: 50%;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.price-range input[type="range"]::-moz-range-thumb {
    height: 17px;
    width: 17px;
    border: none;
    border-radius: 50%;
    pointer-events: auto;
    -moz-appearance: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.price-range .button {
    width: 100%;
    margin-top: 30px;
    font-size: 14px;
}

.disabled-filter {
    opacity: 0.4;
    pointer-events: none;
}

.checkbox-skeletons {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.checkbox-skeleton.lg {
    width: 150px;
    height: 20px;
    background-color: #f0f0f0;
    margin: 5px;
    border-radius: 5px;
}

.checkbox-skeleton.md {
    width: 100px;
    height: 20px;
    background-color: #f0f0f0;
    margin: 5px;
    border-radius: 5px;
}

.checkbox-skeleton.sm {
    width: 20px;
    height: 20px;
    background-color: #f0f0f0;
    margin: 5px;
    border-radius: 5px;
}

/* Animation effect */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.5;
    }
}

.checkbox-skeleton {
    animation: skeleton-pulse 1s ease-in-out infinite;
}

.hidden-filter {
    display: none;
}

.filter-count {
    color: #999;
}

.attr-filter {
    text-transform: capitalize;
}

.attr-filter legend {
    font-weight: bold;
}

.swa-filters-container h4 {
    font-size: 20px !important;
    margin-bottom: 5px !important;
}

.swa-color-filter {
    margin-bottom: 30px;
}

.swa-color-toggle-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #555;
}

.swa-color-toggle-icon.closed {
    transform: rotate(180deg);
}

.swa-color-filter-content {
    margin-top: 15px;
}

.swa-color-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.swa-color-filter .swa-color-control {
    flex-shrink: 0;
    display: flex;
}

.swa-color-filter :where(input[type=checkbox], input.checkbox) {
    display: none;
}

.swa-color-filter [data-visual-type=only-squares] label {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    background-position: 50%;
    background-size: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swa-color-filter label {
    display: flex;
    justify-self: flex-start;
    cursor: pointer;
    font-weight: 400;
    line-height: 1;
}

.swa-color-filter .item-label {
    position: absolute;
    z-index: 999;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    pointer-events: none;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.swa-color-filter .item-label:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.swa-color-control:hover .item-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.swa-color-control:hover label {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swa-color-control input[type="checkbox"]:checked+label {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
    transform: scale(1.05);
}

.swa-color-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.swa-current-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.swa-color-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.swa-color-reset:hover {
    color: #000;
}

.swa-color-reset svg {
    transition: transform 0.3s;
}

.swa-color-reset:hover svg {
    transform: rotate(90deg);
}

.swa-color-transparent .swa-transparent-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
}

.swa-color-transparent .swa-transparent-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}