.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 24px 24px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-item {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: black;
    width: 100%;
    box-sizing: border-box;
}

.search-item:hover {
    background-color: #f9f9f9;
}

.search-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    overflow: hidden;
}

.details h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details p {
    font-size: 14px;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.3em;
    max-height: 2.6em;
    margin: 0 0 4px 0;
}

.price {
    font-weight: bold;
    color: #d0021b;
}

@media (max-width: 768px) {
    .container {
        padding: 16px 12px;
    }

    .search-item {
        padding: 10px 8px;
    }

    .search-item img {
        width: 80px;
        height: 80px;
        margin-right: 10px;
    }

    .details h3 {
        font-size: 16px;
    }

    .details p {
        font-size: 13px;
    }
}




