﻿.catalog-container {
    width: 100%;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Two columns: 1 part for filter, 3 parts for content */
    gap: 20px;
}

.filters {
    border-radius: 8px;
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-heading {
    margin-bottom: 10px;
}


/* Make the image responsive */
.catalog-teaser img {
    max-width: 225px;
    width: auto;
    height: auto;
    display: block;
}

/* Media Query for adjusting the layout on smaller screens */
@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: 1fr 2fr; /* Make the filter and content more balanced on smaller screens */
    }
}

@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: 1fr; /* Stacks the columns for smaller screens */
    }

    .filters {
        order: 1; /* Ensures filter appears above */
    }

    .catalog-list {
        order: 2; /* Ensures catalog list appears below filters */
    }
}

/* Sticky filter only for larger screens */
@media (min-width: 992px) {
    .filters {
        border-radius: 8px;
        position: -webkit-sticky; /* For Safari */
        position: sticky;
        top: 20px; /* Adjusts the distance from the top of the viewport */
    }
}

.filter-wrapper {
    display: block;
    max-width: 287px;
}

.filters h5 {
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#searchBox {
    margin-bottom: 20px;
}

.catalog-content {
    display: flex;
    flex-direction: column;
}

.aiag-pagination-wrapper {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 2;
    padding: 10px 0;
    margin-bottom: 20px;
}

.catalog-list {
    padding-top: 20px;
}

@media (max-width: 992px) {
    .aiag-pagination-wrapper {
        top: 0;
    }

    .filter-wrapper {
       
    }

    .catalog-container {
        padding: 0px 10px;
    }
}
