/**
 * NextLevel PC - Raccourcis Rapides (Horizontal Scrollable Menu)
 * Style inspired by modern e-commerce & UltraPC UX
 */

/* Modern Material Icons Font Support (includes auto_awesome, storefront, etc.) */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
        url('../fonts/MaterialIcons-Regular.ttf') format('truetype'),
        url('https://fonts.gstatic.com/s/materialicons/v145/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2') format('woff2');
}

@font-face {
    font-family: 'Material Icons Modern';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
        url('../fonts/MaterialIcons-Regular.ttf') format('truetype'),
        url('https://fonts.gstatic.com/s/materialicons/v145/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2') format('woff2');
}

.nl-quicklinks-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
    padding: 8px 0;
    z-index: 99;
    box-sizing: border-box;
}

/* Device Display Restrictions */
.nl-quicklinks-wrapper.nl-ql-device-mobile {
    display: block;
}

@media (min-width: 992px) {

    .nl-quicklinks-wrapper.nl-ql-device-mobile,
    .nl-quicklinks-wrapper.hidden-lg-up {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
}

.nl-quicklinks-wrapper.nl-ql-device-desktop {
    display: none;
}

@media (min-width: 992px) {
    .nl-quicklinks-wrapper.nl-ql-device-desktop {
        display: block !important;
    }
}

/* Dark Theme option */
.nl-quicklinks-wrapper.nl-ql-theme-dark {
    background: #111827;
    border-bottom-color: #1f2937;
}

.nl-quicklinks-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

/* Scrollable Track */
.nl-quicklinks-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding: 4px 6px;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
}

.nl-quicklinks-track:active {
    cursor: grabbing;
}

.nl-quicklinks-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Scroll Fade Indicator (Mask on mobile) */
@media (max-width: 991px) {
    .nl-quicklinks-track {
        gap: 6px;
        padding: 4px 2px;
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
        mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    }
}

/* Navigation Buttons for Desktop */
.nl-ql-nav-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    padding: 0;
}

.nl-ql-nav-btn:hover {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 6px 14px rgba(0, 102, 204, 0.25);
}

.nl-ql-nav-prev {
    left: -12px;
}

.nl-ql-nav-next {
    right: -12px;
}

@media (min-width: 992px) {
    .nl-quicklinks-container.has-overflow .nl-ql-nav-btn {
        display: flex;
    }
}

/* Quicklink Item (Pill Button) */
.nl-quicklink-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
    outline: none;
}

.nl-quicklink-item:hover,
.nl-quicklink-item:focus {
    background: #f8fafc;
    border-color: #0066cc;
    color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.12);
}

.nl-quicklink-item:active {
    transform: scale(0.97);
    background: #f1f5f9;
}

/* Icons */
.nl-ql-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s ease;
}

i.material-icons.nl-ql-icon,
.nl-ql-icon.material-icons {
    font-family: 'Material Icons Modern', 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-wrap: normal !important;
    white-space: nowrap !important;
    direction: ltr !important;
    -webkit-font-feature-settings: 'liga' !important;
    font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

.nl-quicklink-item:hover .nl-ql-icon {
    color: #0066cc;
}

.nl-ql-svg svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Title */
.nl-ql-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Badges */
.nl-ql-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    background: #ef4444;
    margin-left: 2px;
}

/* Pulse Dot */
.nl-ql-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    margin-left: 2px;
    position: relative;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: nl-ql-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes nl-ql-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Style Variant: Stores (NOS MAGASINS) */
.nl-quicklink-item.nl-ql-variant-stores {
    background: #f0f7ff;
    border-color: #bcd7ff;
    color: #0052a3;
    font-weight: 700;
}

.nl-quicklink-item.nl-ql-variant-stores .nl-ql-icon {
    color: #0066cc;
}

.nl-quicklink-item.nl-ql-variant-stores:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.nl-quicklink-item.nl-ql-variant-stores:hover .nl-ql-icon {
    color: #ffffff;
}

/* Style Variant: Accent */
.nl-quicklink-item.nl-ql-variant-accent {
    border-color: #93c5fd;
    background: #ffffff;
    color: #0066cc;
}

.nl-quicklink-item.nl-ql-variant-accent .nl-ql-icon {
    color: #0066cc;
}

.nl-quicklink-item.nl-ql-variant-accent:hover {
    background: #eff6ff;
    border-color: #0066cc;
}

/* Style Variant: Solid */
.nl-quicklink-item.nl-ql-variant-solid {
    background: #5b2599;
    border-color: #5b2599;
    color: #ffffff;
}

.nl-quicklink-item.nl-ql-variant-solid .nl-ql-icon {
    color: #ffffff;
}

.nl-quicklink-item.nl-ql-variant-solid:hover {
    background: #0052a3;
    border-color: #0052a3;
    color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nl-quicklinks-wrapper {
        padding: 6px 0;
    }

    .nl-quicklink-item {
        height: 35px;
        padding: 0 13px;
        font-size: 12.5px;
        gap: 5px;
    }

    .nl-ql-icon {
        font-size: 16px !important;
    }

    .nl-ql-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
}