/* ─────────────────────────────────────────────────────────────
   SATR — Luxury Swipeable Navigation (swipe-nav.css)
   Seamless horizontal touch-swipeable navigation for mobile
   ───────────────────────────────────────────────────────────── */

.swipe-nav-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1.2rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 20;
}

/* Subtle edge fades on mobile to signal horizontal overflow */
.swipe-nav-wrapper::before,
.swipe-nav-wrapper::after {
    content: "";
    position: absolute;
    top: 0.6rem;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-nav-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(18, 12, 9, 0.95), transparent);
}

.swipe-nav-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(18, 12, 9, 0.95), transparent);
}

.swipe-nav-wrapper.has-overflow-left::before {
    opacity: 1;
}

.swipe-nav-wrapper.has-overflow-right::after {
    opacity: 1;
}

/* Micro-hint for mobile visitors */
.swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.6rem;
    color: rgba(232, 208, 138, 0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.45rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.swipe-hint.hidden {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.swipe-hint span.arrow {
    display: inline-block;
    animation: bounceArrow 1.6s infinite ease-in-out;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Scrollable Container */
.swipe-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    padding: 0.3rem 0.5rem 0.6rem;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.swipe-nav::-webkit-scrollbar {
    display: none; /* WebKit */
}

.swipe-nav.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Track holding the pills */
.nav-track {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    margin: 0 auto;
}

/* Pill Link */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.58rem 1.15rem;
    border-radius: 30px;
    background: rgba(22, 14, 10, 0.62);
    border: 1px solid rgba(201, 168, 76, 0.24);
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    -webkit-tap-highlight-color: transparent;
}

.nav-pill:hover {
    color: #e8d08a;
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.14);
    transform: translateY(-1px);
}

.nav-pill:active {
    transform: scale(0.97);
}

/* Active State */
.nav-pill.active {
    color: #1a1208 !important;
    background: linear-gradient(135deg, #c9a84c 0%, #e8d08a 50%, #c9a84c 100%) !important;
    border-color: #c9a84c !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.45);
}

/* Special event dot inside pills */
.nav-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8d08a;
    box-shadow: 0 0 6px #e8d08a;
    display: inline-block;
    flex-shrink: 0;
}

.nav-pill.active .pill-dot {
    background: #1a1208;
    box-shadow: none;
}

/* Cart badge inside nav pill */
.nav-pill .cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c9a84c;
    color: #1a1208;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 10px;
    margin-left: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-pill .cart-count-badge.visible {
    opacity: 1;
}

.nav-pill.active .cart-count-badge {
    background: #1a1208;
    color: #c9a84c;
}

/* ── Mobile Layout (< 860px) ── */
@media (max-width: 860px) {
    .swipe-nav-wrapper {
        margin-top: 1rem;
        padding-top: 0.5rem;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        overflow: hidden;
    }

    .swipe-hint {
        display: flex;
    }

    .swipe-nav {
        justify-content: flex-start;
        padding: 0.3rem 1.2rem 0.8rem;
        scroll-snap-type: x proximity;
    }

    .nav-track {
        margin: 0;
        gap: 0.55rem;
    }

    .nav-pill {
        padding: 0.54rem 1rem;
        font-size: 0.68rem;
        letter-spacing: 1.4px;
        scroll-snap-align: center;
    }
}
