
/* =====================================
   EAZBUY.COM - MAIN STYLESHEET
   Light Green & White Grocery Theme
===================================== */

:root {
    --green: #287b45;
    --green-dark: #185c32;
    --green-light: #eaf5eb;
    --green-pale: #f5faf4;
    --white: #ffffff;
    --text: #26372b;
    --muted: #778278;
    --border: #e7eee7;
    --orange: #f49b35;
    --shadow: 0 8px 28px rgba(34, 84, 49, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

/* TOP BAR */

.top-bar {
    background: var(--green-dark);
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.top-bar i {
    margin-right: 5px;
}

/* HEADER */

.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 20;
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 29px;
    font-weight: 800;
    color: var(--green-dark);
    white-space: nowrap;
}

.logo > span:last-child > span {
    color: #8abf61;
}

.logo small {
    font-size: 13px;
    color: var(--muted);
}

.logo-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    font-size: 22px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f8f4;
    border: 1px solid var(--border);
    border-radius: 9px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    transition: .25s;
}

.search-form:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(40,123,69,.08);
}

.search-form input {
    width: 100%;
    padding: 13px 16px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
}

.search-form button {
    border: 0;
    background: var(--green);
    color: #fff;
    height: 44px;
    width: 52px;
    font-size: 18px;
    transition: .2s;
}

