/* Enhanced Product Card Styles */
.product-item__outer {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.product-item__outer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border-color: #007bff !important;
}

/* Button Gap Fix */
.gap-2 > * + * {
    margin-top: 0.5rem;
}

/* Hover Effects for Product Links */
.hover-text-primary:hover {
    color: #007bff !important;
    transition: color 0.3s ease;
}

/* Badge Styles */
.badge-soft-primary {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* Button Enhancements */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Image Styling */
.product-item img {
    transition: transform 0.3s ease;
}

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

/* Price Styling */
.font-size-18 {
    font-size: 1.125rem !important;
}

/* Badge Positioning */
.position-absolute {
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-item__inner {
        padding: 1rem !important;
    }
    
    .gap-2 {
        gap: 0.25rem;
    }
    
    .gap-2 > * + * {
        margin-top: 0.25rem;
    }
}

/* Animation for badges */
.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading state for images */
.product-item img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.product-item img[src] {
    animation: none;
    background: none;
}