.set-card-trigger {
    color: inherit;
    cursor: pointer;
}

.set-preview-close,
.set-option-close {
    background: transparent;
    border: 0;
    color: #333;
    font-size: 34px;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 14px;
    z-index: 4;
}

.set-preview-layout {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    padding: 42px;
}

.set-preview-cover {
    display: block;
    height: auto;
    width: 100%;
}

.set-preview-content {
    align-self: center;
    text-align: center;
}

.set-preview-title {
    font-size: 18px;
    margin-bottom: 24px;
}

.set-preview-items {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
}

.set-preview-item {
    color: #111;
    display: block;
    font-size: 13px;
    line-height: 1.7;
    text-decoration: none;
}

.set-preview-item img {
    display: block;
    margin-bottom: 8px;
    width: 100%;
}

.set-preview-loading {
    color: #777;
    grid-column: 1 / -1;
    padding: 20px 0;
}

.set-preview-link,
.set-add-cart-button,
.set-confirm-selection {
    align-items: center;
    background: #008736;
    border: 1px solid #008736;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
    width: 100%;
}

.set-preview-link:hover,
.set-add-cart-button:hover,
.set-confirm-selection:hover {
    color: #fff;
    text-decoration: none;
}

.set-detail-page {
    max-width: 1280px;
}

.set-detail-hero {
    align-items: start;
    display: grid;
    gap: 45px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 42px 0 56px;
}

.set-cover-panel {
    text-align: center;
}

.set-cover-image {
    display: block;
    margin: 0;
    max-width: 620px;
    width: 100%;
}

.set-summary-panel h1 {
    font-size: 22px;
    margin-bottom: 26px;
}

.set-summary-panel h2 {
    border-bottom: 1px solid #ddd;
    font-size: 18px;
    margin-bottom: 0;
    padding-bottom: 14px;
}

.set-selected-list {
    border-bottom: 1px solid #ddd;
    min-height: 62px;
}

.set-empty-selection {
    color: #777;
    padding: 20px 0;
}

.set-selected-item {
    align-items: center;
    border-bottom: 1px solid #eee;
    display: grid;
    gap: 12px;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    padding: 14px 0;
}

.set-selected-item:last-child {
    border-bottom: 0;
}

.set-selected-item img {
    width: 62px;
}

