.main-nav {
    padding: 0 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
    padding: 0;
    margin-bottom: 0.25rem;
}

.nav-item > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    display: block;
    transition: all 0.3s ease;
}

.nav-item > a:hover,
.nav-logo a:hover {
    color: #3498db;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0; /* align dropdown with left edge of the menu item */
    transform: none;
    background-color: #fff; /* always white background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown li a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
    text-align: left;
}

.dropdown li a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0.5rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .dropdown {
        left: 0;
        transform: none;
        width: 100%;
    }
}

/* Minimal (no-banner) overrides: dark text, static nav position */
.no-banner .hero-banner {
    background: none !important;
    height: auto;
    min-height: unset;
}
.no-banner .hero-banner::before { display: none; }
.no-banner .banner-content { text-align: left; padding: 1.5rem 2rem 0.5rem; margin-bottom: 0; }
.no-banner .banner-content h1 {
    color: #000 !important;
    text-shadow: none;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
    font-size: 2.5rem; /* smaller so P isn't cut off */
    margin: 0 0 0.25rem 0; /* tiny bottom space above menu */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.no-banner .main-nav {
    position: static;
    padding: 0.25rem 2rem 0.75rem;
    justify-content: flex-start;
    align-items: center;
}
.no-banner .nav-menu { justify-content: flex-start; }
.no-banner .nav-item > a { color: #000 !important; text-shadow: none; }

/* Home page: center title and center menu under it, and keep cart anchored to the right of nav line */
.home.no-banner .banner-content { text-align: center; padding: 1.75rem 2rem 0.5rem; }
.home.no-banner .banner-content h1 { margin-bottom: 0.5rem; }
.home.no-banner .main-nav { position: relative; justify-content: center; padding: 0 2rem 1rem; }
.home.no-banner .nav-menu { justify-content: center; }