﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
    margin-top: 0;
    margin-bottom: 0;
}



.cart-icon-wrapper1 {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
}
#basket225 {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cart-icon-circle1 {
    background: white;
    border-radius: 50%;
    width: 37px !important;
    height: 37px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* ✅ Enables absolute badge positioning */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cart-icon1 {
    width: 24px;
    height: 24px;
    fill: #395B73;
}

.cart-badge1 {
    position: absolute;
    bottom: -4px; /* ✅ Attached to white circle */
    right: -4px;
    background-color: #e4f4ff;
    color: #395B73;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}



header.custom-header {
    width: 100%;
    background: white;
    height: 96px;
    display: flex !important;
    align-items: center;
    position: relative;
    z-index: 100;
    justify-content: center;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-right: inherit;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 70px !important;
    MARGIN-LEFT: 4.85%;
    MARGIN-TOP: -1px;
}

.logo {
    height: 80px;
    width: 320px;
    margin-top: -0.5%;
    margin-left: 1.75%;
}

nav {
    display: flex;
    flex-shrink: 0;
    position: relative;
    gap: 28px;
}

.nav-button {
    background: none;
    border: none;
    color: #395B73;
    font-size: 16px;
    font-weight: 12px;
    cursor: pointer;
    position: relative;
    padding: 8px 0;
}

.dropdown-icon {
    margin-top: 4%;
    transition: transform 0.2s ease;
    transform: translateY(4px);
}

.nav-button:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-button:hover {
    color: #1e435f;
}

.nav-button.has-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.2s;
    background-color: #395B73;
}

.nav-button:hover::after {
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 17vw;
    background-color: #f5f5f5 !important;
    border-top: 1px solid #e0e0e0;
    display: none;
    z-index: 100;
    margin-top: 2px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
    padding: 0px !important;
    font-family: inherit;
    font-size: 16px;
}

.dropdown-item-rcpsg {
    padding: 15px 20px;
    color: #395B73 !important;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    position: relative;
    white-space: nowrap;
}

    .dropdown-item-rcpsg:focus {
        outline: none !important;
    }

    .dropdown-item-rcpsg:hover {
        background-color: white !important;
        text-decoration: underline;
    }

    .dropdown-item-rcpsg .arrow-icon {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .dropdown-item-rcpsg:hover .arrow-icon {
        opacity: 1;
    }

.nav-button-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-button-container:hover .dropdown-menu {
        display: block;
    }

.dropdown-menu:hover {
    display: block;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 7.2%;
}

.search-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4f4ff;
    border: none;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    color: #395B73;
    transition: background-color 0.2s;
    margin-right: -2px;
    z-index: 20;
}

    .search-button:hover {
        background-color: #ffffff;
        border: 2px solid #e5e7eb;
        border-color: #395B73;
    }

.search-container {
    position: relative;
}

.search-dropdown {
    position: fixed;
    top: 106px;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    .search-dropdown.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        margin-top: 20px; /* Optional: if you want spacing from header */
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

.search-bar-wrapper {
    width: 100%;
    background-color: transparent;
    padding: 10px 0;
}

.search-bar {
    max-width: 1400px;
    margin: 0px auto;
    padding: 0 36px;
    position: relative;
}

.search-input {
    width: 100% !important;
    padding: 12px 50px 12px 15px !important;
    font-size: 18px !important;
    border-radius: 5px !important;
    outline: none !important;
    border: none;
    outline: none;
    transition: border 0.2s ease;
    
}
    .search-input:focus {
        border: 2px solid #395B73 !important;
    }

.search-magnifier {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: #395B73;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-magnifier svg {
        width: 28px;
        height: 28px;
        stroke-width: 3.5;
    }

.login-button, .logout-button {
    padding: 8px 17px;
    background: white;
    border: 1px solid #395B73;
    border-radius: 4px;
    color: #395B73;
    font-size: 16px;
    font-weight: medium;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

    .login-button:hover {
        background-color: #e4f4ff;
        border-color: #395B73;
    }

    .login-button:hover {
        background-color: #e4f4ff;
        border-color: #395B73;
    }

.join-button {
    padding: 8px 17px;
    background: #2B5173;
    border: 1px solid #395B73;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: medium;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

    .join-button:hover {
        background-color: #e4f4ff;
        color: #395B73;
    }

.mobile-menu {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #395B73;
    z-index: 1001;
}

/* Mobile sidebar styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #F5F5F5;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: hidden;
    opacity: 0;
    visibility: hidden;
}

    .mobile-sidebar.active {
        right: 0;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

/* Mobile header top bar */
.mobile-top-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 100%;
    background: #F5F5F5;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2;
    height: 90px;
}

/* Mobile search button */
.mobile-search-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4f4ff;
    border: none;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    color: #395B73;
}

    .mobile-search-button:hover {
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        border-color: #395B73;
        background-color: azure;
    }

    .mobile-search-button svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
    }

