/* ===================================
   VeryFresh Mart - Main Styles
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}


/* ==========================
        Container
========================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* ==========================
        Header
========================== */

header {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

header .container {
    display: flex;
    align-items: center;
    min-height: 80px;
}

.logo {
    flex: 1;
}

.logo img {
    height: 40px;
}


/* ==========================
        Navigation
========================== */

nav {
    flex: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    transition: .3s;
}

nav ul li a:hover {
    color: #27ae60;
}


/* ==========================
     Login + Cart + Logout
========================== */

.header-actions {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}


/* My Orders / Login */

.header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #27ae60;
    background: #fff;

    border: 2px solid #27ae60;

    padding: 9px 16px;

    border-radius: 30px;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    transition: .3s;
}

.header-login:hover {
    background: #27ae60;
    color: #fff;
}


/* Cart */

.header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: #27ae60;
    color: #fff;

    padding: 10px 18px;

    border-radius: 30px;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    transition: .3s;
}

.header-cart:hover {
    background: #219150;
}


/* Logout */

.header-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #dc3545;
    background: #fff;

    border: 2px solid #dc3545;

    padding: 9px 16px;

    border-radius: 30px;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    transition: .3s;
}

.header-logout:hover {
    background: #dc3545;
    color: #fff;
}


/* ==========================
        Hero Section
========================== */

.hero {
    padding: 90px 0;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #27ae60;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .20);
}


/* ==========================
        Section
========================== */

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #27ae60;
}

.section-title p {
    color: #777;
    margin-top: 10px;
}


/* ==========================
        Cards
========================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-bottom: 10px;
}

.price {
    color: #27ae60;
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.buy-btn {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
}

.buy-btn:hover {
    background: #1e874b;
}


/* ==========================
        Footer
========================== */

footer {
    background: #1c1c1c;
    color: #fff;
    margin-top: 80px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-logo {
    width: 140px;
    margin-bottom: 20px;
}

.footer-box h3 {
    margin-bottom: 20px;
    color: #27ae60;
}

.footer-box ul li {
    margin-bottom: 12px;
}

.footer-box ul li a:hover {
    color: #27ae60;
}

.footer-box p {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}


/* ==========================
     WhatsApp Floating
========================== */

.whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .20);
    z-index: 999;
}

.whatsapp:hover {
    transform: scale(1.08);
}


/* ==========================
        Responsive
========================== */

@media (max-width: 992px) {

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
    }

    nav ul {
        gap: 15px;
    }

}


@media (max-width: 768px) {

    header .container {
        flex-direction: column;
        padding: 15px 0;
    }

    nav {
        margin: 15px 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .header-actions {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-title h2 {
        font-size: 28px;
    }

}