/* category/category.php — винесено з inline <style> 20260908_2104 */
/* Breadcrumbs */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #4A90E2;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-weight: bold;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    padding: 40px 0 10px;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #1f2937;
    font-weight: 600;
    margin-top: 0;
}

/* Subcategories Section */
.subcategories-section {
    padding: 10px 0 20px;
    background-color: #fff;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subcategory-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.subcategory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #4A90E2;
    color: #4A90E2;
}

.subcategory-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.subcategory-btn.disabled {
    background: #f5f5f5;
    color: #aaa;
    border-color: #e0e0e0;
    cursor: not-allowed;
    box-shadow: none;
}

.subcategory-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
    color: #aaa;
}

/* Models Section */
.models-section {
    padding: 20px 0;
    background-color: white;
    overflow-x: hidden;
}

/* Skeleton лоадер */
.models-skeleton {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 360px;
    height: 580px;
    animation: pulse 2s infinite;
}

.skeleton-image {
    width: 100%;
    height: 480px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.skeleton-content {
    padding: 15px;
    height: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

.skeleton-price {
    height: 24px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Pagination */
.pagination {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    margin-top: 40px;
}

.pagination-info {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
}

.pagination-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.pagination-btn.active {
    border-color: #4A90E2;
    background: #4A90E2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .subcategories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 10px 0;
    }

    .breadcrumb-nav {
        font-size: 12px;
    }

    .hero-section {
        padding: 30px 0 10px;
    }

    .hero-section h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .subcategories-section {
        padding: 10px 0;
    }

    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }

    .subcategory-btn {
        padding: 15px 10px;
        font-size: 14px;
    }

    .models-skeleton {
        padding: 0 10px;
    }

    .pagination-controls {
        gap: 5px;
    }

    .pagination-btn {
        padding: 8px 12px;
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .subcategory-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
}
    
