/* GLOBAL STYLES */
:root {
    --primary-color: #00bcd4; /* Modern Light Sky Blue-Green (Cyan/Turquoise) */
    --secondary-color: #333; /* Dark Text/Footer */
    --background-light: #f9f9f9;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #eee;
    
    /* Variables specific to the Groceries/Chocolate Section */
    --chocolate-accent: #9A5A40; 
    --chocolate-text: #4A2B1D; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* HEADER & NAVIGATION */
.main-header {
    background-color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    padding: 0 15px;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.search-and-cart button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.search-and-cart button:hover {
    background-color: var(--border-color);
}

/* LOGO SIZE */
.logo img {
    height: 80px; 
    width: auto;
    display: block;
}

/* HERO BANNER (Used on index.html) */
.hero-banner {
    background: var(--primary-color); 
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.shop-now-btn {
    display: inline-block;
    background-color: var(--text-light);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    margin-right: 10px; 
    transition: background-color 0.3s;
}
.shop-now-btn:hover {
    background-color: #eee;
}

/* ---------------------------------------------
GROCERIES SPECIFIC STYLES (Used on grocery.html)
--------------------------------------------- */
.inner-page-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 40px 0;
    text-align: center;
    margin-bottom: 0;
}

.groceries-section {
    background-color: var(--background-light); 
    padding: 60px 20px;
    text-align: center;
}

.groceries-section .container {
    max-width: 850px; 
}

.groceries-section .headline {
    color: var(--chocolate-text); /* Deep chocolate brown */
    font-size: 2.2em;
    margin-bottom: 25px;
    font-weight: 700;
}

.groceries-section .body-text {
    max-width: 750px;
    margin: 0 auto 20px auto;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1.1em;
}

.groceries-section .body-text strong {
    color: var(--chocolate-accent);
    font-weight: 600;
}

.groceries-section .chocolate-cta {
    background-color: var(--chocolate-accent); 
    color: var(--text-light); 
    padding: 14px 35px;
    font-size: 1em;
    letter-spacing: 0.5px;
    margin-top: 25px;
    /* Overriding the default color of .shop-now-btn */
    color: var(--text-light);
}

.groceries-section .chocolate-cta:hover {
    background-color: var(--chocolate-text); 
}

/* --- PRODUCT GRID STYLES (Used on index.html) --- */
.product-grid-section {
    padding: 20px 0 60px 0;
}

.product-grid-section h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px;
}

.grid-item {
    position: relative; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.grid-item:hover img {
    opacity: 0.8; 
}

/* Category Text Overlay Styling */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3); 
    color: var(--text-light);
    pointer-events: none; 
}

.category-overlay h4 {
    font-size: 1.5em;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6); 
    border-radius: 4px;
    margin: 0; 
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* --- END PRODUCT GRID STYLES --- */


/* CONTACT PAGE SPECIFIC (Placeholder styles) */
.map-container {
    height: 400px;
    width: 100%;
    margin-bottom: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.store-card {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
}

.store-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.store-card p {
    margin-bottom: 5px;
    font-size: 0.95em;
}

/* FOOTER */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 20px 0;
    font-size: 0.9em;
    margin-top: 50px;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.footer-links a {
    color: var(--text-light);
    margin-left: 15px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    .main-header .container,
    .main-footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo, .main-nav, .search-and-cart {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li {
        margin-bottom: 5px;
    }
    
    .footer-links {
        margin-top: 10px;
    }
}

/* RESPONSIVENESS for groceries section */
@media (max-width: 500px) {
    .groceries-section .headline {
        font-size: 1.8em;
    }
    .groceries-section .body-text {
        font-size: 1em;
    }
}