/* Mobile authentication buttons */
.mobile-auth-buttons {
    display: flex;
    flex: 1;
    justify-content: end;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 5px;
}

.mobile-login, .mobile-join {
    padding: 4px 16px;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    min-width: 80px;
    border-radius: 4px;
}

.mobile-login {
    background: white;
    border: 1px solid #395B73;
    color: #395B73;
}

.mobile-join {
    background: #395B73;
    border: 1px solid #395B73;
    color: white;
}

    .mobile-join:hover {
        background-color: #e4f4ff;
        color: #395B73;
    }

.mobile-login:hover {
    background-color: #e4f4ff;
    border-color: #395B73;
}

/* Close button */
.mobile-close {
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    color: #395B73;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Mobile search dropdown */
.mobile-search-dropdown {
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

    .mobile-search-dropdown.active {
        display: block;
    }

.mobile-search-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

/* --- Mobile sidebar nav styles for screenshot match --- */
.mobile-nav {
    margin-top: 20px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

    .mobile-nav-list > li {
        border-bottom: none;
    }

        .mobile-nav-list > li.mnav-dd {
            background: #fafbfc;
        }

        .mobile-nav-list > li > .mobile-nav-link {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 10px 24px 16px 24px;
            font-size: 18px;
            color: #395B73;
            background: none;
            border: none;
            text-align: left;
            font-weight: semibold;
            cursor: pointer;
            outline: none;
            transition: background 0.2s;
            position: relative;
            text-decoration: none;
            background-color: transparent;
        }

            .mobile-nav-list > li > .mobile-nav-link .arrow {
                margin-left: auto;
                transition: transform 0.2s;
                display: flex;
                align-items: center;
            }

            .mobile-nav-list > li > .mobile-nav-link[aria-expanded="true"] .arrow {
                transform: rotate(180deg);
            }

            .mobile-nav-list > li > .mobile-nav-link[aria-expanded="false"] .arrow {
                transform: rotate(0deg);
            }

            .mobile-nav-list > li > .mobile-nav-link:hover {
                background: none;
            }

        .mobile-nav-list > li > .mnav-dropdown {
            background: #fff;
            border-top: none;
            padding: 0;
            margin: 0;
            list-style: none;
            background-color: transparent !important;
        }

.mnav-dropdown > li > a {
    display: block;
    padding: 20px 24px 20px 24px;
    font-size: 18px;
    color: #395B73;
    text-decoration: none;
    background: #fff;
    border-bottom: none;
    font-weight: 400;
    transition: background 0.2s;
    background-color: transparent !important;
}

    .mnav-dropdown > li > a:hover {
        background: #f5f7fa;
        text-decoration: underline;
    }
/* Remove default button styles for nav links */
.mobile-nav-link {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex; /* Use flexbox to control alignment */
    justify-content: space-between; /* Ensure text and arrow are spaced */
    align-items: center; /* Vertically center the text and arrow */
    width: 100%;
}

.mnav-dropdown-item {
    display: flex;
    justify-content: space-between; /* Ensure the text and arrow are spaced out */
    align-items: center; /* Vertically center the text and arrow */
}

    .mnav-dropdown-item a {
        display: flex;
        justify-content: space-between; /* Ensure text and arrow are spaced out */
        align-items: center; /* Vertically center the text and arrow */
        width: 100%; /* Ensure the anchor takes full width of its container */
    }

        .mnav-dropdown-item a .arrow {
            margin-left: auto; /* Push the arrow to the far right */
        }

    .mnav-dropdown-item .arrow {
        display: none;
    }

    /* Show arrow on hover */
    .mnav-dropdown-item:hover .arrow {
        display: inline-block;
    }
/* Custom Search Bar Wrapper */
.custom-mobile-search-dropdown {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent;
}

/* Container that wraps the input and search button */
.custom-search-bar-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Custom Search Bar */
.custom-search-bar {
    position: relative;
    width: 100%;
    min-width: 100%;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 2px;
    display: inline-flex;
}

/* Custom Input Field for Mobile */
.custom-mobile-search-input {
    width: 100%;
    padding: 12px 15px 12px 30px;
    font-size: 16px;
    border: 1px solid #395B73;
    border-radius: 5px;
    outline: none;
    height: 38px;

}
    .custom-mobile-search-input:hover {
       
        border: 2px solid #395B73 !important;
    }


/* Custom Search Magnifier Icon Button */
.custom-search-magnifier {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #395B73;
    cursor: pointer;
}

.custom-mobile-search-dropdown {
    display: none; /* Hidden by default */
}

    .custom-mobile-search-dropdown.active {
        display: block; /* Display when active */
    }

.custom-mobile-search-dropdown {
    display: none; /* Hidden by default */
}

    .custom-mobile-search-dropdown.active {
        display: block; /* Show when active */
    }

/* Styling for My Dashboard, My Basket, and Logout buttons */
.my-dashboard-button,
.my-basket-button,
.logout-button {
    padding: 8px 17px;
    margin-left: 18px;
    background: white;
    border: 1px solid #395B73;
    border-radius: 4px;
    color: #395B73;
    font-size: 16px;
    font-weight: medium;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline from links */
}

    /* Hover effect for the buttons */
    .my-dashboard-button:hover,
    .my-basket-button:hover,
    .logout-button:hover {
        background-color: #e4f4ff;
        border-color: #395B73;
    }

/* Style for Logout button */
.logout-button {
    background-color: #e74c3c; /* Red for logout button */
    color: white;
}

    .logout-button:hover {
        background-color: #c0392b; /* Darker red on hover */
    }

/* Specific style for My Basket button to make it stand out */
.my-basket-button {
    background-color: #2B5173; /* Blue for the basket button */
    color: white;
}

    .my-basket-button:hover {
        background-color: #395B73; /* Darker blue on hover */
    }

/* Make buttons align properly */
.right-section {
    display: flex;
    align-items: center;
    /*gap: 55px; */ 
}



/* Style for the Search Icon */
.custom-search-magnifier svg {
    width: 23px !important;
    height: 23px !important;
    stroke-width: 4 !important;
}





@media (max-width: 1024px) {
    .left-section {
        gap: 40px;
    }

    nav {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    nav:not(.mobile-nav),
    .search-button,
    .login-button,
    .join-button,
    .logout-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
    }


    .mobile-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        margin-top: -35px;
        /*        margin-top: -99%;*/
    }

    .my-dashboard-button,
    .my-basket-button,
    .logout-button {
        font-size: 14px; /* Smaller font size for mobile */
        padding: 8px 14px; /* Reduce padding on mobile */
        margin-left: 0;
    }

    .header-container > .left-section > nav,
    .search-button, .login-button, .join-button, logout-button {
        display: none !important;
    }

    .header-container {
        padding: 15px;
        margin-top: -11%;
        width: 98%;
    }

    .logo {
        height: 70px;
        min-height: 55px;
        width: auto;
       /* margin-left: -7%;*/
        margin-top: 8% !important;
    }
}
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {

    #basket224,
    .cart-icon-wrapper1 {
        display: none !important;
    }

    .right-section {
        gap: 10px !important;
    }
}

@media (min-width: 769px) {

    #mobileSidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {

/*    #basket224,
    .right-section > .cart-icon-wrapper1 {
        display: none !important;
    }*/


    #mobileSidebar.active #basket224,
    #mobileSidebar .cart-icon-wrapper1 {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #mobileSidebar {
        display: block !important;
    }
}


