/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f7f9fc;
    color:#222;
    overflow-x:hidden;
}

/* =========================
   HEADER
========================= */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 5%;
    background:#fff;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 3px 20px rgba(0,0,0,0.08);
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#16a34a;
}

.logo i{
    margin-right:8px;
}

nav{
    display:flex;
    gap:30px;
}

nav a{
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition:0.3s;
}

nav a:hover{
    color:#16a34a;
}

.icons{
    display:flex;
    gap:20px;
}

.icons i{
    cursor:pointer;
    font-size:20px;
    transition:0.3s;
}

.icons i:hover{
    color:#16a34a;
    transform:translateY(-3px);
}

/* =========================
   HERO
========================= */

.hero{
    height:80vh;
    background:
    linear-gradient(
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.45)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600");
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
}

.hero-content{
    max-width:800px;
}

.hero h1{
    font-size:4rem;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:30px;
}

.hero button{
    padding:15px 40px;
    border:none;
    border-radius:50px;
    background:#16a34a;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:0.3s;
}

.hero button:hover{
    background:#15803d;
    transform:translateY(-4px);
}

/* =========================
   SEARCH
========================= */

.search-section{
    padding:40px 5%;
    text-align:center;
}

.search-section input{
    width:100%;
    max-width:800px;
    padding:18px;
    border:none;
    border-radius:50px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    font-size:16px;
}

/* =========================
   CATEGORIES
========================= */

.categories{
    padding:70px 5%;
}

.categories h2{
    text-align:center;
    margin-bottom:40px;
    font-size:2.2rem;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
}

.category{
    background:white;
    padding:25px;
    border-radius:15px;
    text-align:center;
    font-weight:600;
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
    transition:0.3s;
}

.category:hover{
    transform:translateY(-8px);
}

/* =========================
   PRODUCTS
========================= */

.products{
    padding:80px 3%;
}

.products h2{
    text-align:center;
    margin-bottom:50px;
    font-size:2.5rem;
}

/* 7 columns on desktop */

.product-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:20px;
}

.product-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    transition:0.4s;
}

.product-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

.product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.product-card h3{
    padding:15px 15px 5px;
    font-size:18px;
}

.product-card p{
    padding:0 15px;
    color:#16a34a;
    font-weight:700;
}

.product-card button{
    margin:15px;
    width:calc(100% - 30px);
    padding:12px;
    border:none;
    border-radius:10px;
    background:#16a34a;
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.product-card button:hover{
    background:#15803d;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#111827;
    color:white;
    text-align:center;
    padding:50px 20px;
    margin-top:80px;
}

footer h3{
    margin-bottom:10px;
}

footer p{
    margin:10px 0;
}

/* =========================
   TABLETS
========================= */

@media(max-width:1200px){

    .product-grid{
        grid-template-columns:repeat(4,1fr);
    }

    .category-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .hero h1{
        font-size:3rem;
    }
}

/* =========================
   SMALL TABLETS
========================= */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:15px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .hero{
        height:70vh;
        padding:20px;
    }

    .hero h1{
        font-size:2.4rem;
    }

    .hero p{
        font-size:1rem;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* =========================
   PHONES
========================= */

@media(max-width:480px){

    .hero h1{
        font-size:2rem;
    }

    .product-grid{
        grid-template-columns:1fr;
    }

    .category-grid{
        grid-template-columns:1fr;
    }

    .search-section input{
        width:95%;
    }
}