
.sub-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border: none;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.sub-header ul,li{
	 list-style: none;
	 list-style-type: none;
}

.sub-mobile-nav a,
.sub-header a {
  text-decoration: none;
    color: black;
}

.menu-nav-title{
    font-weight: 600;
    font-size: 18px;
}
.sub-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1200px;
    position: relative;
}

.sub-nav>li:nth-child(1) {
    padding-left: 0px;
}

.sub-nav>li:nth-child(5) {
    margin-right: auto;
}

.top-menu-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}


.page-content {
    padding: 40px;
    height: 2000px;
    background: #fff;
}


@media (max-width: 1024px) {
    .sub-nav {
        display: none
    }
}

.sale-img {
    margin-left: 10px;
}

.sub-menu-list li {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 2px 22px;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sub-menu-list li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #333;
    transform: translateY(-50%);
}


.sub-menu-list li span {
    margin-left: 20px;
}


.sub-menu-list li:hover {
    background-color: #f3f4f6;
    color: #fff;
}

.dropdown--double {
    max-width: max-content;
    box-sizing: border-box;
}

.dropdown--double .dropdown-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.dropdown--double .dropdown-col {
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.product-icon {
    margin-right: 10px;
    width: 32px;
}

.sub-mobile-nav {
    display: none;
}

@media (max-width: 1023px) {
    .sub-menu-list li {
        font-size: 12px;
        margin-left: 20px;
        height: auto;
    }

    .sub-menu-list li::before {
        content: "";
        width: 3px;
        height: 3px;
        left: 10px;
    }

    .dropdown--double {
        padding: 8px 0;
        min-width: auto;
    }

    .dropdown--double .dropdown-inner {
        display: block;
    }

    .dropdown--double .dropdown-col {
        width: 100%;
        max-width: none;
        padding: 6px 12px;
    }

    .sub-mobile-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 999;
    }
    .sub-header {
        display: none;
    }

    .sub-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 30px;

        border-top: 1px solid #ddd;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .sub-mobile-header .brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
    }

    .sub-mobile-header img {
        width: 28px;
        height: 28px;
    }

    .sub-mobile-toggle {
        width: 24px;
        height: 24px;
        background: url('../images/head/menu_arrow_right.png') center/contain no-repeat;
        border: none;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .sub-mobile-toggle.active {
        transform: rotate(-90deg);
    }

    .mobile-img-arrow {
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url('../images/head/menu_arrow_right.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
        outline: none;
        box-shadow: none;
        background-color: transparent;
        cursor: pointer;
    }


    .sub-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .sub-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }


    .mobile-menu-panel {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        max-height: var(--menu-max-height, calc(100vh - 114px));
        background: #fff;
        z-index: 999;
        overflow-y: auto;
        transition: top 0.35s ease;
    }

    .mobile-menu-panel.active {
        top: var(--menu-top, 114px);
    }

    .mobile-menu-nav {
        list-style: none;
        margin: 0;
        padding: 0;
        border-top:1px solid #f2f2f2;
    }

    .mobile-menu-item {
        border-bottom: 1px solid #f2f2f2;
    }

    .mobile-menu-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 0.6rem 30px;
        font-weight: 500;
        color: #222;
    }

    .mobile-menu-item > a span {
        transition: transform 0.25s ease;
    }

    .mobile-menu-item.open > a span {
        transform: rotate(-90deg);
    }

    .mobile-submenu {
        display: none;
        flex-direction: column;
        padding: 6px 10px 10px;
        background: #fafafa;
    }

    .mobile-menu-item.open .mobile-submenu {
        display: flex;
    }

    .mobile-submenu h4 {
        font-size: 13px;
        font-weight: 600;
        text-align: left;
        margin:10px 10px 0px 20px;
    }

    .mobile-submenu ul {
        list-style: none;
        margin: 0;
    }

    .mobile-submenu ul li {
        margin: 4px 0px 0px 10px;
        font-size: 14px;
        color: #333;
        padding: 0 15px;
        line-height: 1.2;
    }

    .mobile-menu-footer {
        display: flex;
        gap: 10px;
        padding: 16px 10px;
        flex-wrap: wrap;
    }

    .mobile-menu-footer a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 1;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 15px;
        padding: 10px;
        font-weight: 600;
    }

    .mobile-menu-footer a:first-child {
        background: #12b669;
        border: none;
        color: #fff;
    }

    .mobile-menu-footer a:first-child:hover {
        background: #0fa25d;
    }

    .mobile-menu-footer a:last-child:hover {
        background: #f7f7f7;
    }

    .mobile-menu-panel::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-menu-panel::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 3px;
    }

    .sale-img {
        width: 48px;
        margin-left: 0px;
    }
}

@media (max-width: 767px) {
    .sub-mobile-header {
        padding: 12px 10px;
    }

    .mobile-menu-item > a {
        padding: 0.6rem 0.6rem;
    }

    .mobile-menu-panel {
        max-height: var(--menu-max-height, calc(100vh - 104px));
    }
    .mobile-menu-panel.active {
        top: var(--menu-top, 104px);
    }

    .mobile-submenu ul li {
        margin: 4px 0;
    }

    .mobile-submenu h4 {
        margin: 10px 0 6px;
    }


}