body {
    font-family: sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #111;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-form input[type="text"] {
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-form button {
    padding: 10px 20px;
    border: none;
    background-color: #0073e6;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-form button:hover {
    background-color: #005bbd;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    height: 40px; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 16px;
    color: #d9534f;
    font-weight: bold;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #777;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    text-decoration: none;
    color: #0073e6;
    padding: 8px 16px;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #0073e6;
    color: white;
    border-color: #0073e6;
}
