.fastmenu-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background: var(--selcuk-yellow);
    overflow: hidden; /* Taşmaları engelle */
}

.fastmenu-component {
    --menu-primary: var(--selcuk-blue);
    --menu-darker: var(--selcuk-blue-hover);
    --menu-lighter: var(--selcuk-yellow);
    --menu-hover: var(--selcuk-blue-hover);
    --menu-active: var(--selcuk-dark-blue);
    --white: #ffffff;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1920px;
    margin: 0 auto;
}

.fastmenu-component__grid {
    flex: 1;
    height: 100px;
    overflow: hidden;
    max-width: calc(100% - 80px);
    position: relative; /* Swiper için pozisyon referansı */
}

.swiper-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    transition-property: transform;
    box-sizing: content-box;
}

.fastmenu-component--no-scroll .swiper-wrapper {
    justify-content: center !important;
    transform: translate3d(0px, 0px, 0px) !important;
}

.fastmenu-component__nav {
    position: relative;
    width: 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    user-select: none; /* Kullanıcı seçimini engelle */
}

    .fastmenu-component__nav:hover {
        background: rgba(0, 0, 0, 0.2);
    }

    .fastmenu-component__nav i {
        color: var(--white);
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .fastmenu-component__nav:hover i {
        transform: scale(1.2);
    }

.fastmenu-component__item.swiper-slide {
    width: auto;
    flex: 0 0 auto;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
    min-width: 150px;
}

.fastmenu-component__item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.fastmenu-component__item:last-child::before {
    display: none;
}

.fastmenu-component__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--menu-hover);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fastmenu-component__item:hover::after {
    opacity: 1;
}

.fastmenu-component__highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--white);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.fastmenu-component__item:hover .fastmenu-component__highlight {
    width: 100%;
}

.fastmenu-component__icon {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fastmenu-component__item:hover .fastmenu-component__icon {
    transform: translateY(-4px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fastmenu-component__title {
    color: var(--white);
    font-size: 0.813rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fastmenu-component__item:hover .fastmenu-component__title {
    transform: scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.fastmenu-component__item.active {
    background: var(--menu-active);
}

    .fastmenu-component__item.active .fastmenu-component__highlight {
        width: 100%;
    }

.fastmenu-component--no-scroll .fastmenu-component__nav {
    display: none;
}

/* Swiper dokunmatik davranışı iyileştirmeleri */
.fastmenu-component--touch-primary .fastmenu-component__item {
    touch-action: pan-y; /* Dikey kaydırmaya izin ver ama yatay kaydırmayı Swiper yönetsin */
}

@media (max-width: 992px) {
    .fastmenu-component__grid {
        height: 90px;
    }

    .fastmenu-component__nav {
        /* width: 35px; */
        height: 90px;
    }

    .fastmenu-component__item.swiper-slide {
        min-width: 140px;
        padding: 0.6rem 1rem;
    }

    .fastmenu-component__title {
        max-width: 120px;
        font-size: 0.788rem;
    }

    .fastmenu-component__icon {
        font-size: 1.75rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 768px) {
    .fastmenu-component {
        background: var(--menu-primary);
    }

    .fastmenu-component__grid {
        height: 80px;
        max-width: calc(100% - 64px); /* Daha küçük gezinme düğmeleri için alanı ayarla */
    }

    .fastmenu-component__nav {
        width: 32px;
        height: 80px;
    }

        .fastmenu-component__nav i {
            font-size: 14px;
        }

    .fastmenu-component__item.swiper-slide {
        min-width: 130px;
        padding: 0.5rem 0.875rem;
    }

    .fastmenu-component__icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .fastmenu-component__title {
        max-width: 110px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .fastmenu-component__grid {
        height: 70px;
    }

    .fastmenu-component__nav {
        /* width: 28px; */
        height: 70px;
    }

        .fastmenu-component__nav i {
            font-size: 12px;
        }

    .fastmenu-component__item.swiper-slide {
        min-width: 120px;
        padding: 0.4rem 0.75rem;
    }

    .fastmenu-component__icon {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }

    .fastmenu-component__title {
        max-width: 100px;
        font-size: 0.688rem;
        letter-spacing: 0.3px;
    }

    .fastmenu-component__item::before {
        height: 60%;
        top: 20%;
    }
}

@media (hover: none) {
    .fastmenu-component__item:active::after {
        opacity: 1;
    }

    .fastmenu-component__item:active .fastmenu-component__highlight {
        width: 100%;
    }

    .fastmenu-component--touch-primary .fastmenu-component__nav {
        opacity: 0.7; /* Düğmeleri biraz daha görünür yap */
    }
}

@media (max-width: 375px) {
    .fastmenu-component__grid {
        height: 65px;
    }

    .fastmenu-component__nav {
        width: 24px;
        height: 65px;
    }

    .fastmenu-component__item.swiper-slide {
        min-width: 110px;
        padding: 0.4rem 0.625rem;
    }

    .fastmenu-component__title {
        max-width: 90px;
    }
}
