@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

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

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 5%;
    width: 100%;
    z-index: 100;
    position: relative;
}

header h1 {
    font-size: 40px;
    color: #000000;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

header nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

header nav a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 99px;
    transition: 0.3s;
    color: #6b4848;
}

header nav a.active {
    background: #8bc34a8e;
}

header nav a:hover {
    background: #8bc34a;
}

header nav:hover>a:not(:hover) {
    background: none;
}

.logo {
    width: 60px;
    height: auto;
}

.cart {
    width: 30px;
    height: 30px;
}

header nav img:hover {
    transform: scale(1.1); 
    cursor: pointer;
}

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

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #000;
    margin-bottom: 4px;
    border-radius: 5px;
}

/* Home section */
.home {
    display: flex;
    height: 100vh;
    background: linear-gradient(to top, #d2fbd9 60%, #ffffff);
    position: relative;
    overflow: hidden;
}

.home img {
    position: absolute;
    bottom: 0;
    width: 100%;
    pointer-events: none;
}

.home .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 80px;
    text-shadow: 0px 0px 4px rgba(0, 255, 217, 0.25);
    text-align: center;
    width: 100%;
}

/* Top Selling section */
.topsell {
    padding: 50px;
    background: #111010;
    color: white;
    position: relative;
    z-index: 100;
}

.topsell h2 {
    padding: 30px;
    text-align: center;
}

.topsell h3 {
    text-align: center;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.featured-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px;
    background: #000000;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(33, 144, 147, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.product img {
    width: 100%;
    height: 250px;
    transition: transform 0.3s ease;
}

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

.product h3 {
    margin: 15px 0;
    font-size: 18px;
    color: #d0d0d0;
}

.product p {
    margin: 10px 5px;
    color: #bababa;
}

.button-wrapper {
    display: flex;
    justify-content: center;
}

.product button {
    margin: 0;
    padding: 10px 20px;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.product button:hover {
    background: #d2fbd9;
    color: #000000;
}

/* Footer styles */
.footer {
    background: linear-gradient(to bottom, #111010, #000000);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-content p {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.socials {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.socials li {
    margin: 0 10px;
}

.socials li a img {
    width: 25px;
    height: 25px;
}

.footer-bottom {
    font-size: 14px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    header {
        height: auto;
        padding: 20px 5%;
     }
     
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }

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

    header nav a {
        margin: 10px 0;
        font-size: 12px;
    }

    .cart {
        margin: 5px;
        width: 15px;
        height: auto;
    }

    .logo {
        width: 45px;
        height: auto;
        margin-right: 5px;
        margin-left: 0;
    }

    .home .title {
        font-size: 40px;
    }

    .topsell {
        padding: 30px 20px;
    }

    .featured-products {
        gap: 20px;
    }

    .product {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .featured-products {
        justify-content: space-around;
    }

    .product {
        width: calc(50% - 20px);
        max-width: none;
    }
}

@media screen and (min-width: 1025px) {
    .featured-products {
        justify-content: space-between;
    }
}