/* Navigation Menu Styles */
.menu-selection {
    background: #F8F5F0;
    padding: clamp(15px, 3vw, 25px) clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
    border-bottom: 2px solid #e0e0e0;
    position: fixed;
    top: clamp(80px, 12vh, 120px);
    left: 0;
    right: 0;
    z-index: 1001; /* Always above content, below header when visible */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: top 0.3s ease;
    pointer-events: auto !important; /* Ensure buttons are clickable - force override */
    -webkit-transform: translateZ(0); /* Force hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate; /* Create new stacking context */
}

/* When scrolling down, make menu-selection stick to top (header is hidden) */
body.scrolling-down .menu-selection {
    top: 0;
    z-index: 1001; /* Higher z-index when header is hidden - always above products */
    pointer-events: auto; /* Ensure buttons remain clickable */
}

/* Menu should never be hidden - always visible above content */
/* Removed hidden class behavior - menu now moves to top when scrolling down instead of hiding */
.menu-selection.hidden {
    /* Keep menu visible but can be styled if needed */
    opacity: 1;
}

.menu-tab {
    background: transparent;
    border: none;
    color: #333;
    font-size: clamp(1.2em, 3vw, 1.5em);
    font-weight: 500;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    pointer-events: auto !important; /* Ensure buttons are always clickable */
    z-index: 1002; /* Above menu-selection container */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Improve touch responsiveness */
}

.menu-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #9C8A76;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-tab.active {
    color: #9C8A76;
    font-weight: 600;
}

.menu-tab.active::after {
    transform: scaleX(1);
}

.menu-tab:hover {
    color: #9C8A76;
}

