/* style.css - Shared Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #040a26;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    font-size: 16px;
    transition: 0.2s;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.menu-toggle span + span {
    margin-top: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3F7652;
}

/* Hero */
.hero-primary {
    background: linear-gradient(97deg, #1a2a1f 0%, #2a4a2f 100%), url('images/background.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 110px 20px;
    text-align: center;
}

.hero-primary h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-primary p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.hero-secondary {
    background: #f8faf4;
    padding: 70px 20px;
    text-align: center;
}

.hero-secondary h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1e3a2f;
}

.hero-secondary p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: #2d3e2d;
}

/* Buttons */
.shop-btn-wrapper {
    text-align: center;
    margin: 40px 0 30px;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #3F7652;
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(63, 118, 82, 0.3);
}

.btn-shop:hover {
    background: #2c5a3e;
    transform: translateY(-3px);
}

.btn-shop:hover i {
    transform: translateX(6px);
}

/* Product Slider & Grid */
.products-section {
    padding: 50px 0 70px;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a2a1f;
}

.swiper {
    padding: 15px 5px 45px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: 0.25s;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f9f9f9;
    padding: 20px;
    width: 100%;
}

.product-info {
    padding: 18px 16px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2a1b;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.old-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}

.sale-price {
    font-size: 22px;
    font-weight: 800;
    color: #3F7652;
}

.regular-price {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.btn-buy {
    background: #000;
    color: white;
    padding: 12px 0;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-family: inherit;
    font-size: 15px;
}

.btn-buy:hover {
    background: #3F7652;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Swiper arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #000;
    background: rgba(255, 255, 255, 0.85);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet-active {
    background: #3F7652;
}

/* M-PESA Banner */
.mpesa-banner {
    background: #f0f3ed;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0 40px;
    border-radius: 40px;
}

.mpesa-banner img,
.mpesa-banner-large img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Footer */
.footer {
    background: #040a26;
    color: #fff;
    padding: 50px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col li {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 15px;
}

.social-icons a {
    background: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.2s;
}

.social-icons a:hover {
    background: #3F7652;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #aaa;
}

.footer-logo img {
    width: 90px;
    margin-bottom: 15px;
}

.flex-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3F7652;
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    font-family: 'Quicksand', sans-serif;
    transition: 0.2s;
}

.chat-bubble:hover {
    background: #2c5a3e;
    transform: scale(1.02);
}

/* Page Header */
.page-header {
    background: #f0f5ee;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    color: #1e3a2f;
}

/* About Page */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin: 40px 0 80px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1.5;
}

.about-text h2 {
    margin: 25px 0 15px;
    color: #3F7652;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.group-list {
    list-style: disc;
    padding-left: 20px;
}

.group-list li {
    margin-bottom: 10px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Page */
.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0 80px;
}

.contact-info,
.contact-form {
    flex: 1;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 24px;
}

.contact-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-detail i {
    font-size: 24px;
    color: #3F7652;
    margin-top: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
}

.btn-submit {
    background: #3F7652;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit:hover {
    background: #2c5a3e;
}

.form-note {
    font-size: 13px;
    margin-top: 15px;
    color: #666;
}

/* M-PESA Page */
.mpesa-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0 80px;
}

.mpesa-card {
    flex: 1;
    background: linear-gradient(145deg, #fff, #f8faf4);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.mpesa-card i {
    font-size: 48px;
    color: #3F7652;
    margin-bottom: 20px;
}

.paybill-number {
    font-size: 48px;
    font-weight: 800;
    color: #1e3a2f;
    letter-spacing: 2px;
    margin: 20px 0;
}

.mpesa-card ol {
    text-align: left;
    margin: 25px 0;
    padding-left: 20px;
}

.mpesa-card li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.mpesa-note {
    background: #e9f0e6;
    padding: 15px;
    border-radius: 20px;
    margin-top: 20px;
    font-size: 14px;
}

.mpesa-banner-large {
    flex: 1;
    text-align: center;
}

/* Responsive */
@media (max-width: 850px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .menu-toggle {
        display: flex;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 10px;
    }

    .menu-toggle:hover {
        border-color: transparent;
        transform: none;
    }

    .nav-menu {
        display: block;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.35s ease;
    }

    .nav-menu.open {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 18px;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        padding: 18px 0;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: #3F7652;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav-menu ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-primary h1 {
        font-size: 32px;
    }

    .hero-secondary h2 {
        font-size: 28px;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .mpesa-container {
        flex-direction: column;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 550px) {
    .product-title {
        font-size: 16px;
    }

    .sale-price {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

/* Checkout and Checkout Summary on M-PESA Page */
.checkout-summary-column {
    flex: 1.2;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-summary-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #f0f0f0;
}

.product-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 5px;
}

.product-select-dropdown {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #ddd;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    outline: none;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.product-select-dropdown:focus {
    border-color: #3F7652;
    box-shadow: 0 0 0 3px rgba(63, 118, 82, 0.15);
}

.checkout-prod-preview {
    background: #f9faf9;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

.checkout-prod-img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

.checkout-prod-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2a1f;
    margin-bottom: 5px;
}

.checkout-prod-price {
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

.checkout-qty-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-label {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-control-box {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 30px;
    padding: 4px;
    background: #fcfcfc;
    align-self: flex-start;
}

.btn-qty-adjust {
    border: none;
    background: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: #3F7652;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-qty-adjust:hover {
    background: #3F7652;
    color: white;
}

.qty-val {
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
}

.checkout-total-box {
    background: #f4faf6;
    border: 1.5px dashed #3F7652;
    padding: 18px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #2c5a3e;
}

.checkout-total-price {
    font-size: 26px;
    font-weight: 800;
    color: #3F7652;
}

/* Call to Order widget */
.order-call-section {
    background: linear-gradient(135deg, #fbfdfb 0%, #f1f7f3 100%);
    border: 1.5px solid #d8ebdcf0;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-call-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-call-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.call-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.btn-modal-call,
.btn-modal-email,
.btn-modal-whatsapp {
    color: white;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-modal-call {
    background: #3F7652;
}

.btn-modal-call:hover {
    background: #2c5a3e;
    transform: translateY(-2px);
}

.btn-modal-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-modal-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.btn-modal-email {
    background: #2451a1;
}

.btn-modal-email:hover {
    background: #1c4182;
    transform: translateY(-2px);
}

/* Request callback form */
.checkout-callback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.checkout-callback-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a1f;
}

.checkout-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-input-group label {
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

.checkout-field {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.checkout-field:focus {
    border-color: #3F7652;
    box-shadow: 0 0 0 3px rgba(63, 118, 82, 0.12);
}

.btn-submit-callback {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-callback:hover {
    background: #3F7652;
}

.success-feedback {
    text-align: center;
    padding: 30px 10px;
    animation: fadeSlide 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-feedback i {
    font-size: 54px;
    color: #3F7652;
    margin-bottom: 15px;
}

.success-feedback h4 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.success-feedback p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}