/* Custom Pagination Styles */
.custom-pagination-area {
    padding: 20px 0;
    border-top: 1px solid #ececec;
    margin-top: 40px;
}

.custom-pagination-area .pagination {
    margin: 0;
    justify-content: center;
}

.custom-pagination-area .page-item {
    margin: 0 5px;
}

.custom-pagination-area .page-link {
    background-color: transparent;
    border: 2px solid #ececec;
    color: #7e7e7e;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.custom-pagination-area .page-link:hover {
    background-color: #3BB77E;
    border-color: #3BB77E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.3);
}

.custom-pagination-area .page-item.active .page-link {
    background-color: #3BB77E;
    border-color: #3BB77E;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.3);
}

.custom-pagination-area .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-pagination-area .page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.custom-pagination-area .page-link.dot {
    border: none;
    background: none;
    color: #7e7e7e;
    cursor: default;
    padding: 12px 8px;
}

.custom-pagination-area .page-link.dot:hover {
    background: none;
    border: none;
    color: #7e7e7e;
    transform: none;
    box-shadow: none;
}

.custom-pagination-area .page-link i {
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-pagination-area .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .custom-pagination-area .page-item {
        margin: 2px;
    }
    
    .custom-pagination-area .page-link {
        padding: 8px 12px;
        min-width: 36px;
        min-height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .custom-pagination-area .page-link {
        padding: 6px 10px;
        min-width: 32px;
        min-height: 32px;
        font-size: 12px;
    }
}

/* Animation for page transitions */
.product-grid {
    transition: opacity 0.3s ease-in-out;
}

.product-grid.loading {
    opacity: 0.6;
}

/* Loading spinner improvements */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.spinner-border.text-primary {
    color: #3BB77E !important;
}

/* Product count styling */
.totall-product p {
    font-size: 16px;
    font-weight: 500;
    color: #253D4E;
    margin-bottom: 0;
}

.totall-product p strong {
    color: #3BB77E;
    font-weight: 700;
}

/* Enhanced pagination info */
.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info .results-info {
    color: #7e7e7e;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pagination-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Improved button styling for "Get Quotation" */
.get-quotation-btn {
    background: linear-gradient(135deg, #3BB77E 0%, #2DA05A 100%);
    border: none;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.get-quotation-btn:hover {
    background: linear-gradient(135deg, #2DA05A 0%, #228B47 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.3);
    color: white !important;
}

.get-quotation-btn i {
    font-size: 12px;
}
