/* Products Controls */
.products-controls-wrapper {
    margin-bottom: 40px;
}

.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.products-results-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.products-filters-sorting {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.products-filters,
.products-sorting {
    display: flex;
    gap: 15px;
    align-items: center;
}

.products-filters select,
.products-sorting select {
    padding: 10px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1B5A9B;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-filters select:hover,
.products-sorting select:hover,
.products-filters select:focus,
.products-sorting select:focus {
    border-color: #1FD3FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 211, 255, 0.1);
}

/* Pagination Styles */
.products-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #E0E0E0;
    background: white;
    color: #1B5A9B;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.pagination-wrapper .current {
    background: linear-gradient(135deg, #1FD3FF 0%, #294AFF 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(31, 211, 255, 0.3);
}

.pagination-wrapper a:hover {
    background: #f8f9fa;
    border-color: #1FD3FF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(31, 211, 255, 0.2);
}

.pagination-wrapper .dots {
    border: none;
    background: none;
    color: #999999;
}

/* No Products Found */
.no-products-found {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.no-products-content svg {
    color: #E0E0E0;
    margin-bottom: 24px;
}

.no-products-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1B5A9B;
}

.no-products-content p {
    font-family: 'Inter', sans-serif;
    color: #666666;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 24px;
}

/* Loading States */
.products-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1FD3FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-spinner p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1B5A9B;
    font-weight: 500;
    margin: 0;
}

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

/* Highlight effect for smooth scroll */
.products-section.highlighted {
    animation: sectionHighlight 2s ease-out;
}

@keyframes sectionHighlight {
    0% {
        background: rgba(31, 211, 255, 0.1);
    }
    100% {
        background: transparent;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-filters-sorting {
        justify-content: center;
        width: 100%;
    }
    
    .products-results-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .products-controls-wrapper {
        margin-bottom: 30px;
    }
    
    .products-filters-sorting {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .products-filters,
    .products-sorting {
        width: 100%;
        justify-content: center;
    }
    
    .products-filters select,
    .products-sorting select {
        width: 100%;
        max-width: 300px;
    }
    
    .pagination-wrapper {
        gap: 4px;
    }
    
    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .no-products-found {
        padding: 60px 20px;
    }
    
    .no-products-content h3 {
        font-size: 20px;
    }
    
    .no-products-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .products-controls-wrapper {
        margin-bottom: 20px;
    }
    
    .products-filters select,
    .products-sorting select {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .products-results-info {
        font-size: 13px;
    }
    
    .pagination-wrapper {
        gap: 2px;
    }
    
    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .loading-spinner p {
        font-size: 14px;
    }
    
    .spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
}