: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%; }
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }

/* --- Header & Navbar --- */
.shop-hero { 
    background-color: var(--primary-green); 
    color: white; 
    padding: 20px 0 40px 0; 
    width: 100%; 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
}

.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; } /* Hidden on Desktop */

/* --- 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 Section (Left Aligned) --- */
.hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; /* Aligns all content to the left */
    text-align: left; 
}

.hero-top-row { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin-bottom: 60px; 
    width: 100%; 
}

.company-name-heading { font-size: 42px; font-weight: 700; line-height: 1.2; }

.lab-pill { 
    border: 2px solid white; 
    padding: 12px 30px; 
    border-radius: 50px; 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    white-space: nowrap; 
    font-size: 0.95rem;
    transition: 0.3s;
}
.lab-pill:hover { background: white; color: var(--primary-green); }

.page-title { 
    font-size: 85px; 
    font-weight: 800; 
    margin-bottom: 50px; 
    line-height: 1; 
}

.shop-now-btn { 
    background-color: var(--accent-yellow); 
    color: white; 
    border: none; 
    padding: 20px 60px; 
    border-radius: 50px; 
    font-size: 24px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: transform 0.2s;
}
.shop-now-btn:hover { transform: scale(1.05); }

/* --- 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: 30px; }
    .page-title { font-size: 55px; margin-bottom: 30px; }
    .shop-now-btn { padding: 15px 40px; font-size: 20px; }
}

/* 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; }
}

/* Category Grid */
.categories { padding: 50px 5%; }

.category-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 boxes per row */
    gap: 20px;
}

.cat-card {
    background-color: #248a73; /* Your brand green */
    color: white;
    height: 180px; /* Adjust height to match your design */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none; /* Removes the underline */
    padding: 20px;
    transition: all 0.3s ease; /* Smooth transition for the color change */
    cursor: pointer;
}

/* THE HOVER STATE */
.cat-card:hover {
    background-color: #808080; /* Changes to gray */
    transform: translateY(-8px); /* Lifts the card up slightly */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Adds a shadow for depth */
}

/* Container to handle the alignment */
.view-more-container {
    width: 100%;
    text-align: right;
    margin-top: 20px; /* Space between the grid and the link */
}

.view-more-link {
    color: #333; /* Dark gray/black by default */
    text-decoration: underline; /* Makes it look like a classic link */
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Hover effect */
.view-more-link:hover {
    color: #808080; /* Turns gray on hover */
    text-decoration: none; /* Optional: removes underline when hovering */
}

/* RESPONSIVE DESIGN (Mobile) */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide menu on phones */
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 boxes per row on phones */
    }
    
    h1 { font-size: 2rem; }
}

/* Product Section */
.top-selling { padding: 80px 0; background: #fff; }
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 40px; padding-left: 50px; }

.slider-wrapper { display: flex; align-items: center; justify-content: space-between; position: relative; }

.product-viewport { width: 90%; overflow: hidden; margin: 0 auto; }

.product-grid { 
    display: flex; 
    gap: 20px; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Card Structure */
.product-card { 
    flex: 0 0 calc(25% - 15px); 
    text-align: center; 
    position: relative;
    overflow: visible; /* Important for the floating button */
}

.product-img-holder { padding: 20px; position: relative; }
.product-img-holder img { width: 100%; height: 280px; object-fit: contain; }

.product-info { 
    padding: 40px 10px 20px; 
    transition: background-color 0.3s; 
    border-radius: 0 0 15px 15px;
}

.product-info .name { font-size: 14px; color: #555; margin-bottom: 5px; }
.product-info .price { font-size: 20px; font-weight: 800; color: #000; }

/* The Floating Plus Button */
.add-btn {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Hover Effects */
.product-card:hover .product-info { background-color: #BFFFF0; }
.product-card:hover .add-btn { opacity: 1; bottom: -20px; }




/* 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;
}

/* Navigation & Progress */
.arrow-btn { background: none; border: none; cursor: pointer; padding: 0 20px; }
.progress-container { display: flex; justify-content: center; margin-top: 40px; }
.progress-bar { width: 60px; height: 10px; background: #ddd; border-radius: 10px; transition: background 0.3s; }
.progress-bar.active { background: #888; }


/* 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; }
    
}

/* 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 */
}



/* Base state: Hidden and shrunk */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107; /* Your accent yellow */
    color: black;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* This keeps it hidden until the first click */
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

/* Active state: Visible and popped up */
.cart-badge.show {
    opacity: 1;
    transform: scale(1);
}


