/*your custom css goes here*/


/* =========================================================
   testv27 - Front header navigation redesign
   Scope: frontend top navigation only.
   Keeps existing category data source and Header Nav Menu settings.
   ========================================================= */

.xy-main-nav-wrap {
    position: relative;
    z-index: 1024;
}

.xy-main-nav {
    min-height: 44px;
    gap: 0;
    overflow: visible;
}

.xy-category-nav {
    flex: 0 0 auto;
}

.xy-category-trigger {
    height: 44px;
    padding: 0 18px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    text-decoration: none !important;
}

.xy-category-trigger:hover,
.xy-category-nav:hover .xy-category-trigger {
    color: #f27a1a !important;
}

.xy-category-bars {
    width: 18px;
    height: 14px;
    margin-right: 9px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.xy-category-bars span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.xy-category-title {
    line-height: 1;
}

.xy-header-menu {
    min-width: 0;
}

.xy-header-menu li {
    margin: 0 !important;
}

.xy-header-menu-link {
    height: 44px;
    padding: 0 16px;
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color .18s ease;
}

.xy-header-menu-link:after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 2px;
    background: #f27a1a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.xy-header-menu-link:hover {
    color: #f27a1a !important;
}

.xy-header-menu-link:hover:after {
    transform: scaleX(1);
}

.xy-category-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 264px;
    z-index: 1035;
    padding-top: 9px;
}

.xy-category-dropdown:before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #fff;
    filter: drop-shadow(0 -1px 0 rgba(0,0,0,.06));
}

.xy-category-nav:hover .xy-category-dropdown {
    display: block;
}

.xy-category-dropdown .aiz-category-menu {
    width: 264px;
    border-radius: 3px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
    overflow: visible;
}

.xy-category-dropdown .all-category {
    background: #fff !important;
    padding: 17px 16px 11px !important;
}

.xy-category-dropdown .all-category span:first-child {
    color: #202124;
    font-size: 16px;
    font-weight: 700;
}

.xy-category-dropdown .all-category a {
    font-size: 13px;
    color: #333 !important;
    opacity: .82;
}

.xy-category-dropdown .categories {
    padding: 4px 0 10px !important;
    max-height: 520px;
    overflow-y: auto;
}

.xy-category-dropdown .category-nav-element > a {
    min-height: 36px;
    padding: 8px 16px !important;
    font-size: 14px;
    color: #333 !important;
    display: flex !important;
    align-items: center;
}

.xy-category-dropdown .category-nav-element:hover > a {
    background: #fff7f0;
    color: #f27a1a !important;
}

.xy-category-dropdown .cat-image {
    width: 16px;
    min-width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 12px !important;
}

.xy-category-dropdown .cat-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xy-category-dropdown .sub-cat-menu {
    left: 100%;
    top: 0;
}

/* keep current search-side category icon behavior untouched on non-home pages */
.logo-bar-area .category-menu-icon-box {
    display: none !important;
}

@media (max-width: 991.98px) {
    .xy-main-nav-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .xy-main-nav {
        min-width: max-content;
    }

    .xy-category-trigger,
    .xy-header-menu-link {
        height: 42px;
        font-size: 13px;
    }

    .xy-category-dropdown {
        display: none !important;
    }
}


/* testv28 - Kategorien Neu badge and remove old search-side category trigger */
.xy-category-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    min-width: 28px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 999px;
    background: #ef3b3b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.2px;
}

.xy-category-trigger {
    padding-right: 20px;
}

.xy-category-trigger:hover .xy-category-new-badge {
    color: #fff !important;
}

/* The old search-bar-left category button is removed from Blade.
   This rule stays as an extra safeguard for cached templates. */
.logo-bar-area .category-menu-icon-box,
#category-menu-icon,
#hover-category-menu {
    display: none !important;
}
