:root {
    --primary-green: #1b8a73;
    --accent-yellow: #ffc107;
    --dark-blue: #0046a1;
    --text-white: #ffffff;
}

/* --- Global Resets --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { overflow-x: hidden; width: 100%; background-color: #fff; }
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }

/* --- Header & Navbar --- */
.shop-hero { 
    background-color: var(--primary-green); 
    color: white; 
    padding: 20px 0 100px 0; 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 80px; 
}

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { 
    color: white; text-decoration: none; font-weight: 500; 
    padding-bottom: 5px; border-bottom: 2px solid transparent; 
}
.nav-links a.active, .nav-links a:hover { border-bottom: 2px solid var(--accent-yellow); }

.mobile-toggle { display: none; }

/* --- Search & Icons --- */
.nav-icons { display: flex; align-items: center; gap: 10px; }
.icon-btn { 
    background: none; border: none; color: white; 
    font-size: 18px; cursor: pointer; position: relative; padding: 8px;
}
.icon-btn:hover::after {
    content: ""; position: absolute; bottom: 0; left: 20%; 
    width: 60%; height: 2px; background: #ffcc00;
}

.search-wrapper { display: flex; align-items: center; border-radius: 50px; transition: 0.3s; }
.search-wrapper.active { background: white; padding: 2px 15px; }
.search-input { width: 0; opacity: 0; border: none; outline: none; background: transparent; transition: 0.3s; }
.search-wrapper.active .search-input { width: 180px; opacity: 1; }
.search-wrapper.active .icon-btn { color: #1b8a73; }

/* --- Hero Content (Left Aligned) --- */
.hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    text-align: left; 
}

.hero-top-row { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin-bottom: 50px; 
    width: 100%; 
}

.company-name-heading { font-size: 42px; font-weight: 700; line-height: 1.2; }

.lab-pill { 
    border: 2px solid white; 
    padding: 10px 25px; 
    border-radius: 50px; 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    white-space: nowrap; 
    font-size: 0.9rem;
}

.page-title { 
    font-size: 85px; 
    font-weight: 800; 
    margin-bottom: 10px; 
    line-height: 1; 
}

/* --- Mobile Queries --- */
@media (max-width: 768px) {
    .mobile-toggle { 
        display: flex; 
        background: var(--dark-blue); 
        color: white; 
        border: none; 
        width: 45px; 
        height: 40px; 
        border-radius: 8px; 
        align-items: center; 
        justify-content: center; 
    }

    .nav-links { 
        display: none; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: var(--primary-green); 
        flex-direction: column; 
        padding: 30px; 
        z-index: 1000; 
    }
    .nav-links.show { display: flex !important; }

    .hero-top-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .company-name-heading { font-size: 28px; }
    .page-title { font-size: 55px; }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.whatsapp-float img { width: 35px; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(1, 1fr); }
    .slider-arrow { display: none; }
}

/* Blog Section Styling */
.recent-blog {
    padding: 60px 5%;
    background-color: #fff;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.blog-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.view-all-link {
    color: #333;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #808080; /* Gray hover like your previous request */
}

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Clickable Card Styling */
.blog-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 20px 0;
}

.blog-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.blog-date strong {
    color: #444; /* Darker color for the author name */
    font-weight: 600;
    margin-left: 5px;
}

/* Optional: add a small "By" prefix style */
.blog-date::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: #BFFFF0; /* Using your mint green as a divider underline */
    margin-top: 8px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.blog-card:hover h3 {
    color: #BFFFF0; /* Subtle highlight using your mint green color */
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Footer Styling */
.main-footer {
    background-color: #fff;
    padding: 60px 5% 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 1px solid #eee;
}

/* Newsletter Section */
.footer-newsletter {
    margin-bottom: 60px;
}

.newsletter-wrap h3 {
    color: #3e5f58;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
}

.newsletter-inputs input {
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    width: 250px;
}

.send-btn {
    background-color: #3e5f58;
    border: none;
    width: 50px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1.2fr 1.8fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-column h4 {
    color: #2b8c52;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a, .contact-col p {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.contact-col p {
    margin-bottom: 10px;
}

/* Social Icons */
.social-col ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    background: #e1ede8;
    color: #3e5f58;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Bottom Bar */
.footer-policies {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.footer-policies a {
    text-decoration: none;
    color: #3e5f58;
    font-weight: 500;
}

.footer-copyright {
    text-align: center;
    color: #666;
    font-size: 14px;
}





/* --- COMPREHENSIVE RESPONSIVE QUERIES --- */

/* Tablet & Large Phones (below 992px) */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }

    .product-card {
        flex: 0 0 calc(50% - 10px); /* 2 items in slider view */
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Standard Mobile Devices (below 768px) */
@media (max-width: 768px) {
    /* Navbar */
    .nav-links { display: none; } /* Hide text links, suggest adding a burger icon */
    .navbar { padding: 15px 5%; }
    
    /* Hero Section */
    .hero-container { height: 60vh; }
    h1 { font-size: 2.2rem; }
    .hero-badge { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Category & Product Grids */
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-viewport { width: 100%; }
    .product-card { flex: 0 0 80%; } /* Cards "peek" in from the side to show scrollability */
    
    /* Reveal Hidden Buttons (No hover on mobile) */
    .add-btn { opacity: 1; bottom: -15px; }

    /* Blog & Brands */
    .blog-grid { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }

}

/* Small Phones (below 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .shop-btn { width: 100%; padding: 15px 20px; }
    
    .category-grid { grid-template-columns: 1fr; }
    .cat-card { height: 140px; }

    .section-title { font-size: 24px; padding-left: 20px; }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; } /* Stacks all columns on mobile */
    .newsletter-bar { flex-direction: column; gap: 20px; text-align: center; }
}

/* --- Global Mobile Refinements --- */
@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    .footer-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px;
    }
}


/* --- Mobile Devices --- */
@media (max-width: 768px) {
    /* Newsletter */
    .newsletter-inputs { flex-direction: column; width: 100%; align-items: stretch; }
    .newsletter-inputs input { width: 100%; }
    .send-btn { width: 100%; height: 50px; }

    /* Footer Grid - 2 columns */
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-policies { flex-wrap: wrap; gap: 15px; justify-content: center; }
}

/* --- Small Mobile Devices --- */
@media (max-width: 500px) {
    /* Footer - Single Column */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-col ul li a { justify-content: center; }
    
    .shop-hero { padding: 20px 0 60px 0; }
    .add-btn { opacity: 1; bottom: -10px; width: 40px; height: 40px; } /* Always show button on mobile as there is no hover */
}

