/* استایل‌های صفحه جزییات دسته‌بندی */
.category-page {
    margin-top: 145px;
}

.breadcrumb {
    padding: 15px 0;
    background: white;
    border-bottom: 1px solid var(--gray-border);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.breadcrumb a:hover {
    color: var(--main-color-one);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-muted);
}

.filter-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid var(--gray-border);
}

.filter-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-select {
    padding: 8px 16px;
    background: #f8f9fc;
    border: 1px solid var(--gray-border);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.category-main-section {
    padding: 50px 0;
    background: #fafafc;
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.filter-sidebar {
    background: white;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--gray-border);
    position: sticky;
    top: 200px;
    height: fit-content;
}

.filter-sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-border);
}

.filter-sidebar-section {
    margin-bottom: 25px;
}

.filter-sidebar-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--main-color-one);
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-inputs input {
    width: 100%;
    padding: 8px 12px;
    background: #f8f9fc;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    font-size: 0.8rem;
}

.apply-filter-btn {
    width: 100%;
    padding: 10px;
    background: var(--main-color-one);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-border);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-color-one);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fc;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 18px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-model {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--main-color-one);
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-btn {
    flex: 1;
    padding: 8px;
    background: #f8f9fc;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.product-btn:hover {
    background: var(--main-color-one);
    border-color: var(--main-color-one);
    color: #000;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link.active,
.page-link:hover {
    background: var(--main-color-one);
    border-color: var(--main-color-one);
    color: #000;
}

.category-description {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--gray-border);
}

.category-description h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.loading-products {
    grid-column: 1/-1;
    text-align: center;
    padding: 50px;
}

@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        display: none;
    }

    .filter-sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        overflow-y: auto;
        margin: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-page {
        margin-top: 120px;
    }
}