/* inventory/shop/shop.css */

/* Sticky filter bar */
#shop-filter-navbar {
    position: sticky;
    top: 56px; /* 👈 match main navbar height */
    z-index: 1000;
    background: #000;
    border-top: none;
    border-bottom: 1px solid #222;
    padding: 12px 0 10px;
    margin-top: 0; /* ❌ remove the negative margin */
}
/* Collapsible */
#filter-content {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease;
}

#filter-content.filter-collapsed {
    max-height: 0;
}

/* Layout */
.filter-groups-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}


/* Image */

/* Mobile */
@media (max-width: 768px) {
    #filter-content {
        max-height: none;
    }

    .filter-group-card {
        min-width: 100%;
        max-width: 100%;
    }
}
/* =========================================
   SHOP LAYOUT
========================================= */

.shop-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* =========================================
   PRODUCT GRID
========================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(240px, 1fr));

    gap: 24px;
}
/* =========================================
   SIDEBAR
========================================= */

.sidebar-col {
    width: 260px;
    flex-shrink: 0;

    position: sticky;
    top: 110px;
}


/* =========================================
   CONTENT
========================================= */

.content-col {
    flex: 1;
    min-width: 0;
}

/* Optional: prevent layout break on small screens */
@media (max-width: 768px) {
    .sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
