/* catalogStyle.css - GLASSMORPHISM ДИЗАЙН С ФОНОМ КАК НА ГЛАВНОЙ */

/* Убираем фон у body из mainFormStyle.css чтобы не было конфликта */
.catalog-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Основные стили для каталога - ПРОЗРАЧНЫЙ С ФОНОМ КАК НА ГЛАВНОЙ */
.catalog {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 40px;
    padding: 60px 70px;
    box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    margin: 0 auto;
}

.catalog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.catalog::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* Контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* Заголовок каталога - БЕЛЫЙ ЦВЕТ ДЛЯ КОНТРАСТА */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    width: 100%;
    flex-wrap: wrap;
    gap: 40px;
}

/* Обновленный заголовок "Каталог товаров" - БЕЛЫЙ */
.catalog-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 20px;
    flex: 1;
    min-width: 300px;
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.catalog-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
}

/* Обновленные фильтры - СВЕТЛЫЙ GLASSMORPHISM */
.catalog-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    flex: 2;
    min-width: 300px;
}

.filter-select {
    min-width: 220px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.filter-select option {
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 10px;
}

/* Сетка товаров - 3 КАРТОЧКИ В РЯДУ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    width: 100%;
}

/* ОБНОВЛЕННАЯ КАРТОЧКА ТОВАРА - БЕЛЫЙ ФОН ДЛЯ КОНТРАСТА */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    width: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0 24px 48px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(102, 126, 234, 0.1);
    background: white;
    border-color: rgba(102, 126, 234, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f6f9fc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Бейдж категории */
.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.product-card:hover .category-badge {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ТЕМНЫЙ ТЕКСТ ДЛЯ КОНТРАСТА НА БЕЛОМ ФОНЕ */
.product-name {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2D3748;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
    transition: color 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.product-card:hover .product-name {
    color: #667eea;
}

.product-description {
    color: #718096;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #2D3748;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.product-price::before {
    content: '₽';
    font-size: 20px;
    opacity: 0.8;
    font-weight: 500;
}

.product-stock {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.product-stock.in-stock {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
    border-color: rgba(72, 187, 120, 0.2);
}

.product-stock.out-of-stock {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border-color: rgba(245, 101, 101, 0.2);
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.btn-add-to-cart {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.btn-add-to-cart:hover:not(:disabled)::before {
    left: 100%;
}

.btn-add-to-cart:disabled {
    background: #cbd5e0;
    color: #718096;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-view-details {
    flex: 1;
    padding: 14px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-view-details:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

/* Иконки в кнопках */
.btn-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover .btn-icon {
    transform: translateX(3px);
}

.btn-view-details:hover .btn-icon {
    transform: rotate(90deg);
}

/* ОБНОВЛЕННАЯ ПАГИНАЦИЯ - ЯРКАЯ И ВИДИМАЯ */
.pagination-container {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}

.pagination-btn {
    padding: 16px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.pagination-btn:hover:not(:disabled)::before {
    left: 100%;
}

.pagination-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pagination-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pagination-number:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

.pagination-dots {
    padding: 10px 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: bold;
    user-select: none;
}

/* Обновленная информация о странице - ЯРКАЯ */
.page-info {
    text-align: center;
    margin: 24px auto 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 16px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
}

.page-info span {
    font-weight: 700;
    color: white;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    margin: 0 6px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Индикатор загрузки */
.loading-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    width: 100%;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #667eea;
    border-right: 4px solid #764ba2;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* Пустой каталог */
.empty-catalog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin: 20px 0;
    width: 100%;
}

.empty-catalog-icon {
    font-size: 56px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-catalog h3 {
    margin-bottom: 16px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.empty-catalog p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    font-size: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-reset-filters {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.btn-reset-filters:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

/* Сообщение об ошибке */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.2) 0%, rgba(255, 229, 229, 0.2) 100%);
    border: 2px solid rgba(229, 62, 62, 0.5);
    border-radius: 24px;
    margin: 20px 0;
    width: 100%;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 24px;
    color: rgba(229, 62, 62, 0.8);
}

.error-message h3 {
    margin-bottom: 16px;
    color: rgba(229, 62, 62, 0.9);
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.error-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    font-size: 15px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-retry {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.btn-retry:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.3);
    z-index: 1000;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
    font-weight: 600;
    font-size: 15px;
    border-left: 4px solid #48bb78;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #48bb78;
}

.notification.error {
    border-left-color: #e53e3e;
}

.notification.info {
    border-left-color: white;
}

/* АНИМАЦИИ ДЛЯ КАРТОЧЕК */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }

/* АДАПТИВНОСТЬ */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 70px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 50px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1100px) {
    .container {
        padding: 0 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 32px;
    }

    .catalog {
        padding: 40px;
    }

    .catalog-header {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
    }

    .catalog-filters {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 20px;
    }

    .filter-select {
        min-width: 48%;
        font-size: 14px;
        padding: 12px 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image {
        height: 220px;
    }
}

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

    .catalog {
        padding: 32px;
        border-radius: 28px;
    }

    .catalog-title {
        font-size: 32px;
    }

    .catalog-filters {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .filter-select {
        min-width: 100%;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 16px;
    }

    .pagination-btn {
        min-width: 120px;
        padding: 14px 20px;
        font-size: 14px;
    }

    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 24px;
    }

    .catalog {
        padding: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 20px;
    }

    .product-name {
        font-size: 18px;
    }

    .product-price {
        font-size: 24px;
    }

    .btn-add-to-cart,
    .btn-view-details {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .catalog {
        padding: 20px;
        border-radius: 20px;
    }

    .catalog-title {
        font-size: 28px;
        padding-left: 16px;
    }

    .product-image {
        height: 180px;
    }

    .pagination {
        flex-direction: column;
        gap: 12px;
    }

    .pagination-numbers {
        order: 1;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 6px;
    }

    .pagination-btn {
        order: 2;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .catalog {
        padding: 16px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 16px;
        min-height: 44px;
    }

    .product-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .product-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .pagination-numbers {
        gap: 4px;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }

    .products-grid {
        gap: 16px;
    }

    .product-image {
        height: 150px;
    }
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(102, 126, 234, 0.5);
    color: white;
}