/* ============================================================================
   v0.1.70 (additive) — SABJISTORE "GREEN MODERN" LAYER (hero + full recolour).
   NEW FILE, 100% additive. Loads AFTER modern.css on every public page, so it
   wins the cascade without touching main.css, polish.css, modern.css or any
   page's markup/handlers beyond the NEW standalone hero + features blocks.

   Why: user asked for a greenish-only identity (no yellow/amber accents),
   a fuller modern aesthetic and MORE content (hero banner + extras).
   The v0.1.69 header accents (amber) and the v0.1.68 amber CTA gradient and
   the gold testimonial stars are all re-skinned green here; a real hero
   banner and a features strip are added to the homepage as new standalone
   markup (inserted after the navbar), plus scroll-reveal and count-up
   behaviour in modern-v2.js.

   Safety rules used while writing this layer:
     - No existing rule is modified or removed — every recolour is a later,
       equal-or-higher-specificity re-declaration.
     - Inline styles (the delivery popup) can only be beaten with !important,
       used strictly on purely visual props.
     - New sections carry the md70- prefix and aria-hidden decorations, so
       nothing can collide with existing classes or logic.
     - prefers-reduced-motion disables every added effect.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   0. TOKENS — re-point the existing accent variables to the green family
      (later :root declaration wins the cascade; every var() user turns green)
   --------------------------------------------------------------------------- */
:root {
    --md69-accent: #22c55e;              /* was amber — now fresh green */
    --md69-accent-2: #86efac;            /* was light amber — now light green */
    --pl68-accent: #22c55e;              /* v0.1.68 token re-pointed to green */

    --md70-deep: #053e2a;                /* deep green ink */
    --md70-green: #22c55e;               /* primary fresh green */
    --md70-green-2: #16a34a;             /* deeper green (gradient end) */
    --md70-green-soft: #34d399;          /* mint (gradient start) */
    --md70-mist: #f0fdf4;                /* near-white green surface */
    --md70-mist-2: #e8f5e9;              /* pale green surface (page's own) */
    --md70-hero-1: #064e3b;              /* hero gradient start (emerald) */
    --md70-hero-2: #0b5e44;              /* hero gradient mid */
    --md70-hero-3: #096171;              /* hero gradient end (brand teal) */
}

/* ---------------------------------------------------------------------------
   1. GREEN RE-SKIN of the v0.1.69 header (same selectors, later file wins)
   --------------------------------------------------------------------------- */
.navbar {
    box-shadow:
        inset 0 -3px 0 rgba(34, 197, 94, 0.85),
        0 10px 30px rgba(4, 60, 72, 0.30);
}
#nav-container-to-replace.md69-scrolled .navbar {
    box-shadow:
        inset 0 -3px 0 rgba(34, 197, 94, 0.85),
        0 8px 26px rgba(4, 60, 72, 0.45);
}
.navbar .logo img {
    box-shadow:
        0 0 0 2px rgba(52, 211, 153, 0.8),
        0 4px 14px rgba(3, 42, 50, 0.45);
}
.navbar .logo img:hover {
    box-shadow:
        0 0 0 3px rgba(52, 211, 153, 0.95),
        0 8px 22px rgba(3, 42, 50, 0.55);
}
.search-input:focus {
    border-color: rgba(52, 211, 153, 0.85);
    box-shadow:
        inset 0 1px 4px rgba(5, 52, 61, 0.10),
        0 0 0 4px rgba(34, 197, 94, 0.22);
}
.search-btn {
    background-image: linear-gradient(120deg, var(--md70-green-soft), var(--md70-green-2));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45);
}
.search-btn:hover {
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.6);
}
.search-btn i {
    color: #ffffff;
}
.cart-count {
    background-image: linear-gradient(120deg, var(--md70-green-soft), var(--md70-green-2));
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.5);
}
.navbar-nav #login-link {
    background-image: linear-gradient(120deg, var(--md70-green-soft), var(--md70-green-2));
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.42);
}
.navbar-nav #login-link:hover {
    color: #ffffff;
    background-image: linear-gradient(120deg, #3fe3ab, #18b457);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.55);
}
.navbar-nav #login-link i {
    color: #ffffff;
}

