.mpcombo-page,
.mpcombo-list-page {
    width: min(100% - 32px, 1640px);
    margin: 0 auto;
    padding: 32px 0 48px;
}

.mpcombo-hero {
    display: grid;
    grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 34px;
}

.mpcombo-hero__image,
.mpcombo-list-card__image,
.mpcombo-product-card__media img,
.mpcombo-product-modal__image {
    width: 100%;
    object-fit: cover;
}

.mpcombo-hero__image {
    aspect-ratio: 16 / 10;
}

.mpcombo-back {
    display: inline-block;
    margin-bottom: 12px;
    color: #6654a3;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.mpcombo-hero h1,
.mpcombo-list-page h1 {
    margin: 0 0 12px;
    color: #18141f;
}

.mpcombo-description {
    color: #55515d;
    line-height: 1.6;
}

.mpcombo-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 34px;
    justify-content: start;
}

.mpcombo-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mpcombo-product-card,
.mpcombo-list-card {
    background: #fff;
}

.mpcombo-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 560px;
    max-width: 320px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(44, 36, 71, 0.10);
    cursor: pointer;
}

.mpcombo-product-card:focus {
    outline: 2px solid #6654a3;
    outline-offset: 3px;
}

.mpcombo-product-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.2;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #f6f4fa;
    cursor: pointer;
}

.mpcombo-product-card__media img {
    display: block;
    height: 100%;
    transition: transform .32s ease;
}

.mpcombo-product-card:hover .mpcombo-product-card__media img,
.mpcombo-product-card:focus-within .mpcombo-product-card__media img {
    transform: scale(1.035);
}

.mpcombo-product-card__media:focus {
    outline: 2px solid #6654a3;
    outline-offset: -2px;
}

.mpcombo-product-card__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px 28px 30px;
}

.mpcombo-product-card__title {
    margin: 0;
    color: #6654a3;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.mpcombo-product-card__reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 16px;
    margin: 10px 0 0;
}

.mpcombo-product-card__stars {
    position: relative;
    display: inline-block;
    min-width: 76px;
    height: 16px;
    overflow: hidden;
    color: rgba(102, 84, 163, .22);
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 1px;
}

.mpcombo-product-card__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    color: #6654a3;
    white-space: nowrap;
}

.mpcombo-product-card__review-count {
    color: #8f8797;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.2;
}

.mpcombo-product-card__desc {
    display: -webkit-box;
    margin: 14px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #74717b;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.mpcombo-product-card__price {
    margin: 16px 0 0;
    color: #6654a3;
    font-weight: 700;
}

.mpcombo-product-card.is-added {
    box-shadow: 0 18px 38px rgba(44, 36, 71, 0.10);
}

.mpcombo-product-card.is-added::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    border: 2px solid rgba(45, 122, 53, .45);
    border-radius: inherit;
    pointer-events: none;
}

.mpcombo-product-card__added {
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e0ef;
    color: #2d7a35;
    font-size: 13px;
    font-weight: 700;
}

.mpcombo-product-card__added:not([hidden]) {
    display: flex;
}

.mpcombo-product-card__added span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2d7a35;
    color: #ffffff;
}

.mpcombo-product-card__footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 28px;
}

.mpcombo-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 176px;
    min-height: 43px;
    padding: 0 22px;
    border: 1px solid rgba(102, 84, 163, 0.58);
    border-radius: 10px;
    background: #ffffff;
    color: #6654a3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.mpcombo-product-card__button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mpcombo-product-card:hover .mpcombo-product-card__button,
.mpcombo-product-card:focus .mpcombo-product-card__button {
    border-color: #6654a3;
    background: #6654a3;
    color: #ffffff;
    transform: translateY(-1px);
}

.mpcombo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    background: #6654a3;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

.mpcombo-button:hover,
.mpcombo-button:focus {
    color: #fff;
    background: #4f4086;
}

.mpcombo-button:disabled {
    cursor: wait;
    opacity: .72;
}

.mpcombo-button.is-added,
.mpcombo-button.is-added:hover,
.mpcombo-button.is-added:focus {
    background: #2d7a35;
    color: #ffffff;
    cursor: default;
    opacity: 1;
}

html.mpcombo-modal-open,
html.mpcombo-modal-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.mpcombo-product-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 20, 26, .52);
}

.mpcombo-product-modal.is-open {
    display: flex;
}

