/* Search Results Custom Styles */

/* Enhanced card design */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.product-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-placeholder {
    height: 220px;
    border-bottom: 1px solid #e5e7eb;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-badges .status-badge {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced card footer styling */
.card-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

.card-footer .meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-footer .meta-label {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Enhanced product title styling */
.card-title {
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.1rem;
}

.card-title a:hover {
    color: #3b82f6 !important;
}

/* Enhanced article number styling */
.article-number {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Brand name styling */
.brand-name {
    font-size: 0.9rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stock count styling */
.stock-count {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Price styling */
.price-display {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.price-label {
    font-weight: 400;
}

.price-offers {
    font-size: 0.8rem;
    opacity: 0.8;
}

.price-request {
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive adjustments for larger text */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }

    .article-number {
        font-size: 0.8rem;
    }

    .card-footer .meta-value {
        font-size: 1rem;
    }

    .status-badges {
        font-size: 0.7rem;
    }
}

/* Loading animation */
.product-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-card.loading .product-image {
    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; }
}

/* Grayscale effect for products without prices */
.product-card.grayscale {
    filter: grayscale(100%) opacity(0.7);
}

.product-card.grayscale:hover {
    filter: grayscale(0%) opacity(1);
}

/* Brand logo styling */
.brand-logo-overlay {
    z-index: 10;
}

.brand-logo-small {
    transition: transform 0.3s ease;
}

.product-card:hover .brand-logo-small {
    transform: scale(1.1);
}

/* Status indicators */
.price-indicator,
.availability-indicator,
.price-count-indicator {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-indicator.bg-muted {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
}

.price-count-indicator {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3); }
    100% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
}

/* Enhanced empty state */
.empty-state {
    padding: 4rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon i {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.empty-state:hover .empty-state-icon i {
    opacity: 0.7;
}

.empty-state-title {
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state-description {
    max-width: 400px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

.empty-state-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.empty-state-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Control bar styling */
.card.border-0.shadow-sm {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

/* Enhanced button styling */
.btn-group .btn {
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

/* Form control styling */
.form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}
