/* Store Filter Styles */

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 2rem;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    color: #f28b00;
    background-color: #fff;
    border: 1px solid #f28b00;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f28b00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(242, 139, 0, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: #f28b00;
    color: #fff;
    border-color: #f28b00;
    box-shadow: 0 4px 8px rgba(242, 139, 0, 0.3);
}

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

/* Filter Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.badge a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.badge a:hover {
    opacity: 1;
}

/* Product Card Enhancements */
.product-item {
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-item-inner {
    overflow: hidden;
    background: #fff;
}

.product-item-inner img {
    transition: transform 0.5s ease;
}

.product-item:hover .product-item-inner img {
    transform: scale(1.1);
}

/* Sort Dropdown */
#sort-select {
    border: 1px solid #f28b00;
    color: #f28b00;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sort-select:focus {
    border-color: #f28b00;
    box-shadow: 0 0 0 0.2rem rgba(242, 139, 0, 0.25);
}

/* Filter Form Styles */
.form-check-input:checked {
    background-color: #f28b00;
    border-color: #f28b00;
}

.form-check-input:focus {
    border-color: #f28b00;
    box-shadow: 0 0 0 0.25rem rgba(242, 139, 0, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    #sort-select {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Active Filter Badges Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge {
    animation: slideIn 0.3s ease;
}

/* Stock Badge Styles */
.badge.bg-warning.text-dark {
    background-color: #ffc107 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Loading State for Filter Form */
.filter-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.filter-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f28b00;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Empty State Styling */
.bg-light.rounded.p-5 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bg-light.rounded.p-5 i {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Price Display */
.text-danger.fw-bold {
    color: #dc3545 !important;
}

.text-primary.fw-bold {
    color: #f28b00 !important;
}

/* View Count */
.text-muted.small {
    font-size: 0.85rem;
}

/* Heart Icon */
.text-danger .fa-heart {
    transition: all 0.3s ease;
}

.text-danger:hover .fa-heart {
    transform: scale(1.2);
}
