/* Custom Marquee Animation for standard and CDN usage */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Search Scroll Logic */
.search-hidden {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: -1.25rem !important;
    pointer-events: none;
    overflow: hidden;
}

/* --- Navigation Dropdowns (Desktop) --- */
@media (min-width: 768px) {
    .menu-item-has-children {
        position: relative;
    }

    .menu-item-has-children > a {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .menu-item-has-children > a::after {
        content: '';
        width: 6px;
        height: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        margin-bottom: 2px;
    }

    .menu-item-has-children:hover > a::after {
        transform: rotate(-135deg);
        margin-bottom: -2px;
    }

    .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        border: 1px solid #f3f3f3;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        min-width: 180px;
        z-index: 50;
        border-radius: 0.5rem;
        padding: 0.25rem 0;
        flex-direction: column;
    }

    .menu-item-has-children:hover > .sub-menu {
        display: flex;
    }

    .sub-menu li {
        display: block;
    }

    .sub-menu li a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        color: #161616;
        white-space: nowrap;
        transition: all 0.2s;
        font-weight: 500;
    }

    .sub-menu li:not(.menu-item-has-children) > a::after {
        display: none;
    }

    .sub-menu li a:hover {
        background-color: #f9f9f9;
        color: #5D4037;
    }
}
