﻿/* ================================
   General Reset & Body
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f8f4;
    color: #2a2a2a;
}

/* ================================
   Header Section
   ================================ */
.header-top {
    background-color: #305b18;
    color: #fff;
}

/* Search bar */
#searchForm input[type="text"] {
    padding-right: 2.5rem;
    font-size: 15px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(48, 91, 24, 0.1);
    border: 1px solid #c7dfba;
    background-color: #fff;
}

#searchForm span.position-absolute {
    font-size: 18px;
    color: #6e9e59;
    pointer-events: none;
}


/* Category Dropdown */
#categorySelect {
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #c7dfba;
    background-color: #f9fff6;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 0; /* Ensures it shrinks properly inside flex */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Clear Button */
#clearBtn {
    padding: 6px 16px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 6px;
    font-size: 14px;
}

/* Optional: prevent dropdown from shrinking text on larger screens */
@media (min-width: 992px) {
    #categorySelect {
        font-size: 15px;
        min-width: 220px;
    }
}


/* Phone toggle */
#phoneToggle:hover #phoneNumber,
#phoneToggle:focus #phoneNumber {
    display: inline;
}

/* Cart badge */
.cart-count {
    font-size: 11px;
    padding: 3px 6px;
    background-color: #305b18;
    color: white;
    border-radius: 50%;
}

/* ================================
   Banner & Ticker
   ================================ */
.banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ticker {
    background: #e2f3d9;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #b7d3aa;
    padding: 0.7rem 0;
    position: relative;
}

.ticker-track {
    display: inline-block;
    animation: scrollTicker 30s linear infinite;
    will-change: transform;
}

.ticker-text {
    display: inline-block;
    padding-right: 4rem;
    font-size: 16px;
    font-weight: 500;
    color: #2d4520;
}

.ticker-track:hover {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ================================
   Advertisement Sections
   ================================ */
.ad-container-wrapper {
    position: relative;
    margin: 10px 5px;
}

/* Top ad banner (KEPT FOR FUTURE USE) */
.ad-top {
    /* width: 100%;
    height: 130px;
    background-color: #ecf6e7;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden; */
}

/* Bottom ad banner 
.ad-bottom {
    width: 100%;
    height: 130px;
    background-color: #ecf6e7;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}
*/
/* Main body layout */
.ad-main-body {
    display: flex;
    width: 100%;
    gap: 10px;
}

/* Left ad */
.ad-left,
.ad-right {
    position: sticky;
    top: 10px;
    width: 90px;
    background-color: #ecf6e7;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    align-self: flex-start;
}

/* Main content area */
.main-content-area {
    flex-grow: 1;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Ad images sizing */
.ad-left img,
.ad-right img {
    width: 80px;
    height: 150px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.ad-top img,
.ad-bottom img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

    /* Hover effect */
    .ad-left img:hover,
    .ad-right img:hover,
    .ad-top img:hover,
    .ad-bottom img:hover {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(0, 128, 0, 0.6);
    }

/* Responsive - Hide side ads on smaller screens */
@media (max-width: 991px) {
    .ad-left,
    .ad-right {
        display: none;
    }

    .main-content-area {
        padding: 10px;
    }

    .ad-main-body {
        gap: 0;
    }
}

/* ================================
   Navigation Menu
   ================================ */
.navbar {
    background: linear-gradient(90deg, #4c7125, #305b18);
}

    .navbar .nav-link {
        color: #ffffff !important;
        padding: 10px 15px;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }

        .navbar .nav-link:hover {
            background-color: #5a8d2f;
            border-radius: 6px;
        }

/* ================================
   Navbar Toggler - Custom Style & Animation (Fixed)
   ================================ */
/* Navbar toggler background */
.navbar-toggler {
    background-color: #4c7125; /* Dark green by default */
    border: none;
    padding: 8px 12px;
    margin: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.25s ease;
    position: relative;
    width: 45px;
    height: 35px;
    cursor: pointer;
}

    /* Hover/focus effect */
    .navbar-toggler:hover,
    .navbar-toggler:focus {
        background-color: #78b43d; /* lighter green on hover */
        outline: none;
    }

    /* When menu is open */
    .navbar-toggler:not(.collapsed) {
        background-color: #4c7125; /* optional: keep same green or change if needed */
    }

    /* Hamburger icon */
    .navbar-toggler .navbar-toggler-icon {
        opacity: 1;
        pointer-events: none;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 28px;
        height: 20px;
        transform: translate(-50%, -50%);
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    /* Close icon */
    .navbar-toggler .close-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 28px;
        height: 28px;
        transform: translate(-50%, -50%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

        .navbar-toggler .close-icon::before,
        .navbar-toggler .close-icon::after {
            content: "";
            position: absolute;
            left: 0;
            top: 13px;
            width: 28px;
            height: 2.5px;
            background-color: white;
            border-radius: 2px;
        }

        .navbar-toggler .close-icon::before {
            transform: rotate(45deg);
        }

        .navbar-toggler .close-icon::after {
            transform: rotate(-45deg);
        }

    /* Toggle behavior */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        opacity: 0;
    }

    .navbar-toggler:not(.collapsed) .close-icon {
        opacity: 1;
        pointer-events: auto;
    }



/* ================================
   Product Card Modern Look
   ================================ */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .product-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-bottom: 1px solid #eaeaea;
    }

    .product-card .details {
        padding: 15px;
    }

        .product-card .details h5 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
            color: #2d4520;
        }

        .product-card .details .price {
            font-size: 15px;
            font-weight: 500;
            color: #4c7125;
            margin-top: 6px;
        }

    .product-card.in-cart {
        border: 2px solid #28a745 !important;
        background-color: #f0fff5;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
        transition: all 0.3s ease-in-out;
    }


@keyframes flashAnim {
    0% {
        background-color: #ffff99;
    }

    50% {
        background-color: #ffffff;
    }

    100% {
        background-color: #ffff99;
    }
}


/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #305b18;
        padding: 10px;
    }

    .navbar-nav .nav-link {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .header-top .row > div {
        text-align: center;
    }

    .header-top .d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
    }

    #searchForm,
    #categoryForm {
        width: 100%;
    }

    .header-top .phone-number {
        display: inline !important;
        position: static;
        box-shadow: none;
        padding: 0;
        color: white;
    }
}

