/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8f9fa;
    color: #333;
}

/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 80px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h2 {
    color: #2e7d32;
    font-size: 32px;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 18px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
}

nav ul li a:hover {
    color: #2e7d32;
    text-decoration: underline;
    /* transition:.3s; */
}

.icons {
    display: flex;
    align-items: center;
    font-size: 20px;
    gap: 22px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 8px 15px;
    margin-right: 20px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 180px;
    font-size: 15px;
    margin-left: 8px;
}

.search-box i,
.search-box span {
    font-size: 18px;
    color: #333;
}

.cart {
    position: relative;
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 60px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.icons span:hover {
    color: #2e7d32;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

#userName {
    color: #525151;
    font-size: 15px;
    /* font-weight:600; */
}

/* Hero Section */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 8%;
    background-image: url("images/background.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
}

/* .hero-text {
    width: 50%;
} */

.hero-text h3 {
    color: #2e7d32;
    /* margin-bottom: 10px; */
}

.hero-text h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #222;
}

.hero-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.hero-text button {
    padding: 14px 35px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: .3s;
}

.hero-text button:hover {
    background: #1b5e20;
    transform: translateY(-3px);
}

.hero-image {
    width: 50%;
    /* background-color: #eef8ea; */

}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    background-color: #eef8ea;
}

/* Features */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 70px 8%;
    background: #fff;
}

.feature {
    text-align: center;
    background: #f7f7f7;
    padding: 30px;
    border-radius: 12px;
    transition: .3s;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.feature i {
    font-size: 20x;
    color: #2e7d32;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    color: #666;
}

/*Categories Section */

.categories {
    padding: 50px 50px;
    background: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.see-all {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    transition: 0.3s;
}

.see-all:hover {
    color: #1b5e20;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category {
    /* background: #fff; */
    /* border-radius: 10px;  */
    /* padding: 0px; */
    text-align: center;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, .08); */
    transition: .3s;
    text-decoration: none;

}

.category:hover {
    transform: translateY(-10px);
}


.category img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 100px;

}

.category img:hover {
    border: 2px solid #2e7d32;
}

.category h3 {
    font-size: 18px;
    color: #333;
}


/* Products Section */

.products {
    padding: 50px 50px;
    background: #ffffff;
}


.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    transition: .3s;
}

.product:hover {
    transform: translateY(-8px);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product h3 {
    font-size: 18px;
    color: #333;
}

.weight {
    color: gray;
    margin: 10px 0;
    font-size: 14px;
}

.product span {
    font-size: 18px;
    color: #2e7d32;
    font-weight: bold;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

.modal-content h2 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-buttons button {
    width: 45%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

#cancelLogout {
    background: #ccc;
}

#confirmLogout {
    background: #2e7d32;
    color: white;
}

/* Footer */

footer {
    background: #1f1f1f;
    color: #fff;
    padding: 60px 8% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-container h3 {
    margin-bottom: 20px;
    color: #4CAF50;
}

.footer-container p {
    line-height: 1.8;
    color: #ddd;
}

.footer-container ul {
    list-style: none;
}

.footer-container ul li {
    margin-bottom: 10px;
}

.footer-container ul li a {
    text-decoration: none;
    color: #ddd;
}

.footer-container ul li a:hover {
    color: #4CAF50;
}

footer hr {
    margin: 40px 0 20px;
    border: 0;
    border-top: 1px solid #555;
}

footer p {
    color: #bbb;
}

#para{
    text-align: center;
    color: #bbb;
}
/* ===========================
   Responsive Design
=========================== */
/* 
@media(max-width:992px) {

    header {
        flex-direction: column;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin: 20px 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-image {
        width: 100%;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .deal {
        flex-direction: column;
        text-align: center;
    }

    .newsletter button {
        margin-top: 15px;
        margin-left: 0;
    }

}

@media(max-width:768px) {

    .hero-text h1 {
        font-size: 36px;
        line-height: 48px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .logo h2 {
        font-size: 28px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .icons {
        margin-top: 15px;
    }

    .categories h2,
    .products h2,
    .newsletter h2,
    .deal-text h2 {
        font-size: 30px;
    }

    .newsletter input {
        width: 100%;
        margin-bottom: 15px;
    }

    .newsletter button {
        width: 100%;
    }

} */