.mastercap-collection {
    background: #fff;
    color: #1d2226;
}

.mastercap-collection__hero,
.mastercap-collection__products {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.mastercap-collection__hero {
    padding-top: 42px;
    padding-bottom: 28px;
}

.mastercap-collection__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 18px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.mastercap-collection__breadcrumb a {
    color: #555;
    text-decoration: none;
}

.mastercap-collection__breadcrumb a:hover {
    color: #3f7fd8;
}

.mastercap-collection__title {
    margin: 0 0 12px;
    color: #222;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.mastercap-collection__intro {
    max-width: 760px;
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

.mastercap-collection__products {
    padding-bottom: 72px;
}

.mastercap-collection__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mastercap-collection-card {
    min-width: 0;
    border: 1px solid #ececec;
    background: #fff;
}

.mastercap-collection-card__image-link,
.mastercap-collection-card__title a,
.mastercap-collection-card__details {
    color: inherit;
    text-decoration: none;
}

.mastercap-collection-card__image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: #fff;
}

.mastercap-collection-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.mastercap-collection-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
}

.mastercap-collection-card__title {
    margin: 0;
    padding: 18px 18px 14px;
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.mastercap-collection-card__title a:hover {
    color: #3f7fd8;
}

.mastercap-collection-card__details {
    display: block;
    margin: 0 18px 18px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #333;
    font-size: 13px;
    text-align: center;
}

.mastercap-collection-card__details:hover {
    color: #3f7fd8;
}

.mastercap-collection__empty {
    max-width: 720px;
    padding: 36px;
    border: 1px solid #ececec;
    background: #fafafa;
}

.mastercap-collection__empty p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
}

.mastercap-collection__empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mastercap-collection__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid #282d33;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.mastercap-collection__button--primary {
    background: #282d33;
    color: #fff;
}

.mastercap-collection__button--secondary {
    background: #fff;
    color: #111;
}

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

@media (max-width: 767px) {
    .mastercap-collection__hero,
    .mastercap-collection__products {
        padding-right: 18px;
        padding-left: 18px;
    }

    .mastercap-collection__hero {
        padding-top: 30px;
    }

    .mastercap-collection__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .mastercap-collection-card__title {
        padding: 14px 14px 12px;
        font-size: 15px;
    }
}

@media (max-width: 430px) {
    .mastercap-collection__grid {
        grid-template-columns: 1fr;
    }
}
