/* Products Pagination Styles */
.tj-pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Products Grid Styles */
.tj-products-area {
    padding: 80px 0;
}

.tj-product-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tj-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tj-product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.tj-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tj-product-item:hover .tj-product-image img {
    transform: scale(1.05);
}

.tj-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tj-product-item:hover .tj-product-overlay {
    opacity: 1;
}

.tj-product-actions {
    display: flex;
    gap: 10px;
}

.tj-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #007bff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tj-product-btn:hover {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.tj-product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tj-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tj-product-category {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.tj-product-price {
    color: #007bff;
    font-weight: 700;
    font-size: 18px;
}

.tj-product-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.tj-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tj-product-title a:hover {
    color: #007bff;
}

.tj-product-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 14px;
}

.tj-product-footer {
    margin-top: auto;
}

.tj-product-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.tj-product-link:hover {
    background: transparent;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tj-products-area {
        padding: 60px 0;
    }
    
    .tj-product-item {
        margin-bottom: 25px;
    }
    
    .tj-product-image {
        height: 200px;
    }
    
    .tj-product-content {
        padding: 20px;
    }
    
    .tj-product-title {
        font-size: 18px;
    }
    
    .tj-product-price {
        font-size: 16px;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .page-link {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .tj-product-image {
        height: 180px;
    }
    
    .tj-product-content {
        padding: 15px;
    }
    
    .tj-product-title {
        font-size: 16px;
    }
    
    .tj-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .page-link {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}

/* Animation for page transitions */
.tj-product-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple items */
.tj-product-item:nth-child(1) { animation-delay: 0.1s; }
.tj-product-item:nth-child(2) { animation-delay: 0.2s; }
.tj-product-item:nth-child(3) { animation-delay: 0.3s; }
.tj-product-item:nth-child(4) { animation-delay: 0.4s; }
.tj-product-item:nth-child(5) { animation-delay: 0.5s; }
.tj-product-item:nth-child(6) { animation-delay: 0.6s; }
.tj-product-item:nth-child(7) { animation-delay: 0.7s; }
.tj-product-item:nth-child(8) { animation-delay: 0.8s; }
.tj-product-item:nth-child(9) { animation-delay: 0.9s; }