/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #007bff;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

h2 {
    text-align: center;
    margin: 20px 0;
}

/* Product and Order Styles */
.product-container, .order-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.product, .order {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 15px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s;
    width: 200px;
}

.product:hover {
    transform: scale(1.05);
}

.order h3 {
    margin: 0 0 10px;
}

footer {
    text-align: center;
    padding: 15px 0;
    background: #007bff;
    color: #fff;
}

/* Cart Styles */
.cart {
    margin-top: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
}

.cart h3 {
    margin: 0 0 10px;
}

/* Filter Options */
.filter-options {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.filter-options input,
.filter-options select {
    margin: 0 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.filter-options input[type="number"] {
    width: 80px;
}

/* Button Styles */
button {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%; /* Full-width button */
}

button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Form Styles */
form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px; /* Center the form */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007bff; /* Highlight border on focus */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .product-container, .order-container {
        flex-direction: column;
        align-items: center;
    }

    .product, .order {
        width: 90%;
    }

    header, footer {
        padding: 10px;
    }

    nav ul li {
        display: block;
        margin: 5px 0;
    }

    form {
        width: 90%; /* Use more of the screen on mobile */
    }
}