/* ---------------------------------------------------------------------------
   2. GREEN RE-SKIN of the v0.1.68 polish layer (amber CTA + misc)
   --------------------------------------------------------------------------- */
.btn-submit,
.cta-btn,
button.btn-submit {
    background-image: linear-gradient(120deg, var(--md70-green-soft), var(--md70-green-2));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.btn-submit:hover,
.cta-btn:hover {
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6ee7b7, #0b5e44);
}

/* ---------------------------------------------------------------------------
   3. GREEN accents for the page's own sections (visual-only overrides)
   --------------------------------------------------------------------------- */
/* testimonial stars: gold -> fresh green.
   NOTE: the page's own inline <style> block sits AFTER the linked css files in
   the DOM, so a plain `.rating` re-declaration would lose the cascade — use a
   higher-specificity selector instead of touching the page. */
.testimonials-container .rating,
.testimonials-grid .rating {
    color: var(--md70-green);
}
/* next-day delivery image gets a soft ring */
#next-day-delivery .image-container img {
    box-shadow: 0 14px 34px rgba(9, 97, 113, 0.16);
}
/* "Flash Deal" heading + every .section-title get a green underline accent */
main > h2 {
    color: var(--md70-deep);
    position: relative;
}
main > h2::after {
    content: '';
    display: block;
    width: 68px;
    height: 4px;
    border-radius: 4px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--md70-green), var(--md70-hero-2));
}
.section-title {
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin: 12px auto 0;      /* the section containers are text-align:center */
    background: linear-gradient(90deg, var(--md70-green), var(--md70-hero-2));
}
.sub-badge {
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
/* "Why Choose Us?" panel -> soft green card */
.trust-badge-container {
    background: linear-gradient(145deg, var(--md70-mist) 0%, var(--md70-mist-2) 100%);
    border: 1px solid rgba(34, 197, 94, 0.18);
    box-shadow: 0 10px 30px rgba(9, 97, 113, 0.06);
}
/* review cards: keep their green bottom bar, add a gentle hover lift */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(9, 97, 113, 0.12);
}

/* ---------------------------------------------------------------------------
   4. Delivery popup -> glassy green card (inline styles need !important,
      strictly visual props)
   --------------------------------------------------------------------------- */
.popup-container-overlay {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}
.delivery-message-popup {
    border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(4, 50, 40, 0.35) !important;
    border-top: 4px solid var(--md70-green);
    overflow: hidden;
}
.delivery-message-popup img {
    border-radius: 16px !important;
}
.delivery-message-popup strong[style*="d35400"] {
    color: var(--md70-green-2) !important;
}

/* ---------------------------------------------------------------------------
   5. HERO BANNER (new md70- prefixed markup inserted after the navbar)
   --------------------------------------------------------------------------- */
