/* ============================================
   NAVBAR 2-ROW MOBILE LAYOUT
   Desktop: Untouched (original design)
   Mobile: 2 rows (logo+cart top, tabs bottom)
   ============================================ */

/* === CRITICAL: LOGO BRANDING OVERRIDE === */
/* This MUST come first to ensure Diginep.store styling */
.nav-logo,
a.nav-logo,
.navbar .nav-logo,
.navbar .nav-container .nav-top .nav-logo,
.navbar .nav-container .nav-logo {
    /* Typography - FIXED for all screens */
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-weight: 900 !important;
    /* Maximum bold */
    font-size: 24px !important;
    letter-spacing: -0.8px !important;
    line-height: 1 !important;

    /* Gradient styling */
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;

    /* Remove all effects */
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;

    /* Display & positioning */
    display: inline-block !important;
    position: relative !important;
    padding: 5px 0 !important;
    margin: 0 !important;

    /* Remove flex/grid interference */
    align-items: unset !important;
    gap: unset !important;
    grid-column: auto !important;
    justify-self: auto !important;

    /* Force bold rendering */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-synthesis: none !important;
}

/* Hide old icon elements */
.brand-eagle-icon,
.nav-logo .brand-eagle-icon,
.nav-logo>.brand-eagle-icon,
.nav-logo span,
.nav-logo>span {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Add decorative dot - FIXED size */
.nav-logo::after,
a.nav-logo::after,
.navbar .nav-logo::after {
    content: '●' !important;
    position: relative !important;
    margin-left: 2px !important;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 9.6px !important;
    /* 0.4em of 24px = 9.6px - FIXED */
    vertical-align: super !important;
    display: inline !important;
}

/* === Global Reset === */
html,
body {
    margin: 0;
    padding: 0;
}

/* Body padding for fixed navbar */
body {
    padding-top: 90px;
}

/* === CSS Variables === */
:root {
    --nav-h: 90px;
    --nav-accent: #9333ea;
    --nav-bg: #ffffff;
    --nav-text: #1a1a1a;
    --logo-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
}

/* === Navbar Container === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    /* Remove all top spacing - navbar starts at pixel 0 */
    padding-top: 0;
    margin-top: 0;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); REMOVED for sticky effect */
    transition: box-shadow 0.3s ease;
}

.navbar.sticky-active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow when scrolling */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 15px;
}

.nav-search {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

/* === Top Row: Logo + Cart === */
/* On desktop, make nav-top transparent so logo and cart are separate flex items */
.nav-top {
    display: contents;
    /* Makes children act as direct flex children of nav-container */
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.brand-eagle-icon {
    width: 48px;
    height: 32px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-mask: url('../images/brand-eagle.png') no-repeat center;
    mask: url('../images/brand-eagle.png') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    display: inline-block;
}

.nav-logo span {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -1.2px;
    text-shadow: 0 10px 20px rgba(236, 72, 153, 0.1);
}

.nav-logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.nav-logo:hover .brand-eagle-icon {
    transform: rotate(-5deg) scale(1.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pulse glow dot removed - eagle is the primary icon */

/* Cart */
.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.08);
    color: var(--nav-text);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
}

.nav-cart:hover {
    background: rgba(147, 51, 234, 0.15);
    transform: translateY(-2px);
}

.nav-cart #cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #9333ea, #a855f7);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
    border: 2px solid white;
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease;
}

/* Hide badge when cart is empty (0 items) */
.nav-cart #cart-count.empty {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
}

/* === Bottom Row: Navigation Tabs === */
.nav-tabs {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #eee;
    background: #faf5ff;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.nav-tabs li {
    margin: 0;
    padding: 0;
}

.nav-tabs a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 999px;
    color: var(--nav-text);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: block;
}

.nav-tabs a:hover {
    background: rgba(147, 51, 234, 0.1);
}

.nav-tabs a.active {
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ============================================
   MOBILE RESPONSIVE (2-ROW LAYOUT)
   ============================================ */

@media (max-width: 768px) {
    :root {
        --nav-h: 110px;
    }

    body {
        padding-top: 110px;
    }

    /* COMPLETELY override desktop grid layout */
    .nav-container {
        padding: 8px 12px;
        display: block !important;
        /* Override grid */
        text-align: center;
        /* Center all content */
    }

    /* Top row: Logo only (centered) */
    .nav-top {
        width: 100%;
        display: block !important;
        /* Override contents */
        text-align: center !important;
        margin-bottom: 8px;
    }

    /* Logo - remove ALL grid properties and center */
    .nav-logo {
        display: inline-block !important;
        /* Override flex/grid */
        grid-column: unset !important;
        /* Remove grid positioning */
        grid-row: unset !important;
        justify-self: unset !important;
        align-items: unset !important;
        gap: unset !important;
        margin: 0 !important;
        padding: 5px 0 !important;
        text-align: center !important;
    }

    /* Hide navbar cart on mobile - use floating cart instead */
    .nav-cart {
        display: none !important;
    }



    .nav-tabs {
        grid-column: auto;
        justify-self: auto;
    }

    /* .nav-logo font-size removed - keep 24px on all screens */

    /* Bottom row: Tabs (full width, equal spacing) */
    .nav-tabs {
        width: 100%;
        margin: 0;
        gap: 8px;
        justify-content: space-between;
        padding: 6px;
    }

    .nav-tabs li {
        flex: 1;
    }

    .nav-tabs a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-h: 100px;
    }

    body {
        padding-top: 100px;
    }

    .nav-container {
        padding: 6px 10px;
        gap: 6px;
    }

    /* .nav-logo font-size removed - keep 24px on all screens */

    .nav-cart {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .nav-tabs {
        gap: 4px;
        padding: 5px;
    }

    .nav-tabs a {
        padding: 8px 0;
        font-size: 12px;
    }
}

/* === Dark Mode === */
body.dark-mode .navbar {
    background: #1a1a1a;
}

body.dark-mode .nav-tabs {
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-tabs a {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .nav-tabs a:hover {
    background: rgba(147, 51, 234, 0.2);
}

body.dark-mode .nav-cart {
    background: rgba(60, 60, 60, 0.6);
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .nav-cart:hover {
    background: rgba(80, 80, 80, 0.8);
}