/* Main Navigation */
.main-navigation {
    background-color: #0d6efd;
    /* Blue background as per sample */
    padding: 10px 0;
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    /* Center alignment */
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    /* Equal spacing between items */
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    display: block;
}

.brand-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    /* White background */
    padding: 8px 15px;
    border-radius: 6px;
    /* Rounded corners */
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 100px;
    /* Minimum width for consistency */
    height: 45px;
    /* Fixed height */
}

.brand-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
    color: inherit;
}

.brand-nav-btn img {
    height: 25px;
    /* Restrict logo height */
    width: auto;
    object-fit: contain;
    max-width: 100px;
}

.brand-nav-btn span {
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid #fca311;
    display: flex;
    /* Use flex to layout content if needed, or grid */
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    padding: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Center content horizontally */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-brand-grid-container {
    flex: 0 0 70%;
    /* Adjust width to fit centered grid */
}

.header-brand-grid-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand-grid-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin: 0;
}

.header-brand-grid-header a {
    color: #0d6efd;
    font-size: 13px;
    font-weight: 600;
}

.header-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 20px;
    justify-content: center;
}

.brand-mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    /* Slightly more rounded */
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    height: 100%;
    /* Consistent height */
    justify-content: center;
    background: #fff;
}

.brand-mega-item:hover {
    border-color: #fca311;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.brand-mega-item img {
    width: 80px;
    /* Slightly larger */
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-mega-item span {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Feature Column in Mega Menu (Optional) */
.mega-menu-feature {
    width: 250px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.mega-menu-feature img {
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
}

.mega-menu-feature h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.mega-menu-feature p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mega-menu-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.mega-menu-btn:hover {
    background-color: #fca311;
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .main-navigation {
        display: none;
        /* Hide for now on mobile, needs proper mobile menu implementation */
    }
}

/* Cart Badge Professional Styling */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #004aad;
    /* Primary Blue */
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    /* White border to separate from icon */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}