﻿@media (min-width: 1201px) {
  .custom-header-scope .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    padding: 0 15px;
  }

  .custom-header-scope .navbar-left-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .custom-header-scope .navbar-center-section {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 40px;
  }

  .custom-header-scope .navbar-center-section ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .custom-header-scope .navbar-center-section ul li {
    position: relative;
    margin-right: 25px;
  }

  .custom-header-scope .navbar-center-section ul li:last-child {
    margin-right: 0;
  }

  .custom-header-scope .navbar-center-section ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    transition: color 0.3s;
    white-space: nowrap;
  }

  .custom-header-scope .navbar-center-section ul li:hover a {
    color: var(--primary, #5fb86f);
  }

  .custom-header-scope .navbar-center-section ul li.active a {
    color: var(--primary, #5fb86f);
  }

  .custom-header-scope .navbar-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
  }

  .custom-header-scope .navbar-right-section .cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
  }

  .custom-header-scope .navbar-right-section .cart a {
    position: relative;
    display: inline-block;
  }

  .custom-header-scope .navbar-right-section .cart .icon-bag {
    display: block;
    position: relative;
    z-index: 1;
  }
      
  .custom-header-scope .navbar-right-section .cart .count.cart-qty {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -75%);
    color: #00714b;
    font-size: 12px;
    font-family: "Fjalla One", sans-serif;
    font-weight: bold;
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
  }

  .custom-header-scope .navbar-right-section .account-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .custom-header-scope .navbar-right-section .account-toolbar .cart {
    position: relative;
    cursor: pointer;
    margin: 0;
  }
  
  .custom-header-scope .navbar-center-section ul li {
    position: relative;
  }

  .custom-header-scope .navbar-center-section .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 250px;
    margin-top: 5px;
    padding: 15px 0;
    background-color: #ffffff;
    border: 1px solid #e1e7ec;
    border-radius: 5px;
    box-shadow: 0 7px 22px -5px rgba(47, 56, 68, 0.2);
    z-index: 1000;
  }

  .custom-header-scope .navbar-center-section .sub-menu li {
    display: block;
    margin: 0;
    padding: 0;
  }

  .custom-header-scope .navbar-center-section .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333 !important;
    text-transform: capitalize;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s;
  }

  .custom-header-scope .navbar-center-section .sub-menu li a:hover {
    color: #5fb86f !important;
    background-color: #f8f9fa;
  }

  .custom-header-scope .navbar-center-section .sub-menu.second-level {
    top: -5px;
    left: 100%;
    margin-left: 2px;
  }

  .custom-header-scope .navbar-center-section ul li:hover > .sub-menu {
    display: block;
    -webkit-animation: submenu-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: submenu-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  /* * ===================================================================
         * NEW STYLES: Override and fix the .toolbar-dropdown conflict
         * ===================================================================
  */
  .custom-header-scope .navbar-right-section .account {
    position: relative;
  }

  .custom-header-scope .navbar-right-section .toolbar-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; 
    left: auto;
    margin-top: 15px !important;
    margin-left: 0;
    min-width: 220px;
    background-color: #ffffff;
    border: 1px solid #e1e7ec;
    border-radius: 5px;
    box-shadow: 0 7px 22px -5px rgba(47, 56, 68, 0.2);
    z-index: 1001;
    animation: none;
  }

  .custom-header-scope .navbar-right-section .account-toolbar .account .toolbar-dropdown.display {
    display: block !important;
    -webkit-animation: submenu-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: submenu-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .custom-header-scope .toolbar .account:hover > .toolbar-dropdown {
    display: none;
  }

  .custom-header-scope .toolbar .account:hover > .toolbar-dropdown.display {
    display: block !important;
  }

  .menu-link {
    display: flex;
    align-items: flex-end;
  }

  #flyout-cart {
    top: 65%;
  }
}
