/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header */
header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixed at the top */
    top: 0;
    left: 0;
    width: 100%; /* Full width of the screen */
    z-index: 999; /* Ensures it's always on top */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Adds shadow for better visibility */
}

/* Logo */
header .logo h1 {
    margin: 0;
    font-size: 28px;
    color: #00aaff;
}

/* Menu Button for Small Devices */
.menu-btn {
    font-size: 30px;
    color: white;
    display: none;
    cursor: pointer;
}
/* Logo Image */



/* Navigation Menu */
nav {
    position: fixed;
    left: -250px; /* Hidden off-screen */
    top: 0;
    height: 100%;
    width: 250px;
    background-color: #333;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 999;
    overflow-x: hidden;
}
.menu-btn {
    display: block;
    position: absolute;
    left: 20px; /* Position it on the left */
    z-index: 1000;
}
.logo-img img {
    display: block;
    position: relative;
    right: 30px; /* Position it on the left */
    z-index: 1000;
    width: 50px; /* Adjust as needed */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Optional: Make it circular */
}
header .logo {
    flex: 1;
    text-align: center; /* Center the shop name */
    margin-left: 50px; /* Add margin to prevent overlap with the menu button */
    z-index: 1000;
}
nav ul {
    flex-direction: column;
    padding-left: 0;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    padding: 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
}

nav ul li a:hover {
    background-color: #00aaff;
}

/* Product List */
.product-list {
    display: flex;
    justify-content: space-around;
    margin-top: 100px; /* Adjusted to account for the fixed header */
    flex-wrap: wrap;
}

.product {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
    display: inline;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product h3 {
    margin: 10px 0;
    font-size: 18px;
}

.product p {
    color: #777;
}

.product a {
    display: inline-block;
    margin-top: 10px;
    background-color: #00aaff;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
}

.product a:hover {
    background-color: #007acc;
}



/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    display: inline;
    margin: 0 15px;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

footer ul li a:hover {
    color: #00aaff;
}

/* Slide-in Sidebar for Small Devices */
#navbar ul {
    display: flex;
}

#navbar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: #333;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 999;
    overflow-x: hidden;
}

#navbar ul {
    flex-direction: column;
    padding-left: 0;
}

#navbar ul li {
    margin: 10px 0;
}

#navbar ul li a {
    padding: 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
}

#navbar ul li a:hover {
    background-color: #00aaff;
}

/* Media Queries */
@media (max-width: 768px) {
    header {
        justify-content: flex-start; /* Align items to the left on small screens */
    }

    .menu-btn {
        display: block;
        position: absolute;
        left: 20px; /* Position it on the left */
        z-index: 1000;
    }

    header .logo {
        flex: 1;
        text-align: center; /* Center the shop name */
        margin-left: 50px; /* Add margin to prevent overlap with the menu button */
        z-index: 1000;
    }
    .logo-img {
        margin-left: auto; /* Ensure the logo image remains at the right */
    }
    nav ul {
        display: none;
    }

    header .logo h1 {
        font-size: 24px; /* Optional: Smaller font for logo on mobile */
    }
}

@media (max-width: 480px) {
    .product {
        width: 100%;
        margin-bottom: 15px;
    }
}
