/* style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
}

header {
    background: #222;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    height: 50px;
}

/* Hamburger menu button */
.menu-btn {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Navigation links */
nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #ffcc00;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

h1, h2 {
    color: #222;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Home banner image */
.home-banner {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .home-banner {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    .menu-btn {
        display: block;
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background: #222;
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 20px 20px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        opacity: 0;
        transform: translateX(100%);
    }

    nav.active {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }

    nav a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #444;
        margin: 0;
        font-size: 16px;
    }

    header {
        position: relative;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #222;
    }

    .container {
        padding: 15px;
    }
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}
