/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f8f9fa;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

/* Search Bar */
form {
    display: flex;
    align-items: center;
    background: #b1c5e1;
    padding: 12px 18px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

form i {
    color: #666;
    font-size: 18px;
    margin-right: 10px;
}

form input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    background: #b1c5e1;
}

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

/* Product Card */
.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

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

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-details {
    padding: 15px;
    text-align: center;
}

.product-details h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-details h3 {
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
}

.message {
    width: 100%;
    margin: auto 410px;
    height: 200px; /* same as min-height of product-list */
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
}

.no-cards {
    color: #ff0000;
    font-weight: bold;
    font-size: 20px;
    padding: 10px 20px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    background-color: #ffe5e5;
    text-align: center;
}

