/* Category Page Styles - Mobile Town E-commerce */
 a{
    text-decoration: none;
}
/* Breadcrumb Navigation */

.breadcrumb-nav {
    margin: 20px 0;
}

.breadcrumb {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #3451c9;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-hero-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
    opacity: 0.2;
}

.category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-content {
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.category-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.95;
}

.category-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.product-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Filter and Sort Bar */
.filter-sort-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-toggle-btn {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: none;
}

.filter-toggle-btn:hover {
    background: #3451c9;
}

.product-count-display {
    color: #6c757d;
    font-size: 14px;
}

.sort-dropdown select {
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #4a6cf7;
}

/* Main Content Layout */
.category-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.filters-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.close-filters {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-filters:hover {
    color: #2d3748;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

/* Price Range Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.price-inputs input:focus {
    outline: none;
    border-color: #4a6cf7;
}

.price-inputs span {
    color: #6c757d;
    font-size: 14px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.filter-checkbox:hover {
    background: #f8f9fa;
}

.filter-checkbox input {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-checkbox span {
    font-size: 14px;
    color: #4a5568;
}

/* Filter Actions */
.filter-actions {
    margin-top: 25px;
}

/* Products Section */
.products-section {
    min-height: 400px;
}

/* Product Brand */
.product-brand {
    font-size: 12px;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Out of Stock Badge */
.out-of-stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

/* Pagination */
.pagination-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #4a6cf7;
    color: #4a6cf7;
}

.page-item.active .page-link {
    background: #4a6cf7;
    border-color: #4a6cf7;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.empty-state p {
    color: #718096;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .category-content {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        max-width: 90vw;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .filter-toggle-btn {
        display: block;
    }
    
    .close-filters {
        display: block;
    }
    
    .category-hero {
        padding: 30px 20px;
    }
    
    .category-hero h1 {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .filter-sort-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-count-display {
        order: -1;
        text-align: center;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .sort-dropdown select {
        width: 100%;
    }
    
    .category-hero {
        padding: 25px 15px;
    }
    
    .category-hero h1 {
        font-size: 1.75rem;
    }
    
    .category-hero-image {
        width: 100%;
        opacity: 0.1;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .category-hero h1 {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Overlay for mobile filter */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.filter-overlay.active {
    display: block;
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.loading-spinner i {
    font-size: 3rem;
    color: #4a6cf7;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
