/**
* 2025 Anvanto
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
*
*  @author    Anvanto <anvantoco@gmail.com>
*  @copyright 2025 Anvanto
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/

.anmm-menu {
    --menu-mobile-bg: #F6F6F6;
    --menu-gap: 5px 0px;
    --menu-bg-color: #fff;
    --menu-title-line-height: 24px;
    --menu-title-case: none;
    --menu-title-weight: bold;
    --menu-title-underline-height: 2px;
    --menu-title-underline-color: #E2E2E2;
    --menu-link-line-height: 24px;
    --anmm-category-item-color: #666;
    --anmm-category-item-color-hover: #000;
    --anmm-category-item-bg-hover: #f4f4f4;
    --dropdown-border-width: 2px;
    --dropdown-border-color: #E2E2E2;
    --menu-separator-color: #E2E2E2;
    --dropdown-image-radius: 0px;
}
.anmm-link-arrow-desktop {
    display: none;
}
.anmm-menu-wrapper {
    flex: 1 1 auto;
    width: fit-content;
    padding: 0;
}
.anmm-list {
    justify-content: flex-start;
    margin: 8px 0;
    position: static;
}
.anmm-category-item {
    width: 100%;
}
.anmm-category-item.anmm-has-sub>.anmm-category-list {
    top: -7px;
}
.anmm-dropdown {
    padding: 18px 6px;
}
.anmm-grid {
    display: grid;
    grid-template-columns: repeat(var(--anmm-cols, 1), minmax(0, 1fr));
    gap: 20px;
}
.anmm-dropdown:has(.anmm-dropdown-content-title) .anmm-column:not(:has(.anmm-dropdown-content-title)) {
    margin-top: 30px;
}
.anmm-dropdown .anmm-category-title span {
    font-size: 16px !important;
    margin-bottom: 0;
    text-transform: capitalize;
}
.anmm-dropdown-content-title.h4 {
    margin-bottom: 0;
    padding: 0 6px 4px 6px;
}
.anmm-dropdown-content-title:not(:has(.anmm-dropdown-link)) {
    border-bottom: 1px solid #ccc;
}
.anmm-category-title {
    margin-bottom: 0;
    display: block;
}
.anmm-category-title a {
    color: var(--anmm-category-item-color);
    display: block;
    padding: 8px 6px;
    transition: all 0.3s ease;
}
.anmm-category-title a:hover {
    color: var(--anmm-category-item-color-hover) !important;
    background-color: var(--anmm-category-item-bg-hover);
}
.anmm-dropdown-content-image .anmm-dropdown-content-title {
    margin-bottom: 8px;
}
.anmm-dropdown-content {
    gap: 2px;
    margin-bottom: 0;
}
.anmm-product .product-miniature {
    margin-bottom: 30px;
}
.anmm-product.anmm-product-vertical .product-miniature .anmm-product-img {
    width: 100px;
}
.anmm-product.anmm-product-vertical .product-miniature {
    padding: 0;
}
.anmm-product.anmm-product-vertical .product-miniature .thumbnail-container::before {
    display: none;
}
.anmm-product.anmm-product-vertical .product-miniature .product-thumbnail {
    position: static;
    height: auto !important;
}
.anmm-product .product-miniature .product-description {
    border: 0!important;
    width: auto!important;
}
.anmm-title {
    text-transform: uppercase;
}
.anmm-dropdown-content-title {
    font-weight: 700!important;
}
.anmm-product .product-miniature .product-price-and-shipping {
    display: flex;
    flex-wrap: wrap;
}
@media (min-width: 992px) {
    /* Divider between menu groups (e.g. categories vs. secondary links) */
    .anmm-list > .anmm-menu-separator {
        flex: 0 0 100%;
        height: 1px;
        margin: 0;
        padding: 0;
        background: var(--menu-separator-color);
        list-style: none;
        pointer-events: none;
    }
    .anmm-list > .anmm-menu-1 .anmm-title {
        font-size: 16px;
        font-weight: 500;
        color: #5A5A5A;
    }
    .anmm-list > .anmm-menu-horizontal + .anmm-menu-horizontal:not(.anmm-menu-row-start)::before {
        content: "";
        flex: 0 0 1px;
        width: 1px;
        height: 14px;
        background: var(--menu-separator-color);
        align-self: center;
        pointer-events: none;
    }
    .anmm-brand-list-images {
        gap: 22px;
    }
    .anmm-link {
        line-height: 1;
        padding: 4px 14px;
    }
    .anmm-dropdown {
        box-shadow: 0px 4px 20px 0px #0000001A;
        border-radius: var(--radius);
    }
    .anmm-menu-item.anmm-menu-horizontal > .anmm-dropdown {
        margin-left: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .3s ease, transform .3s ease, visibility .3s;
    }
    .anmm-menu-item.anmm-menu-horizontal:not(.open) > .anmm-dropdown {
        pointer-events: none;
    }
    .anmm-menu-item.anmm-menu-horizontal.open > .anmm-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}
