* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*HOME PAGE*/
body {
    line-height: 1.6;
    background: #f8f9fb;
    color: #333;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

h2 {
    color: #b8e148
}
/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #a7bf65ca;
    color: white;
    padding: 15px 40px;
}

header h2 {
    font-size: 1.8rem;
}

.logo img {
    width: 120px;
    height: 120px;
}

header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

header nav a:hover {
    text-decoration: underline;
    color: #ffd700;
}

/* HERO */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url("images/foodlab.jpg") center/cover no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 10px;
}

.hero h1{
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p{
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hero button {
    margin-top: 15px;
    padding: 12px 25px;
    border: none;
    background: #ffc107;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.hero button:hover{
    background: #e0a800;
}

/* SECTIONS GENERAL*/
section {
    padding: 60px 40px;
    text-align: center;
}

H2{
    margin-bottom: 20px;
    font-size: 2rem;
    color: 0d6efd;
}

/*ABOUT*/
.about p{
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
}

/*PRODUCTS GRID*/
.products .product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Container holding all the boxes */
.product-container {
    display: flex; /* arrange boxes in a row */
    gap: 20px; /* space between boxes */
    flex-wrap: wrap; /* wrap to next line if needed */
    padding: 20px;
}

/*Each box (pad)*/
.img-box {
    width: 200px;
    height: 200px;
    border: 2px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    display: flex; /* center image inside */
    border-radius: 12px;
    transition: 0.2s; /* optional hover effect */
    overflow: hidden;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/*Optional: hover effect */
.img-box:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/*IMAGE GRID INSIDE CARD*/
.img-box img {
    width: 200%;
    height: 200%;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* TEXT*/
.card h3 {
    margin: 15px 10px 5px;
}

.card p {
    margin: 0 10px;
    font-size: 0.95rem;
}

/* ORDER */
.order-buttons button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    background: #9fbe5dd3;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.order-buttons button:hover {
    background: #add872;
}

#order-info {
    margin-top: 15px;
    padding: 15px;
    background: #eef2ff;
    border-radius: 5px;
}

/*PAYMENT*/
#payment-info {
    margin-top: 15px;
    font-weight: bold;
}

/* CONTACT */
.contact {
    background: #aadb6dd1;
    color: white;
}

.form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form input, .form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.form button {
    padding: 12px;
    border: none;
    background: #9fbe5dd3;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.form button:hover {
    background: #add872;
}

.contact {
    background: #aadb6dd1;
    color: white;
    padding: 40px;
}

.contact input, .contact textarea {
    width: 80%;
    margin: 10px auto;
    padding: 10px;
    display: block;
    border-radius: 5px;
    border: none;
}

.contact button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background: #1b5e20;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.contact button:hover {
    background: #388e3c;
}

/* FOOTER */
.footer {
    background: #111;
    color: white;
    padding: 15px;
    text-align: center;
}

/*RESPONSIVE*/
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

   .products .product-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .img-box {
        height: 120px;
    }
}