.agglo-catalog {
    align-self: stretch;
    color: #353535;
    display: block;
    flex: 1 1 100%;
    inline-size: 100%;
    justify-self: stretch;
    max-inline-size: 100%;
    min-inline-size: 0;
    width: 100%;
}

.elementor-widget-container > .agglo-catalog,
.elementor-shortcode > .agglo-catalog,
.elementor-widget-shortcode .agglo-catalog {
    width: 100%;
}

.agglo-catalog *,
.agglo-catalog *::before,
.agglo-catalog *::after {
    box-sizing: border-box;
}

.agglo-catalog__filters {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto;
    margin: 0 0 20px;
}

.agglo-catalog__filters label {
    display: grid;
    gap: 6px;
}

.agglo-catalog__filters span {
    color: #353535;
    font-family: "Barlow", sans-serif;
    font-size: 0.8em;
    font-weight: 300;
}

.agglo-catalog__filters select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.25L7 7.25L13 1.25' stroke='%23353535' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid #ded8cf;
    border-radius: 5px;
    color: #353535;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9em;
    min-height: 42px;
    padding: 9px 38px 9px 12px;
}

.agglo-catalog__filters button,
.agglo-catalog__filters a {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    font-family: "Barlow", sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none;
}

.agglo-catalog__filters button {
    background: #353535;
    border: 1px solid #353535;
    color: #fff;
    cursor: pointer;
}

.agglo-catalog.is-ajax-enabled .agglo-catalog__filters button {
    display: none;
}

.agglo-catalog__filters a {
    background: #fff;
    border: 1px solid #ded8cf;
    color: #353535;
}

.agglo-catalog__count {
    color: #353535;
    font-family: "Barlow", sans-serif;
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 16px;
}

.agglo-catalog__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    inline-size: 100%;
    width: 100%;
}

.agglo-catalog__results {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    transition: opacity 160ms ease;
    width: 100%;
}

.agglo-catalog.is-loading .agglo-catalog__results {
    opacity: 0.42;
    pointer-events: none;
}

.agglo-product {
    background: #fff;
    border: 1px solid #ded8cf;
    border-radius: 5px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.agglo-product:hover,
.agglo-product:focus {
    border-color: #cfc7bb;
    box-shadow: 0 12px 28px rgba(53, 53, 53, 0.08);
    color: inherit;
    outline: none;
    text-decoration: none;
    transform: translateY(-2px);
}

.agglo-product__media {
    align-items: center;
    background: linear-gradient(180deg, #f5f5f5 0%, #f5f5f5 52%, #fff 52%, #fff 100%);
    display: flex;
    justify-content: center;
    min-height: 150px;
    padding: 18px;
}

.agglo-product__media img {
    display: block;
    height: 124px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.agglo-product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.agglo-product__category {
    color: #353535;
    font-family: "Barlow", sans-serif;
    font-size: 0.8em;
    font-weight: 300;
    line-height: 1.3;
    margin: 0 0 7px;
}

.agglo-product__title {
    color: #353535;
    font-family: "Barlow", sans-serif;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.16;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.agglo-product__description,
.agglo-product__format {
    color: #353535;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9em;
    line-height: 1.35;
    margin: 0 0 8px;
}

.agglo-product__format {
    align-items: center;
    display: flex;
    gap: 7px;
}

.agglo-product__format i {
    color: #353535;
    font-size: 0.95em;
}

.agglo-product__sku {
    color: rgba(53, 53, 53, 0.58);
    font-family: "DM Sans", sans-serif;
    font-size: 0.82em;
    line-height: 1.3;
    margin: auto 0 0;
}

.agglo-catalog__empty {
    border: 1px solid #ded8cf;
    border-radius: 5px;
    color: #353535;
    font-family: "DM Sans", sans-serif;
    font-size: 0.95em;
    margin: 20px 0 0;
    padding: 18px;
}

.agglo-catalog__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 28px 0 0;
    width: 100%;
}

.agglo-catalog__pagination a {
    align-items: center;
    border: 1px solid #ded8cf;
    border-radius: 5px;
    color: #353535;
    display: inline-flex;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9em;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 12px;
    text-decoration: none;
}

.agglo-catalog__pagination a.is-active,
.agglo-catalog__pagination a:hover {
    background: #353535;
    border-color: #353535;
    color: #fff;
}

@media (max-width: 1024px) {
    .agglo-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .agglo-catalog__filters {
        grid-template-columns: 1fr 1fr;
    }

    .agglo-catalog__filters button,
    .agglo-catalog__filters a {
        width: 100%;
    }

    .agglo-catalog__grid {
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agglo-product__media {
        min-height: 118px;
        padding: 14px;
    }

    .agglo-product__media img {
        height: 104px;
    }

    .agglo-product__body {
        padding: 13px;
    }

    .agglo-product__category {
        font-size: 0.72em;
        margin-bottom: 5px;
    }

    .agglo-product__title {
        display: -webkit-box;
        font-size: 0.88em;
        line-height: 1.14;
        margin-bottom: 8px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .agglo-product__description,
    .agglo-product__format {
        font-size: 0.78em;
        line-height: 1.25;
    }

    .agglo-product__format {
        gap: 5px;
    }

    .agglo-product__sku {
        font-size: 0.74em;
    }
}

@media (max-width: 520px) {
    .agglo-catalog__filters {
        grid-template-columns: 1fr;
    }

    .agglo-catalog__grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agglo-product__media {
        min-height: 104px;
        padding: 10px;
    }

    .agglo-product__media img {
        height: 88px;
    }

    .agglo-product__body {
        padding: 11px 10px 12px;
    }

    .agglo-product__title {
        font-size: 0.8em;
    }

    .agglo-product__description,
    .agglo-product__format {
        font-size: 0.72em;
    }

    .agglo-catalog__pagination a {
        height: 34px;
        min-width: 34px;
        padding: 0 9px;
    }
}
