.quick-links__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-links__item:hover {
    transform: scale(1.05);
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.cart-contents {
    position: absolute;
    top: 0px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

button.cart-modal__close:hover {
    background: transparent;
}

p.woocommerce-mini-cart__buttons.buttons {
    display: flex;
    gap: 0;
    font-size: 15px;
    justify-content: space-between;
    gap: 10px;
    font-weight: 400;

    a.button.wc-forward {
        background: #000;
        color: #fff;
        width: 100%;
    }

    a.button.checkout.wc-forward {
        background: #fff;
        color: #000;
        border: 1px solid #000;
    }
}

.mini-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    font-size: 12px;
    border-bottom: 1px solid #f2f2f2;
}

nav.quick-links a {
    display: flex !important;
}

nav.quick-links a svg {
    color: #000;
    /*fill: #000;*/
}

/*--------------------------------------------
    header-top
--------------------------------------------*/
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    gap: 40px;
}


.currency-switcher-header {
    display: flex;
    align-items: center;
    height: 30px;
}

.currency-switcher-header .wcml-dropdown {
    position: relative;
    max-width: 100% !important;
    width: 100px !important;
}

.wcml-dropdown li {
    background: transparent !important;
}

.currency-switcher-header .wcml-cs-active-currency>a {
    padding: 5px 10px;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.currency-switcher-header .wcml-cs-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    background-color: #000;
    border-radius: 4px;
    min-width: 180px;
    z-index: 1000 !important;
}

.currency-switcher-header .wcml-cs-submenu li a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
}

.currency-switcher-header .wcml-cs-submenu li a:hover {
    background-color: #333;
}

.currency-switcher-header .wcml-cs-active-currency:hover .wcml-cs-submenu {
    display: block;
}

.yoast-breadcrumbs span span:first-child a {
    font-size: 0;
    /* hide text */
    position: relative;
}

.yoast-breadcrumbs span span:first-child a::before {
    content: "\f015";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    color: #0073aa;
}

.mobile-actions .rfq,
.mobile-actions .login {
    display: block !important;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}
.mobile-menu-overlay.active {
    display: flex;
    gap: 19px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 38px;
    cursor: pointer;
    padding: 0;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav {
    margin-top: 30px;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu li a {
    display: flex;
    padding: 15px 0;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-item-has-children .mobile-submenu {
    display: none;
    padding-left: 20px;
}

.mobile-menu-item-has-children.active .mobile-submenu {
    display: block;
    list-style: none;
    padding-left: 0;
}

div#searchContainer form {
    max-width: 500px !important;
    margin: 0 auto;
}

/* RFQ & Login buttons */
.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding: 13px 0;
}

.mobile-actions #how-login-form {
    display: flex;
    padding: 7px 20px !IMPORTANT;
    max-width: 130px !important;
}

.mobile-actions #how-login-form {
    padding: 0 !important;
}

.mobile-btn {
    padding: 14px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.mobile-btn.rfq {
    background: var(--primary-main);
    color: #fff;
}

.mobile-btn.login {
    background: #f2f2f2;
    color: var(--primary-main);
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
  SEARCH PRODUCT GRID - Scoped with parent classes
================================ */
.search-dropdown .search-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.search-dropdown .search-product-card {
    text-decoration: none;
    color: #000;
    flex-direction: column;
    text-align: left;
    align-items: baseline;
    gap: 0px;
}

.search-dropdown .search-product-card img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.search-dropdown .search-product-card h5 {
    font-size: 17px;
    margin-block: 10px 3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary-main);
    max-width: 210px;
}

.search-dropdown .search-product-price {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #737373;
}

/* View all */
.view-all {
    margin-top: 20px;
    text-align: right;
}

.view-all a {
    /*font-weight: 600;*/
    color: #1a365d;
    text-decoration: none;
}

/* ===============================
PRODUCT MEGA MENU STYLES
================================ */

/* Navigation container */
.nav-container {
    position: relative;
}

.menu-item-has-children {
    position: static !important;
}

.menu-item-has-children .mega-outer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-top: 2px solid var(--primary-main);
    display: none;
    min-height: 400px;
}

