/* Mega Menu Styles */
.mega-header {
    background-color: #000000 !important; /* Black background for new logo */
    color: white !important;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 9999;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mega-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.mega-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-right: 30px;
}
.mega-logo img {
    height: 35px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.mega-nav-links {
    display: flex;
    height: 100%;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.mega-nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-nav-link {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
}

.mega-nav-item:hover .mega-nav-link {
    color: #e6e6e6 !important;
    border-bottom: 3px solid white;
}

/* Search Bar */
.mega-search {
    position: relative;
    width: 250px;
    margin-left: 20px;
}
.mega-search input {
    width: 100%;
    padding: 8px 15px;
    padding-right: 35px;
    border-radius: 20px;
    border: none;
    font-size: 0.9rem;
    outline: none;
}
.mega-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Mega Menu Dropdown Panel */
.mega-dropdown {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: white;
    color: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: center;
}

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

.mega-dropdown-content {
    max-width: 1400px;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
}

/* Left side: Columns */
.mega-columns {
    display: flex;
    gap: 40px;
    flex: 2;
}

.mega-column {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.mega-column-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 8px;
}

.mega-column a {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.mega-column a:hover {
    color: #1a433d;
    text-decoration: underline;
}

/* Right side: Featured Images */
.mega-featured {
    display: flex;
    gap: 20px;
    flex: 1;
}

.mega-feature-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    width: 50%;
}

.mega-feature-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 10px;
}

.mega-feature-card span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Cart & Icons */
.mega-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
}
.mega-icon-btn {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
}
.mega-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #FF3B30;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mega-nav-container {
        flex-wrap: wrap;
        padding: 10px 15px;
        height: auto;
    }
    /* Hide nav links on mobile (can add hamburger later) */
    .mega-nav-links {
        display: none;
    }
    /* Logo on top row, centered */
    .mega-logo {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
    /* Cart on the left */
    .mega-icons {
        order: 2;
        margin-left: 0;
        margin-right: 15px;
    }
    /* Search in the middle (takes remaining space) */
    .mega-search {
        order: 3;
        flex: 1;
        margin-left: 0;
        width: auto;
    }
}
