/* CSS Trang danh mục - Leviccons */

/* Category Header */
.category-header {
    position: relative;
    padding: 4rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.8;
}

.category-header .category-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInDown 1s ease;
}

.category-header .category-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

.category-header .category-description {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
}

/* Filter Section */
.filter-section {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.filter-section:hover {
    box-shadow: 0 5px 15px rgba(220, 94, 79, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.filter-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.filter-toggle.collapsed {
    transform: rotate(180deg);
}

.filter-body {
    transition: all 0.3s ease;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group-title {
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    font-size: 1rem;
}

.filter-check {
    margin-bottom: 0.5rem;
}

.filter-check label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-check input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.price-slider {
    padding: 0 10px;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.price-inputs input {
    width: 45%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.filter-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.filter-buttons .btn {
    flex: 1;
    padding: 0.5rem 1rem;
}

/* Category Products */
.category-products {
    position: relative;
}

.products-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.products-count {
    font-weight: 500;
}

.products-sort {
    display: flex;
    align-items: center;
}

.products-sort label {
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.products-sort select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 0.5rem) center;
}

.products-view {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.view-btn:hover:not(.active) {
    background-color: var(--light-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f9fafb;
    border-radius: 10px;
    margin: 2rem 0;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .filter-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .products-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .products-sort {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .category-header {
        padding: 3rem 0;
    }
    
    .category-header .category-title {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
} 