:root {
    --primary-green: #248a73;
    --accent-yellow: #ffc107;
    --text-white: #ffffff;
}

* { 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 Section --- */
.shop-hero {
    background-color: #1b8a73; /* Your Teal color */
    color: white;
    padding: 30px 0 80px 0;
    width: 100%;
    position: relative;
    width: 100%;
    min-height: 80vh; /* Ensures the slideshow is tall enough */
    overflow: hidden;
}


.slide {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    transition: background-image 1.2s ease-in-out; /* Smooth fade effect */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px; /* Space for fixed navbar */
}

/* Dark overlay so text is readable */
.slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 40% black tint */
    z-index: 1;
}

/* Ensure content sits above the overlay */
.slide .container {
    position: relative;
    z-index: 2;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

/* This class will be added/removed by JavaScript */
.nav-links.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background-color: #1b8a73; /* Match your teal theme */
    padding: 20px;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Ensure the hamburger button is visible and styled */
.mobile-toggle {
    display: none; /* Hidden on desktop */
    background: #004a99; color: white; border: none; padding: 10px; border-radius: 5px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block; /* Shown on mobile */
        cursor: pointer;
    }
}

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { 
    color: white; text-decoration: none; 
    padding-bottom: 5px; border-bottom: 2px solid transparent; 
}
.nav-links a.active, .nav-links a:hover { border-bottom: 2px solid #ffcc00; }


/* --- 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 --- */
.hero-content { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.page-title { font-size: 50px; font-weight: 800; }
.lab-pill { 
    border: 2px solid white; color: white; text-decoration: none;
    padding: 12px 30px; border-radius: 50px; font-weight: 600;
}

.slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 5%;
}


/* Hover Effect: Turns gray */
.lab-link:hover {
    background-color: #808080;     /* Gray color */
    border-color: #808080;         /* Matches border to background */
    color: white;
}

h1 { font-size: 3.5rem; margin: 20px 0; line-height: 1.2; }

/* The base styling for your yellow Shop Now button */
.shop-btn {
    background-color: #FFC107; /* Your primary yellow */
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease; /* This ensures the color fade is smooth */
}

/* The Hover Effect */
.shop-btn:hover {
    background-color: #808080; /* Changes to gray */
    transform: scale(1.05);    /* Makes the button 5% larger */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Adds a subtle shadow */
}

/* 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; }

/* 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; }





/* Testimonials */
.testimonials-section {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 300px; /* Ensures space for the sliding text */
}

.testimonial-content {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    visibility: hidden;
}

.testimonial-content.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin-bottom: 30px;
}

.client-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.client-name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.client-role { color: #666; font-size: 0.9rem; margin-top: 5px; }

/* The Black Dot at the bottom */
.bottom-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #d1d1d1; /* Gray for inactive dots */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #000000; /* Black for active dot */
}


/* 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; }
}



/* Brands Section Styling */
.brands-section {
    padding: 60px 5%;
    text-align: left;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #ddd;
}

.brand-box {
    border: 1px solid #ddd;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-box img {
    max-width: 100%;
    height: auto;
}

/* Mobile Responsiveness for new sections */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Stack blogs on top of each other */
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 brands per row on mobile */
    }
}

/* 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 */
}
