/**
 * LEAP Pakistan Floating Pill Navbar Stylesheet
 * 100% Exact Authentic Clone from https://leappakistan.shop/
 * Full-screen desktop & responsive geometry matching live site
 */

/* Orbitron font enforcement matching live site */
.pill-navbar,
.pill-navbar * {
    font-family: 'Orbitron', sans-serif !important;
}

/* Floating Pill Container (Full-Screen View) */
.pill-navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 1200px;
    height: 52px;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 300px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10.6px);
    -webkit-backdrop-filter: blur(10.6px);
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box;
}

/* Page load expand animation from live site */
@keyframes expandNavbar {
    0% {
        transform: translate(-50%) scale(0.3);
        opacity: 0;
    }
    to {
        transform: translate(-50%) scale(1);
        opacity: 1;
    }
}

.pill-navbar.animate-in {
    animation: expandNavbar 0.6s ease-out forwards;
    transform-origin: center center;
    border-radius: 300px !important;
}

/* Scrolled state with authentic gradient from live site */
.pill-navbar.scrolled {
    background: #1e2121 !important;
    background: linear-gradient(90deg, #000000 31%, #080909 61%, #215757 84%, #387373) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65) !important;
}

.pill-navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.8rem;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Brand Logo (Leap) */
.pill-navbar__brand {
    font-size: 26px !important;
    font-weight: 700 !important;
    font-family: 'Orbitron', sans-serif !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    margin-left: 2%;
    line-height: 1 !important;
    transition: opacity 0.2s ease !important;
    flex-shrink: 0;
    letter-spacing: 1px !important;
}

.pill-navbar__brand:hover {
    color: #ffffff !important;
    opacity: 0.85;
}

/* Desktop Navigation Menu */
.pill-navbar__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.pill-navbar__menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.pill-navbar__menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.pill-navbar__menu li a {
    position: relative;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #eeeeee !important;
    padding: 6px 12px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    border-radius: 999px !important;
}

.pill-navbar__menu li a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.10) !important;
}

/* Active State pill highlight matching live site */
.pill-navbar__menu li a.active,
.pill-navbar__menu li.current-menu-item > a,
.pill-navbar__menu li.current_page_item > a {
    background-color: rgba(255, 255, 255, 0.14) !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Right-side Icons */
.pill-navbar__icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.pill-navbar__icons a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 4px;
}

.pill-navbar__icons a:hover {
    opacity: 0.75;
}

.pill-navbar__icons svg.lucide,
.pill-navbar__icons i {
    width: 22px !important;
    height: 22px !important;
    stroke: #eeeeee !important;
    stroke-width: 1.7 !important;
    transition: stroke 0.25s ease, transform 0.2s ease !important;
}

.pill-navbar__icons a:hover svg.lucide,
.pill-navbar__icons a:hover i {
    stroke: #00e0d0 !important;
    transform: scale(1.1);
}

/* Cart Icon & Badge */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #303030;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#CartCountHamburger {
    position: absolute;
    top: -4px;
    right: -8px;
    background: rgba(56, 115, 115, 0.9);
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    display: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Mobile Hamburger Toggle */
.pill-navbar__toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    line-height: 1;
    padding: 2px 6px;
}

.pill-navbar__toggle-text {
    display: inline;
}

/* Mobile Slide-Down Dropdown Menu with Live Site Gradient */
.pill-navbar__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%);
    width: 92%;
    max-width: 420px;
    background: linear-gradient(90deg, #1e2121 31%, #254d4e 61%, #215757 84%, #387373);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    padding: 1.8rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease-in-out;
    z-index: 999;
}

.pill-navbar__dropdown.active {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
}

.pill-navbar__dropdown.active .pill-navbar__menu--mobile li a,
.pill-navbar__dropdown.active .pill-navbar__icons--mobile a {
    opacity: 1;
}

.pill-navbar__menu--mobile,
.pill-navbar__icons--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pill-navbar__menu--mobile li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.pill-navbar__menu--mobile li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

.pill-navbar__divider {
    width: 100%;
    height: 1px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.1);
}

.pill-navbar__icons--mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
}

.pill-navbar__icons--mobile a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 9px 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

/* Breakpoint for narrow / mobile screen */
@media (max-width: 960px) {
    .pill-navbar__nav {
        display: none !important;
    }
    .pill-navbar__toggle {
        display: block !important;
    }
    #CartCountHamburger {
        display: inline-block !important;
    }
}

@media (min-width: 961px) {
    .pill-navbar__dropdown,
    .pill-navbar__toggle {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .pill-navbar__container {
        padding: 0 2.5rem;
    }
    .pill-navbar__brand {
        font-size: 28px !important;
    }
    .pill-navbar__menu li a {
        font-size: 16px !important;
        padding: 6px 14px !important;
    }
    .pill-navbar__icons {
        gap: 20px;
    }
}