.menu-item-has-children.show .mega-outer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Fixed Arrow indicator */
.menu-item-has-children.show .arrow-up {
    position: absolute;
    top: 31px;
    left: 38%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--primary-main);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
    display: none;
}

.menu-item-has-children.show .arrow-up {
    opacity: 1;
    display: block;
}

/* Ensure arrow only appears on Products */
.menu-item:not(.menu-item-has-children) .arrow-up {
    display: none !important;
}

/* Mega menu content */
.mega-menu-dropdown {
    padding: 40px 0;
}

.mega-menu-wrapper {
    width: 100%;
}

.mega-menu-header {
    margin-bottom: 10px;
    padding-block: 15px;
    border-bottom: 1px solid var(--border-gray);
}

.mega-menu-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-main);
    margin: 0;
}

/* UPDATED: 2 columns (1fr and 3fr) */
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    /* Changed from 1fr 1fr 1.5fr */
}

.submenu-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-category-list li a {
    color: var(--primary-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 5px 0 !important;
    display: block;
    transition: all 0.3s ease;
}

.submenu-category-list li a strong {
    font-weight: 600;
    color: var(--primary-main);
}

.submenu-category-list li a:hover {
    color: var(--primary-main);
    transform: translateX(5px);
}

/* Second Column (3fr) */
.mega-menu-col-3 {
    padding-left: 40px;
    border-left: 1px solid var(--border-gray);
}

.mega-submenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 0px;
}

.mega-submenu h5 {
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mega-submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-submenu ul li {
    margin-bottom: 5px;
}

.mega-submenu ul li a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 3px 0;
    display: block;
}

.mega-submenu ul li a:hover {
    color: var(--primary-main);
    transform: translateX(5px);
}

/* Products section in 3fr column */
.mega-products-section {

    padding-top: 10px;
    border-top: 1px solid var(--border-gray);
}

.products-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-main);
}

.mega-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.mega-product-card {
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    display: flex;
    gap: 10px;
}

.mega-product-image {
    text-align: center;
}

.mega-product-image img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.mega-product-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--primary-main);
    line-height: 1.4;
    padding-top: 10px;
}

.mega-product-price {
    font-size: 14px;
    color: var(--primary-main);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.mega-view-btn {
    display: inline-block;
    width: 100%;
    padding: 0 !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
}

.mega-view-btn:hover {
    border-color: var(--primary-dark);
    text-decoration: underline;
}

/* Active menu item styling */
.menu-item-has-children.active>a {
    color: var(--primary-main);
    position: relative;
}

.menu-item-has-children.show>a i {
    transform: rotate(180deg);
}

.menu-item-has-children>a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.menu-item-has-children .mega-outer {
    display: none;
}

.menu-item-has-children.show .mega-outer {
    display: block;
}

.menu-icon {
    cursor: pointer;
}

.menu>.menu-item.active>a,
.menu>.menu-item-has-children.active>a {
    color: var(--primary-main);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-main);
}

#how-login-form {
    position: relative;
    padding: 5px;
}

.account-menu {
    position: absolute;
    top: 49px;
    width: 210px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 999;
    overflow: hidden;
    display: none;
}

.account-menu a {
    gap: 10px;
    padding: 3px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    JUSTIFY-CONTENT: flex-start;
    width: 100%;
    font-family: var(--font-main);

}

.account-menu li:hover a {
    text-decoration: underline;
}

.account-menu .logout {
    color: #e11d48;
    border-top: 1PX solid #B6B6B6;
    text-transform: capitalize;
}

#how-login-form:hover+#accountMenu,
#accountMenu:hover {
    display: block;
}

.mobile-actions .account-menu {
    padding: 12px;
}

.mobile-actions .account-menu li a {
    padding: 5px 0;
}