@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');


/* NAVBAR BASE */
.fix_nav {
    background-color: rgba(255, 255, 255, 0.5);
    /* semi-transparent white */
    backdrop-filter: blur(10px);
    /* frosted glass blur */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border-bottom: 3px solid #7b2267;
    box-shadow: 2px 1px 10px 2px #ccc;
    z-index: 1000;
    position: relative;
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0px;
}

/* LOGO */
.logo img {
    max-height: 60px;
}

/* MENU (Desktop default) */
.nav-links {
    margin-left: auto;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 31px;
}


.add-to-cart a {
    font-family: "Mulish", sans-serif;
    text-decoration: none;
    font-size: 18px;
    color: #000;
    font-weight: 500;
    transition: color 0.3s;
}

.add-to-cart a:hover {
    color: #852e73;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links ul li a {
    font-family: "Mulish", sans-serif;
    text-decoration: none;
    font-size: 18px;
    color: #000;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s;
}

.nav-links ul li a:hover,
.nav-links ul li.active a {
    color: #852e73;
}

.nav-sub {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links ul li .dropdown-menu {
    position: absolute;
    top: 100%;
    /* Directly below parent */
    right: 160px;
    /* Align with parent link */
    background: #7a2767;
    min-width: 180px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    padding: 0;
    z-index: 1000;
    margin-top: -28px;
    gap: 0 !important;
}

.nav-links ul li .dropdown-menu li a {
    gap: 5px;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    display: block;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    /* Prevent text wrap */
}

.nav-links ul li .dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-links ul li .dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #852e73;
}

/* SHOW DROPDOWN ON HOVER */
.nav-links ul li.dropdown:hover .dropdown-menu {
    display: flex;
}


/* MOBILE SEARCH TOGGLE */
.search-toggle {
    display: block;
    font-size: 24px;
    color: #7a2167;
    cursor: pointer;
    padding: 15px;
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    position: relative;
    width: 80%;
    max-width: 400px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    font-size: 18px;
    border: 2px solid #7b2267;
    border-radius: 50px;
    outline: none;
}

.search-box button {
    background: #7b2267;
    border: none;
    padding: 0 15px;
    font-size: 18px;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    height: 46px;
    transition: 0.3s;
}

.search-box button:hover {
    background: #852e73;
}





/* BUTTONS */
.header_btn {
    display: flex;
    gap: 12px;
}

.header_btn span{
    font-size: 16px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-family: "Mulish", sans-serif;
    line-height: 140%;
}
.btn {
    font-family: "Mulish", sans-serif;
    padding: 9px 24px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-image: linear-gradient(135deg, #7a2167 0%, #d088c0 100%);
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-image: linear-gradient(135deg, #d088c0 0%, #7a2167 100%);
    transform: translateY(-2px) scale(1.03);
}

.btn a {
    text-decoration: none;
    color: #fff;
}

/* MOBILE TOGGLE ICON */
.menu-toggle,
.search-toggle {
    display: none;
    font-size: 22px;
    color: #7a2167;
    cursor: pointer;
}

#menu-footer{
    display: flex;
    list-style: none;
    padding: 10px;
}

#menu-footer li{
    border-right: 1px solid #000;
    padding: 0 15px;
}

#menu-footer li:last-child{
    border: 0;
}

#menu-footer li a{
    margin: 1%;
    font-size: 16px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-family: "Mulish", sans-serif;
    width: 100%;
    display: block;
}

/* MOBILE MENU (Slide in) */
@media (max-width: 960px) {
    .nav-sub {
        display: block;
        width: 100%;
    }

    .add-to-cart a {
        display: block;
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle .fa-times {
        z-index: 10001;
        display: none;
        left: 28% !important;
        position: absolute;
        top: 22%;
    }

    .menu-toggle .fa-bars {
        z-index: 10001;
        left: 0;
        position: relative;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
        /* Logo in center */
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .search-toggle {
        display: block;
        order: 3;
        /* Search icon last */
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }




    /* Hide menu in mobile until toggled */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 280px;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        margin: 0;
        z-index: 9999;

        height: 100vh;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links ul li a {
        display: block;
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

    /* Buttons stacked */
    .header_btn {
        flex-direction: row;
        margin-top: 0px;
    }

    /* Push logo left, menu/search icons on sides */
    .nav-container .logo {
        order: 2;
    }
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


@media only screen and (max-width :960px) {

    .header_btn {
        align-items: flex-start;
    }

    .nav-links ul li .dropdown-menu {
        position: relative;
        top: 28px;
        left: 0;
        border: none;
        box-shadow: none;
        display: none;
        width: 100%;
    }

    .nav-links ul li.dropdown.active .dropdown-menu {
        display: flex;
    }
}


@media only screen and (max-width:800px) {
    .menu-toggle .fa-times {
        left: 35% !important;
    }
}

@media only screen and (max-width:800px) {
    .menu-toggle .fa-times {
        left: 40% !important;
    }
}


@media only screen and (max-width:600px) {
    .menu-toggle .fa-times {
        left: 46% !important;
    }
}


@media only screen and (max-width:500px) {
    .menu-toggle .fa-times {
        left: 56% !important;
    }
}

@media only screen and (max-width: 400px) {
    .menu-toggle .fa-times {
        left: 70% !important;
    }
}


@media only screen and (max-width: 360px) {
    .menu-toggle .fa-times {
        left: 80% !important;
    }
}