/* Crofttraders Navbar Styles */
:root {
    --brand-primary: #ffb347;
    --brand-dark: #1a2233;
    --brand-light: #fff;
    --brand-link: #121213;
    --brand-accent: #ff9900;
    --bg-dark: #000105;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar-links li a {
    color: var(--brand-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-links li a:hover {
    color: var(--brand-primary);
}

.navbar-actions {
    display: flex;
    gap: 1rem;
}


@media (max-width: 900px) {
    .navbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 2vw !important;
    }
    .navbar-brand {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .navbar-hamburger {
        margin-left: 16px !important;
    }
}
@media (max-width: 600px) {
    .navbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 2vw !important;
    }
    .navbar-brand {
        gap: 8px !important;
    }
    .brand-logo {
        width: 36px !important;
        height: 36px !important;
    }
    .brand-text {
        font-size: 1.1rem !important;
    }
}
@media (max-width: 900px) {
    .navbar-links, .navbar-actions {
        display: none;
        flex-direction: column;
        background: rgba(252, 250, 248, 0.95);
        position: absolute;
        top: 64px;
        left: 0;
        width: 100vw;
        z-index: 100;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border-radius: 0 0 24px 24px;
    }

    .navbar-mobile {
        position: fixed;
        top: 0;
        right: 0;
        width: 50vw;
        height: 100vh;
        background-color: #fff;
        z-index: 101;

        display: flex;               /* ✅ Always display flex */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;        /* Prevent clicks when hidden */
        transform: translateX(100%); /* ✅ Start off-screen */
        transition: transform 0.5s ease-in-out;
    }

    /* When active, slide into view */
    .navbar-mobile.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }


    .navbar-mobile.active > .navbar-mobile-content {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        padding: 10px 20px;
        height: 80%;
    }
    .navbar-mobile.active > .navbar-mobile-top {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px 20px;
        height: 20%;
        width: 100%;
    }

    .navbar-mobile-content a:not(.btn) {
        color: black;
    }
    .navbar-mobile-content a:not(.btn):hover {
        color: #eb9513;
    }
    .navbar-mobile-top button {
        color: black;
        border: none;
        outline: none;
        cursor: pointer;
        background: transparent;
    }

    .navbar-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin-left: auto;
    }
    .navbar-hamburger span {
        display: block;
        width: 28px;
        height: 4px;
        margin: 4px 0;
        background: #eb9513;
        border-radius: 2px;
        transition: all 0.3s;
    }
    .navbar {
        position: relative;
    }
}
@media (min-width: 901px) {
    .navbar-hamburger, .navbar-mobile {
        display: none;
    }
    .navbar-links, .navbar-actions {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
}


