/* Base Menu Styles */
.blx-product-menu-wrapper {
    position: relative;
}

.blx-menu-toggle-wrapper {
    display: none;
    margin-bottom: 15px;
}

.blx-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.blx-menu-toggle:focus {
    outline: 2px solid #0073aa;
}

.blx-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.blx-menu-icon span {
    display: block;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.blx-menu-toggle.is-active .blx-menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.blx-menu-toggle.is-active .blx-menu-icon span:nth-child(2) {
    opacity: 0;
}

.blx-menu-toggle.is-active .blx-menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.blx-product-menu-scroll {
    width: 100%;
}

.blx-product-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.blx-menu-item {
    position: relative;
}

.blx-product-menu a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Horizontal Layout */
.blx-menu-layout-horizontal .blx-product-menu {
    flex-direction: row;
}

/* Vertical Layout */
.blx-menu-layout-vertical .blx-product-menu {
    flex-direction: column;
}

/* Inline Scroll Mode */
.blx-inline-scroll .blx-product-menu-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.blx-inline-scroll .blx-product-menu {
    flex-wrap: nowrap;
}

/* Webkit Scrollbar Styling */
.blx-product-menu-scroll::-webkit-scrollbar {
    height: 8px;
}

.blx-product-menu-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.blx-product-menu-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.blx-product-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox Scrollbar */
.blx-inline-scroll .blx-product-menu-scroll {
    scrollbar-color: #888 #f1f1f1;
}

/* Submenu Styles */
.blx-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.blx-menu-item:hover .blx-submenu {
    display: block;
}

.blx-submenu-image {
    margin-bottom: 10px;
}

.blx-submenu-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blx-submenu-price {
    margin-bottom: 10px;
    font-weight: bold;
}

.blx-submenu-description {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.blx-submenu-button {
    margin-top: 10px;
}

.blx-submenu-button .button {
    width: 100%;
    text-align: center;
    display: block;
}

/* Mobile Responsive - Tablet Breakpoint (1024px) */
@media (max-width: 1024px) {
    .blx-menu-breakpoint-tablet .blx-menu-toggle-wrapper {
        display: flex;
    }

    .blx-menu-breakpoint-tablet .blx-product-menu-scroll {
        overflow-x: visible;
    }

    .blx-menu-breakpoint-tablet .blx-product-menu {
        display: none;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .blx-menu-breakpoint-tablet .blx-product-menu.is-active {
        display: flex;
    }

    .blx-menu-breakpoint-tablet .blx-product-menu a {
        white-space: normal;
    }

    .blx-menu-breakpoint-tablet .blx-submenu {
        position: static;
        display: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        margin-top: 5px;
    }

    .blx-menu-breakpoint-tablet .blx-menu-item.submenu-open .blx-submenu {
        display: block;
    }

    .blx-menu-breakpoint-tablet .blx-menu-item:hover .blx-submenu {
        display: none;
    }
}

/* Mobile Responsive - Mobile Breakpoint (767px) */
@media (max-width: 767px) {
    .blx-menu-breakpoint-mobile .blx-menu-toggle-wrapper,
    .blx-menu-breakpoint-tablet .blx-menu-toggle-wrapper {
        display: flex;
    }

    .blx-menu-breakpoint-mobile .blx-product-menu-scroll,
    .blx-menu-breakpoint-tablet .blx-product-menu-scroll {
        overflow-x: visible;
    }

    .blx-menu-breakpoint-mobile .blx-product-menu,
    .blx-menu-breakpoint-tablet .blx-product-menu {
        display: none;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .blx-menu-breakpoint-mobile .blx-product-menu.is-active,
    .blx-menu-breakpoint-tablet .blx-product-menu.is-active {
        display: flex;
    }

    .blx-menu-breakpoint-mobile .blx-product-menu a,
    .blx-menu-breakpoint-tablet .blx-product-menu a {
        white-space: normal;
    }

    .blx-menu-breakpoint-mobile .blx-submenu,
    .blx-menu-breakpoint-tablet .blx-submenu {
        position: static;
        display: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        margin-top: 5px;
    }

    .blx-menu-breakpoint-mobile .blx-menu-item.submenu-open .blx-submenu,
    .blx-menu-breakpoint-tablet .blx-menu-item.submenu-open .blx-submenu {
        display: block;
    }

    .blx-menu-breakpoint-mobile .blx-menu-item:hover .blx-submenu,
    .blx-menu-breakpoint-tablet .blx-menu-item:hover .blx-submenu {
        display: none;
    }
}