.set-selected-item h4 {
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.set-selected-item p {
    color: #555;
    font-size: 12px;
    line-height: 1.7;
    margin: 4px 0 0;
}

.set-selected-quantity {
    align-items: center;
    border: 1px solid #ddd;
    display: inline-flex;
    height: 30px;
    margin-top: 8px;
}

.set-selected-quantity button {
    background: #fff;
    border: 0;
    color: #111;
    font-size: 18px;
    height: 28px;
    line-height: 1;
    width: 32px;
}

.set-selected-quantity span {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 13px;
    min-width: 34px;
    text-align: center;
}

.set-selected-price {
    font-size: 13px;
    white-space: nowrap;
}

.set-selected-price strong {
    display: block;
}

.set-selected-price .product-price-compare {
    gap: 7px;
    margin-bottom: 3px;
}

.set-selected-price del {
    color: #999;
    font-size: 12px;
    font-weight: normal;
}

.set-selected-price .product-price-current {
    font-size: 15px;
}

.set-remove-selected {
    background: transparent;
    border: 0;
    color: #d71920;
    font-size: 22px;
    line-height: 1;
}

.set-total-row {
    align-items: center;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
}

.set-add-cart-button {
    margin-top: 22px;
}

.set-add-cart-button:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.set-action-message {
    color: #b00020;
    font-size: 13px;
    min-height: 22px;
    padding-top: 10px;
}

.set-items-grid {
    display: grid;
    gap: 42px 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 70px;
}

.set-product-card {
    cursor: pointer;
    text-align: center;
}

.set-product-card img {
    display: block;
    width: 100%;
}

.set-product-card h3 {
    font-size: 14px;
    line-height: 1.8;
    margin: 14px 0 8px;
}

.set-product-card h3 {
    color: #111;
}

.set-product-price {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 9px;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 28px;
}

.set-product-price del {
    color: #888;
    font-size: 12px;
}

.set-product-price strong {
    color: #111;
    font-size: 15px;
}

.set-product-price .product-discount-badge {
    order: 2;
}

.set-product-price del {
    order: 3;
}

.set-product-price strong {
    order: 1;
}

.set-open-options {
    background: #fff;
    border: 1px solid #ccc;
    color: #111;
    min-height: 44px;
    padding: 0 18px;
    width: 100%;
}

.set-open-options.is-selected {
    background: #111;
    border-color: #111;
    color: #fff;
}

.set-option-dialog {
    max-width: 980px;
}

.set-option-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.set-option-media {
    align-items: center;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    min-height: 560px;
}

.set-modal-main-image {
    display: block;
    max-height: 560px;
    max-width: 100%;
}

.set-option-content {
    padding: 58px 36px 28px;
}

.set-option-content h3 {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.set-modal-price {
    border-bottom: 1px solid #ddd;
    direction: rtl;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.set-modal-price del {
    color: #888;
    font-size: 14px;
}

.set-modal-price .product-price-compare {
    margin-bottom: 5px;
}

.set-modal-price .product-price-current {
    font-size: 17px;
}

.set-option-group {
    margin-bottom: 18px;
}

.set-option-group small {
    color: #777;
    display: block;
    margin-bottom: 8px;
}

.set-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.set-option-value {
    background: #fff;
    border: 1px solid #ccc;
    color: #111;
    min-height: 40px;
    min-width: 52px;
    padding: 6px 12px;
}

.set-option-value.selected {
    background: #111;
    border-color: #111;
    color: #fff;
}

.set-option-image-value {
    height: 46px;
    min-width: 46px;
    padding: 2px;
}

.set-option-image-value img {
    display: block;
    height: 40px;
    object-fit: cover;
    width: 40px;
}

.set-option-error {
    color: #b00020;
    font-size: 13px;
    min-height: 22px;
}

.set-product-full-link {
    border: 1px solid #222;
    color: #111;
    display: flex;
    justify-content: center;
    margin: 10px 0;
    min-height: 44px;
    padding-top: 10px;
    text-decoration: none;
}

.set-product-full-link:hover {
    color: #111;
    text-decoration: none;
}

@media (max-width: 991px) {
    .set-preview-layout,
    .set-detail-hero,
    .set-option-layout {
        display: block;
    }

    .set-preview-layout {
        padding: 30px 18px;
    }

    .set-preview-items,
    .set-items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .set-detail-hero {
        margin-top: 28px;
    }

    .set-summary-panel {
        margin-top: 42px;
    }

    .set-option-dialog {
        margin: 0;
        max-width: none;
        min-height: 100vh;
    }

    .set-option-dialog .modal-content {
        min-height: 100vh;
    }

    .set-option-media {
        min-height: 0;
    }

    .set-modal-main-image {
        max-height: none;
        width: 100%;
    }

    .set-option-content {
        padding: 34px 24px 24px;
    }

    .set-confirm-selection {
        bottom: 0;
        left: 0;
        position: sticky;
        right: 0;
        z-index: 3;
    }
}

@media (max-width: 575px) {
    .set-items-grid {
        gap: 38px 22px;
    }

    .set-product-card h3 {
        font-size: 13px;
    }

    .set-product-price {
        display: flex;
        gap: 5px;
        line-height: 1.45;
    }

    .set-product-price del {
        order: 1;
    }

    .set-product-price .product-discount-badge {
        order: 2;
    }

    .set-product-price strong {
        flex-basis: 100%;
        font-size: 15px;
        order: 3;
    }

    .set-selected-item {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .set-selected-price {
        grid-column: 2;
    }
}
