/* --- Variables & Reset --- */
:root {
    --primary: #80EB0E;
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --text-grey: #666;
    --white: #ffffff;
    --border: #e1e1e1;
    --transition: all 0.3s ease;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info span { margin-right: 15px; }
.top-links a { margin-left: 15px; opacity: 0.8; }
.top-links a:hover { opacity: 1; color: var(--primary); }

/* --- Header --- */
#main-header {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 { font-weight: 700; font-size: 2rem; letter-spacing: -1px; }
.logo .dot { color: var(--primary); }

.nav-links { display: flex; gap: 15px; }
.nav-links a { font-weight: 500; font-size: 1rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #5aa80a; } /* Darker green for text readability */
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    background: var(--primary); bottom: -5px; left: 0; transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.header-icons { display: flex; align-items: center; gap: 20px; }
.icon-btn { font-size: 1.2rem; position: relative; }
.badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--primary); color: var(--dark);
    font-size: 0.7rem; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Search Box */
.search-box { display: flex; border: 1px solid var(--border); border-radius: 30px; overflow: hidden; margin-right: 10px; }
.search-box input { border: none; padding: 5px 15px; outline: none; font-family: inherit; }
.search-box button { background: none; border: none; padding: 5px 15px; cursor: pointer; transition: var(--transition); }
.search-box button:hover { color: var(--primary); }

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed; top: 0; right: -350px; width: 350px; height: 100vh;
    background: var(--white); z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.close-cart { cursor: pointer; font-size: 1.2rem; }
.cart-body { padding: 20px; flex: 1; }

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Vertically limited */
    overflow: hidden;
    background: #000;
}
.slider-wrapper { width: 100%; height: 100%; position: relative; }
.slide {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 0.8s ease-in-out;
}
.slide.active { opacity: 1; }

