﻿.filter-box {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 15px;
    overflow: hidden;
}

.filter-header {
    background: #3e6807;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.filter-body {
    padding: 15px;
}

.category-section-header {
    background: #3e6807;
    color: white;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.category-filter-list {
    max-height: 200px;
    overflow-y: auto;
}

.form-check {
    margin-bottom: 10px;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.form-check-input-pc {
    margin-right: 10px;
    margin-top: 2px;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #ddd !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    position: relative;
    flex-shrink: 0;
}

    .form-check-input-pc:checked {
        background-color: #28a745 !important;
        border-color: #28a745 !important;
    }

    .form-check-input-pc:focus {
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    }

    .form-check-input-pc[type="checkbox"] {
        border-radius: 3px !important;
    }

.form-check-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2px 0;
}

    .form-check-label:hover {
        color: #28a745;
    }

.category-count {
    color: #666;
    font-size: 12px;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    width: 120px;
}

.pagination-custom .page-link {
    color: #28a745;
    border: 1px solid #dee2e6;
}

.pagination-custom .page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
}

.pagination-custom .page-link:hover {
    color: #1e7e34;
    background-color: #e9ecef;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-title-pc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .filters-mobile {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px;
    }

        .filters-mobile.show {
            left: 0;
        }

    .card-title-pc {
        white-space: normal !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}
