.gemat-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.gemat-price {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gemat-price label {
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fs-color-secondary, #242424);
    padding: 2px 10px 2px 4px;
    transition: background 0.12s, border-color 0.12s;

    /* Custom radio button */
    position: relative;
}

.gemat-price label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #bfc7d1;
    border-radius: 50%;
    background: #fff;
    outline: none;
    margin: 0;
    margin-right: 6px;
    cursor: pointer;
    transition: border-color 0.15s;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.gemat-price label input[type="radio"]:checked {
    border-color: var(--fs-color-primary, green);
}

.gemat-price label input[type="radio"]:focus {
    border-color: var(--fs-color-primary, green);
    box-shadow: 0 0 0 2px #dde4fa;
}

.gemat-price label:hover {
    background: #f2f3f7;
}

#gemat-products.loading {
    opacity: 0.4;
    pointer-events: none;
}

.gemat-cat-dropdown {
    position: relative;
}

.gemat-cat-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--fs-color-secondary, #242424);
    cursor: pointer;
    border-radius: 6px;
    color: var(--fs-color-secondary, #242424);
    font-weight: 500;
    font-size: 14px;
    background: #fff;
    gap: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gemat-cat-toggle:hover,
.gemat-cat-toggle:focus {
    border-color: #a9b1bb;
    box-shadow: 0 1px 4px rgba(36, 36, 36, 0.06);
}

.gemat-cat-toggle img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 5px;
}

.gemat-cat-menu {
    position: absolute;
    z-index: 20;
    top: 106%;
    left: 0;
    min-width: 340px;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--fs-color-secondary, #242424);
    border-radius: 6px;
    padding: 3px 0;
    list-style: none;
    margin: 0;
    display: none;
    max-height: 600px;
    overflow: auto;
    box-shadow: 0 4px 18px rgba(36, 36, 36, 0.10);
}

.gemat-cat-menu .gemat-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 4px;
    transition: background 0.13s;
    color: var(--fs-color-secondary, #242424);
}

.gemat-cat-menu .gemat-cat-item:hover {
    background: #f2f3f7;
}

.gemat-cat-menu .gemat-cat-item img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 5px;
}

.gemat-cat-menu .gemat-cat-item.is-active {
    background: #e9f6fa !important;
}

.gemat-clear {
    padding: 6px 10px;
    border: 1px solid var(--fs-color-secondary, #cfd8dc);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: var(--fs-color-secondary, #242424);
    transition: border-color 0.14s, color 0.14s, background 0.12s;
}

.gemat-clear:hover {
    border-color: var(--fs-color-secondary, #242424);
    background: #f9fafb;
    color: #0097a7;
}

/* Custom radio (vuông) cho price range */
.gemat-price input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 2px solid var(--fs-color-secondary, #cfd8dc);
    border-radius: 3px;
    display: inline-block;
    position: relative;
    background: #fff;
    vertical-align: middle;
    transition: border-color 0.12s, background 0.12s;
}

.gemat-price input[type="radio"]:checked {
    border-color: var(--fs-color-secondary, #242424);
    background-color: var(--fs-color-secondary, #242424);
    box-shadow: inset 0 0 0 3px #fff;
}