.prev-btn, .next-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); color: var(--white);
    border: none; padding: 15px; cursor: pointer; font-size: 1.5rem;
    transition: var(--transition);
}
.prev-btn:hover, .next-btn:hover { background: var(--primary); color: var(--dark); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* --- Sections General --- */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.divider { width: 60px; height: 4px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

/* --- Features Section --- */
.features-section { padding: 40px 0; background: #f9f9f9; border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.feature-box { display: flex; align-items: center; gap: 15px; }
.feature-box i { font-size: 2rem; color: #5aa80a; /* Darker version for icon on light bg */ }
.feature-box h4 { font-size: 0.95rem; font-weight: 700; }
.feature-box p { font-size: 0.8rem; color: var(--text-grey); }

/* --- Categories --- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cat-card { position: relative; height: 250px; border-radius: 8px; overflow: hidden; cursor: pointer; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover img { transform: scale(1.1); }
.cat-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
}
.cat-overlay h3 { color: var(--white); font-size: 1.5rem; border-bottom: 2px solid var(--primary); padding-bottom: 5px; }

/* --- Products --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.product-card {
    background: var(--white); border: 1px solid #eee; border-radius: 8px;
    overflow: hidden; transition: var(--transition);
}
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-5px); }
.p-img { position: relative; height: 250px; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--dark); color: var(--white);
    padding: 3px 10px; font-size: 0.75rem; border-radius: 4px;
}
.tag.sale { background: #e74c3c; }
.add-cart-btn {
    position: absolute; bottom: -50px; left: 0; width: 100%;
    background: var(--primary); color: var(--dark); border: none;
    padding: 12px; font-weight: 600; cursor: pointer;
    transition: bottom 0.3s ease;
}
.product-card:hover .add-cart-btn { bottom: 0; }

.p-details { padding: 15px; text-align: center; }
.p-details h4 { font-size: 1rem; margin-bottom: 5px; }
.rating { color: #f1c40f; font-size: 0.8rem; margin-bottom: 5px; }
.price { font-weight: 700; color: #5aa80a; }
.price del { color: var(--text-grey); font-weight: 400; font-size: 0.9rem; margin-right: 5px; }

/* --- Promo Banner --- */
.promo-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1472851294608-415522f96319?auto=format&fit=crop&w=1600');
    background-size: cover; background-position: center;
    padding: 80px 0; text-align: center; color: var(--white);
}
.promo-content h2 { font-size: 2.5rem; margin-bottom: 15px; }
.btn-primary {
    display: inline-block; background: var(--primary); color: var(--dark);
    padding: 12px 30px; border-radius: 30px; font-weight: 600; margin-top: 20px;
}
.btn-primary:hover { background: var(--white); }

/* --- Brands --- */
.brands-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; opacity: 0.6; }
.brand { font-size: 1.5rem; font-weight: 700; color: var(--text-grey); }

/* --- Newsletter --- */
.newsletter-section { background: var(--dark); color: var(--white); padding: 50px 0; }
.newsletter-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.news-form { display: flex; flex: 1; max-width: 500px; }
.news-form input {
    flex: 1; padding: 12px; border: none; border-radius: 4px 0 0 4px; outline: none;
}
.news-form button {
    background: var(--primary); border: none; padding: 0 25px;
    border-radius: 0 4px 4px 0; font-weight: 600; cursor: pointer;
}

/* --- Footer --- */
footer { background: #111; color: #ccc; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--primary); margin-left: 5px; }
.social-links a { display: inline-flex; width: 35px; height: 35px; background: #333; justify-content: center; align-items: center; border-radius: 50%; margin-right: 10px; }
.social-links a:hover { background: var(--primary); color: var(--dark); }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .top-bar, .search-box { display: none; }
    .nav-links {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: var(--white); flex-direction: column; align-items: center; justify-content: center;
        transition: var(--transition);
    }
    .nav-links.active { left: 0; }
    .mobile-toggle { display: block; }
    .hero-slider { height: 300px; }
    .promo-content h2 { font-size: 1.8rem; }
}

/* --- New Sections Styling --- */

/* 1. Promo Grid (Dual Banner) */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.promo-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.promo-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.promo-item:hover img { transform: scale(1.1); }
.promo-content-inner {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 30px; color: var(--white);
}
.promo-content-inner h3 { font-size: 1.8rem; margin-bottom: 10px; }
.promo-content-inner a {
    color: var(--white); font-weight: 600; text-transform: uppercase;
    border-bottom: 2px solid var(--primary); padding-bottom: 2px;
}
.promo-content-inner a:hover { color: var(--primary); }

/* 2. Deal of the Week */
.deal-section {
    padding: 80px 0;
    background: #fdfdfd;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.deal-container {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px;
}
.deal-content { flex: 1; min-width: 300px; }
.deal-image { flex: 1; min-width: 300px; text-align: center; }
.deal-image img { max-width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.deal-label {
    background: var(--primary); color: var(--dark);
    padding: 5px 15px; font-weight: 700; border-radius: 20px;
    text-transform: uppercase; font-size: 0.8rem; margin-bottom: 15px; display: inline-block;
}
.deal-content h2 { font-size: 2.5rem; margin-bottom: 15px; line-height: 1.2; }
.timer { display: flex; gap: 15px; margin: 25px 0; }
.time-box {
    background: var(--dark); color: var(--white);
    width: 60px; height: 60px; border-radius: 5px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.time-box span { font-weight: 700; font-size: 1.2rem; line-height: 1; }
.time-box small { font-size: 0.6rem; text-transform: uppercase; margin-top: 2px; }

/* 3. Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.user-img { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin-bottom: 15px; border: 3px solid var(--primary); }
.user-img img { width: 100%; height: 100%; object-fit: cover; }
.review-text { font-style: italic; color: #555; margin-bottom: 20px; font-size: 0.95rem; }
.review-meta h4 { font-size: 1rem; font-weight: 700; }
.quote-icon {
    position: absolute; top: 20px; right: 20px;
    font-size: 2rem; color: var(--primary); opacity: 0.3;
}

/* 4. Blog/News Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 20px; }
.blog-content .date { font-size: 0.8rem; color: var(--text-grey); display: block; margin-bottom: 5px; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 10px; transition: var(--transition); }
.blog-card:hover .blog-content h3 { color: var(--primary); /* Dark green for text */ color: #5aa80a; }
.blog-content p { font-size: 0.9rem; color: #555; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid var(--primary); }

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
    .deal-container { flex-direction: column-reverse; text-align: center; }
    .deal-content { width: 100%; }
    .deal-content h2 { font-size: 2rem; }
    .timer { justify-content: center; }
    .promo-content-inner { align-items: center; text-align: center; }
}