/* Lenis Recommended CSS */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Sticky Navigation - Enhanced Visibility */
#navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Ensure navbar main content is visible - but allow mega menu to control its own opacity */
#navbar > div,
#navbar > div > * {
    opacity: 1 !important;
}

/* Mega Menu - Always Visible on Hover */
.product-menu-wrapper:hover .mega-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, 0) !important;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    width: 600px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Mega Menu Grid - Two Columns */
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
}

/* Mega Menu Links - No Images */
.mega-menu-link {
    display: block;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #1A1A1A;
    text-decoration: none;
}

.mega-menu-link:hover {
    background-color: #F8F9FA;
    color: #E7B032;
}

/* Ensure mega menu section columns have spacing */
.mega-menu-grid > div {
    display: flex;
    flex-direction: column;
}

/* Mega Menu Section Headers */
.mega-menu-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Products Button Chevron Rotation */
.product-menu-wrapper:hover .product-chevron {
    transform: rotate(180deg);
}

.product-chevron {
    transition: transform 0.3s ease;
}

/* Image hover pop effect */
img[src*="image-1.png"],
img[src*="image-2.png"],
img[src*="image-3.jpg"],
img[src*="image-4.png"],
img[src*="image-5.png"] {
    filter: none;
}

img[src*="image-1.png"]:hover,
img[src*="image-2.png"]:hover,
img[src*="image-3.jpg"]:hover,
img[src*="image-4.png"]:hover,
img[src*="image-5.png"]:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(231, 176, 50, 0.1);
}

/* Product page image sizing */
#main-image {
    max-width: 600px;
    max-height: 600px;
    object-fit: contain;
}

/* Product thumbnail images */
button[onclick^="changeImage"] img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}