/* ================================
   Scroll to Top Button
   ================================ */
#scrollToTopBtn {
    position: fixed;
    bottom: 10px;
    right: 5px;
    z-index: 999999;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #6abe45, #4c7125);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.3s ease;
    pointer-events: auto;
}

    #scrollToTopBtn:hover {
        transform: scale(1.1) rotate(5deg);
        background: linear-gradient(145deg, #4c7125, #6abe45);
    }

    #scrollToTopBtn.show {
        opacity: 1;
        visibility: visible;
    }

/* Footer Styles */
.main-footer {
    background-color: #e7f3e7;
    color: #2b4a1d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 0 20px;
}

/* Footer Titles */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #2b4a1d;
    display: inline-block;
    text-align: left;
    position: relative;
    padding-bottom: 6px;
}

    .footer-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        width: 100%;
        background-color: #78b43d;
        border-radius: 2px;
    }

/* Center subscribe title only */
.col-md-4:nth-child(2) .footer-title {
    margin: 0 auto;
    text-align: center;
    display: table;
}

/* Footer Links */
.footer-links {
    padding-left: 0;
    list-style: none;
    text-align: left;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #2b4a1d;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: #78b43d;
        }

/* Newsletter */
.footer-text {
    font-size: 15px;
    margin-bottom: 0.75rem;
    color: #2b4a1d;
    padding-left: 8px;
    text-align: left;
}

.footer-newsletter {
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

    .footer-newsletter input[type="email"] {
        flex-grow: 1;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #aacb8f;
        font-size: 14px;
        outline: none;
        color: #2b4a1d;
        max-width: 280px;
        height: 42px;
        box-sizing: border-box;
    }

        .footer-newsletter input[type="email"]::placeholder {
            color: #7f9f67;
        }

    .footer-newsletter button {
        background-color: #4c7125;
        border: none;
        padding: 0 20px;
        border-radius: 6px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease;
        min-width: 110px;
        height: 42px;
        line-height: 1;
        box-sizing: border-box;
    }

        .footer-newsletter button:hover {
            background-color: #3b591b;
        }

.footer-title-subscribe {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    color: #2b4a1d;
    width: 100%;
}

    .footer-title-subscribe::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #78b43d;
    }

