.cg-mega-menu-wrapper-96ce4407 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Keep relative, but remove absolute children that break flow */
    width: 100%;
    font-family: inherit;
    color: #000;
    background-color: transparent;
    padding: 10px 0;
}

/* 25/50/25 Flex Layout */
.cg-menu-logo {
    flex: 0 0 25%;
    display: flex;
    justify-content: flex-start;
}

.cg-menu-logo a {
    text-decoration: none;
    color: inherit;
}
.cg-site-logo {
    max-height: 60px;
    width: auto;
    display: block;
}
.cg-site-title {
    font-size: 24px;
    font-weight: 700;
}

.cg-primary-menu {
    flex: 0 0 50%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.cg-menu-actions {
    flex: 0 0 25%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.cg-menu-item {
    position: static; /* This is key: Mega menu dropdown needs full width of wrapper, so parent li stays static */
    padding: 15px 0;
}
.cg-menu-item > a {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

/* Mega Menu Dropdown */
.cg-has-mega-menu .cg-mega-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 40px;
    border-top: 3px solid #000;
}

/* Show dropdown on hover OR when 'is-active' class is present */
.cg-has-mega-menu:hover .cg-mega-menu-dropdown,
.cg-has-mega-menu.is-active .cg-mega-menu-dropdown {
    display: block;
}

/* Grid Layout */
.cg-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Column Styling */
.cg-mega-col h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: inherit;
}
.cg-mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cg-mega-col li {
    margin-bottom: 12px;
}
.cg-mega-col li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}
.cg-mega-col li a:hover {
    color: #666;
}

/* Product Cards inside Menu */
.cg-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cg-product-card img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
    object-fit: cover;
}
.cg-product-card span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/* Actions Area specifics */
.cg-menu-search form {
    display: flex;
}
.cg-menu-search input[type="search"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}
.cg-menu-search button {
    padding: 8px 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}
.cg-menu-account a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cg-menu-account i {
    font-size: 24px;
}

/* Responsive handling if it gets too narrow */
@media screen and (max-width: 1200px) {
    .cg-mega-menu-wrapper-96ce4407 {
        flex-wrap: wrap;
        padding: 10px 20px;
    }
    .cg-menu-logo, .cg-menu-actions {
        flex: 0 0 50%;
    }
    .cg-primary-menu {
        flex: 0 0 100%;
        order: 3;
        margin-top: 15px;
    }
}