.search-form button:hover {
    background: var(--green-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.account-link, .cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.account-link i, .cart-link > i {
    color: var(--green);
    font-size: 23px;
}

.cart-link {
    position: relative;
}

.cart-count {
    background: var(--orange);
    color: #fff;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 10px;
}

/* NAVIGATION */

.main-nav {
    background: var(--green);
    color: #fff;
    position: relative;
    z-index: 15;
}

.nav-inner {
    min-height: 49px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    padding: 15px 0;
    position: relative;
    transition: .25s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    height: 2px;
    width: 0;
    background: #c9edaa;
    transition: width .25s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #d9f3bd;
}

.nav-delivery {
    font-size: 12px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 27px;
}

/* HERO SLIDER */

.hero-section {
    padding: 28px 0 15px;
    background: linear-gradient(180deg, #f5faf3, #fff);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--green-light);
    min-height: 405px;
}

.hero-slide {
    display: none;
    min-height: 405px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 38px 65px;
    gap: 25px;
    animation: fadeIn .5s ease;
}

.hero-slide.active {
    display: grid;
}

.hero-content {
    max-width: 510px;
}

.hero-tag, .section-tag {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.hero-content h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.15;
    margin: 15px 0;
    letter-spacing: -1.8px;
}

.hero-content h1 span {
    color: var(--green);
}

.hero-content p {
    font-size: 15px;
    color: #68776a;
    max-width: 440px;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 23px;
    background: var(--green);
    color: #fff;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    transition: .25s;
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-image {
    height: 325px;
    border-radius: 15px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-controls button {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--green);
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 10px;
    border: 0;
    background: #b4cbb3;
}

.slider-dot.active {
    background: var(--green);
    width: 22px;
}

/* GENERAL SECTIONS */

.section {
    padding: 65px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 30px;
    letter-spacing: -.8px;
    margin: 5px 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
}

.text-link {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.text-link i {
    margin-left: 5px;
}

.centered-heading {
    justify-content: center;
    text-align: center;
}

/* CATEGORIES */

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.category-card {
    text-align: center;
    padding: 14px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: .25s;
}

.category-card:hover {
    border-color: #b5d5ae;
    background: var(--green-pale);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-image {
    width: 75px;
    height: 75px;
    background: var(--green-light);
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 30px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 12px;
    font-weight: 700;
}

/* PRODUCTS */

.products-section {
    background: #f8fbf7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: .25s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 210px;
    display: block;
    position: relative;
    overflow: hidden;
    background: #f5f8f3;
    padding: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.discount-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 1;
    background: #e75c4c;
    color: #fff;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 5px;
}

.product-info {
    padding: 15px;
}

.product-rating {
    color: #e9a43e;
    font-size: 11px;
    margin-bottom: 7px;
}

.product-rating span {
    color: var(--muted);
}

.product-info h3 {
    font-size: 14px;
    line-height: 1.4;
    min-height: 39px;
}

.product-info h3 a:hover {
    color: var(--green);
}

.product-weight {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin: 4px 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
}

.product-price strong {
    color: var(--green);
    font-size: 16px;
}

.product-price del {
    color: #a0a8a0;
    font-size: 11px;
}

.add-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--green-light);
    color: var(--green);
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.add-cart-btn:hover {
    background: var(--green);
    color: #fff;
}

.add-cart-btn.out-of-stock {
    background: #eee;
    color: #777;
    cursor: not-allowed;
}

/* PROMOTION */

.promo-section {
    padding: 55px 0;
}

.promo-banner {
    min-height: 250px;
    background: linear-gradient(110deg, #e7f4e5, #f6fbf2);
    border-radius: 17px;
    padding: 40px 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.promo-banner h2 {
    font-size: 31px;
    line-height: 1.25;
    margin: 9px 0;
}

.promo-banner p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.promo-icon {
    font-size: 120px;
    color: #b7d9a9;
    margin-right: 65px;
}

/* REVIEWS */

.reviews-section {
    background: #f8fbf7;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 18px rgba(0,0,0,.025);
}

.review-stars {
    color: #eca83c;
    font-size: 15px;
    margin-bottom: 15px;
}

.review-card > p {
    color: #68776a;
    font-size: 13px;
    line-height: 1.8;
    min-height: 70px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--green);
    background: var(--green-light);
    font-weight: 800;
}

.review-author strong {
    display: block;
    font-size: 12px;
}

.review-author small {
    font-size: 11px;
    color: var(--muted);
}

/* BENEFITS */

.benefits-section {
    padding: 35px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 13px;
}

.benefit > i {
    font-size: 27px;
    color: var(--green);
}

.benefit strong, .benefit small {
    display: block;
}

.benefit strong {
    font-size: 13px;
}

.benefit small {
    font-size: 11px;
    color: var(--muted);
}

/* FOOTER */

.main-footer {
    background: #153c28;
    color: #e9f3e9;
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 35px;
    padding-bottom: 40px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 17px;
}

.footer-about p, .footer-grid > div > p {
    color: #bed1c1;
    font-size: 12px;
    line-height: 1.9;
}

.footer-grid h4 {
    font-size: 14px;
    margin-bottom: 18px;
    color: #fff;
}

.footer-grid > div > a:not(.logo) {
    display: block;
    font-size: 12px;
    color: #bed1c1;
    margin-bottom: 12px;
    transition: .2s;
}

.footer-grid > div > a:hover {
    color: #b6e69c;
}

.footer-grid p i {
    margin-right: 6px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    transition: .2s;
}

.social-links a:hover {
    background: var(--green);
}

.footer-bottom {
    background: #10331f;
    padding: 17px 0;
    color: #b8cbbb;
    font-size: 11px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* EMPTY STATES */

.empty-message {
    color: var(--muted);
    text-align: center;
    padding: 35px 15px;
    font-size: 13px;
    grid-column: 1 / -1;
}

.empty-message i {
    display: block;
    font-size: 32px;
    color: var(--green);
    margin-bottom: 8px;
}

.empty-message h3 {
    color: var(--text);
    margin-bottom: 5px;
    font-size: 18px;
}

/* ANIMATIONS */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TABLET */

@media (max-width: 1000px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-links {
        gap: 20px;
    }

    .nav-delivery {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }

    .top-bar-inner span:last-child {
        display: none;
    }

    .header-inner {
        min-height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
        gap: 13px;
    }

    .logo {
        font-size: 24px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .header-actions {
        margin-left: auto;
        gap: 14px;
    }

    .account-link span, .cart-link > span {
        display: none;
    }

    .account-link i, .cart-link > i {
        font-size: 21px;
    }

    .search-form {
        order: 3;
        max-width: none;
    }

    .main-nav {
        min-height: 45px;
    }

    .nav-inner {
        justify-content: flex-start;
        min-height: 45px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px 4%;
        background: var(--green-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .nav-links a::after {
        display: none;
    }

    .hero-section {
        padding-top: 15px;
    }

    .hero-slider {
        min-height: 530px;
    }

    .hero-slide, .hero-slide.active {
        min-height: 530px;
        grid-template-columns: 1fr;
        padding: 25px 22px 55px;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-image {
        height: 210px;
    }

    .slider-controls {
        bottom: 12px;
    }

    .section {
        padding: 45px 0;
    }

    .section-heading {
        align-items: start;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 9px;
    }

    .category-card {
        padding: 10px 4px;
    }

    .category-image {
        width: 58px;
        height: 58px;
    }

    .category-card h3 {
        font-size: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 11px;
    }

    .product-image {
        height: 155px;
    }

    .product-info {
        padding: 11px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .product-price strong {
        font-size: 13px;
    }

    .promo-banner {
        padding: 30px 22px;
        min-height: 220px;
    }

    .promo-banner h2 {
        font-size: 24px;
    }

    .promo-icon {
        font-size: 55px;
        margin: 0;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 10px;
    }

    .benefit {
        gap: 8px;
    }

    .benefit > i {
        font-size: 23px;
    }

    .benefit strong {
        font-size: 11px;
    }

    .benefit small {
        font-size: 9px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 380px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-actions {
        gap: 10px;
    }

    .product-image {
        height: 130px;
    }
}
