/* 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;
}

/* Product grid */
#product-container > div {
    display: flex;
}

/* Cards */
#product-container .card {
    width: 100%;
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#product-container .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#product-container .card-body {
    background-color: #fff;
    color: #000;
}

#product-container .product-title {
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    min-height: 2.6em;
}

/* Image */
.product-image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 10px;
}

.product-image {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
}

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

    .filter-group-card {
        min-width: 100%;
        max-width: 100%;
    }
}
.sidebar-col {
    flex: 0 0 260px;   /* fixed width */
    max-width: 260px;
}

.content-col {
    flex: 1;           /* take remaining space */
}

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