/* Store Page Styles */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-category .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
}

.product-price {
    color: #28a745;
}

.product-actions {
    margin-top: auto;
}

.product-actions .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Store Filters */
.store-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.store-filters .form-control,
.store-filters .form-select {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-filters .form-control:focus,
.store-filters .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.store-filters .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Product Details Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 2px solid #f8f9fa;
    border-radius: 0 0 15px 15px;
}

/* Buy Product Modal */
#buyProductModal .form-control,
#buyProductModal .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

#buyProductModal .form-control:focus,
#buyProductModal .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#buyProductModal .btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Loading Spinner */
#loadingSpinner {
    z-index: 9999;
}

#loadingSpinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-filters {
        padding: 1rem;
    }
    
    .product-actions .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .store-filters .row {
        margin: 0;
    }
    
    .store-filters .col-md-4,
    .store-filters .col-md-6,
    .store-filters .col-md-2 {
        padding: 0.5rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Category Badge Colors */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-primary {
    background-color: #007bff !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
} 