/* =========================================
   TUNIC FASHIONS — FUTURISTIC NAVBAR
   Neo-Minimalist Glassmorphism Edition
   ========================================= */

/* ---------- CSS ANIMATIONS ---------- */
@keyframes futuristicGlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes shimmerLine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes navLinkPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* ---------- NAVBAR CONTAINER ---------- */
.navbar-container {
    /* Frosted glass look */
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(138, 43, 226, 0.15) !important;
    box-shadow: 0 4px 30px rgba(138, 43, 226, 0.08),
                0 1px 0px rgba(0, 240, 255, 0.12) !important;
    color: #1E293B;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Shimmer border bottom */
    position: sticky;
    overflow: visible;
}

/* Animated glowing accent line under navbar */
.navbar-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8A2BE2, #00F0FF, #8A2BE2, transparent);
    background-size: 200% auto;
    animation: futuristicGlow 4s linear infinite;
}

/* ---------- NAVBAR WRAPPER (Nav Links Row) ---------- */
.navbar-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    background-color: #000000;
    padding: 0 5%;
}

/* Inner centering wrapper */
.navbar-wrapper > * {
    max-width: 1400px;
}

/* ---------- LOGO ---------- */
.navbar-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.navbar-logo img {
    height: 90px;
    margin-bottom: -5px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.15));
    transition: transform 0.4s ease, filter 0.4s ease;
}
.navbar-logo img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 16px rgba(138, 43, 226, 0.35));
}

.logo-subtitle {
    color: #8A2BE2;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: -10px;
}

/* ---------- NAV LINKS ---------- */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 !important;
    position: relative;
}

/* Animated underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #8A2BE2, #00F0FF);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #00F0FF !important;
}

/* ---------- ICON BUTTONS ---------- */
.navbar-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.icon-link,
.icon-button {
    color: #ffffff;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
    height: 24px;
    width: 24px;
    font-size: 1.4rem;
}

.icon-link i,
.icon-button i {
    line-height: 1;
    display: block;
}

.icon-link:hover,
.icon-button:hover {
    color: #8A2BE2;
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(138, 43, 226, 0.5));
}

/* ---------- CART BADGE ---------- */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #8A2BE2, #00F0FF);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid #fff;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.6);
}

/* ---------- MOBILE TOGGLE ---------- */
.mobile-toggle {
    display: none;
    color: #ffffff;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.mobile-toggle:hover {
    color: #8A2BE2;
}

/* ---------- DROPDOWN MENUS ---------- */
.dropdown,
.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    list-style: none;
    border-top: 2px solid #8A2BE2;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.15),
                0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.nav-item:hover .dropdown,
.nav-item:hover .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown {
    min-width: 200px;
    padding: 0.8rem 0;
}

.mega-menu {
    min-width: 500px;
    padding: 2.5rem;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 40px;
    justify-content: center;
}

/* Dropdown links */
.dropdown-link {
    color: #1E293B;
    text-decoration: none;
    display: block;
    padding: 0.7rem 1.5rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    position: relative;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #8A2BE2, #00F0FF);
    transition: width 0.25s ease;
    border-radius: 0 2px 2px 0;
}

.dropdown-link:hover {
    color: #8A2BE2;
    padding-left: 2rem;
    background: rgba(138, 43, 226, 0.04);
}

.dropdown-link:hover::before {
    width: 3px;
}

/* Mega menu links */
.mega-menu-link {
    color: #1E293B;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border-bottom: 1px solid transparent;
    padding: 6px 0;
    display: inline-block;
}

.mega-menu-link:hover {
    color: #8A2BE2;
    border-bottom-color: #8A2BE2;
    padding-left: 5px;
}

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-form {
    display: flex;
    border-bottom: 2px solid rgba(138, 43, 226, 0.6);
    padding-bottom: 10px;
}

.search-form input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-family: inherit;
    outline: none;
    padding: 10px 0;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.search-submit {
    background: none;
    border: none;
    color: #8A2BE2;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.search-submit:hover { color: #00F0FF; }

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s;
}

.search-close:hover {
    transform: rotate(90deg);
    color: #8A2BE2;
}

@media (max-width: 768px) {
    .search-form input  { font-size: 1.2rem; }
    .search-submit,
    .search-close       { font-size: 1.5rem; }
}

/* ---------- PROMO BANNER MARQUEE ---------- */
.promo-banner-marquee {
    background: linear-gradient(90deg, #8A2BE2, #5B0FBF, #00C4D4, #8A2BE2);
    background-size: 300% auto;
    animation: futuristicGlow 6s linear infinite;
    color: #ffffff;
    padding: 4px 0;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    letter-spacing: 1px;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.marquee-content span {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-right: 60px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        padding: 1rem 0 2rem;
        gap: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 9999;
        border-bottom: 2px solid #8A2BE2;
    }

    .navbar-links.active { display: flex; }

    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        justify-content: center;
        font-size: 13px;
        padding: 14px 0 !important;
        min-height: 44px;
    }
    .nav-link::after { display: none; }

    .mobile-toggle { display: flex; align-items: center; }

    .dropdown,
    .mega-menu {
        position: static;
        display: none;
        background: #111111;
        box-shadow: none;
        max-height: none;
        padding: 0.6rem 1rem 1rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        width: 100%;
        border-top: none;
        border-left: 3px solid #8A2BE2;
        border-radius: 0;
        margin: 0 0 0.5rem;
    }

    .dropdown.active,
    .mega-menu.active { display: block; }

    .mega-menu-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 20px;
        padding: 0.5rem 0;
        justify-content: center;
    }

    .mega-menu-link { font-size: 12px; display: block; padding: 8px 4px; text-align: left; }
    .dropdown-link  { padding: 10px 1.5rem; font-size: 12px; }
}

@media (max-width: 576px) {
    .navbar-logo img    { height: 70px; }
    .navbar-container   { padding: 2rem 1rem; }
    .navbar-icons       { gap: 1rem; }
}

@media (max-width: 400px) {
    .navbar-icons       { gap: 0.8rem; }
    .icon-link,
    .icon-button        { font-size: 1.2rem; }
    .navbar-logo img    { height: 60px; }
}

@media (max-width: 768px) {
    .marquee-content span { font-size: 0.75rem; padding-right: 30px; }
}
