/* assets/css/style.css */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header, footer {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    min-height: 60vh;
}

/* Basic Grid Layout */
.results-grid {
    display: grid;
    /* Adjust minmax for desired item size */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px; /* Space between items */
    padding-top: 20px;
}

.result-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    transition: box-shadow 0.2s ease-in-out;
}
.result-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.result-item a {
    text-decoration: none;
    color: #333;
}

.result-item img {
    max-width: 100%;
    height: 180px; /* Fixed height example */
    object-fit: contain; /* Scale image nicely */
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.item-title {
    font-weight: bold;
    margin-bottom: 5px;
    /* Limit text lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.4em; /* Adjust based on font size/line height */
    line-height: 1.2em;
}

.item-price {
    color: #b12704; /* Amazon-like price color */
    font-weight: bold;
}