html {
    height: 100%;
    overflow-y: scroll;
}

body.about-page,
body.shop-page {
    background-image: none;
    min-height: 100%;
    height: auto;
    overflow: visible;
}
a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

a:hover {
    color: #0195fb;
    text-decoration: none;
}

.banner {
    position: sticky;
    top: 0;
    left: 0;
    background-color: #000000;
    width: 100%;
    height: 30px;
    line-height: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 1%;
    box-sizing: border-box;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: #fff;
    white-space: nowrap;
}

.banner-content .banner-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.banner-content .banner-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.banner-content .banner-right > * {
    margin-left: 1.5px;
}

.banner-content .banner-right > *:first-child {
    margin-left: 0;
}

.banner-content a:hover {
    color: #0195fb;
    text-decoration: none;
}

.banner-content a:hover i {
    color: #0195fb;
    text-decoration: none;
}

.banner-content i {
    font-size: 1em;
}

.desktop-account-menu {
    position: relative;
    height: 100%;
    line-height: 30px;
    font-size: 12px;
    z-index: 101;
    display: inline-flex;
    align-items: center;
}
.desktop-account-menu .account-sub-menu {
    display: none;
    position: absolute;
    top: 30px;
    right: -10px;
    left: auto;
    min-width: 120px;
    background-color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.desktop-account-menu .account-sub-menu li a {
    display: block;
    padding: 5px 15px;
    white-space: nowrap;
    height: auto;
    color: #000;
    line-height: 1.5;
}

.desktop-account-menu:hover .account-sub-menu {
    display: block;
}
.desktop-account-menu .account-sub-menu li a:hover {
    background-color: #f0f0f0;
    /*color: #0195fb;*/
    color: #000;
}

.sticky-header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101;
}

.main-nav-bar {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 40px;
    align-items: center;
    font-weight: bold;
}

.nav-links li a {
    color: #000;
    text-decoration: none;
    padding: 0 15px;
    display: block;
    height: 100%;
    line-height: 40px;
    border-bottom: 4px solid transparent;
    transition: border-bottom 0.3s ease-in-out;
}

.nav-links li a.active {
    color: #000;
    text-decoration: none;
    border-bottom: 4px #000 solid;
}

.nav-links li a:hover {
    border-bottom: 4px #000 solid;
}

.mobile-menu-toggle {
    display: none;
    background: #fff;
    color: #000;
    border: 0px solid #ccc;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 180px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 200px;
}

.mobile-menu-bottom {
    display: none;
}

#floating-cart-icon-link {
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    right: 20px;
    background-color: #007bff; 
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    text-decoration: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 769px) {
    .menu-item-has-children:hover > .sub-menu {
        display: block;
    }
    .form-row label {
        white-space: nowrap;
        flex-basis: 80px; 
    }
    .login-popup-content .form-container form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-top: -7px;
        margin-bottom: 10px;
    }
}

.sub-menu.open-sub {
    display: block;
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.sub-menu.open-sub.animating {
    max-height: 500px;
}

.sub-menu li a {
    color: #000;
    padding: 10px 15px;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    height: auto;
    line-height: normal;
}

.sub-menu li a:hover {
    background-color: #f0f0f0;
    border-bottom: 1px solid #eee;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.category-header {
    text-align: center;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 0px;
    color: #333;
    position: sticky;
    top: 70px;
    background-color: rgba(240, 240, 240, 1);
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100vw;
    box-sizing: border-box;
    left: 0;
    right: 0;
    margin-left: calc(50% - 50vw);
}

.category-header.sticky-shadow {
    box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.2);
}

/*#floating-dashboard-icon {
    position: fixed;
    bottom: 75px;
    right: 20px;
    background-color: transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s, border-radius 0.5s ease-in-out, font-size 0.5s ease-in-out;
}

#floating-dashboard-icon.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

#floating-dashboard-icon a {
    color: black;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: color 0.2s ease-in-out;
}

#floating-dashboard-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 50%;
    transform: scale(1);
    z-index: -1;
    transition: transform 0.5s ease-in-out, border-radius 0.5s ease-in-out, background-color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

#floating-dashboard-icon.expanded {
    border-radius: 0;
    font-size: 5em;
}

#floating-dashboard-icon.expanded::before {
    transform: scale(100);
    border-radius: 0;
    background-color: #0195fb;
}

#floating-dashboard-icon:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#floating-dashboard-icon:hover a {
    color: #fff;
    transition: color 0.2s ease-in-out;
}

#floating-dashboard-icon:hover::before {
    background-color: #0195fb;
}*/

