﻿/* ===== Bộ lọc giá - Style chuyên nghiệp ===== */
.price-filter {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

    .price-filter:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .price-filter h3 {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 12px;
        text-transform: uppercase;
        border-bottom: 2px solid #4CAF50;
        display: inline-block;
        padding-bottom: 4px;
    }

    /* Danh sách checkbox */
    .price-filter .price-options {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.price-options li.active {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.price-filter .price-options li {
    display: flex;
    align-items: center;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 6px 10px;
}

    .price-filter .price-options li:hover {
        background-color: #f9f9f9;
    }

/* Style checkbox tùy chỉnh */
.price-filter input[type="checkbox"] {
    accent-color: #4CAF50; /* Màu thương hiệu (xanh thực phẩm) */
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.price-filter label {
    color: #333;
    font-size: 15px;
    cursor: pointer;
}

.price-filter input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #2e7d32;
}
/* ====== Vùng bao tổng bộ lọc ====== */
.price-side.price-filter {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

    .price-side.price-filter:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* ====== Tiêu đề ====== */
    .price-side.price-filter h3 {
        font-size: 18px;
        font-weight: 600;
        color: #2e7d32;
        margin-bottom: 16px;
        text-transform: uppercase;
        border-left: 4px solid #43a047;
        padding-left: 10px;
    }

    /* ====== Table chứa danh sách radio ====== */
    .price-side.price-filter .list-price-sort {
        width: 100%;
    }

    .price-side.price-filter .price-options {
        width: 100%;
        border-collapse: collapse;
    }

        .price-side.price-filter .price-options tr td {
            padding: 8px 0;
            display: flex;
            align-items: center;
        }

    /* ====== Tùy chỉnh radio button ====== */
    .price-side.price-filter input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #9e9e9e;
        border-radius: 50%;
        margin-right: 10px;
        cursor: pointer;
        position: relative;
        transition: all 0.25s ease;
    }

        .price-side.price-filter input[type="radio"]:checked {
            border-color: #43a047;
            background-color: #43a047;
            box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
        }

            /* Hiệu ứng vòng tròn bên trong */
            .price-side.price-filter input[type="radio"]:checked::after {
                content: "";
                position: absolute;
                top: 3px;
                left: 3px;
                width: 8px;
                height: 8px;
                background: #fff;
                border-radius: 50%;
            }

    /* ====== Label ====== */
    .price-side.price-filter label {
        font-size: 15px;
        color: #333;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .price-side.price-filter label:hover {
            color: #43a047;
        }

    .price-side.price-filter .price-options tr {
        background: transparent;
    }
    /* ====== Hiệu ứng khi dòng được chọn ====== */
    .price-side.price-filter input[type="radio"]:checked + label {
        font-weight: 600;
        color: #2e7d32;
    }

    .price-side.price-filter input[type="radio"]:checked + label {
        background-color: #e8f5e9;
        border-radius: 6px;
        padding: 4px 8px;
    }
/* ====== Phần lọc thương hiệu ====== */
.list-trademark-sort {
    margin-top: 20px;
}

    .list-trademark-sort h3 {
        font-size: 17px;
        font-weight: 600;
        color: #2e7d32;
        margin-bottom: 12px;
        text-transform: uppercase;
        border-left: 4px solid #43a047;
        padding-left: 10px;
    }

/* Style mỗi thương hiệu */
.trademark-item {
    display: flex;
    align-items: center;
    margin: 6px 0;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    /* Hover */
    .trademark-item:hover {
        background-color: #f9f9f9;
    }

    /* Nút radio tùy chỉnh */
    .trademark-item input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #9e9e9e;
        border-radius: 50%;
        margin-right: 10px;
        cursor: pointer;
        position: relative;
        transition: all 0.25s ease;
    }

        .trademark-item input[type="radio"]:checked {
            border-color: #43a047;
            background-color: #43a047;
            box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
        }

            /* Hiệu ứng chấm trắng trong radio */
            .trademark-item input[type="radio"]:checked::after {
                content: "";
                position: absolute;
                top: 3px;
                left: 3px;
                width: 8px;
                height: 8px;
                background: #fff;
                border-radius: 50%;
            }

    /* Label thương hiệu */
    .trademark-item label {
        font-size: 15px;
        color: #333;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        /* Khi hover hoặc chọn */
        .trademark-item label:hover {
            color: #43a047;
        }

    .trademark-item input[type="radio"]:checked + label {
        font-weight: 600;
        color: #2e7d32;
        background-color: #e8f5e9;
        border-radius: 6px;
        padding: 3px 8px;
    }

/* ====== Hiển thị đẹp trên mobile ====== */
@media (max-width: 768px) {
    .price-side.price-filter {
        padding: 14px 16px;
    }

    .trademark-item {
        width: 50%;
        flex-wrap: wrap;
    }

    .price-side.price-filter input[type="radio"] {
        margin-right: 4px;
    }

    .list-trademark-sort {
        display: flex;
        flex-wrap: wrap;
    }

    .price-side.price-filter h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .price-side.price-filter .price-options tr {
        width: 50%;
        display: flex;
        flex-wrap: wrap;
    }

    .price-side.price-filter .price-options tbody {
        display: flex;
        flex-wrap: wrap;
    }

    .price-side.price-filter label {
        font-size: 12px;
    }
}

/* Hiển thị responsive */
@media (max-width: 768px) {
    .price-filter {
        padding: 14px;
        font-size: 14px;
    }

        .price-filter h3 {
            font-size: 16px;
        }

        .price-filter label {
            font-size: 14px;
        }
}