.mgf-dynamic-catalog {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 72px;
}

.mgf-dynamic-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.mgf-dynamic-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.mgf-dynamic-catalog__filter {
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #172a3a;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 9px 14px;
}

.mgf-dynamic-catalog__filter[aria-pressed="true"] {
    border-color: #172a3a;
    background: #172a3a;
    color: #fff;
}

.mgf-dynamic-catalog__filter:focus-visible {
    outline: 3px solid #e7b822;
    outline-offset: 3px;
}

.mgf-dynamic-catalog__status {
    margin: 0 0 20px;
    color: #56616a;
    font-size: 0.875rem;
    line-height: 1.5;
}

.mgf-dynamic-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(15 23 42 / 4%);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.mgf-dynamic-product-card[hidden] {
    display: none !important;
}

.mgf-dynamic-product-card__image {
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.mgf-dynamic-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mgf-dynamic-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.mgf-dynamic-product-card__body h3 {
    margin: 0;
    color: #182531;
    font-size: 1.125rem;
    line-height: 1.35;
}

.mgf-dynamic-product-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.mgf-dynamic-product-card__body p {
    margin: 0;
    color: #56616a;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.mgf-dynamic-product-card__category {
    color: #64748b !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mgf-dynamic-product-card__link {
    margin-top: auto;
    color: #172a3a;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    text-decoration: none;
}

body.page-id-254 .elementor.elementor-254 .elementor-element-prod_ref_h1 h1 {
    font-size: 40px !important;
    line-height: 48px !important;
}

body.page-id-254 .elementor.elementor-254 .elementor-section h2 {
    font-size: 32px !important;
    line-height: 40px !important;
}

body.page-id-254 .elementor.elementor-254 .mgf-dynamic-product-card__body h3 {
    font-size: 18px !important;
    line-height: 24px !important;
    font-weight: 600 !important;
}

body.page-id-254 .elementor.elementor-254 .mgf-dynamic-product-card__body p {
    font-size: 14px !important;
    line-height: 22.4px !important;
    font-weight: 400 !important;
}

.mgf-dynamic-product-card:hover {
    box-shadow: 0 12px 28px rgb(15 23 42 / 12%);
    transform: translateY(-3px);
}

.mgf-dynamic-product-card__body h3 a:focus-visible,
.mgf-dynamic-product-card__link:focus-visible,
.mgf-dynamic-product-card__image:focus-visible {
    outline: 3px solid #e7b822;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .mgf-dynamic-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mgf-dynamic-catalog {
        padding-inline: 16px;
    }

    .mgf-dynamic-catalog__grid {
        grid-template-columns: 1fr;
    }

    .mgf-dynamic-catalog__filters {
        gap: 8px;
    }

    .mgf-dynamic-catalog__filter {
        padding: 8px 12px;
    }
}

@media (max-width: 767px) {
    body.page-id-254 .elementor.elementor-254 .elementor-element-prod_ref_h1 h1 {
        font-size: 30px !important;
        line-height: 38px !important;
    }

    body.page-id-254 .elementor.elementor-254 .elementor-section h2 {
        font-size: 26px !important;
        line-height: 34px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mgf-dynamic-product-card {
        transition: none;
    }
}
