* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}

.search-container {
    text-align: center;
    padding: 20px 10px 10px 10px;
    background: #f5f5f5;
}

.search-box {
    display: inline-flex;
    gap: 10px;
    max-width: 600px;
    width: 100%;
    margin-bottom: 20px;
}

#searchInput {
    padding: 10px;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#searchButton {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 69%;
    background: #f8f9fa; /* Remove fixed height */
    position: relative;
}

#searchResultsMessage {
    font-weight: 500;
    font-size: 20px;
}

.card-image img {
    width: 100%;
    height: 100%; /* Let the image determine the height */
    display: block;
}

.card-content {
    height: 30%;

    padding: 1.5rem;
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Add shadow to the card */
}

.product-card:hover .card-image img {
    transform: scale(1.1); /* Slightly scale up the image */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .product-card {
        flex-direction: row;
        height: auto; /* Adjust height for mobile */
    }

    .card-image {
        width: 40%;
        height: auto;
    }

    .card-content {
        width: 60%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        height: auto; /* Adjust height for smaller screens */
        flex-direction: row;
    }

    .product-title {
        font-size: 10px;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .product-description {
        color: #666;
        font-size: 6px;
        margin-bottom: 0.2rem;
    }

    .card-image,
    .card-content {
        width: 100%;
    }
}

.enquiry-button {
    color: white;
    background-color: #007a33;
}