:root {
    --shop-categories-menu-horizontal-bg: #ffffff;
    --shop-categories-menu-horizontal-bg-hover: #fafafa;
    --shop-categories-menu-horizontal-bg-box: #fdfdfd;
    --shop-categories-menu-horizontal-link: inherit;
    --shop-categories-menu-horizontal-icon: rgba(0, 0, 0, 0.25);
    --shop-categories-menu-horizontal-border: #f2f2f2;
    --shop-categories-menu-horizontal-shadow: rgba(0, 0, 0, 0.08);
    --shop-categories-menu-horizontal-text: #222222;
    --shop-categories-menu-horizontal-svg-size: 18px;
}

.hotengine-shop-categories-menu-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    position: relative;
    z-index: 100;
}

.hotengine-shop-categories-menu-horizontal li {
    position: relative;
}

.hotengine-shop-categories-menu-horizontal a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--shop-categories-menu-horizontal-link);
    transition: background 0.2s ease;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hotengine-shop-categories-menu-horizontal .hotengine-categories-small-icon-svg,
.hotengine-shop-categories-menu-horizontal .hotengine-categories-small-icon-mask {
    display: inline-block;
    width: var(--shop-categories-menu-horizontal-svg-size);
    height: var(--shop-categories-menu-horizontal-svg-size);
    margin-right: 10px;
    flex-shrink: 0;
}

.hotengine-shop-categories-menu-horizontal .hotengine-categories-small-icon-svg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.hotengine-shop-categories-menu-horizontal .hotengine-categories-small-icon-mask {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.hotengine-shop-categories-menu-horizontal li.pull-down > a::after,
.hotengine-shop-categories-menu-horizontal li.right-menu > a::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.2px solid var(--shop-categories-menu-horizontal-icon);
    border-bottom: 1.2px solid var(--shop-categories-menu-horizontal-icon);
    transition: transform 0.2s ease;
}

.hotengine-shop-categories-menu-horizontal > li.pull-down > a::after {
    transform: translateY(-70%) rotate(45deg);
}

.hotengine-shop-categories-menu-horizontal ul li.right-menu > a::after {
    transform: translateY(-50%) rotate(-45deg);
}

.hotengine-shop-categories-menu-horizontal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    background: var(--shop-categories-menu-horizontal-bg);
    min-width: 220px;
    box-shadow: 0 4px 15px var(--shop-categories-menu-horizontal-shadow);
    display: none;
    border: 1px solid var(--shop-categories-menu-horizontal-border);
    z-index: 10;
    color: var(--shop-categories-menu-horizontal-text);
}

.hotengine-shop-categories-menu-horizontal ul li ul {
    left: 100%;
    top: -1px;
}

.hotengine-shop-categories-menu-horizontal li:hover > a,
.hotengine-shop-categories-menu-horizontal li.menu-item-selected > a {
    background: var(--shop-categories-menu-horizontal-bg-hover);
    color: var(--shop-categories-menu-horizontal-text);
}

.hotengine-shop-categories-menu-horizontal li.pull-down.menu-item-selected .box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shop-categories-menu-horizontal-bg-box);
    z-index: 1;
    pointer-events: none;
    display: block;
    border: 1px solid var(--shop-categories-menu-horizontal-border);
    border-bottom: none;
    box-sizing: border-box;
}

.hotengine-shop-categories-menu-horizontal .box {
    display: none;
}

@media (max-width: 599px) {
    .hotengine-shop-categories-menu-horizontal {
        flex-direction: column;
    }
    .hotengine-shop-categories-menu-horizontal ul {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--shop-categories-menu-horizontal-bg-hover);
        padding-left: 15px;
    }
    .hotengine-shop-categories-menu-horizontal li.mobile-expanded > a::after {
        transform: translateY(-30%) rotate(-135deg) !important;
    }
    .hotengine-shop-categories-menu-horizontal .box {
        display: none !important;
    }
}