/* ============================================
   PREMIUM HEADER NAVIGATION - ENHANCED
   ============================================ */

/* Main Header - Sticky with Premium Effects */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

/* Navbar Container */
.navbar {
    padding: 10px 0;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 5px 0;
}

/* Brand Logo Styling */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.brand-logo {
    height: 65px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .brand-logo {
    height: 55px;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(15, 76, 117, 0.2));
}

/* Navigation Items */
.navbar-nav {
    gap: 8px;
    align-items: center;
}

/* Navigation Links - Premium Style */
.nav-link {
    font-weight: 600;
    color: #1a2f4d !important;
    padding: 10px 18px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    border-radius: 8px;
}

/* Animated Underline Effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0f4c75, #3282b8);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Hover State */
.nav-link:hover {
    color: #0f4c75 !important;
    background: rgba(15, 76, 117, 0.05);
}

.nav-link:hover::before {
    width: 70%;
}

/* Active State */
.nav-link.active {
    color: #0f4c75 !important;
    background: rgba(15, 76, 117, 0.08);
}

.nav-link.active::before {
    width: 70%;
}

/* Cart Link - Special Styling */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px !important;
}

.cart-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cart-link:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Cart Count Badge */
.cart-count {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 22px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Contact CTA Button */
.btn-header-cta {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-header-cta:hover {
    background: transparent;
    color: #25D366 !important;
    border-color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-header-cta i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.btn-header-cta:hover i {
    transform: scale(1.2) rotate(15deg);
}

/* ============================================
   CUSTOM HAMBURGER MENU - ANIMATED
   ============================================ */

.navbar-toggler {
    border: none;
    padding: 10px;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0f4c75, #3282b8);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.bar1 {
    transform: translateY(0) rotate(0);
}

.bar2 {
    opacity: 1;
    transform: scaleX(1);
}

.bar3 {
    transform: translateY(0) rotate(0);
}

/* Animated X when active */
.navbar-toggler.active .bar1 {
    transform: translateY(8.5px) rotate(45deg);
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.navbar-toggler.active .bar2 {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler.active .bar3 {
    transform: translateY(-8.5px) rotate(-45deg);
    background: linear-gradient(90deg, #dc3545, #c82333);
}

/* Hover effect on hamburger */
.navbar-toggler:hover .bar {
    background: linear-gradient(90deg, #3282b8, #0f4c75);
}

.navbar-toggler.active:hover .bar1,
.navbar-toggler.active:hover .bar3 {
    background: linear-gradient(90deg, #c82333, #a71d2a);
}

/* ============================================
   HEADER SOCIAL MEDIA LINKS - FIXED FOR DESKTOP
   ============================================ */

.header-social-links-wrapper {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    position: relative;
}

/* Separator line before social links - Desktop only */
.header-social-links::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(15, 76, 117, 0.3), transparent);
}

/* Separator line after social links - Desktop only */
.header-social-links::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(15, 76, 117, 0.3), transparent);
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
}

.header-social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
}

.header-social-link.facebook:hover {
    background: linear-gradient(135deg, #0d65d9, #0a54b8);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.5);
}

.header-social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.3);
}

.header-social-link.instagram:hover {
    background: linear-gradient(45deg, #e6683c, #dc2743, #cc2366, #bc1888, #8a3ab9);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.5);
}

.header-social-link i {
    transition: transform 0.3s ease;
    z-index: 1;
    line-height: 1;
}

.header-social-link:hover i {
    transform: scale(1.15);
}

/* ============================================
   NOTIFICATION ANIMATIONS
   ============================================ */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .brand-logo {
        height: 55px;
        max-width: 200px;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 15px 15px;
        padding: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .navbar-nav {
        margin: 0;
        gap: 0;
        padding: 15px;
        background: transparent;
        align-items: stretch;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 14px 20px !important;
        border-bottom: 1px solid rgba(15, 76, 117, 0.1);
        border-radius: 8px;
        margin-bottom: 5px;
        width: 100%;
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link.active,
    .nav-link:hover {
        background: rgba(15, 76, 117, 0.12);
        border-left: 4px solid #0f4c75;
        padding-left: 16px !important;
    }

    .cart-link {
        justify-content: flex-start;
    }

    .cart-count {
        position: relative;
        top: auto;
        right: auto;
        margin-left: 10px;
    }

    /* Header Social Links - Mobile Styles */
    .header-social-links-wrapper {
        width: 100%;
        justify-content: center;
        padding: 15px 0;
        border-top: 1px solid rgba(15, 76, 117, 0.1);
        margin: 10px 0 0 0;
    }

    .header-social-links {
        gap: 15px;
        margin: 0;
        padding: 0;
    }

    /* Remove separator lines on mobile */
    .header-social-links::before,
    .header-social-links::after {
        display: none;
    }

    .header-social-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .btn-header-cta {
        margin: 15px 0 5px;
        width: 100%;
        justify-content: center;
        padding: 12px 28px;
    }

    /* Hamburger visible on mobile */
    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .brand-logo {
        height: 50px;
        max-width: 180px;
    }

    .navbar {
        padding: 8px 0;
    }

    .nav-link {
        padding: 12px 18px !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        height: 45px;
        max-width: 160px;
    }

    .navbar {
        padding: 6px 0;
    }

    .toggler-icon {
        width: 24px;
        height: 18px;
    }

    .bar {
        height: 2.5px;
    }

    .navbar-toggler.active .bar1 {
        transform: translateY(7.5px) rotate(45deg);
    }

    .navbar-toggler.active .bar3 {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 40px;
        max-width: 140px;
    }
}

/* ============================================
   SCROLLED STATE
   ============================================ */

.main-header.navbar-shrink .navbar {
    padding: 6px 0;
}

.main-header.navbar-shrink .brand-logo {
    height: 50px;
}

/* Mobile menu slide animation */
@media (max-width: 991px) {
    .navbar-collapse {
        transition: all 0.35s ease-in-out;
    }

    .navbar-collapse:not(.show) {
        display: block !important;
        height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        height: auto;
        opacity: 1;
        visibility: visible;
    }
}