/* Newsletter */
.footer-text {
    font-size: 15px;
    margin-bottom: 0.75rem;
    color: #2b4a1d;
    padding-left: 8px;
    text-align: left;
}

.footer-newsletter {
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

    .footer-newsletter input[type="email"] {
        flex: 1;
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #aacb8f;
        font-size: 14px;
        outline: none;
        color: #2b4a1d;
        height: 42px;
        box-sizing: border-box;
        min-width: 0;
    }

        .footer-newsletter input[type="email"]::placeholder {
            color: #7f9f67;
        }

    .footer-newsletter button {
        background-color: #4c7125;
        border: none;
        padding: 0 20px;
        border-radius: 6px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease;
        height: 42px;
        box-sizing: border-box;
        flex-shrink: 0;
        white-space: nowrap;
    }

@media (max-width: 576px) {
    .footer-newsletter button {
        margin-top: -5px;
    }

    
}
@media (max-width: 767.98px) {
    .footer-title-subscribe {
        text-align: left !important;
        margin-left: 0 !important;
        display: block !important;
    }
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

    .footer-title::after {
        content: "";
        display: block;
        height: 2px;
        background-color: #78b43d;
        width: 100%;
        margin-top: 5px;
    }

.footer-info {
    font-size: 15px;
    color: #2b4a1d;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* match text-md-end in Bootstrap */
    gap: 4px;
    text-align: right;
}

    .footer-info p {
        display: flex;
        align-items: center;
        gap: 6px; /* space between icon and text */
        margin: 0;
    }

    .footer-info i {
        color: #78b43d;
        font-size: 16px;
        display: inline-block;
        min-width: 16px;
        text-align: center;
    }

    .footer-info a.footer-email-link {
        color: #2b4a1d;
        font-weight: 600;
        text-decoration: none;
    }

        .footer-info a.footer-email-link:hover {
            color: #78b43d;
            text-decoration: underline;
        }
/* Footer info alignment for small screens */
@media (max-width: 767.98px) { /* Bootstrap sm breakpoint */
    .footer-info {
        align-items: flex-start !important; /* align left */
        text-align: left !important;
    }
}


/* Bottom Row */
.main-footer > .container > .d-flex {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.main-footer .small {
    font-weight: 700;
    font-size: 14px;
    color: #2b4a1d;
    text-transform: uppercase;
}

.footer-social-icons a {
    color: #2b4a1d;
    margin-left: 15px;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

    .footer-social-icons a:hover {
        color: #78b43d;
    }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .row.text-center.text-md-start {
        text-align: left !important;
    }

    .footer-newsletter {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: center;
    }

        .footer-newsletter input[type="email"],
        .footer-newsletter button {
            width: auto !important;
            flex: 1 1 auto;
            min-width: 0;
            height: 42px;
        }

    .main-footer > .container > .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social-icons {
        margin-left: 0 !important;
        justify-content: flex-start !important;
        text-align: left;
    }

    .footer-title {
        text-align: left !important;
        margin-left: 0 !important;
        display: block !important;
    }

    .col-md-4:nth-child(2) .footer-title {
        text-align: center !important;
        display: table !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-info {
        max-width: 100% !important;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .footer-links {
        text-align: left !important;
    }
}

.footer-social-icons a {
    text-decoration: none;
    color: #2b4a1d; /* Base dark green color */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: #e7f3e7; /* Light green background */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .footer-social-icons a:hover {
        color: white;
        background-color: #78b43d; /* Bright green on hover */
        box-shadow: 0 4px 10px rgba(120,180,61,0.6);
        transform: scale(1.15);
    }

.footer-social-icons i {
    font-size: 20px;
    pointer-events: none; /* So the hover applies to the <a>, not icon itself */
}


/* banner img */

.banner {
    width: 100%;
    height: auto;
    max-height: 250px;
}

    .banner svg,
    .banner img {
        width: 100%;
        height: auto;
        object-fit: contain; /* ensures full content is visible */
        display: block;
    }