@media (max-width: 768px) {
    .main-nav-bar {
        position: relative;
    }

      .banner-content .banner-right {
        display: none;
    }

    .category-header {
        top: 69px;
        margin: -5px
    }

  .nav-links {
    display: block !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    background-color: #fff !important;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.2) !important;
    z-index: 99 !important;
    position: fixed !important;
    top: +100vh !important;
    left: 0 !important;
    margin-top: 0 !important;
    padding-top: 60px !important;
    font-size: 14px !important;
    transition: top 0.3s ease-in-out !important;
    opacity: 0 !important;
    visibility: hidden !important;
    padding-bottom: 60px !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    height: calc(100vh - 60px) !important; 
    overflow-y: auto !important;
  }

  .nav-links.open {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    top: 60px !important;
    z-index: 1003 !important;
  }

    .nav-links li {
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  .nav-links li.animate-in {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links::before {
    content: '';
    display: block !important;
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 40px !important;
    height: 4px !important;
    background-color: #ccc !important;
    border-radius: 2px !important;
    z-index: 100 !important;
  }

  .mobile-menu-bottom {
    display: block;
    background-color: #f8f8f8;
    padding: 8px 15px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1002 !important;
    width: 100%;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    margin-top: 0 !important;
  }

  .mobile-menu-bottom > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .mobile-menu-bottom a {
    color: #000 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    font-size: 1em !important; 
  }

  .mobile-menu-bottom a i {
    font-size: 1.2em !important;
    margin-left: 10px !important;
  }

    .mobile-menu-bottom > div > a:first-child {
        background-color: #000;
        color: #fff !important;
        padding: 5px 25px 5px 10px !important;
        border-radius: 20px;
        text-decoration: none !important;
        display: inline-block !important;
        font-size: 1em !important;
        position: relative;
        overflow: hidden; 
        z-index: 1;
        transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
        border: 1px solid black;
    }

    .mobile-menu-bottom > div > a:first-child::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: #fff;
        transition: left 0.3s ease-in-out;
        z-index: -1;
        border-radius: inherit;
    }

    .mobile-menu-bottom > div > a:first-child:hover {
        color: black !important;
        background-color: white !important;
        border: 1px solid black !important;
    }

    .mobile-menu-bottom > div > a:first-child:hover::before {
        left: 0;
    }

  .nav-links > .mobile-menu-bottom {
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
  }

  .mobile-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 98 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease-in-out !important, visibility 0s 0.3s !important;
  }

  .mobile-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-in-out !important, visibility 0s 0s !important;
    z-index: 1002 !important;
  }

  .nav-links li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 5px 15px 0 20px !important;
    line-height: 1.0 !important;
    text-align: left !important;
    height: 40px !important;
    border-bottom: 0px solid #eee !important;
    position: relative !important;
    font-size: 1.7em;
  }

  .nav-links li.menu-item-has-children > a {
    padding-left: 20px;
    justify-content: center;
    padding-right: 25px;
  }

  .nav-links li a.active {
    margin: 0;
    border-bottom: 0px;
  }

  .nav-links li a:hover {
    color: #0195fb;
    border-bottom: 0px;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 103;
    background-color: rgba(255, 255, 255, 0.4);
  }

  .sub-menu {
    display: none;
    position: static;
    top: auto;
    left: auto;
    background-color: #eaecee;
    box-shadow: none;
    z-index: auto;
    list-style: none;
    padding: 5px 0 10px 10px;
    margin: 0;
    width: 100%;
    border-radius: 0;
    border: none;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    font-size: 0.9em;
  }

  .sub-menu.open-sub {
    display: block;
    max-height: 500px;
  }

  .sub-menu li a {
    color: #000;
    padding: 10px 15px;
    display: block;
    text-align: center;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    height: auto;
    line-height: normal;
  }

  .sub-menu li a:hover {
    background-color: #f0f0f0;
    border-bottom: 1px solid #eee;
  }

  .sub-menu li:last-child a {
    border-bottom: none;
  }

  .nav-links li a .chevron {
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
    position: absolute; 
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links li.menu-item-has-children.open-submenu > a .chevron {
    transform: translateY(-50%) rotate(180deg);
  }

    .desktop-account-menu .account-sub-menu {
        display: none; 
        position: absolute;
        top: 30px; 
        right: 30;
        min-width: 120px;
        background-color: #000;
    }

        #floating-cart-icon-link {
            display: flex;
            top: 33px;
            right: 15px;
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
            background-color: transparent;
            box-shadow: none;
        }

        #floating-cart-icon-link i {
            color: #000 !important;
        }
    
        #floating-cart-icon-link #floating-cart-count {
            top: 0px !important;
            right: -2px !important;
            z-index: 103;
        }
    }

    #floating-cart-count {
        transition: transform 0.2s ease-out, background-color 0.2s ease-out;
    }

    .cart-pop {
        animation: cart-pop-animation 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    @keyframes cart-pop-animation {
        0% {
            transform: scale(0.5) rotate(0deg);
            opacity: 0.5;
        }
        50% {
            transform: scale(1.3) rotate(5deg);
            opacity: 1;
        }
        100% {
            transform: scale(1) rotate(0deg);
            opacity: 1;
        }
    }
    .cart-shake {
        animation: cart-shake-animation 0.4s ease-in-out;
    }

    @keyframes cart-shake-animation {
        0%, 100% {
            transform: translateX(0);
        }
        20%, 60% {
            transform: translateX(-3px);
        }
        40%, 80% {
            transform: translateX(3px);
        }
    }

.login-popup {
    display: none;
    position: fixed;
    z-index: 105;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.login-popup.open {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.login-popup-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    position: relative;
    box-sizing: border-box !important;
    top: -10%;
}

/* Styles for form rows */
.login-popup-content .form-row {
    margin-bottom: 15px;
    display: block !important; /* Stack label and input */
    align-items: flex-start !important; /* Align items to the start */
    box-sizing: border-box !important; /* Ensure padding is inside width */
    width: 100% !important; /* Take full width */
}

.login-popup-content .form-row label {
    text-align: left !important; /* Align text to the left */
    margin-right: 0 !important; /* Remove right margin */
    margin-bottom: 5px !important; /* Add margin below label */
    font-weight: bold;
    display: block !important; /* Make label a block element */
    white-space: nowrap;
}

.login-popup-content .form-row input[type=text],
.login-popup-content .form-row input[type=password] {
    flex-grow: 1;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-size: 1em !important;
    width: calc(100% - 2px) !important; /* Account for border */
    box-shadow: none !important; /* Ensure no shadow */
}

/* Style for the login button */
.login-popup-content .form-container input[type=submit],
.login-popup-content .form-container button[type=submit] {
    background-color: #000 !important;
    color: white !important;
    padding: 12px 20px !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    border-radius: 4px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    margin-top: 20px !important; /* Add some space above the button */
}

.login-popup-content .form-container input[type=submit]:hover,
.login-popup-content .form-container button[type=submit]:hover {
    opacity: 0.8 !important;
}

/* Style for the close button */
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for the form container */
.form-container {
    padding: 16px;
}

/* Style for the error message */
.login-popup-content .error-container {
    background-color: #fdd;
    color: #d33;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.login-popup-content .error-container.hidden {
    display: none;
}

.login-popup-content .error-container .p_error {
    margin: 0;
}

/* Target only non-mobile (desktop) */
@media (min-width: 769px) {
    /* Apply the mobile-like styling here */
    .login-popup-content .form-row {
        display: block !important;
        align-items: flex-start !important;
    }

    .login-popup-content .form-row label {
        text-align: left !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        display: block !important;
    }

    .mobile-only-cart {
        display: none !important;
    }

        #mobile-top-cart-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #floating-cart-icon-link {
        display: none !important;
    }
    .sticky-header-wrapper {
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000; /* Ensure it stays on top */
    }

    /* 2. Style and position the cart icon within the fixed main-nav-bar */
    .main-nav-bar {
        position: relative; /* CRITICAL: Allows absolute positioning of the cart */
    }

    .mobile-only-cart {
        /* This is the new cart link/container */
        display: block; /* Show the cart icon only on mobile */
        position: absolute;
        right: 15px;
        top: 21px; /* 32px */
        transform: translateY(-50%);
        font-size: 1.3rem; 
        color: #000; 
        z-index: 103; 
        text-decoration: none;
        padding: 10px; /* 0 5px Add padding for easier tapping */
        height: auto;
    }
}

/* Responsive adjustments (for smaller desktops if needed) */
@media screen and (max-width: 980px) and (min-width: 769px) {
    .login-popup-content {
        width: 90%;
        margin-top: 10%;
    }
}

/* Responsive adjustments (optional) */
@media screen and (max-width: 600px) {
    .login-popup-content {
        width: 95%;
        margin-top: 30%;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row label {
        text-align: left;
        margin-bottom: 5px;
    }
}