﻿:root {
    --green: #87c508;
    --nav-radius: 60px;
    --topbar-height: 40px;
    --max-content-width: 1200px;
    --container-percent: 70%;
    --transition-fast: 200ms;
}

.home-page .site-header,
body.home .site-header,
.index-page .site-header {
    margin-bottom: 0 !important;
}
.top-bar-container {
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.top-bar {
    height: var(--topbar-height);
    width: var(--container-percent);
    max-width: var(--max-content-width);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    flex-wrap: nowrap;
}
.contact-text{
    direction:ltr !important;
}
.phone-fix {
    direction: ltr;
    text-align: right; 
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #004282 !important;
}

.icon-circle {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
}

.btn-getinvolved {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 700;
}

/* ---------------------------
           NAV WRAPPER & main nav
           --------------------------- */
.nav-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    transform: translateY(30px); /* overlap for the nice floating effect */
    pointer-events: auto;
    height: 55px;
}

.nav-inner {
    width: var(--container-percent);
    max-width: var(--max-content-width);
    background: var(--green);
    border-radius: var(--nav-radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative;
    transition: background var(--transition-fast), backdrop-filter var(--transition-fast);
}

/* logo */
.brand-link {
    margin-inline-start: 8px;
    margin-inline-end: 0;
    display: flex;
    align-items: center;
    width: 150px;
}

.nav-logo {
    height: 55px;
    object-fit: contain;
}

/* nav links (desktop) */
.main-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-link-bs {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: color var(--transition-fast);
}

    .nav-link-bs:hover {
        color: #004282;
    }


/* header icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 6px;
}


/* USER DROPDOWN FIXED */
.user-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    width: 200px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 99999;
}

.avatar-icon:hover {
    color: #0a58ca;
}

.user-dropdown.hidden {
    display: none !important;
}

.dropdown-item:hover {
    background: #f6f6f6;
}

/* CART BADGE */
.cart-badge {
    position: absolute;
    top: -8px;
    inset-inline-start: -8px;
    background: #e63946; 
    color: #fff;
    width: 20px;
    height: 20px; 
    border-radius: 50%;
    font-size: 11px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.2s ease;
}


/* ---------------------------
           Mobile menu (slide from right)
           --------------------------- */
.menu-toggle {
    display: none; /* shown only on mobile */
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #fff;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0; /* slide from right (RTL) */
    height: 100vh;
    width: 320px;
    max-width: 90%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 300ms ease;
    box-shadow: -6px 0 30px rgba(0,0,0,0.2);
    z-index: 99998;
    overflow: auto;
    border-left: 1px solid rgba(0,0,0,0.04);
}

    .mobile-menu.open {
        transform: translateY(-30px);
    }

.mobile-menu-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* mobile top part (contacts & CTA) */
.mobile-topbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 12px;
}

.mobile-contact div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #05213a;
}

/* mobile search */
.mobile-search {
    padding: 6px 0;
}

/* mobile links list */
.mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .mobile-links a {
        display: block;
        padding: 10px;
        border-radius: 8px;
        text-decoration: none;
        color: #05213a;
        font-weight: 700;
    }

        .mobile-links a:hover {
            background: #f3f6f3;
        }

/* mobile footer actions */
.mobile-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.mobile-cart {
    font-weight: 700;
    text-decoration: none;
    color: #05213a;
}

.mobile-account .mobile-link {
    display: block;
    text-decoration: none;
    color: #05213a;
}

/* ---------------------------
           Responsive behavior
           --------------------------- */
/* Desktop first: hide mobile elements on wide screens */

@media (min-width: 1200px) {
    .nav-inner .brand-link {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .top-bar-container .brand-link {
        display: none !important;
    }
}




@media (min-width: 1200px) {
    .menu-toggl {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .top-bar-container {
        display: flex;
    }

    .nav-inner {
        align-items: center;
    }

    .search-container {
        display: block;
    }

    .header-icons .cart-badge {
        left: -6px;
    }
}

/* Mobile: hide top bar, show hamburger and mobile menu */
@media (max-width: 1200px) {
    #site-header {
        height: 53px !important;
    }

    .top-bar-container {
        display: none;
    }
    /* merge top-bar into mobile menu */
    .nav-inner {
        padding: 10px 12px;
        border-radius: 50px;
    }

    .nav-inner {
        gap: 8px;
    }

    .brand-link {
        margin: 0;
    }
    /* logo on right */
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
    }
    /* hide desktop links */
    .search-container {
        display: none;
    }
    /* desktop search hidden; mobile search inside menu */
    .header-icons {
        margin-inline-start: auto;
    }
    /* icons on left visually */
    .nav-logo {
        height: 40px;

    }

}

/* accessibility helper */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* small polish */
.nav-links li a {
    padding: 8px 4px;
    border-radius: 6px;
    display: inline-block;
}

#site-header {
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 899;
    transition: transform .35s ease, opacity .25s ease;
}

    #site-header.hide {
        transform: translateY(-100%);
        opacity: 0;
    }
