/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
}

/* Main Container for overall layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Top Row */
.header-top {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    background-color: #e8e8e8;
    border-bottom: none;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.social-icons a {
    color: #555;
    font-size: 1rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #457b9d;
}

.header-links a {
    color: #1a1a1a;
    font-weight: 500;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-links a i {
    margin-right: 5px;
    color: #457b9d;
}

.header-links a:hover {
    color: #457b9d;
}


/* Header Main */
.header-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background-color: #f9f9f9;
    padding: 1.5rem;
}

/* Logo Styling */
.logo-container {
    grid-column: 2;
    display: flex;
    justify-content: center;
}

.logo-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.main-nav {
    grid-column: 3;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.main-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a.active,
.main-nav a:hover {
    color: #457b9d;
}

/* Static Banner */
.static-banner {
    margin: 1.5rem 0;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.static-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Category Grid */
.mid-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Enforce 5 columns per row */
    gap: 1.5rem;
    margin: 3rem 1.5rem;
}

.category-tile {
    position: relative; /* Essential for positioning the span */
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden; /* Ensures content stays within bounds, especially rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer; /* Indicate interactivity */
}

.category-tile:hover {
    transform: translateY(-5px);
}

.category-tile span {
    position: absolute; /* Position relative to .category-tile */
    bottom: 0; /* Align to the bottom */
    left: 0;
    width: 100%; /* Take full width */
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent background for readability */
    padding: 0.8rem 0; /* Vertical padding, no horizontal */
    border-bottom-left-radius: 10px; /* Match parent border-radius */
    border-bottom-right-radius: 10px; /* Match parent border-radius */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Shadow at the top of the text box */
    transition: all 0.3s ease;
    z-index: 1; /* Ensure text is above the background image */
}

.category-tile:hover span {
    background-color: #457b9d;
    color: #fff;
}

/* Footer Section */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: none;
    padding: 0;
    background-color: transparent;
}

.footer-links a {
    color: #eee;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #457b9d;
    text-decoration: underline;
}

.footer .socials {
    margin-top: 1.5rem;
}

.footer .socials a {
    color: white;
    margin: 0 12px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer .socials a:hover {
    color: #457b9d;
}

/* Store Finder Section */
.store-finder {
    padding: 3rem 1.5rem;
    background-color: #f0f0f0;
}

.store-finder h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1a1a1a;
}

.map-container {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.store-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.store-box {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.store-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.store-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #457b9d;
}

.store-box p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: #555;
}

.store-box p strong {
    color: #1a1a1a;
}

.store-box iframe {
    margin-top: 1rem;
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 8px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .header-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .logo-container {
        grid-column: 1;
    }
    .main-nav {
        grid-column: 1;
        margin-top: 1rem;
    }
    .main-nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    .mid-categories {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Allow wrapping on smaller screens */
    }
    .category-tile {
        height: 180px;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .header-top {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }
    .social-icons {
        width: 100%;
        text-align: center;
    }
    .header-links {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    .static-banner {
        height: 250px;
    }
    .mid-categories {
        margin: 2rem 1rem;
    }
    .store-finder {
        padding: 2rem 1rem;
    }
    .store-finder h2 {
        font-size: 1.6rem;
    }
    .map-container {
        height: 300px;
    }
    .footer-links {
        padding: 1rem;
    }
}