/* =====================================================
   GREEN HARVEST CAFE
   Clean Wellness Lifestyle Store
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f4ec;
    color: #1f3d2b;
}

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

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

/* HEADER */

.green-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(246, 244, 236, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 61, 43, 0.12);
}

.green-nav {
    width: min(1180px, 92%);
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.green-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.green-logo {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2f6f57, #7daa92);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.green-brand strong,
.green-brand span {
    display: block;
}

.green-brand span {
    color: #2f6f57;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.green-links {
    display: flex;
    gap: 24px;
    font-weight: 900;
}

/* HERO */

.green-hero {
    position: relative;
    min-height: 650px;
    padding: 90px 0;
    background:
        url("https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 36px;
    color: white;
    overflow: hidden;
}

.green-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg,
            rgba(20, 52, 36, 0.88),
            rgba(20, 52, 36, 0.58),
            rgba(20, 52, 36, 0.32));
}

.green-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 92%);
    margin-left: max(4%, calc((100vw - 1180px) / 2));
}

.green-badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.green-hero-content h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    max-width: 740px;
}

.green-hero-content p {
    max-width: 610px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.07rem;
    line-height: 1.75;
}

.green-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.green-btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.green-btn.primary {
    background: #a7c957;
    color: #1f3d2b;
}

.green-btn.secondary {
    border: 2px solid rgba(255, 255, 255, 0.72);
    color: white;
}

/* WELLNESS CARD */

.wellness-card {
    position: relative;
    z-index: 2;
    width: min(330px, 90%);
    margin-right: max(4%, calc((100vw - 1180px) / 2));
    background: rgba(246, 244, 236, 0.96);
    color: #1f3d2b;
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.wellness-card>span {
    display: block;
    color: #2f6f57;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.wellness-stat {
    padding: 16px 0;
    border-bottom: 1px solid rgba(31, 61, 43, 0.12);
}

.wellness-stat:last-child {
    border-bottom: 0;
}

.wellness-stat strong {
    font-size: 2rem;
    color: #2f6f57;
}

.wellness-stat p {
    color: #5f6f64;
    font-weight: 800;
}

/* BENEFITS */

.green-benefits {
    padding: 38px 0 10px;
}

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

.benefit-grid {
    margin-top: -76px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.benefit-grid article {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(31, 61, 43, 0.12);
    border: 1px solid rgba(47, 111, 87, 0.12);
}

.benefit-grid span {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: rgba(167, 201, 87, 0.24);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.benefit-grid h3 {
    margin-bottom: 8px;
}

.benefit-grid p {
    color: #6b7280;
    line-height: 1.6;
}

/* SECTIONS */

.green-section {
    padding: 72px 0;
}

.section-kicker {
    color: #2f6f57;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section-title {
    margin-top: 10px;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.section-text {
    max-width: 720px;
    margin-top: 12px;
    color: #6b7280;
    line-height: 1.7;
}

/* PRODUCTS */

.green-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(31, 61, 43, 0.1);
    border: 1px solid rgba(47, 111, 87, 0.1);
}

.product-photo {
    height: 135px;
    background: #dcebc8;
    overflow: hidden;
}

.product-photo img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.product-body h3 {
    min-height: 44px;
    font-size: 1rem;
    line-height: 1.2;
}

.product-body p {
    min-height: 42px;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
}

.product-price {
    margin-top: 14px;
}

.product-price strong {
    color: #1f3d2b;
    font-size: 1.15rem;
}

.product-price span {
    margin-left: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.qty-control {
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #1f3d2b;
    color: white;
    font-weight: 950;
    cursor: pointer;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 950;
}

.add-cart-btn {
    margin-top: auto;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #a7c957, #dcebc8);
    color: #1f3d2b;
    font-weight: 950;
    cursor: pointer;
}

/* CART */

.cart-box {
    margin-top: 34px;
    padding: 26px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 18px 44px rgba(31, 61, 43, 0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item span {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.92rem;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

.loading-text {
    color: #6b7280;
}

/* FOOTER */

.green-footer {
    padding: 34px 20px;
    text-align: center;
    background: #1f3d2b;
    color: white;
    font-weight: 900;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .green-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .green-hero {
        grid-template-columns: 1fr;
    }

    .wellness-card {
        margin-left: max(4%, calc((100vw - 1180px) / 2));
    }
}

@media (max-width: 900px) {

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

    .green-hero {
        min-height: auto;
        padding: 72px 0;
    }
}

@media (max-width: 620px) {
    .green-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 0;
    }

    .green-links {
        gap: 16px;
        font-size: 0.9rem;
    }

    .green-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .green-hero-content,
    .wellness-card {
        margin-left: auto;
        margin-right: auto;
    }

    .green-actions,
    .cart-summary {
        flex-direction: column;
    }

    .green-btn {
        width: 100%;
    }
}

.buildframe-footer {
    width: 100%;
    padding: 14px 5%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cdefff;
    background: #061525;
}

.buildframe-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.buildframe-chat-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid #66d9ff;
    background: #071a2f;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(79, 195, 255, 0.55);
}

.buildframe-chat-panel {
    display: block;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 260px;
    padding: 18px;
    border-radius: 18px;
    background: #071a2f;
    border: 1px solid #66d9ff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #eaf8ff;
}

.buildframe-chat-panel.active {
    display: block;
}

.buildframe-chat-panel strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.buildframe-chat-panel p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #bfefff;
    margin-bottom: 12px;
}

.buildframe-chat-panel a {
    display: block;
    color: #66d9ff;
    font-weight: 800;
    margin-top: 8px;
    text-decoration: none;
}

.buildframe-logo-bubble {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(79, 195, 255, .6);
    transition: .3s;
}

.buildframe-logo-bubble:hover {
    transform: scale(1.08);
}

.buildframe-logo-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.buildframe-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
}

.buildframe-footer a:hover {
    color: #4fc3ff !important;
    text-decoration: underline !important;
}