*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body,html {
    overflow-x: hidden;
}

/* ########## NavBar ########## */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
}

.logo {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: 0.3s;
}

.main-product-grid .note{
    text-align: center;
    padding: 90px 0 20px;
    font-size: 20px;
    color: red;
    font-weight: bold;
    background-color: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 40px;
    background-color: #f9f9f9;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.product-card p{
    color: rgb(0, 255, 0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 250px;
    height: 250px;
    display: block;
}

.product-card h3 {
    margin: 1rem;
    font-size: 1.25rem;
}

.product-card p {
    margin: 0 1rem 1rem;
    font-size: 1.1rem;
}

.product-card a {
    background-color: #f4a261;
    text-decoration: none;
    border: none;
    color: #fff;
    padding: 0.5rem;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #e76f51;
}

footer{
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
}




/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ########## Mobile ########## */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background-color: #333;
        padding: 15px;
        width: 200px;
        border-radius: 5px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 10px;
    }

    .product-card img {
        width: 200px;
        height: 200px;
        display: block;
        object-fit: cover;
        image-rendering: auto;
    }
}
