.ai-search-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-search-container h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
}

.ai-search-container p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.ai-search-input {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    resize: vertical;
}

.ai-search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.1);
    outline: none;
}

.cta-button {
    display: block;
    width: 200px;
    margin: 0 auto 30px;
    padding: 15px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.loading {
    text-align: center;
    padding: 30px;
    display: none;
}

.loading i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.loading p {
    color: #666;
    font-size: 1.1em;
}

.ai-suggestions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.ai-suggestions h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.product-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

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

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

.product-info {
    padding: 20px;
}

.product-title {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #2ecc71;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-actions {
    padding: 0 20px 20px;
}

.product-button {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-button:hover {
    background: #2980b9;
}

.error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background: #fde8e8;
    border-radius: 8px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .ai-search-container {
        margin: 20px;
        padding: 20px;
    }

    .ai-search-container h1 {
        font-size: 2em;
    }

    .product-recommendations {
        grid-template-columns: 1fr;
    }
}