﻿/* =========================================================
   RISHTABOX PREMIUM QUICK CATEGORY NAVIGATION
   ========================================================= */

.rb-quick-nav {
    --rb-qn-pink: #fff0f5;
    --rb-qn-maroon: #7a0f3f;
    width: 100%;
    padding: 17px 0;
    background: #fff;
    box-sizing: border-box;
}

.rb-quick-nav *,
.rb-quick-nav *::before,
.rb-quick-nav *::after {
    box-sizing: border-box;
}

.rb-quick-nav-inner {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
}

.rb-quick-nav-item {
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #f2dce5;
    border-radius: 14px;
    background: var(--rb-qn-pink);
    color: #64213d;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(91, 24, 52, .045);
    transition: background .2s ease, color .2s ease,
                border-color .2s ease, box-shadow .2s ease,
                transform .2s ease;
}

.rb-quick-nav-item:hover,
.rb-quick-nav-item:focus-visible {
    background: #7a0f3f;
    color: #fff;
    border-color: #7a0f3f;
    box-shadow: 0 6px 17px rgba(122, 15, 63, .16);
    transform: translateY(-2px);
    outline: none;
}

.rb-quick-nav-item:focus-visible {
    outline: 3px solid rgba(122, 15, 63, .2);
    outline-offset: 3px;
}

.rb-quick-nav-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rb-quick-nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-quick-nav-arrow {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    transition: transform .2s ease;
}

.rb-quick-nav-item:hover .rb-quick-nav-arrow {
    transform: translateX(3px);
}

.rb-quick-nav-item[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .rb-quick-nav {
        padding: 13px 0;
    }

    .rb-quick-nav-inner {
        display: flex;
        width: 100%;
        gap: 10px;
        padding: 2px 16px 9px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .rb-quick-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .rb-quick-nav-item {
        flex: 0 0 auto;
        min-width: 145px;
        min-height: 58px;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .rb-quick-nav {
        padding: 10px 0;
    }

    .rb-quick-nav-inner {
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .rb-quick-nav-item {
        min-width: 132px;
        min-height: 54px;
        padding: 9px 11px;
        border-radius: 12px;
        font-size: 13px;
    }

    .rb-quick-nav-icon {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb-quick-nav-item,
    .rb-quick-nav-arrow {
        transition: none;
    }
}

