/* --- 1. THE GRID FOUNDATION (ALWAYS AT TOP) --- */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px 0; /* Reduced padding here too */
    width: 100%;
}

.product-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.product-card:hover { 
    transform: translateY(-5px); 
}

.product-img { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 15px; 
}

/* --- 2. CORE SETTINGS --- */
:root {
    --brand-sage: #718f75;
    --brand-pink: #f7b2bd;
    --brand-cream: #f9f7f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Georgia', serif; line-height: 1.6; color: #333; background-color: #fff; overflow-x: hidden; }

.container {
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 0 20px;
}

/* --- 3. NAVIGATION --- */
header { background: #fff; padding: 25px 0 !important; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.site-logo { height: 50px; }
nav ul { display: flex; list-style: none; align-items: center; }
nav ul li a { text-decoration: none; margin-left: 20px; color: var(--brand-sage); font-weight: bold; }

/* --- 4. HERO & BUTTONS --- */
.hero-banner { 
    padding: 20px 0 !important; /* Tightened outer space */
    text-align: center; 
    background-color: #ffffff !important; 
}

.hero-banner .container {
    background-color: #f9f7f2 !important;
    padding: 60px 40px !important; /* Reduced from 80px to tighten the box */
    border-radius: 20px;
}

.subtitle { color: var(--brand-pink); text-transform: uppercase; letter-spacing: 4px !important; font-weight: bold; font-size: 0.8rem; }

.buy-btn, .btn-primary { 
    background: var(--brand-sage) !important; color: white !important; padding: 12px 24px; text-decoration: none; border-radius: 5px; display: inline-block; border: none; font-weight: bold;
}

.btn-secondary {
    border: 2px solid var(--brand-sage); color: var(--brand-sage); padding: 10px 22px; text-decoration: none; border-radius: 6px; font-weight: bold; display: inline-block;
}

/* --- 5. SECTION BACKGROUNDS & SPACING FIX --- */
.about-section, .contact-section, .featured-section, .category { 
    padding: 30px 0 !important; /* Uniform tight padding */
    background-color: #ffffff !important; 
    text-align: center; 
}

/* Tighten the gaps caused by default browser margins on headings */
h1, h2, h3 { margin-top: 0 !important; }

.contact-section .container {
    background-color: #f9f7f2 !important;
    padding: 40px 40px !important; 
    border-radius: 20px;
}

.contact-section h2 { margin-bottom: 20px !important; }

/* --- 6. FEATURED ARRIVALS --- */
.featured-header, .category h2, .about-section h2 {
    margin-bottom: 25px !important; 
}

.featured-flex {
    display: flex !important;
    flex-direction: column;
    gap: 40px !important; 
    width: 100%;
}

.featured-item { 
    display: flex !important; 
    flex-direction: row !important;
    align-items: center !important; 
    justify-content: space-between;
    gap: 50px !important;
    margin-bottom: 40px !important; /* Reduced from 80px to close the gap */
}

.featured-item.reverse { flex-direction: row-reverse !important; }

.featured-image img {
    width: 100%;
    max-width: 450px !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: block;
    min-height: 380px;
}

.featured-text { flex: 1; text-align: left; }
.featured-text h3 { font-size: 2.2rem; color: var(--brand-sage); margin-bottom: 15px; }

/* --- 7. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .featured-item, .featured-item.reverse { 
        flex-direction: column !important; 
        text-align: center; 
        gap: 20px;
    }
    .featured-text { text-align: center; }
    .featured-image img { height: 300px; min-height: auto; max-width: 100% !important; }
    .product-grid { grid-template-columns: 1fr !important; }
    nav { flex-direction: column; gap: 15px; }
}

/* --- MOBILE QUICK ACTION BAR --- */
.mobile-action-bar {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px; /* Slightly taller for better thumb reach */
        background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
        backdrop-filter: blur(10px); /* Blurs content behind for a premium look */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        z-index: 9999;
        border-top: 1px solid #f0f0f0;
        padding-bottom: env(safe-area-inset-bottom); /* Fix for iPhones with home bars */
    }

    .action-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #333;
        transition: background 0.2s;
    }

    .action-item:active {
        background: #f9f7f2; /* Feedback when the user taps */
    }

    .action-item .icon {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

        .action-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .action-item span:last-child {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        color: var(--brand-sage);
    }

    /* Push the footer up so it's not hidden behind the bar */
    footer {
        padding-bottom: 80px !important;
    }

        /* Add padding to body so the bar doesn't cover the footer content */
    body {
        padding-bottom: 60px;
    }
}