.md70-hero {
    position: relative;
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(52, 211, 153, 0.25), transparent 60%),
        radial-gradient(900px 420px at -10% 110%, rgba(9, 97, 113, 0.35), transparent 55%),
        linear-gradient(135deg, var(--md70-hero-1) 0%, var(--md70-hero-2) 52%, var(--md70-hero-3) 100%);
    color: #ffffff;
    overflow: hidden;
}
/* soft wave divider into the page body */
.md70-hero::after {
    content: '';
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -1px;
    height: 52px;
    background: #ffffff;
    border-radius: 100% 100% 0 0 / 100% 100% 0 0;
    opacity: 0.99;
}
.md70-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 74px 28px 96px;
    display: flex;
    align-items: center;
    gap: 44px;
}
.md70-hero-copy {
    flex: 1.15;
    min-width: 0;
}
.md70-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--md70-green-soft);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.md70-hero-eyebrow i {
    font-size: 13px;
}
.md70-hero h1 {
    margin: 18px 0 16px;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-shadow: 0 4px 24px rgba(3, 42, 50, 0.45);
}
.md70-hero h1 .md70-grad {
    background: linear-gradient(90deg, var(--md70-green-soft), #a7f3d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.md70-hero-sub {
    max-width: 560px;
    margin: 0 0 26px;
    font-size: 16.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}
.md70-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.md70-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.md70-btn-primary {
    background-image: linear-gradient(120deg, var(--md70-green-soft), var(--md70-green-2));
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45);
}
.md70-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.55);
    color: #ffffff;
}
.md70-btn-ghost {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
}
.md70-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
    color: #ffffff;
}
/* stats row — the numbers are the store's own real figures (orders/outlets/products) */
.md70-hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.md70-stat {
    min-width: 108px;
}
.md70-stat-num {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.md70-stat-num .md70-suffix {
    color: var(--md70-green-soft);
}
.md70-stat-label {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
/* right art column — pure CSS composition, aria-hidden */
.md70-hero-art {
    flex: 0.85;
    min-width: 300px;
    position: relative;
    height: 380px;
}
.md70-orb {
    position: absolute;
    border-radius: 50%;
}
.md70-orb-1 {
    width: 300px; height: 300px;
    top: 24px; right: 30px;
    background: radial-gradient(circle at 32% 28%, rgba(52, 211, 153, 0.5), rgba(6, 78, 59, 0.15) 62%);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.md70-orb-2 {
    width: 150px; height: 150px;
    bottom: 30px; left: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
}
.md70-orb-2 i {
    font-size: 58px;
    color: var(--md70-green-soft);
}
.md70-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--md70-deep);
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(3, 42, 50, 0.35);
}
.md70-chip i {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(120deg, var(--md70-green-soft), var(--md70-green-2));
    color: #ffffff;
    font-size: 15px;
}
.md70-chip small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #4b6b60;
    letter-spacing: 0.4px;
}
.md70-chip-a { top: 34px; left: 0; }
.md70-chip-b { bottom: 74px; right: 6px; }
.md70-leaf {
    position: absolute;
    color: rgba(255, 255, 255, 0.30);
    font-size: 26px;
}

/* ---------------------------------------------------------------------------
   6. FEATURES STRIP (new md70- markup, sits under the hero)
   --------------------------------------------------------------------------- */
.md70-features {
    max-width: 1200px;
    margin: -34px auto 0;
    padding: 0 28px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.md70-feature {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 12px 34px rgba(9, 97, 113, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.12);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.md70-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(9, 97, 113, 0.16);
}
.md70-feature i {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(120deg, var(--md70-mist-2), #d1fae5);
    color: var(--md70-green-2);
    font-size: 18px;
}
.md70-feature h3 {
    margin: 2px 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--md70-deep);
}
.md70-feature p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #5b7268;
}

/* ---------------------------------------------------------------------------
   7. SCROLL REVEAL (classes only used by the new blocks)
   --------------------------------------------------------------------------- */
.md70-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.md70-reveal.md70-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------------
   8. RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .md70-hero-inner {
        padding: 56px 24px 84px;
        gap: 26px;
    }
    .md70-hero h1 {
        font-size: 36px;
    }
    .md70-hero-art {
        height: 320px;
        min-width: 240px;
    }
    .md70-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .md70-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 44px 18px 74px;
    }
    .md70-hero-copy {
        width: 100%;
    }
    .md70-hero h1 {
        font-size: 30px;
    }
    .md70-hero-sub {
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
    }
    .md70-hero-cta {
        justify-content: center;
    }
    .md70-hero-stats {
        justify-content: center;
        gap: 22px;
        margin-top: 26px;
    }
    .md70-stat-num {
        font-size: 24px;
    }
    .md70-hero-art {
        width: 100%;
        min-width: 0;
        height: 240px;
        display: none;           /* small screens keep it clean: copy-first */
    }
    .md70-features {
        grid-template-columns: 1fr 1fr;
        padding: 0 18px;
        margin-top: -28px;
        gap: 12px;
    }
    .md70-feature {
        padding: 16px 14px;
    }
    .md70-feature p {
        display: none;           /* icon + title only on phones */
    }
    main > h2::after,
    .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------------------------------------------------------------------------
   9. MOTION SAFETY
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .md70-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .md70-btn,
    .md70-feature,
    .review-card,
    .md70-btn-primary:hover,
    .md70-btn-ghost:hover,
    .md70-feature:hover,
    .review-card:hover {
        transition: none;
        transform: none;
    }
}