.mpcombo-product-modal__dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: 88vh;
    overflow: auto;
    padding: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
}

.mpcombo-product-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
}

.mpcombo-product-modal__content {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 24px;
}

.mpcombo-product-modal__image {
    aspect-ratio: 4 / 3;
}

.mpcombo-product-modal__price {
    color: #6654a3;
}

.mpcombo-product-modal__actions {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.mpcombo-product-modal__actions .mpcombo-button {
    min-width: 230px;
}

.mpcombo-product-modal__message {
    min-height: 24px;
    margin-top: 12px;
    color: #d9534f;
    font-weight: 700;
}

.mpcombo-product-modal__message.is-success {
    color: #2d7a35;
}

.mpcombo-spec-list {
    margin: 18px 0;
    padding: 14px;
    background: #f8f6fc;
    border-left: 3px solid #6654a3;
}

.mpcombo-configurator {
    display: grid;
    gap: 14px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d9d1ea;
    background: #fff;
}

.mpcombo-configurator[hidden] {
    display: none;
}

.mpcombo-configurator__section {
    display: grid;
    gap: 14px;
}

.mpcombo-combination-groups {
    display: grid;
    gap: 12px;
}

.mpcombo-field {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #2c2834;
    font-weight: 700;
}

.mpcombo-field input,
.mpcombo-field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #cfc8dc;
    background: #fff;
    color: #2c2834;
    font-weight: 400;
}

.mpcombo-field input:disabled,
.mpcombo-field select:disabled {
    background: #f7f6f9;
    color: #686272;
    cursor: default;
    opacity: 1;
}

.mpcombo-field--attribute select {
    text-overflow: ellipsis;
}

.mpcombo-field--inline {
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
}

.mpcombo-field small {
    display: block;
    margin-top: 3px;
    color: #6654a3;
    font-weight: 700;
}

.mpcombo-event-menu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6654a3;
    font-weight: 700;
}

.mpcombo-event-groups {
    display: grid;
    gap: 10px;
}

.mpcombo-configurator__hint,
.mpcombo-configurator__preview {
    margin: 0;
    color: #686272;
}

.mpcombo-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding: 18px 22px;
    border: 1px solid #d9d1ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(44, 36, 71, .08);
}

.mpcombo-final span {
    display: block;
    color: #686272;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mpcombo-final strong {
    display: block;
    margin-top: 2px;
    color: #6654a3;
    font-size: 22px;
}

.mpcombo-final p {
    margin: 4px 0 0;
    color: #686272;
}

.mpcombo-final__cart-link {
    min-width: 240px;
    border-radius: 4px;
    text-decoration: none;
}

.mpcombo-final__cart-link:hover,
.mpcombo-final__cart-link:focus {
    text-decoration: none;
}

.mpcombo-list-card__image {
    aspect-ratio: 16 / 10;
}

.mpcombo-list-card__body {
    padding: 16px;
}

@media (max-width: 1024px) {
    .mpcombo-items-grid {
        grid-template-columns: repeat(2, minmax(0, 320px));
    }

    .mpcombo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mpcombo-page,
    .mpcombo-list-page {
        width: min(100% - 24px, 100%);
        padding-top: 24px;
    }

    .mpcombo-hero,
    .mpcombo-product-modal__content,
    .mpcombo-items-grid,
    .mpcombo-list {
        grid-template-columns: 1fr;
    }

    .mpcombo-product-modal {
        padding: 12px;
    }

    .mpcombo-product-modal__dialog {
        padding: 18px;
    }

    .mpcombo-product-card {
        min-height: 0;
        max-width: none;
    }

    .mpcombo-product-card__media {
        aspect-ratio: 16 / 10.5;
    }

    .mpcombo-product-card__body {
        padding: 22px 20px 24px;
    }

    .mpcombo-product-card__title {
        font-size: 19px;
    }

    .mpcombo-product-card__desc {
        font-size: 12px;
        line-height: 1.55;
    }

    .mpcombo-product-card__button {
        width: 100%;
    }

    .mpcombo-final {
        display: grid;
        padding: 16px 18px;
    }

    .mpcombo-final__cart-link {
        width: 100%;
        min-width: 0;
    }

    .mpcombo-product-modal__actions .mpcombo-button {
        width: 100%;
    }

    .mpcombo-field--inline {
        grid-template-columns: 1fr;
    }
}