@media (max-width: 991px) {
    .anmm-menu-wrapper {
        display: none;
    }
    .anmm-menu-separator {
        display: none;
    }
    .anmm-category-item.anmm-has-sub>.anmm-category-title .anmm-category-arrow {
        display: none;
    }
    .anmm-category-item.anmm-has-sub>.anmm-category-list {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        margin: 0;
        position: static;
        padding: 0;
        transition: all 0s;
        -webkit-transition: all 0s;
    }
    .anmm-dropdown-content-image img {
        width: 100%;
    }
    .anmm-product.anmm-product-vertical .product-miniature .product-title {
        height: auto;
    }
    .anmm-product .product-miniature .product-title a {
        font-size: 14px;
    }
    .anmm-product.anmm-product-vertical .product-miniature .thumbnail-container {
        align-items: flex-start;
        flex-direction: column;
    }
    .anmm-product.anmm-product-vertical .product-miniature .anmm-product-img {
        width: 100%;
        max-width: 100%;
    }
    .anmm-product .product-miniature .product-thumbnail img {
        width: 100%;
    }
    .anmm-product .product-miniature .product-description {
        padding: 15px 0 0;
        text-align: left;
    }
    .anmm-product .product-miniature .product-price-and-shipping {
        text-align: left;
    }
    .anmm-brand-list-images {
        gap: 20px;
    }
    .anmm-brand-list-images .anmm-brand {
        max-width: 90px;
    }
    #subcategories ul {
        grid-template-columns: repeat(2, 1fr)!important;
    }
}

.anmm-dropdown .anmm-link,
.anmm-link {
    background: var(--menu-title-bg-color);
}

.anmm-menu-block .anmm-dropdown-block-item:hover .anmm-link,
.anmm-menu-block .anmm-dropdown-block-item.open .anmm-link,
.anmm-link:hover,
.anmm-menu-vertical .anmm-dropdown-item:hover .anmm-link,
.anmm-menu-vertical .anmm-dropdown-item.open .anmm-link {
    background-color: var(--menu-title-bg-color-hover);
}

.anmm-link,
.anmm-dropdown .anmm-link {
    font-size: var(--menu-title-font-size);
}

.anmm-link,
.anmm-title,
.anmm-menu-vertical .anmm-link,
.anmm-link-block .anmm-title {
    color: var(--menu-title-color);
}
@media (max-width: 991px) {
    .anmm-menu-vertical .anmm-link-title {
        color: var(--menu-title-color)!important;
    }
}

.anmm-menu-horizontal.open .anmm-title,
.anmm-link:hover .anmm-title,
.anmm-title:hover,
.anmm-menu-vertical .anmm-dropdown-item:hover .anmm-link,
.anmm-menu-vertical .anmm-dropdown-item.open .anmm-link,
.anmm-menu-block .anmm-dropdown-block-item:hover .anmm-link,
.anmm-menu-block .anmm-dropdown-block-item.open .anmm-link {
    color: var(--menu-title-color-hover)!important;
}

.anmm-dropdown-content-title {
    font-size: var(--menu-submenu-title-font-size)!important;
}

.anmm-column p,
.anmm-dropdown,
.anmm-category-item,
.anmm-dropdown-content-text,
.anmm-page,
.anmm-brand-list .anmm-brand {
    font-size: var(--menu-link-font-size);
}

.anmm-dropdown-content-title,
.anmm-dropdown-content-title .anmm-dropdown-link {
    color: var(--menu-submenu-title-color)!important;
}

.anmm-dropdown-content-title .anmm-dropdown-link:hover {
    color: var(--menu-submenu-title-color-hover)!important;
}

.anmm-product .product-miniature .product-title,
.anmm-product .product-miniature .product-title a,
.anmm-brand-list .anmm-brand,
.anmm-page,
.anmm-dropdown-content-text,
.anmm-dropdown-content-text a {
    color: var(--menu-link-color)!important;
}

.anmm-product .product-miniature .product-title a:hover,
.anmm-brand-list .anmm-brand:hover,
.anmm-page:hover,
.anmm-dropdown-content-text a:hover {
    color: var(--menu-link-color-hover)!important;
}

.anmm-column p {
    color: var(--menu-text-color)!important;
}

.promo .anmm-link .anmm-title,
.sale .anmm-link .anmm-title {
    animation: anmmSaleTextPulse 1s ease-in-out infinite alternate;
}

@keyframes anmmSaleTextPulse {
    from {
        color: var(--anmm-category-item-color-hover);
    }
    to {
        color: var(--menu-title-color-hover);
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo .anmm-link .anmm-title,
    .sale .anmm-link .anmm-title {
        animation: none;
        color: var(--menu-title-color-hover);
    }
}

.block-categories .category-sub-menu li[data-depth="0"] {
    margin-bottom: 0;
}

.block-categories .category-sub-menu li[data-depth="0"] > a {
    padding: 4px 0 4px;
}

.block-categories .category-sub-menu li[data-depth="1"] {
    margin-left: 14px;
    margin-bottom: 2px;
}

#subcategories ul {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 16px 0;
}

#subcategories ul li {
    align-items: center;
    display: flex;
    margin: 0;
    overflow: auto;
    padding: 0;
    width: 100%;
}

#subcategories ul li h5 {
    margin: 0;
    min-width: 0;
}

#subcategories .subcategory-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#subcategories .subcategory-name::before {
    border-color: #7ba42c !important;
}

.mobile-lang-and-cur {
    background: none;
}

#mobile_top_menu_wrapper {
    background-color: rgba(255,255,255,.8);
    max-width: fit-content;
}

.anmm-list-mobile .anmm-link {
    padding: 8px 30px!important;
}
.anmm-list-mobile .anmm-link .anmm-title{
    font-size: 16px !important;
}
