/*
Theme Name: Green Grocer (Enhanced)
... (Metadata remains the same)
*/

:root {
    /* Define all color variables to avoid 'undefined' errors */
    --color-primary1: #78B85D;
    --color-primary2: #5a8d44; /* Added missing secondary color */
    --color-accent: #FF4242;
    --color-warning: #FF8A00;
    --color-text-muted: #B0B0B0;
    --color-dark: #000000;
    --color-white: #ffffff;
    
    --font-awesome: 'FontAwesome';
    --transition: all 0.3s ease;
    --border-radius: 15px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
a {
    text-decoration: none;
    color: var(--color-primary2);
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary1);
}

.blog-item.inner-related-post .post-title a,
.singel-page-area a {
    color: var(--color-primary2);
}

/* Layout Elements */
.topbar {
    background-color: var(--color-primary1);
    color: var(--color-white);
}

.search-cat-box {
    border: 1px solid var(--color-primary1);
    border-radius: 5px;
}

/* Slider Section - Removed fixed heights for better flexibility */
#slider {
    position: relative;
    min-height: 500px;
    background-color: var(--color-primary1);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slideimg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#slider img {
    opacity: 1;
    max-height: 450px; /* Improved from fixed 300px */
    width: auto !important;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Product/Delivery Service Section */
#product-services .container {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 20px;
}

.main-delivery-detail {
    display: flex;
    gap: 15px; /* Modern spacing */
    padding: 15px;
    align-items: center;
    transition: var(--transition);
}

.main-delivery-detail:hover {
    transform: translateY(-5px);
}

.delivery-icon i {
    font-size: 40px;
    color: var(--color-warning);
}

.deliver-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.delivery-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- Media Queries (Refactored for Efficiency) --- */

/* Mobile Devices */
@media (max-width: 767px) {
    #slider {
        height: auto;
        padding: 40px 0;
    }
    
    .slideimg {
        height: auto;
        margin-bottom: 20px;
    }

    #slider img {
        height: 200px;
    }

    #slider .carousel-caption {
        position: relative;
        left: 0 !important;
        text-align: center;
        padding: 15px;
    }

    .main-delivery-detail {
        flex-direction: column;
        text-align: center;
    ```

---

### Key Improvements Made:

}
}

/* Tablets and Small Desktops (Combined redundant rules) */
@media (min-width: 768px) and (max-width: 1024px) {
    #slider .carousel-caption {
        right: 50%;
    }

    .delivery-1.  **Variable Usage:** I noticed `--color-primary2` was used but not defined in your `:root`. I added it so your links don't break.icon i {
        font-size: 30px;
    }

    .deliver-title {
        font-size: 14px;
    }

    .login-text, .cart-count {
        font-size: 11px;
    }
}

/* Utility
2.  **Shadows & Aesthetics:** Replaced the heavy `0.5` opacity black shadow with a softer `0.1` shadow. It looks Classes */
.btn-primary-custom {
    background-color: var(--color-primary1);
    color: white;
    padding much more professional and "organic" for a grocery theme.
3.  **Flexbox & Gaps:** Replaced `margin` hacks with `gap` in: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
}