:root {
    --green: #198754;
    --dark-green: #123524;
    --light-green: #e8f7ee;
    --soft-bg: #f8faf7;
    --yellow: #ffc107;
}
.main-logo {
    width: 120px;
    height: auto;
}
.topbar {
    background: var(--dark-green);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.topbar i {
    color: var(--yellow);
    margin-right: 5px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.topbar a:hover {
    color: var(--yellow);
}

.topbar-left span,
.topbar-right span {
    opacity: 0.9;
}
.topbar {
    background: var(--dark-green);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.topbar i {
    color: var(--yellow);
    margin-right: 5px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.topbar a:hover {
    color: var(--yellow);
}

.offer-bar {
    background: var(--yellow);
    color: var(--dark-green);
    font-weight: 700;
    padding: 6px 0;
    position: sticky;
    top: 38px;
    z-index: 1039;
}

.main-navbar {
    position: sticky;
    top: 70px;
    z-index: 1038;
    padding: 14px 0;
}

@media (max-width: 768px) {
    .topbar {
        font-size: 12px;
        text-align: center;
    }

    .topbar .container {
        justify-content: center !important;
    }

    .offer-bar {
        top: 58px;
        font-size: 13px;
    }

    .main-navbar {
        top: 88px;
    }
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--soft-bg);
    color: #222;
}

.navbar {
    padding: 14px 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    font-weight: 600;
    color: #333;
}

.nav-link:hover {
    color: var(--green) !important;
}

.search-form input {
    min-width: 220px;
}

.hero-section {
    background:
        linear-gradient(rgba(0, 70, 35, 0.72), rgba(0, 70, 35, 0.72)),
        url('../images/herro-fruits.png');
    background-size: cover;
    background-position: center;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.15rem;
    max-width: 620px;
    color: #f1f1f1;
}

.section-title {
    font-weight: 800;
    color: var(--dark-green);
}

.category-card,
.feature-box,
.filter-box,
.cart-box,
.cart-summary,
.checkout-box,
.empty-box,
.success-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eef2ee;
}

.category-card,
.feature-box,
.product-card {
    transition: .3s;
}

.category-card:hover,
.feature-box:hover,
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    color: var(--green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.product-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
}

.product-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.product-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

.price {
    color: var(--green);
    font-weight: 800;
}

.badge-category {
    background: var(--light-green);
    color: var(--green);
}

.feature-box i {
    font-size: 36px;
    color: var(--green);
    margin-bottom: 15px;
}

.page-header {
    background:
        linear-gradient(rgba(18,53,36,.85), rgba(18,53,36,.85)),
        url('../images/herro-fruits.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 90px 0;
}

.filter-link {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
}

.filter-link:hover,
.filter-link.active {
    background: var(--light-green);
    color: var(--green);
}

.qty-input {
    max-width: 120px;
}

.cart-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
}

.empty-box i,
.success-box i {
    font-size: 60px;
    color: var(--green);
    margin-bottom: 20px;
}


.form-control,
.form-select {
    border-radius: 14px;
    padding: 12px 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .2rem rgba(25,135,84,.15);
}
.auth-box {
    max-width: 460px;
    background: white;
    border-radius: 22px;
    padding: 35px;
    border: 1px solid #eef2ee;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 470px;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-text {
        margin: auto;
    }

    .product-img {
        height: 165px;
    }

    .search-form {
        margin: 15px 0;
    }

    .search-form input {
        min-width: 100%;
    }

    .navbar .btn {
        width: 100%;
    }
}


.footer {
    background: #123524;
    color: #fff;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: #ffc107;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    color: #ffffff;
}

/* SOCIAL ICONS */
.footer i {
    font-size: 18px;
}


/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}