/* inventory/shop/navbar.css */
@media (max-width: 768px) {
    .shop-banner-trigger {
        cursor: pointer;
    }
}
@media (max-width: 768px) {
    .shop-mega-scroll {
        display: none !important;
    }
}
@media (max-width: 768px) {


    .shop-mega-scroll.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

}
.shop-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-mega-column {
    min-width: 180px;
}

.shop-mega-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.shop-mega-link {
    display: block;
    margin: 4px 0;
}

.shop-mega-sublink {
    display: block;
    margin-left: 10px;
    font-size: 0.9em;
    color: #aaa;
}
.shop-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;

    transition: transform 0.3s ease;
}

/* 🔥 move whole header up by ONLY topbar height */
.shop-header.compact {
    transform: translateY(-32px); /* match topbar height */
}
/* smooth movement for mega nav */
.shop-mega-nav {
    position: relative;
    top: 0px;
    height: 48px;
    width: 100%;
    z-index: 1050;

    background: #000;
    border-bottom: 1px solid #222;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;

    transition: top 0.3s ease;
}
.shop-mega-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: center;
}
.shop-mega-main .shop-mega-title {
    border: 1px solid #444;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
}

.shop-mega-main .shop-mega-title:hover {
    border-color: #fff;
}
/* 🔥 when topbar is hidden */
.shop-mega-nav.full-top {
    top: 0;
}
/* LEFT */
.shop-mega-left img {
    height: 40px;
    object-fit: contain;
}


/* SCROLL */
.shop-mega-scroll {
    display: flex;
    max-width: 600px;   /* tweak: 500–800 depending on feel */
    width: 100%;
    justify-content: center;
    gap: 10px;
    overflow: visible;
    overflow-x: auto;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.shop-mega-scroll::-webkit-scrollbar {
    display: none;
}

/* ITEM */

.shop-mega-item {
    position: relative;
    padding-bottom: 18px;
}

/* hover bridge */
.shop-mega-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
}

/* DROPDOWN */
.shop-mega-container {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;

    background: #111;
    padding: 24px 28px;

    min-width: 500px;
    max-width: min(90vw, 900px);
    width: max-content;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0s linear 0.15s;

    border-radius: 10px;
    z-index: 4000;
}

/* ✅ ONLY THIS controls visibility now */
.shop-mega-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* GRID */
.shop-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px 30px;
}

.shop-mega-column {
    display: flex;
    flex-direction: column;
}

.shop-mega-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-decoration: none;
}

.shop-mega-link {
    color: #aaa;
    font-size: 0.85rem;
    text-decoration: none;
}

.shop-mega-link:hover {
    color: #fff;
}

/* RIGHT */
.shop-mega-right {
    flex-shrink: 0;
}

/* SIDEBAR BASE */
.shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;

    background: #000;
    color: #fff;

    z-index: 2000;
    transition: left 0.3s ease;

    overflow-y: auto;
    padding: 20px;
}



/* HEADER */
.shop-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* LINKS */
.sidebar-dept {
    display: block;
    font-weight: 600;
    margin: 15px 0 5px;
    color: #fff;
    text-decoration: none;
}

.sidebar-cat {
    display: block;
    margin-left: 10px;
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
}

.sidebar-sub {
    display: block;
    margin-left: 20px;
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
}


:root {
    --header-height: 120px; /* adjust after measuring */
}
.custom-offcanvas {
    top: var(--header-height);
    height: calc(100% - var(--header-height));
}