/* Advanced Search Form Styling */
.advanced-search-form {
    margin-top: 220px !important; /* Position the form lower on the page */
    position: relative;
    z-index: 10;
}

/* Search Summary Styles */
.search-summary {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    animation: fadeInUp 0.3s ease;
}

.summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.summary-text {
    color: var(--text-primary);
    font-weight: 500;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results p {
    margin-bottom: 1.5rem;
}

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

/* Simple Product Card Styles (Fallback) */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1f2937);
}

.product-description {
    color: var(--text-muted, #6b7280);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.product-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color, #3b82f6);
    margin-bottom: 0.5rem;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.product-specs span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary, #f3f4f6);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Mobile Responsive for Search Form */
@media (max-width: 768px) {
    /* Giảm khoảng cách phía trên form tìm kiếm */
    .advanced-search-form {
        margin-top: 1rem;
        padding-top: 0.5rem;
    }

    .search-content {
        padding: 0.75rem;
    }

    /* Mobile Responsive for Search Summary */
    .summary-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .search-summary {
        padding: 0.75rem;
    }

    .product-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    .product-specs {
        justify-content: center;
    }
    
    /* Điều chỉnh kích thước và khoảng cách cho các trường tìm kiếm */
    .search-row {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .search-field {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-field:last-child {
        margin-bottom: 0;
    }
    
    .search-actions {
        margin-top: 0.5rem;
    }
    
    .search-actions .btn {
        width: 100%;
        padding: 0.75rem;
    }
}
