:root {
    --primary-color: #007864;
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f4f9f8;
    --white: #ffffff;
    --red: #ff3b3b;
    --primary: #007864;
    --secondary: #007864;
    --accent: #007864;
    --text: #007864;
    --light: #f8fafc;
    --gray: #6b7280;
    --border: #007864;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
    --background-color: #ecfffc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    width: 100%;
    background-color: #007864;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-logo img {
    height: 35px;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-menu ul a {
    text-decoration: none;
    color: #fff;
    font-family: Verdana;
}

.search-field {
    width: 50%;
    position: relative;
}

.search-field input {
    width: 100%;
    height: 45px;
    border: none;
    outline: none;
    border-radius: 6px;
    padding: 0 45px 0 10px;
}

.search-field button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.search-field img {
    height: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions img {
    height: 28px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #d9534f;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 5px;
    min-width: 12px;
    text-align: center;
    line-height: 12px;
}

.menu-toggle {
    display: none;
    color: white;
    cursor: pointer;
}

.menu-toggle img {
    height: 24px;
}

/* Hero Carousel */
.hero {
    margin: 10px 0;
}

.carousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.prev {
    left: 10px;
}
.next {
    right: 10px;
}

/* Categories */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section-header a{
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.category-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* border-color: var(--primary); */
}
.category-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    margin: 0 auto 15px;
}
.category-card p {
    font-size: 16px;
    font-weight: 600;
}

/* Product Cards */

.product-section-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 10px;
    margin-bottom: 20px;
}

.product-section-header h2{
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
}

.product-section-header a{
    text-decoration: none;
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    padding: 12px;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    
}

.featured-product-section{
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    color: var(--primary-color);
}

.view-all{
    text-align: center;
    margin-bottom: 20px;
}

.view-all a{
    text-decoration: none;
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    padding: 12px 24px;
    background: var(--white);
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.view-all a:hover{
    background: var(--primary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    background: white;
    position: relative;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card:hover .prod-img img {
    transform: scale(1.1);
}

.discount-badge {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    border-radius: 10px 0px;
    top: 0;
    left: 0;
    position: absolute;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    z-index: 1;
}

.prod-img {
    overflow: hidden;
    border-radius: 12px;
    height: 200px;
    margin-bottom: 12px;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prod-info h3 {
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    overflow: hidden;
    margin-bottom: 10px;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
}

.price del {
    color: #999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin-left: 5px;
}

.btn-action {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-action.buy-now {
    background: #00695c;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
    text-align: center;
}

.feature-item {
    background-color: var(--white);
    padding: 30px 10px;
    border-radius: 8px;
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #FAFBFC;
    /*padding: 50px 0 0;*/
    padding-top: 50px;
    border-top: 2px solid rgba(214, 214, 214, 0.329);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 3fr;
    gap: 40px;
}

.payment-methods{
    width: 100%;
    padding: 10px 0;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.footer-bottom {
    padding:20px;
    background-color: #F2F5F7;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {

}

/* ================= MOBILE ================= */

@media (min-width: 770px) {
    .main-menu {
        display: block !important;
    }

    .search-field {
        display: block !important;
        /* Ensure search is also reset if toggled */
    }
}

@media (max-width: 769px) {

    .header-container {
        flex-wrap: wrap;
    }

    .header-logo {
        order: 1;
    }

    .header-actions {
        order: 2;
    }

    .main-menu {
        width: 100%;
        background: #007864;
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        padding: 20px 0;
        z-index: 99;
    }

    .main-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

    .main-menu ul li {
        width: 100%;
        padding: 16px;
        border-bottom: 1px solid #fff;
    }

    .main-menu ul li a:hover {
        color: #00eec6;
    }

    .search-field {
        width: 100%;
        margin-top: 10px;
        order: 3;
    }

    .menu-toggle {
        display: block;
    }
    /* Hero Carousel */
    .carousel-nav {
    width: 25px;
    height: 25px;
    }
    .prev i{
    font-size: 12px;
    }
    .next i{
    font-size: 12px;
    }

    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
}